Shamoon
- Type
- Wiper
- Capabilities
- ReconnaissanceScanningLateral movementDefense evasionPrivilege escalation
- Delivery
- Phishing
- Platforms
- Windows
Shamoon, also known as DistTrack, is destructive Windows malware used primarily against energy-sector organizations in the Middle East. First observed in 2012, it was responsible for a major attack on Saudi Aramco and reappeared in subsequent destructive campaigns. Shamoon operations have been attributed to Iranian threat actors, including activity tracked as Volatile Kitten. Its primary purpose is sabotage through data destruction and disruption of infected systems.
Shamoon abuses the legitimate EldoS RawDisk driver to overwrite hard-drive data. It also supports an operational mode that encrypts data instead of overwriting it. To facilitate propagation, it obtains local IP addresses and network-segment information, scans associated class-C subnets, and attempts to copy itself to remote computers through accessible network shares. It can schedule tasks to execute copied payloads on target systems. After obtaining access to a remote share, it can enable the Remote Registry service and modify Windows settings to disable User Account Control remote restrictions, facilitating administrative access and lateral movement.
Associated vulnerabilities
2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
12 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Volatile Kitten (Shamoon) – indéterminé, 2012-2018, wiper DistTrack, énergie Moyen-Orient
These include Alma Communicator, BONDUPDATER, certutil, Clayslide, DistTrack, DNSExfiltrator, DNSpionage, Dustman, Fox Pane, GoogleDrive RAT, and Helminth.
Shamoon, also known as DistTrack, functions as an information-stealing malware that also incorporates a destructive component that allows it to overwrite the Master Boot Record (MBR) with arbitrary data so as to render the infected machine inoperable.
Shamoon, also known as DistTrack, functions as an information-stealing malware that also incorporates a destructive component that allows it to overwrite the Master Boot Record (MBR) with arbitrary data so as to render the infected machine inoperable.
Comparative forensic analysis has revealed the Kwampirs RAT as having numerous similarities with the data destruction malware Disttrack (commonly known as Shamoon).
Shamoon, also known as DistTrack, functions as an information-stealing malware that also incorporates a destructive component that allows it to overwrite the Master Boot Record (MBR) with arbitrary data so as to render the infected machine inoperable.
+6 more in the app. View in Mallory
Techniques & procedures
66 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Historically, Iran has demonstrated a pattern of reverse-engineering malware deployed against it to improve its own offensive toolkit.
Symantec followed up with a detailed description of a 3-phase attacked structure consisting of a dropper, wiper and reporter component...
Initial Access
5 techniques
Initial Access
The Disttrack malware spreads to other systems automatically using stolen credentials.
If [Shamoon](https://attack.mitre.org/software/S0140) cannot access shares using current privileges, it attempts access using hard coded, domain-specific credentials gathered earlier in the intrusion.(Citation: FireEye Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
The FBI has sent a security alert to the US private sector about an ongoing hacking campaign that's targeting supply chain software providers... 'Software supply chain companies are believed to be targeted in order to gain access to the victim's strategic partners and/or customers, including entities supporting Industrial Control Systems (ICS) for global energy generation, transmission, and distribution,'
2012 Attack Timeline • Targeted Phishing attack • Date Unknown
send a spear-phishing email with a malicious document attached
Execution
7 techniques
Execution
this method calls the NetScheduleJobAdd function within the Windows netapi32 library to create a scheduled task to run the payload.
[Shamoon](https://attack.mitre.org/software/S0140) copies an executable payload to the target system by using [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) and then scheduling an unnamed task to execute the malware.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)
The wiper saves the extracted driver to "C:\Windows\System32\Drivers\drdisk.sys" and installs the kernel driver by creating a service named "drdisk" with the following command line commands: sc create drdisk ... sc start drdisk
We now believe that the threat actor manually copies the contents of exec-template.txt and pastes these commands directly within command prompt to run them.
waste a 0-day vulnerability in order to silently install a sophisticated malware
"technique_id": "T1204", "technique_name": "User Execution"
[Shamoon](https://attack.mitre.org/software/S0140) creates a new service named “ntssrv” to execute the payload. [Shamoon](https://attack.mitre.org/software/S0140) can also spread via [PsExec](https://attack.mitre.org/software/S0029).(Citation: Palo Alto Shamoon Nov 2016)(Citation: McAfee Shamoon December19 2018)
Persistence
7 techniques
Persistence
this method calls the NetScheduleJobAdd function within the Windows netapi32 library to create a scheduled task to run the payload.
[Shamoon](https://attack.mitre.org/software/S0140) copies an executable payload to the target system by using [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) and then scheduling an unnamed task to execute the malware.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)
The Disttrack malware spreads to other systems automatically using stolen credentials.
If [Shamoon](https://attack.mitre.org/software/S0140) cannot access shares using current privileges, it attempts access using hard coded, domain-specific credentials gathered earlier in the intrusion.(Citation: FireEye Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
Once [Shamoon](https://attack.mitre.org/software/S0140) has access to a network share, it enables the RemoteRegistry service on the target system. It will then connect to the system with RegConnectRegistryW and modify the Registry to disable UAC remote restrictions by setting <code>SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy</code> to 1.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: McAfee Shamoon December 2018)
[Shamoon](https://attack.mitre.org/software/S0140) creates a new service named “ntssrv” to execute the payload. Newer versions create the "MaintenaceSrv" and "hdv_725x" services.(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
BitPaymer can suppress UAC prompts by setting the HKCU\Software\Classes\ms-settings\shell\open\command registry key on Windows 10 or HKCU\Software\Classes\mscfile\shell\open\command on Windows 7... LockBit 2.0 can bypass UAC through creating the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\ICM\Calibration.
Privilege Escalation
8 techniques
Privilege Escalation
this method calls the NetScheduleJobAdd function within the Windows netapi32 library to create a scheduled task to run the payload.
[Shamoon](https://attack.mitre.org/software/S0140) copies an executable payload to the target system by using [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) and then scheduling an unnamed task to execute the malware.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)
The Disttrack malware spreads to other systems automatically using stolen credentials.
If [Shamoon](https://attack.mitre.org/software/S0140) cannot access shares using current privileges, it attempts access using hard coded, domain-specific credentials gathered earlier in the intrusion.(Citation: FireEye Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
[Shamoon](https://attack.mitre.org/software/S0140) can impersonate tokens using <code>LogonUser</code>, <code>ImpersonateLoggedOnUser</code>, and <code>ImpersonateNamedPipeClient</code>.(Citation: McAfee Shamoon December 2018)
[Shamoon](https://attack.mitre.org/software/S0140) creates a new service named “ntssrv” to execute the payload. Newer versions create the "MaintenaceSrv" and "hdv_725x" services.(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
BitPaymer can suppress UAC prompts by setting the HKCU\Software\Classes\ms-settings\shell\open\command registry key on Windows 10 or HKCU\Software\Classes\mscfile\shell\open\command on Windows 7... LockBit 2.0 can bypass UAC through creating the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\ICM\Calibration.
[Shamoon](https://attack.mitre.org/software/S0140) attempts to disable UAC remote restrictions by modifying the Registry.(Citation: Palo Alto Shamoon Nov 2016)
Stealth
12 techniques
Stealth
It also uses what appears to be a legitimate system driver to gain low-level access to a hard drive... The driver, according to Kaspersky, was digitally signed using the private cryptographic key belonging to a company called EldoS Corporation.
[Shamoon](https://attack.mitre.org/software/S0140) contains base64-encoded strings.(Citation: Palo Alto Shamoon Nov 2016)
FileDescription : Distributed Link Tracking Server ... OriginalFilename : trksvr ... SYSTEM\CurrentControlSet\Services\TrkSvr Distributed Link Tracking Server ... C:\Windows\system32\svchost.exe -k netsvcs TrkSvr
[Shamoon](https://attack.mitre.org/software/S0140) creates a new service named “ntssrv” that attempts to appear legitimate; the service's display name is “Microsoft Network Realtime Inspection Service” and its description is “Helps guard against time change attempts targeting known and newly discovered vulnerabilities in network time protocols.” Newer versions create the "MaintenaceSrv" service, which misspells the word "maintenance."(Citation: Palo Alto Shamoon Nov 2016)(Citation: McAfee Shamoon December 2018)
The main purpose of the Disttrack malware is to overwrite files and storage partitions in an attempt to destroy data and render the system unusable.
[Shamoon](https://attack.mitre.org/software/S0140) can change the modified time for files to evade forensic detection.(Citation: McAfee Shamoon December 2018)
The Disttrack malware spreads to other systems automatically using stolen credentials.
If [Shamoon](https://attack.mitre.org/software/S0140) cannot access shares using current privileges, it attempts access using hard coded, domain-specific credentials gathered earlier in the intrusion.(Citation: FireEye Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
[Shamoon](https://attack.mitre.org/software/S0140) can impersonate tokens using <code>LogonUser</code>, <code>ImpersonateLoggedOnUser</code>, and <code>ImpersonateNamedPipeClient</code>.(Citation: McAfee Shamoon December 2018)
[Shamoon](https://attack.mitre.org/software/S0140) decrypts ciphertext using an XOR cipher and a base64-encoded string.(Citation: Unit 42 Shamoon3 2018)
Our analysis shows a signed driver is being used to deploy a wiper that targets Windows devices... The developers are using a tried and tested technique of wiper malware, abusing a benign partition management driver... HermeticWiper uses a similar technique by abusing a different driver, empntdrv.sys.
"embedding evasion techniques such as obfuscation, antidebugging, or antiforensic tricks"
Defense Impairment
2 techniques
Defense Impairment
Once [Shamoon](https://attack.mitre.org/software/S0140) has access to a network share, it enables the RemoteRegistry service on the target system. It will then connect to the system with RegConnectRegistryW and modify the Registry to disable UAC remote restrictions by setting <code>SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy</code> to 1.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: McAfee Shamoon December 2018)
The batch script also attempts to clear event logs via the Windows built-in “wevtutil” utility in an attempt to conceal their activities and disrupt incident response and forensic analysis.
Credential Access
1 technique
Credential Access
"Analysis shows the malware contains embedded credentials..." and "it uses hard coded, domain specific credentials (privileged credentials, likely Domain Administrator or local Administrator)"
Discovery
12 techniques
Discovery
[Shamoon](https://attack.mitre.org/software/S0140) queries several Registry keys to identify hard disk partitions to overwrite.(Citation: Palo Alto Shamoon Nov 2016)
[Shamoon](https://attack.mitre.org/software/S0140) obtains the target's IP address and local network segment.(Citation: Palo Alto Shamoon Nov 2016)(Citation: McAfee Shamoon December 2018)
[Shamoon](https://attack.mitre.org/software/S0140) scans the C-class subnet of the IPs on the victim's interfaces.(Citation: FireEye Shamoon Nov 2016)
It then uses the system's IP addresses to enumerate the /24 network (x.x.x.0-255) that the system is networked with, and will attempt to spread to each of these remote systems.
[Shamoon](https://attack.mitre.org/software/S0140) obtains the victim's operating system version and keyboard layout and sends the information to the C2 server.(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
dir “C:\Documents and Settings” /s /b /a:-D 2>nul | findstr -i download 2>nul >f1.inf ... dir C:\Windows\System32\Drivers /s /b /a:-D 2>nul >>f2.inf dir C:\Windows\System32\Config /s /b /a:-D 2>nul | findstr -v -i systemprofile 2>nul >>f2.inf
[Shamoon](https://attack.mitre.org/software/S0140) obtains the system time and will only activate if it is greater than a preset date.(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
Once a system on a network is infected, the code scrapes data from other systems via network shares, including those not connected to the internet.
In the text files we analyzed, the hostnames were included as their DNS name, specifically in the format <computer name>.<domain name>.local, which we believe shows they were obtained directly from Active Directory on a domain controller.
Examples include: “Bazar … check if the Russian language is installed … and terminate if it is found.”; “DropBook … checked for the presence of Arabic language …”; “Maze … checked the language … GetUserDefaultUILanguage”; “SynAck … checks installed keyboard layouts to estimate … countries.”
Examples include 'Bazar can also check if the Russian language is installed,' 'DropBook has checked for the presence of Arabic language,' 'Maze has checked the language of the infected system,' and 'SynAck ... checks installed keyboard layouts to estimate if it has been launched from a certain list of countries.'
"embedding evasion techniques such as obfuscation, antidebugging, or antiforensic tricks"
Lateral Movement
7 techniques
Lateral Movement
After writing itself to the remote system, the dropper creates a service named "ntssrv"... to execute the payload.
The actor deploys the Zip archive to this distribution server by logging in to the compromised system using Remote Desktop Protocol (RDP) with stolen, legitimate credentials and downloading the Zip from a remote server.
[Shamoon](https://attack.mitre.org/software/S0140) accesses network share(s), enables share access to the target device, copies an executable payload to the target system, and uses a [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053) to execute the malware.(Citation: FireEye Shamoon Nov 2016)
APT29 used scheduler and schtasks to create new tasks on remote hosts as part of lateral movement... Naikon has used schtasks.exe for lateral movement in compromised networks... RemoteCMD can execute commands remotely by creating a new schedule task on the remote system.
"Once Shamoon has access to a network share, it enables the RemoteRegistry service on the target system."
The fact that it was not connected to the Internet lends credence to reports that the attack may have been facilitated by a Saudi Aramco employee.
[Shamoon](https://attack.mitre.org/software/S0140) attempts to copy itself to remote machines on the network.(Citation: Palo Alto Shamoon Nov 2016)
Collection
3 techniques
Collection
The malware appears to be collecting information about ‘interesting’ files on the infected system: dir “C:\Documents and Settings” /s /b /a:-D 2>nul | findstr -i download 2>nul >f1.inf ... | findstr -i document ... picture ... video ... music ... desktop ...
Once a system on a network is infected, the code scrapes data from other systems via network shares, including those not connected to the internet.
Shamoon, also known as Disttrack, is unusual as it infects a PC, steals certain data, sends the data to another infected PC and then overwrites the PC's master boot record...
Command and Control
5 techniques
Command and Control
The malware also reports back to the attackers with information about the number of files that were destroyed, the IP address of the infected computer, and a random number.
[Shamoon](https://attack.mitre.org/software/S0140) has used HTTP for C2.(Citation: Palo Alto Shamoon Nov 2016)
Internal Saudi Aramco PC used as proxy by attackers • Date unknown
The attacker took control of an internal machine connected directly to the internet, and used that machine as a proxy to the external Command-and-Control (C2) server.
[Shamoon](https://attack.mitre.org/software/S0140) can download an executable to run on the victim.(Citation: Palo Alto Shamoon Nov 2016)
Exfiltration
2 techniques
Exfiltration
Shamoon, also known as Disttrack, is unusual as it infects a PC, steals certain data, sends the data to another infected PC...
The Shamoon Wiper spreads across infected networks, uploads files to the attacker C2 and then wipes infected computers.
Impact
8 techniques
Impact
[Shamoon](https://attack.mitre.org/software/S0140) attempts to overwrite operating system files and disk structures with image files.(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016) In a later variant, randomly generated data was used for data overwrites.(Citation: Unit 42 Shamoon3 2018)(Citation: McAfee Shamoon December 2018)
[Shamoon](https://attack.mitre.org/software/S0140) has an operational mode for encrypting data instead of overwriting it.(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
Unlike many other contemporary viruses Shamoon/Disstrack does not attempt to steal data but instead tries to delete it irrecoverably.
Shamoon, an Iran-linked malicious program that wiped thousands of computers in Saudi Arabia.
[Shamoon](https://attack.mitre.org/software/S0140) will reboot the infected system once the wiping functionality has been completed.(Citation: Unit 42 Shamoon3 2018)(Citation: McAfee Shamoon December 2018)
The destruction of the file system, rather than files within the file system, makes it harder to simply restore some files to “repair” the victimized machine.
The Shamoon Wiper spreads across infected networks, uploads files to the attacker C2 and then wipes infected computers. This includes the master boot record, making wiped machines unusable.
[Shamoon](https://attack.mitre.org/software/S0140) has been seen overwriting features of disk structure such as the MBR.(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Unit 42 Shamoon3 2018)
Observables
45 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
141 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.