YARA · SEKOIA.IO Community
SEKOIA_Apt_Gamaredon_Ddrdoh_Powershell_Backdoor
Detects GAMAREDON's DDRDOH PowerShell Backdoor
- Author
- Sekoia.io
- Date
- 2023-01-23
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects GAMAREDON's DDRDOH PowerShell Backdoor
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-gamaredon-ddrdoh-powershell-backdoor.yarDetection Rule License 1.1
rule SEKOIA_Apt_Gamaredon_Ddrdoh_Powershell_Backdoor : FILE
{
meta:
= "Detects GAMAREDON's DDRDOH PowerShell Backdoor"
= "Sekoia.io"
= "3413dedd-e3ec-4231-8af7-c7f709ab82d7"
= "2023-01-23"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_gamaredon_ddrdoh_powershell_backdoor.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "32d088affb65d410b2715fde28227792ea9f406e324de4a2e204e9850f0b81ce"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "hidden iex $env:" ascii wide
$ = ".substring(0,4) -eq \"http" ascii wide
$ = ".split('!')[1];" ascii wide
$ = " -bxor $key[$i % $key.Length]" ascii wide
$s = "Filter $fil | Select-Object VolumeSerialNumber" ascii wide
condition:
uint8( 0 ) == 0x24 and 4 of them and filesize < 10KB
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "hidden iex $env:" | ascii wide |
| $ | text | ".substring(0,4) -eq \"http" | ascii wide |
| $ | text | ".split('!')[1];" | ascii wide |
| $ | text | " -bxor $key[$i % $key.Length]" | ascii wide |
| $s | text | "Filter $fil | Select-Object VolumeSerialNumber" | ascii wide |
Condition
uint8( 0 ) == 0x24 and 4 of them and filesize < 10KBIn plain words (Heuristic)
- The file must be smaller than 10KB (a cheap guard that skips large files).
- At least 4 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 3413dedd-e3ec-4231-8af7-c7f709ab82d7
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06