HAMMERTOSS
- Type
- Backdoor
- Capabilities
- ExfiltrationDefense evasionPost exploitation
- Platforms
- Windows
HAMMERTOSS, also known as HammerDuke and NetDuke, is a Windows backdoor used by APT29, a Russian cyberespionage group attributed to Russia’s Foreign Intelligence Service. It supports command execution and data theft from compromised systems. APT29’s broader espionage targeting includes government networks, diplomatic organizations, research institutes, and think tanks.
HAMMERTOSS combines social-media-based command and control, encrypted commands embedded in image files, and cloud-storage-based exfiltration. APT29 registers algorithmically generated Twitter handles for its command-and-control infrastructure. Commands are encrypted before being appended to images, using a key composed of a hard-coded value and a string contained in the day’s tweet. Its Uploader component retrieves command-bearing images over HTTP or HTTPS from a hard-coded server. The malware uses PowerShell and conceals its windows to reduce user visibility. Stolen data is uploaded to actor-created accounts on web cloud-storage services for later retrieval.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: F-Secure The Dukes)(Citation: Secureworks IRON HEMLOCK Profile)
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
APT29 has registered algorithmically generated Twitter handles that are used for C2 by malware, such as HAMMERTOSS. APT29 has also used legitimate web services such as Dropbox and Constant Contact in their operations.
Initial Access
1 technique
Initial Access
APT29 has been observed crafting targeted spearphishing campaigns leveraging web links to a malicious dropper; once executed, the code delivers Remote Access Tools (RATs) and evades detection using a range of techniques.
Execution
1 technique
Execution
[HAMMERTOSS](https://attack.mitre.org/software/S0037) is known to use PowerShell.(Citation: FireEye APT29)
Stealth
1 technique
Stealth
[HAMMERTOSS](https://attack.mitre.org/software/S0037) has used <code>-WindowStyle hidden</code> to conceal [PowerShell](https://attack.mitre.org/techniques/T1059/001) windows.(Citation: FireEye APT29)
Command and Control
8 techniques
Command and Control
Many entries describe XOR, XOR/ADD, bitwise NOT and XOR, ROR plus XOR, hexadecimal encoding after encryption, and custom encoding/obfuscation of HTTP traffic or beacons.
[HAMMERTOSS](https://attack.mitre.org/software/S0037) is controlled via commands that are appended to image files.(Citation: FireEye APT29)
The "Uploader" variant of [HAMMERTOSS](https://attack.mitre.org/software/S0037) visits a hard-coded server over HTTP/S to download the images [HAMMERTOSS](https://attack.mitre.org/software/S0037) uses to receive commands.(Citation: FireEye APT29)
The "tDiscoverer" variant of [HAMMERTOSS](https://attack.mitre.org/software/S0037) establishes a C2 channel by downloading resources from Web services like Twitter and GitHub. [HAMMERTOSS](https://attack.mitre.org/software/S0037) binaries contain an algorithm that generates a different Twitter handle for the malware to check for instructions every day.(Citation: FireEye APT29)
Examples in the content include: 'APT41 used HTTP to download payloads,' 'Cardinal RAT is downloaded using HTTP,' 'Crimson can use a HTTP GET request to download its final payload,' 'CSPY Downloader can use GET requests to download additional payloads,' and 'GuLoader can use HTTP to retrieve additional binaries.'
APT29 has registered algorithmically generated Twitter handles that are used for C2 by malware, such as HAMMERTOSS.
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
Before being appended to image files, [HAMMERTOSS](https://attack.mitre.org/software/S0037) commands are encrypted with a key composed of both a hard-coded value and a string contained on that day's tweet. To decrypt the commands, an investigator would need access to the intended malware sample, the day's tweet, and the image file containing the command.(Citation: FireEye APT29)
Exfiltration
2 techniques
Exfiltration
Kimsuky has exfiltrated stolen files and data to actor-controlled Blogspot accounts. Octopus has exfiltrated data to file sharing sites. HAMMERTOSS exfiltrates data by uploading it to accounts created by the actors on Web cloud storage providers for the adversaries to retrieve later.
[HAMMERTOSS](https://attack.mitre.org/software/S0037) exfiltrates data by uploading it to accounts created by the actors on Web cloud storage providers for the adversaries to retrieve later.(Citation: FireEye APT29)
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.