YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_SUSP_OBFUSC_Indiators_XML_Officedoc_Sep21_2
Detects suspicious encodings in fields used in reference files found in weaponized MS Office documents
- Author
- Florian Roth (Nextron Systems)
- Date
- 2021-09-18
- Modified
- 2023-12-05
- Score / Quality
- 65 / 85
What this rule detects
Detects suspicious encodings in fields used in reference files found in weaponized MS Office documents
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_SUSP_OBFUSC_Indiators_XML_Officedoc_Sep21_2 : WINDOWS CVE FILE
{
meta:
= "Detects suspicious encodings in fields used in reference files found in weaponized MS Office documents"
= "Florian Roth (Nextron Systems)"
= "c3c5ec4f-5d2a-523c-bd4b-b75c04bac87d"
= "2021-09-18"
= "2023-12-05"
= "https://twitter.com/sudosev/status/1439205606129377282"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_cve_2021_40444.yar#L83-L98"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "82c70e0f0b72a57302e5853cc53ae18dbb0bc8dabdfd27b473a7664b2fc5e874"
= 65
= 85
= "WINDOWS, CVE, FILE"
strings:
$h1 = "<?xml " ascii wide
$a1 = "Target" ascii wide
$a2 = "TargetMode" ascii wide
$xml_e = "�" ascii wide
condition:
filesize < 500KB and all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $h1 | text | "<?xml " | ascii wide |
| $a1 | text | "Target" | ascii wide |
| $a2 | text | "TargetMode" | ascii wide |
| $xml_e | text | "�" | ascii wide |
Condition
filesize < 500KB and all of themIn plain words (Heuristic)
- The file must be smaller than 500KB (a cheap guard that skips large files).
- All 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.
Licence & attribution
Author: Florian Roth (Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: c3c5ec4f-5d2a-523c-bd4b-b75c04bac87d
Related rules
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-09-18
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-09-17
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-04-06
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-06-27
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-06-10
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-12-10
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-10-12
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25