23
Theconfigurationdataisdividedintothefollowingoffsetsanddimensions.
+00h:RSA-1024(1024bit)key(80hbytes)
+80h:NULLbytes(20hbytes)
+A0h:True(01h)orFalse(00h)Booleanvalues(24bytes)
+E0h:Base64encodeddatablock
Asseeninthe+E0hoffset,theconfigurationdataincludesBase64data.TheBase64
codeblockcontainsdifferenttypesofdata,separatedbyavalueof0x00.Next,the
lengthsofthereadBase64dataarecalculated,theheapmemoryareaisallocated
accordingly,andthedecodeddataiswrittentothememoryareaallocatedwith
RtlAllocateHeap.Theroutineisresponsiblefordecodingbase64dataandwritingto
thememoryallocatedmemoryregionlabeledsub_401304.
Below,wehaveexplainedtheusagepurposeswecandetectasaresultofdecoding
Base64codeblocks.
-Thefollowingexpressionsareresolvedbyhashanalysiswith4-bytehashvaluesof
foldersthatLockbitwillnotincludeinencryptionprocesses.Thepieceofcode
wherethecheckismadeisinthesub_00410DD0routine.WecanlistMSOCache,
PerfLogs,ProgramFiles,ProgramFiles(x86),ProgramData,Python27,Python310,
Windows,Default,Public,AppData,Users,etc.
-4-bytehashvaluesofsystemfilesthatLockbitwillnotincludeinencryption
operations:autorun.inf,desktop.inetc.
-Fileextensionstobeexcludedfromencryptionoperations:msi,sys,etc.
-CleartextlistofprocessesthatLockbitwilltrytoterminateatruntime:sql,oracle,
ocssd,dbsnmp,synctime,agntsvc,isqlplussvc,xfssvccon,mydesktopservice,
ocautoupds,encsvc,firefox,tbirdconfig,mydesktopqos, ocomm, ddbpath,
excelservice,msqbeng50,mspub,onenote,outlook,powerpnt,steam,thebat,
thunderbird,visio,winword,wordpad,notepad
-ListofservicesLockbitlooksattodisableanddelete:
vss,sql,svc$,memtas,mepocs,msexchange,sophos,veeam,backup,GxVss,GxBlr,
GxFWD,GxCVD,GxCIMgr
Figure 31: Example of decrypted Base64 encoded configuration data -1
Lockbit 3.0 Technical Analysis