YARA · SEKOIA.IO Community
SEKOIA_Apt_Gamaredon_Htmlsmuggling_Attachment_Stage2
Detects Gamaredon HTMLSmuggling attachment
- Author
- Sekoia.io
- Date
- 2023-01-20
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Gamaredon HTMLSmuggling attachment
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-gamaredon-htmlsmuggling-attachment-stage2.yarDetection Rule License 1.1
rule SEKOIA_Apt_Gamaredon_Htmlsmuggling_Attachment_Stage2 : FILE
{
meta:
= "Detects Gamaredon HTMLSmuggling attachment"
= "Sekoia.io"
= "e82335ea-48d5-409c-a270-cfd5a2197c44"
= "2023-01-20"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_gamaredon_htmlsmuggling_attachment_stage2.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "42e637f628db6719342ae104c6c89bb80609c5f3f5c2586daccb31f7d688a2a1"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = ") == -1) die();" ascii
$ = "'data:application/x-rar-compressed;base64, ' +" ascii
$ = ".appendChild(img);" ascii
$ = "['Win32', 'Win64', 'Windows', 'WinCE'].indexOf(" ascii
$ = " = navigator[\"platform\"];" ascii
condition:
4 of them and filesize < 1MB
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | ") == -1) die();" | ascii |
| $ | text | "'data:application/x-rar-compressed;base64, ' +" | ascii |
| $ | text | ".appendChild(img);" | ascii |
| $ | text | "['Win32', 'Win64', 'Windows', 'WinCE'].indexOf(" | ascii |
| $ | text | " = navigator[\"platform\"];" | ascii |
Condition
4 of them and filesize < 1MBIn plain words (Heuristic)
- The file must be smaller than 1MB (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: e82335ea-48d5-409c-a270-cfd5a2197c44
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