Small Sieve
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasionReconnaissance
- Platforms
- Windows
Small Sieve, also known as GRAMDOOR, is a Python-based Windows backdoor used by MuddyWater, an Iranian cyberespionage group subordinate to Iran’s Ministry of Intelligence and Security. It is distributed through a Nullsoft Scriptable Install System (NSIS) installer, with analyzed payloads packaged using PyInstaller and Python 3.9. The installer establishes persistence through a per-user Windows Registry Run entry. Small Sieve forms part of MuddyWater’s malware arsenal used in operations against government and private-sector organizations, including telecommunications, defense, local government, and oil and natural gas.
The backdoor uses the Telegram Bot API over HTTPS for beaconing, receiving commands, and returning results. Its functionality includes identifying the logged-in user, downloading files, executing commands through the Windows command shell, changing its Telegram authentication token, and disconnecting. It applies custom byte-shuffling and string-encoding routines, including Base64 and a custom alphabet, to obscure communications and stored configuration. Malicious components masquerade as Microsoft, Outlook, or Windows Defender-related artifacts, sometimes using misspelled product names. Execution requires a specific command-line argument, providing an execution guardrail. An analyzed termination command stops the backdoor without removing its persistence mechanism.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Small Sieve is a simple Python backdoor distributed using a Nullsoft Scriptable Install System (NSIS) installer, gram_app.exe.
"Mandiant has named this backdoor GRAMDOOR due to its ability to use the Telegram Bot API for communication."
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
[Small Sieve](https://attack.mitre.org/software/S1035) can use `cmd.exe` to execute commands on a victim's system.(Citation: NCSC GCHQ Small Sieve Jan 2022)
[Small Sieve](https://attack.mitre.org/software/S1035) can use Python scripts to execute commands.(Citation: NCSC GCHQ Small Sieve Jan 2022)
Persistence
1 technique
Persistence
[Small Sieve](https://attack.mitre.org/software/S1035) has the ability to add itself to `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\OutlookMicrosift` for persistence.(Citation: NCSC GCHQ Small Sieve Jan 2022)
Privilege Escalation
1 technique
Privilege Escalation
[Small Sieve](https://attack.mitre.org/software/S1035) has the ability to add itself to `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\OutlookMicrosift` for persistence.(Citation: NCSC GCHQ Small Sieve Jan 2022)
Stealth
4 techniques
Stealth
[Small Sieve](https://attack.mitre.org/software/S1035) has the ability to use a custom hex byte swapping encoding scheme combined with an obfuscated Base64 function to protect program strings and Telegram credentials.(Citation: NCSC GCHQ Small Sieve Jan 2022)
The malicious file impersonates a legitimate file that is signed as a Google Update executable file.
[Small Sieve](https://attack.mitre.org/software/S1035) can use variations of Microsoft and Outlook spellings, such as "Microsift", in its file names to avoid detection.(Citation: NCSC GCHQ Small Sieve Jan 2022)
[Small Sieve](https://attack.mitre.org/software/S1035) can only execute correctly if the word `Platypus` is passed to it on the command line.(Citation: NCSC GCHQ Small Sieve Jan 2022)
Discovery
2 techniques
Discovery
[Small Sieve](https://attack.mitre.org/software/S1035) can obtain the IP address of a victim host.(Citation: NCSC GCHQ Small Sieve Jan 2022)
[Small Sieve](https://attack.mitre.org/software/S1035) can obtain the id of a logged in user.(Citation: NCSC GCHQ Small Sieve Jan 2022)
Command and Control
9 techniques
Command and Control
It says the Small Sieve's beacons and tasking are performed using Telegram API.
[Small Sieve](https://attack.mitre.org/software/S1035) can contact actor-controlled C2 servers by using the Telegram API over HTTPS.(Citation: DHS CISA AA22-055A MuddyWater February 2022)
"APT28 has used Google Drive for C2."; "APT37 leverages social networking sites and cloud platforms ... for C2."; "FIN7 used legitimate services like Google Docs, Google Scripts, and Pastebin for C2."
[Small Sieve](https://attack.mitre.org/software/S1035) has the ability to use the Telegram Bot API from Telegram Messenger to send and receive messages.(Citation: NCSC GCHQ Small Sieve Jan 2022)
[Small Sieve](https://attack.mitre.org/software/S1035) has the ability to download files.(Citation: NCSC GCHQ Small Sieve Jan 2022)
T1132.001 MuddyWater has used tools to encode C2 communications including Base64 encoding.
[Small Sieve](https://attack.mitre.org/software/S1035) can use a custom hex byte swapping encoding scheme to obfuscate tasking traffic.(Citation: DHS CISA AA22-055A MuddyWater February 2022)(Citation: NCSC GCHQ Small Sieve Jan 2022)
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[Small Sieve](https://attack.mitre.org/software/S1035) can use SSL/TLS for its HTTPS Telegram Bot API-based C2 channel.(Citation: DHS CISA AA22-055A MuddyWater February 2022)
Exfiltration
1 technique
Exfiltration
It also uses multiple malware sets, such as PowGoop, Small Sieve, Canopy/Starwhale, Mori and POWERSTATS for loading malware, backdoor access, persistence and exfiltration.
Observables
27 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.