start	end	text
2420	10780	Well, thank you for waiting. It was, uh, quite intense from the, the stage. All right. So,
10780	16580	thank you very much for attending this talk. Uh, I hope you will find it, uh, enjoyable.
16580	28000	It's, uh, it's a, it's a cool story to tell and there is a lot to cover, so buckle up. So over
28000	35560	the past, uh, few years, the security industry, uh, you know, investigated a lot of different
35560	43000	security incidents. But only a few of them were truly sophisticated, meaning something that
43000	48900	was really different than what we used to be. We can talk about, for example, the SolarWinds
48900	57680	case, the Lopetia attack, or even the 3CX, uh, supply chain attack last year.
58000	64560	But today I want to talk about, um, another attack which surpasses even the most
64560	71680	sophisticated we've seen before. This is, uh, an undercover operation that lasted almost
71680	79000	three years, which is very impressive in terms of technical details, but also the social
79000	84400	engineering aspect is very impressive as well. So I'm going to talk about the XE backdoor
84400	91100	story, the undercover operation that set the internet on fire. And I'm pretty sure that by the
91100	97380	end of this presentation, your definition of what is a sophisticated, uh, a sophisticated
97380	104360	attacker is will be changed. So I'm Thomas Rocha, I'm a senior threat researcher at
104360	109520	Microsoft. I've been working on the XE campaign when it came out by, uh, uh, Andres
109520	115220	Freund, which is, uh, a colleague of mine, and we, we, we discovered the, the backdoor
115220	120200	itself. I'm French, as you probably may have heard, and I'm living in Australia, so I'm, I'm
120200	124520	good with the jet lag now because it's been a week in, uh, in Vegas already. Uh, if you want
124520	129780	to learn more about my work, you can visit my website, securitybreak.io, or you can, you can
129780	136380	also follow me on Twitter. What I will cover in this presentation, first, how the backdoor
136380	142840	was found. Then I will talk about the long term operation and the timeline itself. I will
142840	148120	then deep dive into the technical details, and we will discuss about some assumptions. And
148120	152640	finally, I want to conclude this presentation of what it means for us, for the security
152640	165960	industry. Okay, this story began on Friday, 29th of March, at exactly 851 minutes, and it was
166380	173860	uh, a message sent by Andres Froon to the OSS security DL list. With the, the subject,
173860	183680	backdoor in upstream exit, Libel ZMA leading to SSH server compromise. So that's pretty much
183680	188780	around that time, when I saw the, the email and read the investigation, that I started to
188780	195500	investigate more about the backdoor itself and how it was working. But before, I want to
195500	199760	talk a little bit about Andres and how he found the, the backdoor. Because on the
199760	204920	internet, there was a kind of a legend where everyone was saying that the backdoor was
204920	211880	discovered because of a 500 millisecond and uh, for, from Andres that triggered the
211880	218700	investigation. The reality is a bit different. Actually, what triggered the investigation
218700	225200	from Andres was that he found that the SSH login in some of the tested, the testing he was
225200	231480	doing was actually failing. So he decided to investigate a little bit more to try to
231480	238580	understand why the SSH was, the SSH logins were actually failing. And he discovered that
238580	246180	there was a substantial CPU usage during the SSH and he found out the 500 millisecond delay
246180	255360	which he identified, identified later in the new package uh, XE. And he said that, he said
255360	261260	itself, it was a bunch of coincidences. So if we, if we have a look to how he discovered
261260	267960	the backdoor, first, he saw that there was some issue with the SSH uh, login. Then he
267960	274440	decided to investigate and then he found uh, a little bit of uh, amount of CPU uh, using
274440	281480	by the SSH process. So he decided to investigate a little more and he found out that this
281480	289400	amount of CPU usage was used by the Libel ZMA. But then, that's now which is becoming a
289400	298480	little bit crazy because he actually used some specific setup which led him to find the
298480	304340	backdoor. First, he decided to choose a Debian unstable which at the time of the release of
304340	310340	the, the backdoor uh, only this kind of Linux version was affected by the backdoor. Then he
310340	316540	chose to use a specific flag. And without the flag, this flag, he wouldn't have found uh,
316540	321400	the, the backdoor because he was actually tracing the process using Valgrind and Valgrind
321400	327280	complaining, complained about uh, the, the processes because of the flag he was setting up
327280	334560	before. So that's super crazy because thanks to that, he was able to investigate and to find
334560	342020	out the high CPU usage was in the SSHD processes below get CPU ID. Keep that information in
342020	353130	mind because it will be interesting and important for the next part of the presentation. But
353130	361610	you may wondering, what the fuck is uh, exe, exe-utils package? So, the exe, the exe-utils
361610	366410	package is a free software, an open source software which is dedicated for lossless data
366410	373530	compression through SDMA algorithm and exe. It, it, it is maintained by Lasikolin which is the
373530	379670	main maintainer of the backdoor of the, sorry, of the, of the package since more than a, than a
379670	389330	decade. The backdoor has been found in Libel ZMA in the version of exe-560 and 561. And it was
389330	396390	introduced by a mysterious user called Jiatan in February 2024. The, the package, uh,
396410	402610	and the backdoor affected mostly uh, development version so it was not widely deployed when
402610	410690	Andres found the backdoor itself. And Red Hat assigned the vulnerability CVE 2024-30-94.
411290	418150	There is something interesting here because you may wondering as well, why the exe-utils
418150	426390	package has in, uh, has in any relation with uh, SSH? Well, I'm glad you ask. Because
426410	432510	actually, the exe-util uh, uh, backdoor uh, package is widely used in many Linux uh,
432510	439010	distribution and it's a trusted open source component for pro- for compression uh, and any
439010	445670	kind of uh, optimization. The exe-util is, has been used in the open source industry for
445670	453270	years and which is interesting is that open SSH is using the exe-compression to reduce the
453270	460630	size of transfer data when you are doing a connection. So, quite interesting target for an
460630	469150	attacker. Okay, I want now to talk about the timeline. And it's a bit uh, heavy. So, what I
469150	475670	did, I actually split the timeline into five different phases. The first phase, the first
475670	483250	phase which I called initial involvement of GATAN from October 29, 2021 to June 2021.
483270	490770	June 29, 2022. So, during this phase, the user GATAN started to get, started to gain trust into
490770	496490	the exe uh, project and started to do some commit and to work a little bit more. Which is
496490	503890	interesting is um, during that phase as well, there was, there were additional persona that was
503890	510870	part of a kind of a pressure campaign against Lassie Collin, the main maintainer of the exe
510870	518970	package. To move the member, the um, the maintainership to another user. So, some
518970	525510	additional personnel, persona such as Jigar Kumar and Dennis Hance have been part of this
525510	532410	pressure campaign to put the pressure on Lassie Collin. And in June 29 of 2022, Lassie
532410	539290	Collin started to mention GATAN as a co-maintainer already. Then in phase two, which I
539290	548470	call transition of mentorship from September 27 of 2022 to March 18 uh, 2023. During this
548470	556010	time, GATAN continued to contribute to the project to gain trust with uh, with the, the main
556010	562770	maintainer and to the project itself. On October 2022, GATAN was added to the Tukeni
562770	569270	organization on GitHub, which is the organization uh, that released the exe package. So,
570270	575450	and then additional event as well during this time. Then during phase three, which I call
575450	584070	preparation for the attack from March 2023 to January 19, 2024. During this time, a bunch of
584070	591290	information happened as well. First, GATAN uh, updates the Google OSS first to send bugs to
591290	598950	his own email. Then, another persona, Hans Jensen, sends patches for GNU indirect uh,
598950	606930	function features, which is quite important as well. And uh, and GATAN also disables uh,
606930	612290	iPhone support during the OSS first build, which is quite important because it's a kind of uh,
612290	618690	evading some, some security protections. And then during phase four, which I call backdoor
618690	627430	insertion and distribution from February 23 uh, to March 28 of 2024. This is where GATAN
627430	633990	started to release the backdoor. So, in February 24, GATAN merged hidden backdoor binary code
633990	641690	in kind of test files, which are actually fake text, test files. And then he released the
641690	649010	version 5.6.0 with an additional file that was not present in the GitHub repository itself.
650190	656950	And in March 9, uh, GATAN committed uh, an update of the backdoor because there was a bug
656950	662670	and then he released the version 5.6.1, which was backdoored as well. And then on the last
662670	670670	phase, phase uh, phase number 5, which I call discovery and response from March 28 to March 30,
670670	676570	this is where Andres found the backdoor, started to alert and to send the email with his own
676570	684110	investigation and this is where internet was on fire as well. But there is something which is
684110	688070	interesting. I talk about the pressure campaign. So let me give you a little bit more detail
688070	695130	about that. Cause this is quite interesting from the social engineering aspect. So first, I
695130	700250	mentioned that some additional personas were part of this pressure campaign to move the
700250	708950	mentorship of the, of the backdoor to someone else. So in March, uh, in April 2022, Jigar
708950	716170	Kumar sent a message. Patches spend years. In May 2022, Dennis Hance, the, the other
716170	721430	persona, sent another message as well and said, I asked a question here a week ago and I
721430	726290	have not heard back. It has not updated in over a year. Is there a plan for this thing in the
726290	731890	future? Lassie Colleen, which at the time was getting all these messages from these personas
731890	739430	and so on. Jiatan has helped me at least with exe-utils. And he might have a bigger role in the
739430	749850	future. It's clear that my resources are too limited. In May 2022, Jigar Kumar and so on. Over
750070	755590	a month and no closer to being merged. Not a surprise. Jigar Kumar sent another message.
755590	760390	Progress will not happen until there is a new maintainer. The current maintainer lost
760390	767990	interest or doesn't care to maintain anymore. Quite aggressive. Then on June 2022, Lassie
767990	772670	Colleen and so on. My ability to care has been fairly limited, mostly due to long term mental
772670	780170	health, but also due to some other things. Jiatan may have a bigger role in the future. And he
780170	785830	mentioned also, and I think this is quite important in this case, he mentioned it's also good to
785830	794750	keep in mind that this is a non-paid OB project. In June 2022, Jigar Kumar sent another message.
794750	800410	Right now you shock your repo. Why wait until 5 4 0 to change maintainer? Why delay what your
800410	807210	repo needs? Dennis Ant sends a message. Why not pass on mentorship for exe for C so you can give
807210	814190	exe for Java more attention? And then Jigar Kumar sent another message. Jia, this is the first
814190	820150	time he actually talked to Jia. Jia, I see you have recent commits. Why can't you commit this
820150	828830	yourself? And then Lassie Colleen replied on June 2022, on the day 29. Jiatan may have a bigger
828830	836390	role. He is practically a co-maintainer already. Some change in mentorship is already in
836390	844170	progress. Mission accomplished. Jiatan is no part of the project and he has a lot of
844190	849470	more right to contribute. Alright, so now I want to talk about the technical details and how
849470	855410	the backdoor was deploying and how the backdoor works as well. So remember, I mentioned
855410	861610	that the user Jiatan deployed two different test files. The first one was bad3corrupt
861610	869710	underscore lzma2 dot exe and the second one was goodlarge underscore compressed dot lzma.
869710	879030	And additionally, when he released the latest version, version 5.6.0 of the exe package, he
879030	885070	shipped the version with an additional file called build2host dot m4. If you are not familiar
885070	890910	with m4 files, it's a kind of macro file used for configuration during the compilation
890910	899430	process. And this file was present in the release but not in the repository. So let me talk a
899430	907530	little bit more about the build2host dot m4 file. And I will focus here on the version 5.6.0.
907650	914810	So what you see on the screen is just the malicious part of this file, just to focus on what it
914810	918910	is exactly doing, but imagine that this file is super big with a lot of different
918910	926050	configuration and a lot of legitimate actions. So the ones that you saw, you see on the
926050	932610	screens, are only the malicious part. So first, you can see there is a variable called glam
932610	940410	config make, with a grep, which actually looks for one of the malicious test files that have
940410	948610	been released, and specifically the bad3corrup underscore lzma2 dot exe. Then we have, in
948610	956030	number two, two additional variables. The first one, which is the trtool, trtool translate
956050	964070	which is basically doing a kind of a substitution algorithm for part of the backdoor, of the
964070	972450	file itself, the bad3. And the second one is actually showing the file, the test file, and
972450	979850	making a sed to retrieve the extension of this file, exe, which will later be used as a
979850	987430	common line. And as you can see, the translation of this piece of screen is the cat at the
987430	995470	end of the presentation. So basically, transforming the file itself and decompressing using
995470	1008440	exe, the file which has been deobfuscated kind of using tr. So here you have a look of what was
1008440	1014740	the original bad3corrup lzma2 file before the decryption, the, the, the, the, the
1014740	1021440	substitution and the, the decompression using exe. And you have the malicious script on your
1021440	1025420	right. So if you have a look to this malicious script, there is some interesting
1025420	1033760	information here. So first, I, I like to comment, which is actually an exact decimal string. So
1034440	1041140	today, we still don't know what is exactly this string, but I believe, because in version 5.6.1,
1041140	1046400	this exact decimal string was not the same. So I believe this string was potentially related
1046400	1053320	to a kind of a versioning number. Then we have a bunch of, uh, head command which are used to
1053320	1058120	manipulate input data stream. And at the end, we have the stash3 and backdoor extraction
1058120	1065760	because in the bad3corrupt, uh, uh, in the, in the bad3corrupt lzma and the second file, the
1065760	1072040	goodlargecompressed lzma, there is the next part of the, of the, the release of the backdoor
1072040	1077900	and also the decompression of an object. I will come to it later. I just give me, let, let
1077900	1083740	me give you a look, a deeper look of what the file, what the script is doing to release the
1083740	1089680	next part. So first, is decompress the second malicious file. Remember, the second test
1089680	1097880	file, goodlarge underscore compressed dot lzma. That cons, contains the stash3 and the
1097880	1104120	binary backdoor. It remove a, a, a bunch of junk data and unus byte, cause the file is a bit
1104120	1111400	obfuscated. There is again a custom substitution cipher using TR. And then, all the, the
1111400	1120640	deciphered data are decompressed again using Xs. Which lead to the stash3, which is another
1120640	1126220	script, which is doing a bunch of checking during the compilation process. So let me walk
1126220	1131840	through some of the checking this stash3 is doing. First, it's checked for the iPhone
1131840	1136600	support. Remember, previous commit, we discussed about it. Keep that in mind for the, for the
1136600	1144760	next part. Then it verify CRC source file, CRC64 underscore fast C, and CRC32 underscore
1144760	1151420	fast C. For require iPhone code, because the backdoor require this feature. There is a bunch
1151420	1156640	of multiple checks. It verify the version of the Linux system, uh, validate the GCC
1156640	1161260	comp, compiler, check for the previous two test file, because if the two test file are not
1161260	1166040	present, there is no need to continue to deploy the backdoor. So it's a kind of protection.
1166040	1174300	It ensures position independent code. And also, it extract the backdoor from the, the test
1174300	1182260	file, good large compressed dot LZMA. And this backdoor, ex, uh, extracted from this file
1182260	1192980	will be embedded into the, the object file, libLZMA LA dash CRC64 dash fast dot O. Then, there
1192980	1201260	is a modification of a function, isArchExtensionSupported in CRCXX86CLMUL dot H, and it
1201260	1212480	replaces getCPUID with two underscore, with getCPUID with one underscore. Remember
1212480	1220860	getCPUID was where address trust the execution of the backdoor and the amount of CPU usage.
1227800	1231760	So I want to talk a little bit about the backdoor extraction itself, because it's quite
1231760	1238600	interesting how the attacker did it as well. So in the code, there is a, a piece which is
1238600	1246720	using the AWK func, um, tools from Linux, and this is actually doing like a kind of a RC4
1246720	1256360	like algorithm to decrypt the payload itself that will be later stored into the libLZMA
1256360	1265860	LA CRC64. So quite interesting to see that as well. So, to recapitulate a little bit the
1265860	1270800	compilation process, because I know it could be quite uh, quite complex. So first we have
1270800	1276280	the execution of the macro file, the build to host dot info, which is executed and
1276280	1283980	subsequent scripts are also executed. It run all the checks, and it create the make file if
1283980	1288340	previous conditions are met. Because there was a bunch of information, if all the
1288340	1294020	conditions are not met, then the backdoor is not released. Then during the make process,
1294020	1301140	there is a backup of the original file, which has been backdoor, and libLZMA LA CRC64 fast
1301140	1307400	dot O. There is a backup because if something, something goes wrong, the backdoor itself, I
1307400	1312480	mean the, the code itself can push back the original file and so there is no track into the
1312480	1318800	final release of the exe util package. There is also some specific compilation flags.
1318880	1326660	I think, I think resolvers run at startup. Modification of the file CRC64 fast dot C and
1326660	1334180	CRC32 fast dot C. And then finally, compilation, linking stage, manipulation and cleanup
1334180	1339980	because the attacker did well, they also have a bunch of clean, cleaning up to avoid any
1339980	1345500	forensic investigation or further, further investigation. And then at this point, we are
1345500	1355980	here, malicious libLZMA is incorporated into the compiled libLZMA. So now I want to talk a
1355980	1360700	little bit more about the backdoor itself and some of the functionalities. So first it's
1360700	1366100	using the iFunc feature, which allows for dynamic resolution of function implementation
1366100	1371320	during the run time, meaning it can load some specific feature at the run time. And
1371320	1377060	actually the backdoor hijacks the iFunc resolver to allow the modification of the global
1377060	1383400	offset table, which, which is a kind of a table with address to some specific functions. And
1383400	1388460	here on the screen, what you can see is actually the malicious get CPU ID that will trigger
1388460	1396000	the backdoor and continue the execution to the global offset table hijack. Another
1396100	1402300	interesting feature about the backdoor is the usage of DL audit to set up the hook and to
1402300	1407640	bypass Railroad and to intercept also redirect function, function call. If you are not
1407640	1412480	familiar with Railroad, it's a kind of a memory protection space to avoid, uh, to avoid to
1412480	1417700	have some, some space that could be vulnerable for some vulnerability exploitation. So what
1417700	1424480	it is doing here, so first it's checking that the loaded target process is SSHD, because
1424480	1430580	remember, it is our target here. And verify that the share library, and specifically
1430580	1436440	Libel ZMA, because this is the, the, the, this is where the backdoor is loaded, is already
1436440	1444100	present. Then it set up the DL audit structure to start the audit mechanism. And during the
1444100	1450460	dynamic linking, so think about all these steps, uh, doing, doing the, the loading. It
1450460	1456540	resolve and bind symbols. And then, the DL audit symbol function is called by the
1456540	1464780	linker whenever a symbol needs binding. And if all the conditions are met, then it set the
1464780	1470200	backdoor to the install hook function to install the, the hooking function that the payload
1470200	1479100	will need later. There is also the global offset table, uh, redirect, which I mentioned is a
1479100	1486020	kind of a table with a function address. And in that case, at the run time, the backdoor will
1486020	1492500	manipulate this pointer into the global offset table to redirect codes to the main malware
1492500	1500760	function. And if you have a look to the investigation, if you have a look to the, to the
1500760	1508340	running at this time, everything will look like it's been called through the CPU ID
1508340	1518270	functions. On top of that, there is additional evasion mechanisms and kind of obfuscation. First,
1518270	1524970	there is a string obfuscation. In that case, what the backdoor is doing is looking for a tree
1524970	1532830	structure. A tree structure is basically, uh, a corresponding reference between a string and a
1532830	1537590	number. And what the backdoor is doing is looking for a specific number to retrieve the
1537590	1544630	strings it needs for the execution of the payload. So if you, it's kind of a, if you are
1544630	1551090	familiar, it's kind of API, API hashing, where you are retrieving the function code, uh, based
1551090	1557330	on a specific hash. And in that case, the sample, the payload is, is looking for some
1557330	1565490	specific string and for example, 0x1d0 is for RSA public decrypt, which is one of the
1565490	1572510	function. Or for example, for 0x300 for the ELF header, which is used for the deployment
1572510	1579370	mechanism as well. And you have some of the strings that was extracted by the backdoor and
1579370	1587890	needed for the rest of the execution. So as I said, there is function hook that have been
1587890	1595030	added by the, by the, by the payload itself. So first, what it is, what it, what it is doing,
1595030	1600950	it's actually retrieving obfuscated string from the tree structure and one of the string
1600950	1606590	which is important here are the RSA public decrypt function, which is a hook and the RSA
1606590	1612930	get zero key function, which is also a hook. These two function are used in the latest SSH
1612930	1619470	server version and are called when an RSA certificate is configured, is using for the
1619470	1624030	authentication. Remember that because this is important. And the last function which have
1624030	1630530	been hooked is the EVP PK set one RSA, which it's a little bit weird because it's not used in
1630530	1636370	the latest SSH version, but probably that it has been set up for compatibility or probably
1636370	1644250	for a specific environment. There is a bunch of other checks and evasion used by the
1644250	1649870	sample, uh, by the payload. Here, there is an overview. So first, as we saw, it's, it's
1649870	1654490	checks that the current process is well SSHG because there is no need to deploy the
1654490	1661010	backdoor if we, if we are not running, uh, if SSHG is not running. It check for a potential
1661010	1667130	kill switch. So this one is not very clear. This is a string that was present into the
1667130	1671970	malware itself, the payload, but it's not very clear what's the goal, what was the goal of
1671970	1675970	this string. Some researcher are thinking that it could be like a kind of a kill switch. If
1675970	1682870	the backdoor see the, this, uh, strings into the, the environment, the memory, then it will
1682870	1689090	not run. Potentially a kill switch. It also abuses the legit LZMA alloc function for memory
1689090	1695530	allocation, which is required by the payload at some point. And there is also, it is, the
1695530	1704010	backdoor is also hooking the logging function, meaning for every authentication through the
1704010	1711310	backdoor, nothing will be logged into the, into the log of the machine. So that means it's also
1711310	1716130	more difficult for forensic investigation and incident response. And there is a bunch of
1716130	1721730	other advanced functionality such as encryption, anti-replay, it also embeds its own tiny
1721730	1729110	embedded disassembler which is required at some point as well. But how the, how does the
1729110	1734890	backdoor works really? So remember I said there is, uh, three main function that have been
1734890	1739930	hooked. And which is interesting as well, is that the backdoor embeds three main
1739930	1746070	function to be triggered. To trigger this function, there is kind of magic number, actually
1746070	1750130	three magic number, and there is an operation which is used by the backdoor itself, which is
1750130	1756810	magic one multiplied by magic two, plus magic two, which, which will give us the common
1756810	1762510	number that will be triggered by the payload itself and the backdoor. So the first one,
1762510	1769810	command zero and command one, is actually an SSH authentication bypass using root login.
1769930	1777150	Second one is a remote code execution via systemd, cmd2. And the third one is, uh,
1777150	1783130	cleaning a closed pre-authentication that have been previously opened. And if you pay
1783130	1790650	attention to the, to the diagram below, to trigger this specific, uh, command, the
1790650	1798030	attacker have to embed the payload into an RSA certificate that will be read by the, by the
1798030	1804230	backdoor server during the authentication. And then there is a bunch of decryption. Of
1804230	1813130	course, to exploit this specific backdoor, there is an upcoded certificate used, so that means
1813130	1819090	only the attacker itself can login to the compromise server because he already have the
1819090	1828010	private key. So to give you a little more details of how works the certificate payload,
1828990	1837210	so you have here a kind of an overview of what is inside the certificate itself. So first,
1837210	1844610	this certificate is used to the connection to the SSH, uh, to the SSH, uh, process to the
1844610	1850910	backdoor server. Then there is an exchange of the public key, and this public key, there is
1850910	1856030	also a SHA256 which is calculated as well. So let me give you an overview of the
1856030	1861970	certificate itself. First, if you have a look, it's a normal RSA certificate, but there is some
1861970	1869910	interesting information. In the IV, I call that the IV because it's used later, the, this IV is
1869910	1875830	actually the magic numbers. Remember, the magic numbers are used to calculate the common
1875830	1882010	number that will be interpreted by the, the server and, and the, the backdoor itself. And
1882010	1888530	then, in the modulus N, uh, payload, in the, in the modulus N part of the RSA certificate,
1888530	1897830	there is the payload which is encrypted in SHA20, 20, uh, SHA20, sorry. And this payload is
1897830	1906030	decrypted using the outcoded ED448 public key that has been exchanged during the initiation of
1906030	1911810	the connection, but only with the first 32 byte. And it's also using the IV, which are
1912530	1919970	the magic numbers used, outcoded into the, the malicious RSA key, to decrypt the payload.
1920150	1925010	Then, in the decryption of the payload, we have two main parts. The first, which is the
1925010	1931690	signatures, which have been verified by the payload to be sure this is well, this is well the
1931690	1937090	attacker that has been trying to connect. And we have the payload itself, which have been
1937090	1945710	executed. And the signature is generated with the CMD value, which have been calculated. A
1945710	1951830	five byte flag, which we don't know at this time what is it exactly. The payload itself, and
1951830	1959870	the SHA256 that have been calculated from the ED448 signature. So a bunch of mechanisms to
1959870	1965630	avoid also, uh, the replay of the certificate and to investigate a little bit more. And at
1965630	1979790	this point, JITAN is in. So there is a small, um, let me show you. I did a small, uh,
1979790	1991970	demonstration using, I did a small demonstration using, uh, a payload, using, uh, someone
1992690	2000250	reused, um, uh, recoded, actually, the, the backdoor. So I reused this code. So on, on the
2000250	2004790	right, you have the target, which is the attacker. So what I did here, uh, recompiled the
2004790	2010450	backdoor itself with my own certificate, so I can reuse the code and authenticate like if I,
2010450	2016250	like if I was the attacker. So you have the target on your right. On the, on the bottom you
2016250	2022510	have the logs, because some researcher found that if you activate the verbose
2022510	2029210	mechanism in the, in the logs and the configuration of SSH, there is a logging feature, uh,
2029210	2035130	that appear and then there is some track, some trace into the, into the logs. So what I'm
2035130	2040370	using here, I'm actually running the backdoor against my server, which I've been
2040370	2046230	compromised. And here you can see, there is, what I did here is extracting some of the
2046230	2051670	components that have been used to generate the RSA certificate used to authenticate to the
2051670	2057910	compromised server. And as you can see here, you can see the OSCE, the SHA-256, the
2057910	2062370	different magic number, the magic command, in that case it's number two, so I'm using the
2062370	2068550	RCE, remote code execution. And then we have the certificate that have been sent to the
2068550	2075350	compromised server. And if you look to the target here, I've been written a file called
2075350	2081050	it's me, and that have been executed by, uh, the certificate itself. And this payload was
2081050	2088250	actually part of the RSA, uh, key that are sent to the mal- to the compromised server. The
2088250	2094130	second one is a, um, is a remote code execution as well, just to, uh, have, uh, a reverse
2094130	2099030	shell and to be able to, uh, authenticate and to do some action onto the mali- onto the
2099030	2147480	compromised server. So, okay. Okay, sorry about that. Okay, so you may wondering who is
2147500	2152760	behind, uh, this attack. So, as I, as I discussed at the beginning, there was multiple
2152760	2160720	personas involved into the, into the deployment of the backdoor for the pressure campaign
2160720	2165600	against LaCie calling. So, remember, I talk about Jigar Kumar, Dennis Ants, and Ants
2165600	2172500	Jensen, and Jiathan as well. So, what I did here, I wanted to know if, because we already
2172500	2178200	had this, their, their email address, also their user name, and I wanted to understand if
2178200	2185740	there is some connection or if the specific email addresses were known before or not. So,
2185740	2192980	what I actually did, I look for some, uh, connection using this email address, especially
2192980	2199040	for the Jiathan user, and I found out that there was only a few server, only a few website
2199040	2205820	that was using this email address. What I found out as well is that for Jigar Kumar, with
2205820	2211960	the ProtonMail address, I was able to recover the date of creation of this email address,
2211960	2219800	which was on 2022 April, April 27, and which is interesting because this email address
2219800	2226260	has been created just a day before Jigar Kumar sent the first email to the, to the
2226260	2233920	Exe, uh, Utils, uh, uh, DL list and, and project. So, Jigar Kumar, Hans Jensen, and Dennis
2233920	2239160	Hans was part of the first pressure campaign, and the second one, Mizo Heter and
2239160	2243760	Krigorin was part of the second pressure campaign which occurred between the release of
2243760	2250180	the version 5.6.0 and the release of the version 5, 5.6.1. And which is interesting is that
2250180	2257000	if you have a look to the structure of this email addresses, they all have the same
2257000	2262660	structures. They have a username, they have a number, and they all use, used a free email
2262660	2269660	service. And also, what I wanted to discover is, does this email address are using, have
2269660	2275920	been, for example, known in public data leak database. And I checked for all of them, and
2275920	2281900	all of them were not present in any of the public leak, leak database. And Brian Krebs, at
2281900	2288960	the time of the investigation, when everyone was crazy about it, uh, said, it's super rare
2289720	2296520	to have one email address which is not present in data leak databases, but it's even more
2296520	2301980	rare to have multiple email address which are not present in any of the data leaks, which
2301980	2311740	could give us some information about, you know, a really well-crafted, uh, operation. So, what
2311740	2316080	can we do about it? Well, it's not an easy question, and I don't think I have the, the answer
2316080	2322480	today, but here is some elements maybe to, you know, just to think about it. Maybe
2322480	2327060	something that could be done specially on project like this one that have been widely used
2327060	2332700	everywhere, would be to have like a strict contributor verification. Also to ensure that the
2332700	2337740	builds are reproducible, meaning to have like the equivalent of the GitHub repository and the
2337740	2344100	release of the tarball. Then hooded hooks and railroad protection, but as we saw in that case,
2344100	2350140	the backdoor we are actually using, uh, bypassing for, of the railroad. And also improving
2350140	2357760	dependency management could be a good way to improve issue like this one. There is also
2357760	2362140	something which is important to keep in mind, which is, what does it mean for the security
2362140	2367500	community and beyond? So first, I think it's important to keep in mind that the entire
2367500	2374560	industry relies on open source tools, and as we saw for the XE utility package, some people
2374560	2382140	are relying of a biased project such as the XE, uh, utility package. I think also the
2382140	2388060	discovery of the backdoor itself was a mix of luck, coincidence and expertise because
2388060	2393780	without the investigation of Andres, then we won't be able to, we probably wouldn't have
2393780	2401500	been able to find the backdoor itself. So I think it's kind of important to think about it. I
2401500	2407200	believe also, if you are, if you have a look to the sophistication, the mechanisms and the
2407200	2413400	deep understanding of Linux operating systems, I believe it's also redefine what we call
2413400	2418620	sophisticated attacker. And of course, as I said, there is no easy solution. Probably the
2418620	2423260	knowledge of what I'm trying to do today, meaning explaining you how the backdoor is
2423260	2429160	working and what the attacker did, is also maybe part of the solution because knowledge
2429160	2436300	potentially is the key, so you are, you are well prepared for the next one. Of course, in
2436300	2441160	45 minutes, it's super difficult to give you the whole details. There is a bunch of
2441160	2446640	technical, uh, details, uh, into the backdoor itself. There is a, a lot of information to
2446640	2451540	cover. So I want to acknowledge, uh, all the researchers that have been working on it
2451540	2455440	because they did a fantastic job and I really recommend you to have a look to the different
2455440	2461840	blogs at the end if you want to learn more about it. And because, because of, uh, I mean,
2461840	2466760	thanks to all their writer, we know a little bit more today how the backdoor works, but there
2466760	2471480	is potentially more to discover and potentially stuff that we will never discover. And
2471480	2477500	before to conclude on the presentation, I just want you to, to ask you a question to think
2477500	2483780	about for potentially the, the rest of the day, the rest of the week or potentially the, the
2483780	2492700	rest of your career. How many other JATAN do you think are paid, are, are paid to insert
2492700	2496760	backdoors in open source project? And thank you very much for listening me today.
