Duqu - Threat Research and Analysis: Mcafee Labs
Duqu - Threat Research and Analysis: Mcafee Labs
McAfee Labs
Peter Szor Sr. Director of Research
Agenda
Stuxnet Overvieew Duqu Review-Current Intelligence, comparisons with Stuxnet, Best Practice recommendations Q&A
USB User Mode Rootkit: Hooks APIs, than Sends F5 (Refresh) also Deactivates/Reactivates Total Commander (and Windows Commander)
USB User Mode Rootkit: Hooks APIs, than Sends F5 (Refresh) also Deactivates/Reactivates Total Commander (and Windows Commander)
The Target: - PLC CPUs 6ES7-417, 6ES7-315-2 At least 33 Frequency Converters, Operating between 807Hz and 1,210Hz.
Cascaded Centrifuges
PLC
10
Duqu
Yes
Stuxnet
Yes
Yes
Yes (C-Media)
Yes
Yes (Realtek, JMicron)
Yes
Yes Yes (36 days)
Yes
Yes Yes
Use XOR based encryption for strings Referencing 05.09.1979 in configuration file (http://en.wikipedia.org/wiki/Habib_Elghanian) New update modules via C&C
11
CMI4432.SYS
Decrypt
JMINET7.SYS
Decrypt
Keylogger.exe
Decrypt
CMI4432.PNF
Inject into Services.exe
NETP191.PNF
Inject into Services.exe
Resource 302
CMI4432.DLL
Decrypt Resource 302
NETP191.DLL
Decrypt Resource 302 Decrypt .zdata section
Resource 302
Decrypt .zdata section
Resource 302
Decrypt .zdata section
SortXXXX.NLS
SortXXXX.NLS
SortXXXX.NLS
15
Duqu Keylogger
The Keylogger component is a standalone module. It was delivered via C&C Server to target after the initial infection. It uses the same decryption routines as the other modules. It is capable of collecting different types of information from the target machine: Keystroke data Machine information (OS version, patches, machine name, users, etc) Process list Network information List shared folders List machines on the same network Screen shots
The Keylogger accepts command line parameter commands, and only works if the parameter xxx is the first parameter passed
16
17
The PHPSESSID is an encrypted message sent to the command and control server.
The User-Agent is hardcoded and may be used to identify machines 18 infected with this malware.
19
C-Medias Certificate valid from 08/03/2009- (used to sign one of the known variants of Duqu)
20
21
22
McAfee Labs Blogs Personal communication: Rob Meyers, Liam O Murchu, Guilherme Venere and Stuart McClure McAfee Threats Report Symantec Stuxnet File / Symantec Internet Security Threat Report Ralph Langner on Stuxnet Krebs on Security Blog The Art of Computer Virus Research and Defense
23