start	end	text
0	3900	My name is Connor Morley. This is Lacey Fan. We are Threat Hunters with Cantercept.
3900	6780	And we're going to be doing a presentation here about Killsuit.
7080	9260	So, what exactly are we going to be covering today?
9260	13020	We're going to be covering what Killsuit is, what it does,
13020	17240	what happens when it's installed into a system, how to detect and remediate Killsuit,
17240	20720	how Killsuit persists in the system using advanced bootkit Solartime,
20720	23560	and how to detect and remediate a Solartime infection.
23920	28060	So, first things first, what exactly is Killsuit?
28060	31200	So, Killsuit is a post exploitation framework
31200	33720	that was developed by the Equation Group prior to 2013
34380	38360	and leaked by the Shadow Brokers in the Lost in Translation leak in 2017.
38900	41320	It's supposedly developed by the Equation Group,
41320	45680	which are strongly associated with the NSA, although not confirmed,
45680	49220	so it's likely a state-sponsored actor-level attack framework.
49340	51920	We know this is in the Dan Spitz framework, which was inside the leak,
51920	56020	and United Rake, which has direct references to it inside its instruction manual.
56020	59880	So, this is basically an overview of what Killsuit is.
59880	62740	So, what exactly does Killsuit do?
63040	69540	So, as we mentioned earlier, it is a post-exploitation modular capability mechanism.
69540	73880	It's a bit of a mouthful, but we've done a diagram to basically outline what this means.
74640	81060	Effectively, the Dan de Spitz framework uses the Fuzzy Bunch exploitation collection
81060	85660	in order to pwn a victim, to install a pedal-cheap agent,
85660	90940	which is their advanced C2 channel, which then allows them to install a Killsuit instance,
90940	94660	which has underlying Killsuit modules, which allows for a certain functionality.
95180	97320	Now, the modules all have individual functionalities,
97320	99740	and the instances have individual functionalities.
100460	103620	They can't hear me. Do you hear me now?
103860	106280	Yeah? All right, fantastic. Sorry about that.
106920	108060	Where was I?
108060	111560	Yep, so the individual modules all have individual capabilities,
111560	112960	and so do all the instances.
112960	116360	Some of these can include persistence of the pedal-cheap agent,
116360	119680	which is a priority for the Dan de Spitz framework,
119680	122400	as this allows persistence of their C2 channel inside the victim.
122600	125040	Each instance and module type has a different codename.
125040	127800	This is a list of the codenames that we know about.
128300	130060	They all have different functionalities,
130060	134160	such as Strangeland, which is a covert keylogger,
134160	137200	Magic Bean, which is a Wi-Fi man-in-the-middle attack
138480	142220	capability enablement, or DarkSky, which is a packet capture utility,
142220	143660	which is a module type.
143660	145960	Now, we've gone over modules and instances.
146180	148380	Basically, this is the way that they fit together.
148480	152200	So, you can have instance types which have individual capabilities,
152200	154580	but you can install separate modules under them,
154580	157820	which allows multiple instances to have the same capability.
157980	161940	So, in this diagram, you can see that SOKN, which is Sombernave,
161940	165980	and WRWA, which is Wraithwrath, both have the DarkSky module installed,
165980	170220	which means that both instances have the capability to do packet capture.
170440	174380	Whereas, Magic Bean and Sombernave, which are the two on the left,
174380	176880	the one on the left has FluAvenue, which is Flav,
176880	180340	which is the IPv4 custom-made IPvTCP stack
180340	182660	that the guys use in order to avoid detection,
182660	186420	and DMGZ, which is Doorman Gores, which is the IPv6 variant.
186600	190040	So, you can have lots of instance types which have different capabilities,
190040	192620	and you can install separate modules under them
192620	196400	to have either repeated or specific functionality.
196840	198940	You see on the right, we also added custom modules.
198940	203220	That's because the Kilsu module library had the capacity to add new modules,
203700	206300	but we didn't actually find how they built these things
206300	207720	or the sort of language they used.
207720	209600	They used a custom scripting language to begin with,
209600	211100	and then moved over to Python.
211240	214100	So, although it has the capacity to load new modules
214100	215440	that have never been seen before,
215440	217580	we couldn't actually find a way to build these or put them in.
217580	220140	So, if anyone wants to have a poke at that, that'd be great.
220700	222700	For the main research for this,
222700	224800	for the instance types and the module capabilities,
224900	227420	a guy, Francisco Donoso, is the one pioneering this.
227420	228940	So, we do recommend looking at his work,
228940	230980	because that's basically where he focuses.
231120	234520	We, however, are focused on basically detection of Kilsu
234520	236080	when it's installed on a system.
236140	238300	So, we are going to look at what happens
238300	241660	when Kilsu is actually installed on a system.
241840	244880	So, we did this by obviously creating lots of victim machines
244880	246160	and an operating machine,
246160	247440	pwning using Fuzzy Bunch,
247440	249900	and then installing Kilsu to see exactly what happened.
250640	254600	For an example, so, we had to condense this down,
254600	255900	but one of the main things that we saw
255900	259280	was that we injected into a calculator process
259280	261120	using DoublePulsar,
261460	266040	and this created this sort of action when Kilsu was installed.
266040	267680	I call this the Jones-Bond function,
267680	271120	but basically it's an HTML hash generation,
271120	272580	which happens inside Calculator,
272580	274080	which, as you might imagine,
274080	277560	there's no reason it should be generating hashes inside Calculator.
277560	279240	Now, that's anomalous,
279240	282200	only in processes that shouldn't do it.
282240	284020	So, by default,
284020	285720	Dynasphere is actually injecting to Lsas,
285720	288460	so Lsas generating hashes is not so anomalous,
288460	289680	Calculator is very anomalous.
289680	292700	So, depending on where the operator decides to inject into,
292700	294240	it's quite detectable or not,
294240	295580	so it's not a be-all, end-all.
295580	298420	However, what it then did with that hash was more interesting.
298420	303220	So, we actually traced where that hash was used inside the process,
303220	305240	and we found that it basically was used
305240	308640	to inject or modify this registry key,
308640	310040	OEM Management.
310040	312600	Now, OEM Management doesn't actually exist.
312600	317100	There's no real reference to that registry key that we could find.
317240	319340	And we found that that's actually where it installed
319340	322460	the encrypted Kilsu database,
322460	325640	where it basically installed its capabilities.
325740	326720	Now, in the bottom there,
326720	329320	you'll see that we've got a KSModuleStoreRoot.
329320	331580	This was basically generated using an internal tool
331580	334000	for the framework called DoubleFeature.
334000	335740	DoubleFeature is used by the operators
335740	337240	in order to basically verify
337240	338800	what is already on their system
338800	340120	in a network that's being attacked.
340120	341760	So, the two operators don't necessarily
341760	342900	pwn the same machine.
342900	344820	They can see if something's already been installed.
345140	346400	Now, the KSModuleStoreRoot
346400	348300	actually corresponds to OEM Management.
348300	349300	Obviously, in this slide,
349300	351660	the ones with key eyes can see that it doesn't match.
351720	353280	And the reason for that is,
353280	356160	there are a lot of variations about where it put this.
356160	358760	These are just some of the registry locations
358760	360760	that we found while experimenting.
361160	363420	Now, you might see that the second half,
363420	366520	CACHE, CFG, CONFIG is actually repeated.
366620	368360	And it's split by a capital letter.
368360	369480	Now, we found that actually,
369480	370380	the first half and second half
370380	372220	were actually repeated quite frequently.
372220	375440	And eventually, it started to basically recur on itself.
375440	376480	So, we came to the conclusion
376480	378660	that this was more or less two lists
378660	380160	that were being concatenated together
380160	384580	and randomly or systematically selected at installation.
384580	386520	So, we concluded that if we could find these two lists
386520	388760	with inside the framework or the binary,
388760	390380	we could therefore generate every combination
390380	393760	and have an easy IOC identifier
393760	394900	for where the kill C was installed
394900	396160	and basically just sweep registries
396160	397540	to be able to find this.
397860	400000	We wanted to prove that this was what we thought,
400000	402520	and we did this by finding the concatenation operation.
402800	404620	So, we found that the registry location
404620	406040	had two separate strings
406040	407120	that were then concatenated together
407120	408400	and then added to the end of the registering
408400	410880	to verify that this was in fact what we thought it was.
410980	411860	So, hooray.
411860	413280	So, we broke down basically
413280	414140	where we're going to investigate
414140	415760	to try and find these lists.
415780	417360	And it broke down into three areas.
417360	419280	Basically, whether the communic-
419280	420980	whether the operator's framework
420980	422240	communicated the location
422240	424740	to the active, uh, Petalchip agent
424740	426200	to install the kill suit.
426200	427500	Whether the Petalchip agent,
427500	428500	when it was in its DLL form
428500	430300	before being injected by DoublePulsar,
430300	431400	had it hard-coded.
431480	433320	Or whether the payload, uh,
433320	435800	the Petalchip agent had both lists already in it
435800	438560	and then decided basically to put, uh,
438560	442700	on the victim's, uh, victim system variables
442700	444720	what options it was going to pick.
444720	446300	Now, we very quickly eliminated
446300	448080	that it was hard-coded into the payload
448080	449600	because reuse of the payload
449600	450700	didn't generate the same result
450700	451920	so it still was randomized.
452060	453660	So, definitely not hard-coded.
453760	455360	So, we started looking at, uh,
455360	456900	whether it was communicated from the attacker.
456900	457800	Now, in order to do this,
457800	459800	we had to basically break down, uh,
459800	462300	how the commands were used
462300	463900	inside the- inside the framework
463900	465920	and how it was then transmitted to the agent.
466080	467860	And it- it breaks down to this.
468260	469640	The Dynaspirit's user interface
469640	471900	was then communicated to Demi library
471900	473160	which is decibel minute.
473440	474700	Uh, this was then handed off
474700	476280	to the Dynaspirit or DSZ library
476280	478020	which in turn communicated
478020	480000	with the primary, uh, the primary binary
480000	482940	which is the DD-DDZS core, uh, SC core
482940	484060	which communicated with the
484060	485340	prototype agent inside the victim
485340	487200	which then, uh, enacted, uh,
487200	488520	kill suit capabilities.
488880	491340	So, we looked at the decibel minute library
491860	492920	to start with.
492920	494320	Uh, we quickly came to the conclusion
494320	495520	that decibel minute, uh,
495520	497700	was actually used for all of the, uh,
497700	499020	kill suit operations.
499100	501040	One of the libraries that this one is inside,
501040	501720	the handle connects,
501720	503660	is actually, um, uh,
503660	505540	is responsible for, uh,
505540	507500	dynamically loading and unload module drivers
507500	509320	inside a kill suit instance.
509320	511400	So, this particular, uh, function
511400	513760	allows for, um, changing of the modules
513760	515480	inside an active kill suit instance.
515580	517500	But, from the bit that I've highlighted,
517500	519160	you can see that it actually hands off,
519160	521700	uh, to a, uh, MCL dot tasking
521700	523060	RPC perform call.
523060	525120	And this is inside the Dynaspirit library.
525320	527820	Now, the DSZ library in turn
527820	529820	calls a hidden underscore,
529820	531880	uh, private underscore DSZ library.
531880	532740	Now, this is where we actually
532740	534240	run into a bit of a problem.
534240	535440	The underscore DSZ library
535440	536260	and the functions inside it
536260	537460	were nowhere inside the framework
537460	538480	that we could find.
538480	540060	So, all of the libraries were, uh,
540060	541820	Python based and this underscore
541820	542800	or any of the functions
542800	544240	were not in there.
544240	545580	And that created a real problem
545580	546780	because this was primary
546780	547960	to how it communicates
547960	549320	with the pedal cheap agent.
549520	551300	So, we started looking,
551300	552140	because we couldn't find it
552140	553500	inside the framework itself,
553500	554980	we started looking in the binary.
555340	557180	We, uh, sadly analyzed the binary
557180	558860	and we found that it did have error captures
558860	560960	for particular functions inside,
560960	561700	that we knew were inside
561700	562540	this private library.
562540	564560	But the, uh, function locations
564560	565240	that we found for them
565240	566440	were all empty.
566640	568060	So, a bit more extra research
568060	569300	by one of our colleagues,
569300	570360	Alex Kornitsa,
570360	571640	uh, found that it was in fact
571840	573080	a C Python module library
573080	574320	that was loaded at runtime,
574320	575120	which is why we couldn't
575120	576140	find it statically.
576220	577360	So, although we were trying
577360	578240	to statically analyze it,
578240	579100	it wasn't there.
579100	580680	So, we moved on to dynamic analysis
580680	581340	of the binary,
581340	582020	but we ran into even
582020	582900	secondary problems.
582900	584320	Now, whoever built this tool,
584320	585560	uh, the equation group,
585560	586900	um, they really didn't want
586900	587720	this being analyzed.
587720	588760	They put in quite a lot of things
588760	590420	to prevent us from analyzing it.
590420	591640	One of them was that it detect-
591640	593380	detected debug hookers,
593380	594520	and if it found one,
594520	595860	it would instantly terminate.
595980	597180	So, that was just an indicator
597180	598260	of they don't want us
598260	599180	looking at this.
599180	599920	We were actually able
599920	601040	to hide the debugger
601040	602500	and get it to run anyway,
602500	603500	but all the memory locations
603500	604060	that we found that were
604060	605220	allocated to the function,
605220	606300	including the index root
606300	607380	for the functions,
607380	608140	there were multiple,
608140	609480	and a lot of them were dummies.
609560	610620	And even the locations
610620	611340	for the variables,
611340	612240	we found that the data
612240	612940	was either loaded
612940	613760	and unloaded so quickly
613760	614440	we couldn't find it,
614440	615100	or we couldn't find
615100	616020	the true variable
616020	617340	that was actually looking for,
617340	619340	which was extremely annoying.
619340	620740	So, we actually reached
620740	622580	the capability of our analysis,
622580	623500	and we had to conclude
624080	625240	we don't know if it's there,
625240	626940	which was very unfortunate.
627080	628840	So, we came to the conclusion of,
628840	629720	although we've got to the end
629720	630920	of our capability,
630920	632180	we're not sure it's there,
632180	633120	but if we can eliminate
633120	634340	that it's inside the payload,
634340	635200	at least we can focus
635200	636600	on one particular area.
636680	637580	So, we moved on to where
637580	638700	the payload was deciding it
638700	640580	from environmental variables
640580	641700	inside the target.
641700	642680	However, this created
642680	644080	another set of problems.
644220	645680	So, the binary,
645680	646460	when it's injected,
646460	647760	is actually encrypted,
647760	649940	and in looking at the stack
649940	651340	of the process injected into,
651340	652420	the variables we were looking for
652420	653900	for kill suit operations,
653900	654960	where instead of being,
654960	655920	as far as we can tell,
655920	656560	instead of being injected
656560	657240	into the process,
657240	658800	we're injected into kernel data.
658920	660100	Now, we couldn't figure out
660100	660600	how it did it,
660600	661260	we couldn't figure out
661260	662100	why it did it,
662100	662920	and we couldn't extract
662920	664180	the variables we were looking for,
664180	665180	which, again, created
665180	666280	the situation of,
666860	668260	we don't know if it's there,
668260	670620	which made us very upset.
671160	672520	So, although this came
672520	673180	to the conclusion of,
673180	674560	we have a lot of
675320	676040	possible variations
676040	677220	of the combination
677220	678060	of the two lists we have,
678060	679060	we couldn't actually find
679060	680480	the two lists within the system.
680480	681820	Now, if anyone does have
681820	682820	expertise in this area,
682820	684220	please talk to me,
684220	685320	because we really want to
685320	685960	find this list,
685960	686580	because that would be
687100	688200	really awesome.
688200	689360	But, although we couldn't
689360	690280	find these two lists
690280	690880	we were looking for,
690880	691800	we didn't let it stop us,
691800	693000	and we carried on anyway.
693620	694680	And in doing so,
694680	696100	we came across this,
696100	697500	which we found was,
697840	698600	a check that was made
698600	699520	against every fresh
699520	700680	kill suit installation
700680	702020	on a fresh,
702020	702980	petal cheap instance
702980	704100	on site of victim.
704140	705080	And it does this,
705600	706680	cryptographic default
706680	706980	provider type
706980	707980	of type 023
707980	709480	registry check.
709580	710760	Now, the first thing
710760	711520	of noting is,
711520	712300	what exactly is
712400	714000	a cryptographic provider type?
714000	714620	Now, a cryptographic
714620	715340	provider type
715340	716700	is basically a
716700	717800	plug and play function,
718120	718960	or a plug and play
718960	719400	description
719400	720060	inside the registry,
720060	721720	which explains how
721720	722560	certain encryption
722560	723220	algorithms are to be used
723220	724300	with certain variables
724300	725940	for specific outcomes.
725940	726500	Now, this is under
726500	727600	the Windows default,
727600	728500	and it has a number
728500	729380	for AES, DSS,
729380	730020	and Diffie-Hyman,
730020	730860	things like that.
730860	731760	And it has versions
731760	732920	1, 3, 5, 12,
732920	734180	13, 18, and 24.
734180	735860	It does not have
735860	736740	a default type of 23.
736740	737940	This was confirmed
737940	738660	by looking at
738660	739760	Microsoft documentation,
739760	741420	as accurate as that can be.
741620	742480	But we found,
742480	742900	we also found
742900	743960	no trace of any
743960	745080	legitimate form of
745920	746880	type 023
746880	748020	within the default
748020	749180	provider types.
749180	750540	So, we had something
750540	751480	that was consistent
751480	752920	across all infections,
752920	753380	and something that
753380	753960	could be easily
753960	755200	checked for using
755200	755880	registry monitoring.
755880	757960	So, we had a
757960	758560	consistent point
758560	758880	of installation
758880	759840	that we can monitor for,
759840	761060	using this type 023,
761060	762100	and we had a
762100	764260	semi-conclusive way
764260	764680	of monitoring
764680	765240	for legacy installations,
764340	765540	using the registry
765240	766280	locations that we
766280	767240	generated.
767820	768940	So, moving on from
768940	769960	how we actually
769960	770960	did the research,
770960	771540	how to detect
771540	771940	and actually
771940	772740	really remediate
772740	773360	killsuit using
773360	774500	this information.
774900	775880	So, it breaks down
775880	777000	into the type 023
777640	778080	default cryptographic
778080	778860	type that I just
778860	779680	explained.
779680	780860	The system function
780860	781960	007, which is the
781960	783040	NTML hash generation,
783040	783600	depending on which
783600	784160	process it's
784160	785060	injected into.
785060	786180	That has, obviously,
786180	787120	quite a big variable
787120	787840	for hit and miss,
787840	788320	depending on what
788320	788800	the operator's
788800	789780	injected into.
789780	790840	And the, uh,
790840	791700	registry directory
791700	792460	that installs
792460	793420	the encrypted database.
793420	793940	Again, that's
793940	794540	semi-conclusive
794540	795040	at the moment,
795040	795440	and not fully
795440	796320	conclusive.
796340	796720	You'll see that
796720	797200	there's an extra
797200	797840	box there.
797840	798220	That's because,
798220	798520	in the final
798520	799020	sweep of the
799020	799440	framework,
799440	799900	we found that
799900	800460	there was actually
800680	801340	a driver list
801340	801960	that was inside
801960	802840	the framework.
802940	803240	And this
803240	804060	contained multiple
804060	804880	references to
804880	806100	killsuit only,
806100	806740	or killsuit
806740	807760	remove driver
807760	808980	after installation.
808980	809540	We found that
809540	809940	these actually
809940	810460	referred to
810460	811240	killsuit loader
811240	812060	drivers.
812260	812780	Uh, but,
812780	813600	after installation
813600	814280	and infection of
814280	814660	the machine,
814660	814980	we couldn't
814980	815840	actually find any
815840	816380	trace of them
816380	817440	ever being used.
817440	817940	So, although they
817940	818600	were inside the
818600	819120	framework,
819120	820060	we couldn't find
820060	821000	any trace of them
821000	821580	on what we were
821580	822120	looking at.
822120	823160	So, something that
823160	823720	could be looked at
823720	824760	but we, we
824760	825160	couldn't find
825160	825920	anything.
826100	826880	So, removal
826880	827780	and neutering
827780	828420	of a killsuit
828420	828820	basically
829340	830040	requires the
830040	830500	understanding
830500	831320	of how, uh,
831320	832140	killsuit operates.
832240	833040	And it
833040	834000	focuses basically
834000	835360	on that it
835360	836020	always refers to
836020	836520	this encrypted
836520	837140	registry database
837140	838220	that I explained.
838220	838880	So, the
838880	839300	boot pack
839300	840000	itself will
840000	840800	load the, uh,
840800	841300	the killsuit
841300	842200	modules from
842200	842580	the registry
842580	843160	database.
843160	843520	The running
843520	843820	killsuit
843820	844880	instances refer to
844880	845820	the database.
845820	846300	The Pailchip
846300	846940	instance, when it
846940	847620	tries to enact
847620	848660	killsuit, um,
848660	849220	actions,
849220	849760	has to refer to
849760	850320	the database.
850320	850820	So, as you can
850820	852120	notice, everything
852120	852720	refers to the
852720	853320	database.
853320	854060	So, if you know
854060	854460	what the registry
854460	855460	database is,
855460	856400	and you remove
856400	857500	it, you just,
857500	857980	you destroy,
857980	858360	you basically
858360	859180	neuter killsuit
859180	859700	and all of its
859700	860440	functionality.
860720	861320	Now, that
861320	861780	breaks down to
861780	862340	knowing where
862340	863420	killsuit is.
863440	864340	So, um,
864340	864960	that, that
864960	865780	requires, obviously,
865840	866080	a bit more
866080	866820	searching of the
866820	867420	two lists.
867420	867780	And obviously,
867780	868080	if we find two
868080	868480	lists, we can
868480	869360	find all of it.
869580	870220	Um, if
870220	870940	not, uh,
870940	871340	the list that
871340	871980	we provided,
871980	872740	we have done a
872740	873320	research paper,
873320	873780	and the two
873780	874340	lists that we
874340	874920	found of the
874920	875740	two halves,
875740	876240	and basically,
876240	876840	any combination
876840	877280	you can find,
877280	878120	it's an easy
878120	878660	sweep to do
878660	880040	across an estate.
880040	880280	So, now
880280	880820	I've gone over
880820	881800	how to find
881800	882360	killsuit,
882360	882740	and how to
882740	883440	remove it.
883440	884000	What's more
884000	884540	interesting,
884540	884980	and what's very
884980	885380	important,
885380	885700	is how the
885700	886580	SOTY there,
886580	887260	SOTY bootpack,
887260	887940	SOTY bootpack
887940	888500	operator,
888500	888800	which is their
888800	889860	advanced bootloader,
889860	890680	works.
890820	891300	Um, and for that,
891300	891620	I'm going to hand
891620	892300	over to Lacey,
892300	892800	who did the
892800	893660	research.
899910	901370	So, thinking
901370	902450	about all those,
902450	902910	like, complex
902910	903810	frameworks that we
903810	904470	just saw for
904470	905590	defense evasion,
905590	906110	um, it will
906110	906630	probably be
906630	907510	pointless if
907510	907890	you do not
907890	909070	implement a
909770	910730	persisting module,
910730	911350	which the
911350	911870	attackers could
911870	912690	connect back to,
912190	912910	should a
912690	913470	parallel chip
913470	914110	connection be
914110	914950	dropped.
915630	916710	Installing a
916710	917670	persistence mechanism
917670	918330	actually means
918330	918930	that if the
918930	920050	system is patched
920050	920690	from the
920690	921610	exploits that is
921610	922210	present in
922210	923530	fastpunch,
923530	923950	the attacker
923950	924790	will still be
924790	925530	able to
925530	925890	compromise the
925890	926670	system at any
926670	929970	time they want.
929970	930790	So, how do we
930790	931970	find out the
931970	932790	different methods
932790	933250	of persistence
933250	933990	in killsuit?
933990	935050	Um, we can
935050	935450	type the
935450	935870	command
935870	936710	kiso-survey
936710	937650	in the
938530	939950	dendospirits
939950	940130	terminal.
940130	940750	This figure
940750	941610	here shows
941610	941950	that there's
941950	942670	three types of,
941170	942050	um, persistence
942050	942610	methods that
942670	943070	you can
943070	943770	do with
943770	944410	killsuit.
944410	944990	And the
944990	945430	very first
945430	945810	one is
945810	946850	driver.
947370	947890	Then you
947890	948270	have
948270	949030	soti,
949030	949490	which stands
949490	949710	for
949710	950870	solar time.
950870	951150	And then
951150	951490	you have
951490	951950	juvy,
951950	952370	which stands
952370	952650	for
952650	953870	just visiting.
955050	955870	So, one
955870	956210	cool thing
956210	956670	about this
956670	957230	command is
957230	957590	that it will
957590	957970	tell you
957970	958490	whether it is
958490	958990	compatible
958990	959430	with
959430	959810	your
959810	960290	victim
960290	961310	host.
961470	962690	For example,
962690	963270	driver is
963270	963690	outdated
963690	964530	because of
964530	965010	code signing
965010	965650	policies
965650	966050	that
966050	966330	in
966330	966830	Windows
966830	967990	implemented.
968390	968830	And
968830	969650	just visiting
969650	970210	is also
970210	970650	outdated
970650	971310	because it
971310	971750	is built
971750	972110	for
972110	972510	Windows
972510	973410	Vista.
974130	974910	So, the
974910	975290	only
975290	976130	compatible
976130	976590	method
976590	976930	that we
976930	977030	are
977030	977290	left
977290	977590	with
977590	977790	is
977790	978170	actually
978170	979450	solar time.
980810	981670	But what
981670	982250	exactly
982250	982750	is solar
982750	983710	time?
983850	984550	So, I
984550	984710	was
984710	984930	really
984930	985410	curious
985410	985730	and I
985730	985950	wanted
985950	986230	to
986230	986990	find out
987710	988070	whether
988070	988390	there are
988390	988570	any
988570	989150	information
989150	990090	available
990090	990690	online
990690	990950	about
990950	991210	this
991210	991630	elusive
991630	992410	method.
992670	993410	And I
993410	993570	found
993570	993730	out
993730	994030	to be
994030	994530	as safe
994530	994710	as
994710	995170	possible
995170	995750	equation
995750	996110	group
996110	996950	when
996950	997590	really
997590	997890	low
997890	998270	level
998270	998550	as
998550	998730	they
998730	999630	can,
999630	1000030	which
1000030	1000190	is
1000190	1000750	infecting
1000750	1000910	the
1000910	1001850	firmware.
1002590	1003330	So,
1003330	1003630	according
1003630	1004050	to
1004270	1004670	a
1004670	1004990	report
1004990	1005270	made
1005270	1005970	by
1005970	1007710	Kaspersky,
1007710	1008110	solar
1008110	1008330	time
1008330	1008570	was
1008570	1008810	first
1008810	1009350	termed
1009350	1009970	by
1010270	1010470	them
1010470	1010850	as
1011150	1011610	Grayfish.
1011610	1011830	It
1011830	1012190	inserts
1012190	1012690	a
1012690	1013170	pill
1013170	1013370	into
1013370	1013530	the
1013530	1014050	firmware
1014050	1014270	which
1014270	1014770	hijacks
1014770	1015270	the
1015270	1015630	boot
1015630	1016150	sequence
1016150	1016270	of
1016270	1016430	the
1016430	1016670	operating
1016670	1017810	system,
1017810	1018410	and then
1018590	1018890	it gains
1018890	1019190	complete
1019190	1019630	control
1019630	1019910	to
1019910	1020030	install
1020030	1020490	a
1020490	1020850	virtual
1020850	1020990	file
1020990	1021190	system
1021190	1021610	in
1021610	1022230	the
1025780	1026400	registry
1026400	1026660	of
1026660	1026800	the
1026800	1026980	hard
1026980	1027380	drive.
1027380	1028000	And
1028000	1028560	this
1028560	1029560	is the
1029560	1030860	Grayfish
1030860	1030980	architecture
1030980	1031160	presented
1031160	1031300	by
1031300	1033200	Kaspersky.
1033200	1033760	So,
1030820	1031060	in
1031060	1031220	an
1031220	1031780	infected
1031780	1032180	volume
1032180	1032500	boot
1032500	1033060	record,
1033060	1033300	an
1033300	1033780	encrypted
1034820	1034860	container
1034860	1035440	is loaded.
1035700	1036240	The
1036240	1036560	container
1036560	1036820	file
1036820	1037200	will then
1037200	1037880	load a
1037880	1038180	kernel
1038180	1038880	mode
1038880	1039520	orchestrator
1039520	1039820	which
1039820	1040020	then
1040020	1040620	loads the
1040620	1040980	user
1040980	1041320	mode
1041320	1041880	part
1041880	1042580	from
1042580	1043040	registry
1043040	1043220	before
1043220	1043840	starting
1043840	1044380	the
1044560	1044940	payloads.
1044940	1045180	And so
1045180	1045480	what we
1045480	1045700	are
1045700	1045880	going
1045880	1046040	to
1046040	1046380	do
1046380	1046740	is to
1046740	1046980	focus
1046980	1047800	on the
1047800	1047980	left
1047980	1048100	box
1048100	1048500	portion
1048500	1049040	of
1052140	1052340	the
1052340	1053080	diagram.
1053080	1053360	But
1053360	1053580	what
1053580	1053980	exactly
1053980	1054820	is this
1054820	1055000	encrypted
1055000	1055120	container
1055120	1055420	file
1055420	1055800	that is
1055800	1056080	loaded
1056080	1056320	in
1056320	1056820	the
1056820	1057360	volume
1057540	1057940	boot
1057940	1058660	record?
1058660	1059660	To
1059660	1060260	check
1060260	1060760	whether,
1060760	1061040	to
1061040	1061260	check
1061260	1061600	which
1061600	1062100	is the
1062100	1062440	container
1062440	1062660	file
1062660	1062780	being
1062780	1063320	loaded,
1063320	1063540	you
1062660	1062900	can
1062900	1063220	run
1063220	1063380	the
1063540	1064140	solty
1064140	1064440	python
1064440	1064880	script
1064880	1065080	in
1065080	1065220	the
1065220	1065660	dendasprite
1065660	1066140	terminal
1066140	1066880	and it
1066880	1067000	will
1067000	1067420	tell you
1067420	1067720	the
1067720	1068160	solartime
1068160	1068560	container
1068560	1068940	present
1068940	1069120	in
1069120	1069240	the
1069240	1070160	disk.
1070220	1070660	This is
1070660	1070820	the
1070820	1071060	only
1071060	1071400	file
1071400	1071640	that
1071640	1071820	is
1071820	1072220	searchable
1072220	1072540	through
1072540	1072780	the
1072780	1072980	file
1072980	1073380	system
1073380	1073640	on
1073640	1074560	disk.
1075080	1075500	And
1075500	1075700	this
1075700	1076120	container
1076120	1076420	file
1076420	1076640	is
1076640	1076880	stored
1076880	1077440	as a
1077440	1077700	true
1077700	1077980	type
1077980	1078340	font
1078340	1078900	file
1078900	1079040	and
1079040	1079160	will
1079160	1079340	be
1079340	1079560	the
1079560	1079920	very
1079920	1080220	first
1080220	1080580	file
1080580	1080900	loaded
1080900	1081520	by
1081520	1082140	Windows
1082140	1082540	even
1082540	1082840	prior
1082840	1083140	to
1083140	1084160	kernel
1084160	1088390	initialization.
1088390	1089050	So
1089050	1089410	since
1089410	1090090	solartime
1090090	1090450	affects
1090450	1090730	the volume
1090730	1090970	boot
1090970	1091890	record,
1091890	1092050	it is
1090970	1091610	considered
1091610	1091930	as a
1092050	1092690	and
1092690	1093530	before
1093530	1094230	analyzing
1094230	1094490	boot
1094490	1094790	kits,
1094790	1094970	I would
1094970	1095170	like
1095170	1095330	to
1095330	1095530	go
1095530	1095910	through
1096230	1096430	a
1096430	1096650	little
1096650	1096830	bit
1096830	1096970	on
1096970	1097230	the
1097230	1097570	Windows
1097570	1098210	boot
1098210	1100270	process.
1100270	1100450	So
1100450	1100970	the first
1100970	1101190	step
1101190	1101770	is during
1101770	1102110	power
1102110	1102330	on,
1102330	1102630	the
1102630	1103190	BIOS
1103190	1103670	boot
1103670	1103930	code
1103930	1104370	begins
1104370	1104810	with
1104810	1105730	basic
1105730	1106010	system
1106010	1106930	initialization,
1106930	1107330	for
1107330	1108410	example,
1108410	1109070	simplified
1109070	1109670	input
1110670	1111270	output
1111270	1111630	interface.
1111630	1111830	The
1111830	1112290	BIOS
1112290	1112610	then
1112610	1112870	loads
1112870	1113250	the
1113250	1113450	master
1113450	1113630	boot
1113630	1114190	record,
1114190	1114570	which
1114570	1114990	finds
1114990	1115370	the
1115370	1115590	active
1115590	1115770	partition
1115770	1116270	and loads
1116270	1116630	the
1116630	1117230	volume
1118430	1119030	boot
1119030	1119490	record.
1119490	1119830	The
1119830	1120430	volume
1120430	1120950	boot
1120950	1121390	record
1119890	1120450	contains
1120450	1120930	partition
1120930	1121490	layout
1121390	1121870	information
1121870	1122870	in a
1122870	1123370	data
1123370	1123650	structure
1123650	1124150	called the
1124150	1125130	BIOS
1125130	1125730	parameter
1125750	1126450	block.
1126450	1126930	This
1126930	1127130	block
1127130	1127450	describes
1127450	1127850	the
1127850	1128030	physical
1128030	1128410	layout of
1128410	1128890	the
1128890	1129230	data
1129230	1129370	storage
1129370	1129890	volume,
1129890	1130090	for
1130090	1130310	example,
1130310	1131110	is it
1131110	1131290	an
1131290	1131610	NTFS
1131610	1132390	or the
1132390	1133190	FAT
1133190	1133350	file
1133350	1134150	system,
1134150	1134730	was
1134730	1134970	the
1134970	1135350	number
1135350	1135550	of
1135550	1135850	sectors
1135850	1136450	per
1138930	1139550	cluster,
1139550	1140110	etc.
1140110	1140490	The
1140490	1140850	volume
1140850	1141430	boot
1141430	1141790	record
1141790	1141990	then
1141990	1142350	passes
1142350	1142790	control
1142790	1143210	to
1143210	1143270	the
1143270	1143410	initial
1143410	1143550	program
1143550	1144950	loader,
1144950	1145110	which
1145110	1145290	is
1145290	1145710	responsible
1145710	1146310	for
1147310	1147810	parsing
1147810	1148030	the
1148030	1148250	file
1148250	1148850	system.
1148850	1149030	It
1149030	1149190	then
1149190	1149650	loads
1149650	1149890	the
1149890	1150090	boot
1150090	1150970	manager,
1148910	1149150	which
1149150	1149630	manages
1149630	1149790	the
1149790	1150110	boot
1150110	1150670	process
1150670	1150990	until
1150970	1151110	the
1151110	1151490	user
1151490	1152050	chooses
1152290	1152410	a
1152410	1152910	boot
1152910	1154210	option,
1154210	1154710	before
1154710	1155090	loading
1155090	1156350	wingload.exe,
1156350	1156930	which
1156930	1157310	is
1157310	1157770	responsible
1157770	1157930	for
1157930	1158230	starting
1158230	1158790	the
1161050	1161790	kernel.
1161790	1162170	So,
1162170	1162310	after
1162310	1162810	all this
1162810	1163390	reading up
1163390	1163610	and
1163610	1163790	discovering
1163790	1164050	on
1164050	1164250	boot
1164250	1164730	kits
1164730	1164830	and
1164830	1165650	greyfish,
1165650	1165990	how
1165990	1166450	does
1166450	1167310	Solartime
1167310	1167550	actually
1167550	1167750	work
1167750	1168230	in
1168230	1168790	relation
1170610	1171170	to
1171170	1171270	this
1171270	1171330	boot
1171330	1171810	process?
1171810	1172250	So,
1172250	1172630	the
1172630	1172970	very
1172970	1173250	first
1173250	1173850	change
1173850	1174410	we
1174410	1174810	noticed
1174810	1175350	is
1175350	1175630	that
1175630	1176250	Solartime
1176250	1177190	disables
1178750	1179310	error
1179310	1179470	reporting
1179470	1179590	in
1179590	1179830	the
1179830	1180030	volume
1180030	1180430	boot
1180430	1180590	record.
1178890	1179210	Looking
1179210	1179450	at the
1179450	1179770	volume
1179770	1179930	boot
1179930	1180490	record,
1180590	1180810	instead
1180810	1181490	of a
1181490	1181830	hot
1182110	1182710	instruction,
1182710	1183550	Solartime
1183550	1184050	changed
1184050	1184470	it
1184470	1185150	into
1185550	1186130	infinite
1186130	1186890	loop.
1186890	1187390	Operational
1187390	1187910	errors
1187910	1188210	are
1188210	1188910	standardly
1188910	1189270	displayed
1189270	1189710	by
1189710	1190190	hitting
1190190	1190610	a hot
1190610	1191070	command
1191070	1191370	stopping
1191370	1192510	function,
1192510	1192910	so
1192910	1193450	examples
1193450	1194850	could be a
1195090	1195250	missing
1195250	1195650	or
1195650	1196130	compressed
1196130	1196430	boot
1196430	1196670	manager.
1196670	1197010	And
1197010	1197990	Solartime
1197990	1198290	changes
1198290	1199330	this,
1199330	1199790	so
1199790	1200510	even if
1200510	1200770	an
1200770	1201650	operation-
1201650	1202230	operational
1202230	1202530	error
1202530	1203150	occurs,
1203150	1203710	no error
1203710	1204150	reporting
1204150	1204430	actually
1204430	1204950	happens.
1204950	1206010	So,
1206010	1206230	this
1206230	1206470	prevents
1206470	1206630	alerts
1206770	1206910	or
1206910	1207310	cause
1207310	1207990	of
1212110	1212370	investigation
1212370	1212510	into
1212510	1212770	the
1212770	1213410	cause
1206430	1206590	of
1206590	1206670	a
1206670	1206990	boot
1206990	1207390	failure.
1212150	1212310	And
1212310	1212470	the
1212470	1212790	second
1212790	1213510	disparity
1213410	1213590	between
1214450	1214750	a
1214750	1215050	normal
1215050	1215390	boot
1215630	1216010	process
1216010	1216670	and
1216670	1217690	Solartime
1217690	1217890	infected
1217890	1218070	boot
1218070	1219230	is that
1219230	1219430	it
1219430	1219970	relocates
1219970	1220650	the
1222230	1223230	IPL.
1223230	1223710	And
1223710	1224150	right
1224150	1224370	before
1224370	1224550	passing
1224550	1225090	control
1225090	1225230	to
1225230	1225630	the
1225630	1227230	IPL,
1227230	1228230	Solartime
1228230	1228770	replaces
1228770	1229270	multiple
1229270	1229470	instructions
1229470	1229670	with
1229670	1231650	NOTBYTES
1231650	1231810	and
1231810	1232870	overwrites
1232870	1233150	the
1233150	1233710	jump
1233710	1234290	destination.
1234290	1234870	And
1234870	1235510	so
1235730	1235930	the
1235930	1236130	reason
1236130	1236470	for
1236470	1237770	overwriting
1237770	1238450	this
1238990	1239670	destination
1239670	1240310	is that
1240310	1240790	Solartime
1240790	1240970	hides
1240970	1241550	a lot
1241550	1241910	of
1241910	1242550	data
1242550	1242850	at
1242850	1243150	7E7A.
1239410	1239570	So
1239570	1239890	this
1239890	1240210	forces
1240210	1240770	Solartime
1240770	1240930	to
1240930	1241250	use
1241250	1241490	an
1241490	1241970	alternate
1241970	1242610	location
1242610	1242770	to
1242770	1243090	launch
1243150	1243290	the
1243290	1243770	IPL
1243770	1243950	from
1243950	1244290	within
1244290	1244510	the
1244510	1244770	volume
1244770	1244970	boot
1244970	1245850	record.
1249020	1249500	So
1249500	1249720	this
1249720	1250320	is a
1250320	1250640	sample
1250640	1250780	from
1250780	1251180	an
1251180	1251560	infected
1251560	1251780	boot.
1251780	1251960	You
1251960	1252220	can
1252220	1252380	see
1252380	1252520	that
1252520	1252900	the
1253440	1253920	address
1253920	1255300	7E7A
1255300	1255680	contains
1255680	1256160	lots
1256600	1256680	of
1256680	1256840	random
1256840	1257260	bytes.
1257260	1257480	And
1257480	1257680	so
1257680	1258000	it
1258000	1258400	turns
1258400	1258740	out
1258740	1259000	that
1259000	1259240	these
1259240	1259780	bytes
1259780	1260000	store
1260000	1260520	the
1260520	1260920	file
1260920	1261140	reference
1261140	1261280	and
1261280	1261520	encryption
1261520	1261800	key
1261800	1262040	that
1262040	1262460	are used
1262460	1263040	later on
1263040	1263220	to
1263220	1263540	load
1263540	1264020	and
1266600	1267400	decrypt
1267400	1267680	the
1267680	1268220	file.
1268220	1268360	So
1268360	1269020	if
1269020	1269220	the
1269220	1269600	control
1269600	1269800	passed
1269800	1270120	to
1270120	1270300	the
1270300	1271060	IPL,
1271060	1271220	Solartime
1269580	1269740	then
1269740	1270140	starts
1270140	1270220	to
1270220	1270700	locate
1270700	1270780	and
1270780	1271020	load
1271020	1271180	the
1271220	1271560	container
1271560	1272300	file.
1273040	1273300	And
1273300	1273480	to
1273480	1273640	do
1273640	1274040	that,
1274040	1274340	Solartime
1274340	1274700	uses
1274700	1275340	many of
1275340	1275440	the
1275440	1275800	in-built
1275800	1276140	loading
1276140	1276620	functions
1276620	1277020	already
1277020	1277680	in a
1277680	1277900	normal
1277900	1278120	boot
1278120	1278580	by
1278580	1278780	inserting
1278780	1279300	an
1279300	1280160	ECX
1280160	1280700	flag.
1280700	1280940	So
1280940	1281040	this
1281040	1281400	way,
1281400	1282400	Solartime
1282400	1282600	can
1282600	1282800	control
1282800	1283000	when
1283000	1283360	to
1283360	1283740	load
1283740	1284000	its
1284000	1284520	malicious
1284520	1284740	file
1284740	1285020	without
1285020	1285500	affecting
1285500	1286080	the
1286080	1286680	normal
1287400	1288020	IPL
1288020	1288860	process.
1288860	1289040	So
1289040	1289700	reusing
1289700	1290160	standard
1290160	1290640	bootcode
1290640	1290780	is
1290780	1290900	more
1290900	1291100	efficient
1291100	1291240	because
1291240	1292600	Solartime
1292600	1293220	will not
1293220	1294140	have to
1294140	1294340	rewrite
1294340	1295020	everything
1295020	1295620	which
1295620	1295760	would
1295760	1296120	probably
1296120	1296720	introduce
1298480	1299260	a lot
1299260	1299640	more
1294580	1295460	instability
1295460	1295540	in
1295540	1295700	the
1295700	1296100	system.
1298740	1298980	As
1298980	1299140	the
1299140	1299620	IPL
1301280	1301800	file
1301800	1302720	system,
1302720	1302960	I'll
1302960	1303340	squeeze in
1303460	1303620	a little
1303620	1304180	information
1304180	1305300	on that.
1305440	1305680	So
1305680	1306300	NTFS
1306300	1306460	is
1306460	1306600	the
1306600	1306800	file
1306800	1307120	system
1307120	1307340	of
1307340	1307900	Windows,
1307900	1307980	and
1307980	1308380	everything
1308380	1308800	on an
1308800	1309380	NTFS
1309380	1309680	volume
1309680	1310300	is a
1310300	1311140	file.
1311140	1311340	And
1311340	1311460	one
1311460	1311580	of
1311580	1311920	the
1311920	1312180	special
1312180	1312320	file
1312320	1312620	you
1312620	1312800	have
1312800	1313440	in
1313440	1314280	NTFS
1314280	1314540	is
1314540	1314980	object
1314980	1315740	ID
1315740	1316160	which
1316160	1316460	contains
1316460	1316700	unique
1316700	1317020	IDs
1317020	1317340	given
1317340	1317860	to
1318540	1319060	every
1319060	1319720	file.
1319720	1319940	So
1319940	1320320	the
1320320	1320580	attributes
1320580	1320740	of
1320740	1320880	object
1320880	1321120	ID
1321120	1321420	are
1321420	1321740	the
1321740	1322000	five
1322000	1322140	shown
1322140	1322460	here
1322460	1323100	at
1323100	1323320	the
1323320	1323640	different
1323640	1324020	offsets.
1324020	1324200	And
1324200	1324420	I
1324420	1324600	would
1324600	1325020	like
1325020	1325540	to
1324100	1324340	draw
1324340	1324580	your
1324580	1325140	attention
1325140	1325620	to
1325540	1325800	the
1325800	1326500	third
1326500	1327060	attribute
1327060	1327400	which
1327400	1327580	is
1327580	1327980	index
1327980	1328500	root.
1328940	1329540	Index
1329540	1329800	root
1329800	1330000	is
1330000	1330160	the
1330160	1330360	root
1330360	1330660	node
1330660	1330900	and
1330900	1331300	contains
1331480	1331740	a
1331740	1331960	list
1331960	1332220	of
1332220	1332560	all
1332560	1333000	index
1333000	1333220	entries
1333220	1333340	of
1333340	1333620	the
1333620	1334020	object
1334020	1337160	IDs.
1337320	1337620	So
1337620	1338060	a
1338060	1338380	typical
1338380	1338800	index
1338800	1339020	entry
1339020	1339140	structure
1339140	1339480	in
1339480	1339700	the
1339700	1339880	index
1339880	1340020	root
1340020	1340360	of
1340360	1340720	the
1340720	1341080	object
1341080	1341380	ID
1341380	1341620	file
1341620	1341840	is
1341840	1341980	called
1341980	1342400	the
1342400	1343000	O
1343060	1343660	index.
1343660	1344420	And
1344420	1345400	Solartime
1345400	1345600	identifies
1345600	1346120	its
1346120	1346400	container
1346400	1346660	file
1346660	1347000	by
1347000	1347380	comparing
1347380	1347740	the
1347740	1348240	GU
1348240	1348720	ID
1348720	1348840	object
1348840	1349000	ID
1349000	1349440	value
1349440	1349680	in
1349680	1349800	the
1349800	1350040	O
1350040	1350380	index
1350380	1350660	with
1350660	1350840	the
1350840	1351160	object
1351160	1352200	ID
1352200	1352440	stored
1350580	1350740	at
1350740	1351060	address
1351060	1352180	7E7A.
1355540	1356160	MFT file
1356160	1356740	reference
1356740	1357140	can be
1357140	1357660	fetched
1357660	1358100	to load
1358100	1358460	the file
1358460	1359380	record.
1360740	1361160	So this
1361160	1361880	diagram shows
1361880	1362160	how
1362160	1362580	Solartime
1362580	1363000	actually
1363000	1363520	hijacks
1363680	1363940	a
1363940	1364500	normal
1364500	1364740	operation
1364740	1365400	of the
1365400	1365920	IPL and
1365920	1366340	loads
1366340	1366680	its
1366680	1367220	container
1367360	1367740	file.
1367740	1368120	And in
1368120	1368580	the
1368580	1368660	malicious
1368660	1369120	flow,
1369120	1370060	Solartime
1370060	1370340	passes
1370340	1370860	the
1370860	1371160	object
1371160	1371640	ID
1371640	1371880	index
1371880	1372020	root
1372020	1372500	depending
1372500	1373500	on the
1373800	1374360	ECX
1374360	1374860	register.
1374860	1375060	This
1375060	1375260	object
1375260	1375600	ID
1375600	1376040	file
1376040	1376320	is
1376320	1376580	not
1376580	1376820	usually
1376820	1376940	loaded
1376940	1377380	or
1377380	1377780	needed
1377780	1378040	in
1378160	1378380	the
1378380	1379180	IPL
1379180	1379720	section
1379740	1380120	of a
1380120	1380280	normal
1380280	1380760	boot
1380760	1381460	process.
1381460	1381820	And
1381820	1382220	if the
1380580	1381140	ECX
1381140	1381620	register
1381620	1381780	is
1381780	1382340	set,
1382340	1382500	a
1382220	1382480	standard
1382480	1382800	load
1382800	1383020	will
1383020	1383600	occur.
1383600	1383720	If
1383720	1384160	not,
1384160	1384260	it
1384260	1384420	will
1384420	1384720	load
1384720	1385020	the-
1385020	1385300	load
1385300	1385540	the
1385540	1385960	index
1385960	1386220	root
1386220	1386500	of
1386500	1386700	the
1386700	1387000	object
1387000	1387300	ID
1387300	1388180	file,
1388180	1388540	locates
1388540	1388760	the
1388760	1389100	index
1389100	1389560	entry
1389560	1389860	of
1389860	1390000	the
1390000	1390340	container
1390340	1390980	file,
1390980	1391360	and then
1391360	1391580	load
1391580	1391780	the
1391780	1391980	file
1391980	1392380	record
1392380	1392740	before
1392740	1393100	loading
1393100	1393320	the
1393320	1393540	file
1393540	1394420	data.
1396400	1396920	So
1396920	1397240	on the
1397240	1397480	left
1397480	1397880	shows
1397880	1398120	the
1398120	1398440	file
1398440	1398780	record
1398780	1398980	of
1398980	1399160	the
1399160	1399360	boot
1399360	1399740	pack
1399740	1400200	loaded
1400200	1400500	with
1400500	1400660	the
1400660	1400880	name
1400880	1401220	david
1401220	1401500	byte
1401500	1401680	or
1401680	1402800	ttf.
1402900	1403280	And
1403280	1403440	on
1403440	1403580	the
1403580	1403800	right
1403800	1404080	are the
1404080	1404520	contents
1404520	1404740	of
1404740	1404860	the
1404860	1405060	file
1405060	1405300	being
1405300	1405620	loaded
1405620	1405840	to
1405840	1406220	address
1406220	1407840	600,000.
1408800	1409480	And
1409480	1409640	so
1409640	1409900	after
1409900	1410280	loading
1410280	1410460	the
1410460	1410640	true
1410640	1410920	type
1410920	1411220	font
1411220	1411780	file,
1411780	1412100	SOTY
1412100	1412700	decrypts
1412700	1412980	the
1412980	1413220	malware
1413220	1413600	using
1413600	1413780	the
1413780	1414200	encryption
1414200	1414580	key
1414580	1414920	hidden
1414920	1415260	under
1415260	1416860	7E7A.
1416860	1417300	After
1417300	1417840	decryption
1417840	1418060	of
1418060	1418220	the
1418220	1418780	malware,
1418780	1419160	Solartime
1419160	1419380	then
1419380	1419720	proceeds
1419720	1419940	on
1419940	1420080	to
1420080	1420440	calculate
1420640	1421680	a
1421680	1422640	CRC32
1422640	1422960	hash
1422960	1423140	to
1423140	1423600	verify
1423600	1424280	the
1425820	1426500	file
1426500	1426920	integrity.
1426920	1427040	So
1427040	1427460	how
1427460	1427720	can
1427720	1428460	we
1428460	1429140	detect
1429140	1429740	and
1429740	1430420	remediate
1430420	1431720	Solartime?
1431720	1431860	Since
1431860	1433520	Qsuit
1433520	1434620	can only
1434620	1434860	use
1434860	1435500	Solartime
1435500	1435660	to
1431820	1432380	install
1432380	1432620	on
1433180	1433500	modern
1433500	1434060	operating
1434060	1434620	systems
1434620	1434860	that are
1434860	1435180	still
1435180	1435420	using
1435420	1435580	the
1435660	1435980	legacy
1435980	1436900	boot,
1436900	1437320	detecting
1437320	1437920	Solartime
1437920	1438780	will be a
1438780	1439020	solution
1439020	1439480	to
1439480	1439840	detecting
1439840	1440180	all
1440180	1442860	Qsuit
1442860	1443560	instances.
1443560	1443900	Installation
1443900	1444320	of
1444320	1445260	Solartime
1445260	1445920	can be
1445920	1446000	determined
1446000	1446060	in
1446060	1446200	two
1446200	1446640	ways.
1446640	1447420	First,
1447420	1448120	you can
1448120	1448320	use
1448320	1448400	the
1448400	1448620	checked
1448620	1449940	Solartime
1449940	1450460	Python
1450460	1451020	script,
1451020	1451200	but
1451200	1451600	this is
1451600	1451780	inconvenient
1451780	1452080	because
1452080	1452520	you probably
1452520	1453280	need to
1453660	1454220	pawn
1454220	1454440	your
1454440	1454580	own
1454580	1454780	machine
1454780	1454980	to
1454980	1455260	check
1455260	1455780	it.
1455780	1456260	Examination
1456260	1456580	of
1456580	1456740	the
1456740	1456900	script
1456900	1457240	did
1457240	1457600	reveal
1457600	1457900	things
1457900	1458140	that
1458140	1458500	are
1458500	1459000	helpful
1459000	1459280	which
1459280	1459480	are
1459480	1459720	the
1459720	1460100	various
1460100	1460620	names
1460620	1460980	the
1460980	1461160	kernel
1461160	1461400	driver
1458540	1459020	container
1459020	1459260	could
1459260	1459420	be
1459420	1459820	stored
1459820	1460140	under.
1460780	1461020	So
1461020	1461100	in
1461100	1461420	this
1465660	1466520	slides.
1466880	1467460	And
1467460	1467600	the
1467600	1467840	second
1467840	1468140	way
1468140	1468280	of
1468280	1468740	detection
1468740	1469320	is to
1469320	1469560	check
1469560	1469760	the
1469760	1470040	volume
1470040	1470240	boot
1470240	1470540	record
1470540	1471500	itself.
1471500	1471780	As
1471780	1472420	mentioned,
1472420	1472860	Solartime
1472860	1473300	alters
1473300	1473520	the
1473520	1474500	VBR,
1474500	1474780	changing
1474780	1475220	the jump
1475220	1475720	address
1475720	1475980	when
1475980	1476500	transferring
1476500	1477000	control
1477000	1477400	to the
1477400	1478500	IPL.
1478500	1478840	And in
1478840	1479000	doing
1479000	1479380	so,
1479380	1479500	it
1479500	1479860	inputs
1479860	1480160	two
1480160	1480420	NOP
1480420	1480980	commands
1480980	1481220	at
1481220	1481360	the
1482040	1482620	267
1482620	1482880	and
1482880	1483940	268
1483940	1484300	bytes
1484300	1484560	of
1484560	1484700	the
1484700	1485780	VBR.
1486520	1487100	So
1487100	1487340	this
1487340	1488060	alteration
1488060	1488580	can be
1488580	1488860	searched
1488860	1489460	by using
1489460	1490480	Python.
1490480	1490680	We
1490680	1491100	modified
1491100	1491320	the
1491320	1491540	open
1491540	1491940	source
1491940	1492380	code
1492380	1493100	PyMBR
1493100	1493460	written
1493460	1493720	by
1493720	1494760	Hamtas.
1494760	1495000	And in
1495000	1495140	our
1495660	1496120	version,
1496120	1496400	find
1496400	1496580	the
1496580	1496840	first
1496840	1497280	section
1497280	1497480	of
1497480	1497600	the
1497600	1498020	MBR
1498020	1498300	to
1498300	1498520	find
1498520	1498660	the
1498660	1499080	start
1499080	1499320	of
1499320	1499440	the
1499440	1500120	VBR.
1500120	1500480	We
1500480	1500680	then
1500680	1500900	check
1500900	1501040	the
1501040	1501340	data
1501340	1501560	in
1501560	1501680	the
1501680	1502140	VBR
1502140	1502480	at
1502480	1502640	byte
1503360	1503860	267
1503860	1504080	and
1504080	1505040	268
1505040	1505240	for
1505240	1505400	the
1505400	1505620	hex
1505620	1505980	value
1505980	1506960	90,
1506960	1507320	which
1507320	1507480	is
1507480	1507680	code
1507680	1507900	for
1507900	1508680	NOP.
1509100	1509780	And if
1509780	1509940	the
1509940	1510100	NOP
1510100	1510360	value
1510360	1510620	in
1510620	1511040	place
1511040	1511380	is
1511380	1511540	in
1511540	1511860	place,
1511860	1511920	we
1511920	1512040	can
1512040	1512420	confirm
1512420	1512580	that
1512580	1512720	the
1512720	1513040	VBR
1513040	1513320	has
1513320	1513520	been
1513520	1514400	modified.
1515400	1515760	So
1515760	1516260	Solartime
1516260	1516420	is
1516420	1516660	really
1516660	1516940	hard
1516940	1517140	to
1517140	1517480	prevent
1517480	1517860	because
1517860	1518020	it
1518020	1518520	infects
1518520	1518680	the
1525660	1526360	However,
1526360	1526620	since
1526620	1527200	Solartime
1527200	1527420	does
1527420	1527680	only
1527680	1528060	affect
1528060	1528260	the
1528260	1528620	legacy
1528620	1528880	boot
1528880	1529540	systems,
1529540	1529840	opting
1529840	1530060	for
1530060	1530700	UEFI
1530700	1531120	secure
1531120	1531360	boot
1531360	1532040	would prevent
1532040	1532640	Solartime
1532640	1532860	from
1532860	1533780	working.
1535080	1535720	Okay,
1535720	1535840	so
1535840	1536040	this
1536040	1536160	is
1536160	1536480	supposed
1536480	1536700	to
1536700	1536860	be
1537000	1537220	a
1537220	1537480	talk
1537480	1537700	given
1537700	1538120	by
1538120	1538620	Francisco
1538620	1539380	Donoso,
1539380	1539600	but
1539600	1539960	internet
1539960	1540220	is
1540220	1540520	definitely
1540520	1540820	not
1540820	1541340	working
1542140	1542920	now.
1542920	1543100	But
1543100	1543320	this
1543320	1544580	is what
1544580	1545060	inspired
1545060	1545480	our
1545480	1545960	research.
1545960	1546080	And
1546220	1546460	this
1546460	1548320	is a
1548320	1548700	book
1548700	1549200	that
1549200	1549880	is
1549880	1550900	also
1550900	1551300	fantastic
1551300	1551480	for
1551480	1551560	my
1551560	1551980	research,
1551980	1552180	so
1552180	1552380	do
1552380	1552560	check
1552560	1552700	them
1552700	1552940	out
1552940	1553260	if
1553260	1553780	you
1554640	1555160	have
1552940	1553180	time.
1554460	1554860	And
1555660	1556300	yep,
1556300	1556440	we're
1556440	1557280	done.
