Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #71475
Deployment Interface
Plans are defined as a list of jobs that After Midnight should execute on a target. A target has a single plan running at a given time. These plans are made available to the target via Core through a beacon to a web server. The am tool generates a deploy directory that is made available through the web server.
Deploy Directory
The deploy directory is generated and modified when the user use the commit or remove functions of the am command.
Structure
/<workspace>/deploy/<target url>/<plan_files>
Where workspace is the workspace the am tool was performing on. <target url> is defined when creating a target configuration in the am command, which can manually be specified, or auto-generated. <plan_files> are a number of files that are automatically generated when the am commit command is run.
Plan Files
A plan consists of a single index file, and a variable number of data blobs that are referred to from the index file.
The Index File
An index file follows the following format. (columns are bit offsets)
0x00 | 0x10 | 0x20 | 0x30 | 0x40 | 0x50 | 0x60 | 0x70 | 0x80 | 0x90 | |
---|---|---|---|---|---|---|---|---|---|---|
0x00 | 64-bit LP Key | 64-bit Uninstall FILETIME | 32-Bit Beacon Interval | |||||||
0x100 | 32-bit LEN |
LEN * 128-bits .... index_list[LEN] of [ 32-bit ID, 32-bit action, 64-bit hash ] |
||||||||
0x200 | ||||||||||
... |
* DMD == Dead Man Delay
The LPListening Post key is a randomly generated key for the target that is used for encrypting data written to disk on target. This key does not exist on the target until the index file is retrieved. The index file is encrypted using the target's public certificate. The index's file name is predetermined and burned into the target build. The data started at 0x80 is a list of gremlin blobs information for the target. The gremlin blob information includes the unique ID of the blob, the action to be taken with the blob, and the sha256 hash of the blob which is also its file name on disk.
Index Actions
Name | value | Description |
---|---|---|
INDEX_ACTION_NOP | 0x0 | No operation to be performed with the blob |
INDEX_ACTION_EXEC | 0x1 | Instruct master to execute the ID in the blob information. This is used to start a gremlin |
INDEX_ACTION_LOAD | 0x4 | Instruct master to load the ID in the blob information. This is used to load gremlin configuration blobs |