Spark
- Type
- Backdoor
- Capabilities
- KeyloggingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- Lure
- Platforms
- Windows
Spark is a Windows backdoor used by Molerats, also known as the Gaza Cybergang, in politically motivated cyberespionage operations. Observed since early 2019, it has targeted Palestinian individuals and entities through social engineering built around regional political events. It has also been deployed alongside other Molerats tools, including SharpStage and DropBook.
Spark supports system and user reconnaissance, remote command execution, downloading additional payloads, keylogging, microphone recording, and data exfiltration. It can identify the currently logged-in user through a built-in command and has executed the whoami command. Command-and-control communications use HTTP, with collected data subjected to encryption, Base64 encoding, and JSON wrapping before transmission. Stolen information is exfiltrated through the command-and-control channel.
Document-themed lures direct victims to archives hosted on legitimate cloud-storage services, including Dropbox and Egnyte. These archives contain executables disguised as Microsoft Word documents. AutoIt-based droppers unpack and install the backdoor, sometimes displaying a decoy document, and establish persistence through scheduled tasks or Windows Startup mechanisms.
Spark employs Enigma Packer and custom XOR payload decryption to hinder analysis and detection. It queries Windows Management Instrumentation for installed antivirus and firewall products. Analyzed variants also validate keyboard layouts and locale information for Arabic settings, withholding malicious activity when those settings are absent.
Associated vulnerabilities
1 CVE 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
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
SPARK is listed among the tools used to implement the cyber threat; the indicators identify spark.exe as SPARK and cdnauthsoft[.]com as SPARK-associated infrastructure.
SPARK is listed among the tools used to implement the cyber threat; the indicators identify spark.exe as SPARK and cdnauthsoft[.]com as SPARK-associated infrastructure.
SPARK is listed among the tools used to implement the cyber threat; the indicators identify spark.exe as SPARK and cdnauthsoft[.]com as SPARK-associated infrastructure.
Spark Backdoor: Hashes (SHA-256 + SHA-1) ... Domains Brooksprofessional[.]com IPs 168.119.82.89 93.115.10.142
"The payload in a majority of these attacks was a backdoor called Spark, which is a backdoor that allows the threat actors to open applications and run command line commands on the compromised system."
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
This latest campaign leverages phishing documents that include various themes related to current Middle Eastern events... Themes used to lure the victims included the Israeli-Saudi relations, Hamas elections, Palestinian politicians as well as other regional events
MITRE ATT&CK BREAKDOWN ... Spearphishing Attachment ... The targets are lured to open a document or a link attached to an email.
The target is encouraged to click on the link to read the entire article. However, the document does not link to the Egyptian Newspaper website, but instead to a file sharing website called Egnyte.
Execution
6 techniques
Execution
“The initial VBScript will then create a scheduled task (T1053)…”; “SCHTASKS /Create … /TN ‘runawy’ …”
the Autoit code also creates the following scheduled task for persistence: SCHTASKS /Create /f /SC minute /TN runawy /mo 5 /tr C:\Users\<USER>\runawy.exe
The extracted executable file contains a compiled Autoit script, which can be seen in the RT_RCDATA section of the file.
[Spark](https://attack.mitre.org/software/S0543) can use cmd.exe to run commands.(Citation: Unit42 Molerat Mar 2020)
“Once the victim then enabled the embedded macro… saves it to …Microsoft.vbs… retrieve a second VBScript…”
When the victim double clicks on the executable file, it unpacks and installs the Spark backdoor.
Persistence
4 techniques
Persistence
“The initial VBScript will then create a scheduled task (T1053)…”; “SCHTASKS /Create … /TN ‘runawy’ …”
the Autoit code also creates the following scheduled task for persistence: SCHTASKS /Create /f /SC minute /TN runawy /mo 5 /tr C:\Users\<USER>\runawy.exe
Once the file is unpacked, the backdoor is dropped in two different locations on the infected operating system: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\runawy.exe
The dropper drops the Spark backdoor binary and a shortcut file used to initiate persistence in the following locations ... Blaster.lnk
Privilege Escalation
4 techniques
Privilege Escalation
“The initial VBScript will then create a scheduled task (T1053)…”; “SCHTASKS /Create … /TN ‘runawy’ …”
the Autoit code also creates the following scheduled task for persistence: SCHTASKS /Create /f /SC minute /TN runawy /mo 5 /tr C:\Users\<USER>\runawy.exe
Once the file is unpacked, the backdoor is dropped in two different locations on the infected operating system: C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\runawy.exe
The dropper drops the Spark backdoor binary and a shortcut file used to initiate persistence in the following locations ... Blaster.lnk
Stealth
11 techniques
Stealth
“…used … ‘Base64 decode VBS function’ … to decode (T1027) the download function and URL to VBS before running it.”
[Spark](https://attack.mitre.org/software/S0543) has been packed with Enigma Protector to obfuscate its contents.(Citation: Unit42 Molerat Mar 2020)
The executable has a Microsoft Word icon to trick victims into believing they are opening a Word document.
MITRE ATT&CK BREAKDOWN ... File Deletion
[Spark](https://attack.mitre.org/software/S0543) has used a custom XOR algorithm to decrypt the payload.(Citation: Unit42 Molerat Mar 2020)
“…use the legitimate msiexec.exe application (T1218) to launch the downloaded … .msi file.”
“delivery document… attempts to load a remote template from Google Drive… The remote template… contains a macro…”
If Arabic keyboard and language settings are not found on the machine, the backdoor will not carry out its malicious activity ... It can thwart detection by automated analysis engines and sandbox solutions.
“…limiting the execution of the Spark payload to only run on systems with an Arabic keyboard and locale…”; “checks… GetKeyboardLayoutList… GetLocaleInfoA… contain the word ‘arabic’.”
[Spark](https://attack.mitre.org/software/S0543) has used a splash screen to check whether an user actively clicks on the screen before running malicious code.(Citation: Unit42 Molerat Mar 2020)
After unpacking itself, the Spark backdoor creates a hidden window where most of the malicious activity is handled.
Defense Impairment
1 technique
Defense Impairment
If certain security products are installed, the backdoor does not carry out its malicious activity.
Credential Access
1 technique
Credential Access
The Spark backdoor allows the attackers to ... Log keystrokes.
Discovery
7 techniques
Discovery
[Spark](https://attack.mitre.org/software/S0543) has run the whoami command and has a built-in command to identify the user logged in.(Citation: Unit42 Molerat Mar 2020)
[Spark](https://attack.mitre.org/software/S0543) can collect the hostname, keyboard layout, and language from the system.(Citation: Unit42 Molerat Mar 2020)
If Arabic keyboard and language settings are not found on the machine, the backdoor will not carry out its malicious activity ... It can thwart detection by automated analysis engines and sandbox solutions.
“…limiting the execution of the Spark payload to only run on systems with an Arabic keyboard and locale…”; “checks… GetKeyboardLayoutList… GetLocaleInfoA… contain the word ‘arabic’.”
[Spark](https://attack.mitre.org/software/S0543) has used a splash screen to check whether an user actively clicks on the screen before running malicious code.(Citation: Unit42 Molerat Mar 2020)
One common evasive mechanism used by the Spark backdoor is its ability to check for installed security products using WMI queries (WQL). SELECT * FROM AntiVirusProduct SELECT * FROM FirewallProduct
[Spark](https://attack.mitre.org/software/S0543) has checked the results of the <code>GetKeyboardLayoutList</code> and the language name returned by <code>GetLocaleInfoA</code> to make sure they contain the word “Arabic” before executing.(Citation: Unit42 Molerat Mar 2020)
Collection
4 techniques
Collection
The Spark backdoor allows the attackers to ... Log keystrokes.
MITRE ATT&CK BREAKDOWN ... Screen Capture
MITRE ATT&CK BREAKDOWN ... Automated Collection
The Spark backdoor allows the attackers to ... Record audio using the computer’s microphone.
Command and Control
5 techniques
Command and Control
[Spark](https://attack.mitre.org/software/S0543) has used HTTP POST requests to communicate with its C2 server to receive commands.(Citation: Unit42 Molerat Mar 2020)
The Spark backdoor allows the attackers to ... Download additional payloads.
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[Spark](https://attack.mitre.org/software/S0543) has encoded communications with the C2 server with base64.(Citation: Unit42 Molerat Mar 2020)
The data is first encrypted and then encoded with Base64 ... the entire json object is encoded with Base64 and undergoes another stage of encryption, and then sent to the server
Exfiltration
1 technique
Exfiltration
[Spark](https://attack.mitre.org/software/S0543) has exfiltrated data over the C2 channel.(Citation: Unit42 Molerat Mar 2020)
Observables
121 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
29 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.