text
stringlengths
4
429
Table 01 are for illustration purpose only)
Client Command
Reference (DWORD)
00 00 00 00
Task
(DWORD)
Start / End
Size of Data
Flag (DWORD) sent (DWORD)
02 00 00 00 01 00 00 00 B0 00 00 00
Data
Data
Encryption Key
(WORD)
(WORD)
75 53
A1 00
[Table 01 - Client
s Information Header Format]
The client
s Command Reference and Task will be discussed in the section
Backdoor Command
Reference
. It is important to take note that the information from the server is encrypted using a
bitwise NOT, while the information from the client is encrypted using a bitwise XOR with 0xCC as
the key. (see Listing 12)
Fields
Offset
Description
Client Command Reference
0x00
This field is a reference used for identifying the
group of a specific backdoor command.
Task
0x04
This field contains the code used to identify which
backdoor instruction to execute.
Start / End
0x08
This field is a flag that signals the receiver start (1)
or end (-1) of data.
CA ISBU-ISI WHITE PAPER: IN-DEPTH ANALYSIS OF HYDRAQ
Fields
Offset
Description
Data Size
0x0C
This field contains the size of the encrypted data
included in transmission.
Data CRC
0x10
A CRC value computed based on the encrypted
data. This field is used for integrity checking of the
encrypted data.
Data Encryption
0x12
It is a word value used as the decryption key for
the encrypted data. This field is used to preserve
the confidentiality of the encrypted data.
Encrypted Data
0x14
This offset contains the encrypted data being
transmitted to the client or server.
[Table 02 - Information Header Definition]
3.5.2 Server
s Information Header Format
[Figure 02 - The client process the server information header.]
The constructed information header is 20 bytes in size with the following format. (Note: The values
in Table 03 are for illustration purpose)
Server Information
Reference (DWORD)
00 00 00 00
Server
Information
Code
(DWORD)
Start / End
Size of Data
Flag (DWORD) sent (DWORD)
02 00 00 00 01 00 00 00 B0 00 00 00
Data
Data
Encryption Key
(WORD)
(WORD)
75 53
A1 00
[Table 03 - Server's Information Header Format]
The difference between the client and server header information is the Server Info Reference (offset 0x00) and Information Code (offset 0x04). Based on our simulation and code inspection, the
backdoor client uses the following numeric codes to identify the content of the received information: (Note: The Backdoor Command and Task is discussed in section Backdoor Command Table)
CA ISBU-ISI WHITE PAPER: IN-DEPTH ANALYSIS OF HYDRAQ
Server
Information
Reference
Server
Backdoor
Information Code
Task
(expected values) Command
Type of Information