YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_EXPL_CVE_2021_40444_Document_Rels_XML
Detects indicators found in weaponized documents that exploit CVE-2021-40444
- Author
- Jeremy Brown / @alteredbytes
- Date
- 2021-09-10
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detects indicators found in weaponized documents that exploit CVE-2021-40444
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
expl-cve-2021-40444-document-rels-xml.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_CVE_2021_40444_Document_Rels_XML : CVE_2021_40444 FILE
{
meta:
= "Detects indicators found in weaponized documents that exploit CVE-2021-40444"
= "Jeremy Brown / @alteredbytes"
= "812bb68e-71ea-5a9a-8d39-ab99fdaa6c58"
= "2021-09-10"
= "2023-12-05"
= "https://twitter.com/AlteredBytes/status/1435811407249952772"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_cve_2021_40444.yar#L6-L25"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "b05c3b33c3cab2c9109d808ed197758bc987f07beee77e1f61094715e0c1a1e7"
= 75
= 85
= "CVE-2021-40444, FILE"
strings:
$b1 = "/relationships/oleObject" ascii
$b2 = "/relationships/attachedTemplate" ascii
$c1 = "Target=\"mhtml:http" nocase
$c2 = "!x-usc:http" nocase
$c3 = "TargetMode=\"External\"" nocase
condition:
uint32( 0 ) == 0x6D783F3C and filesize < 10KB and 1 of ( $b* ) and all of ( $c* )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $b1 | text | "/relationships/oleObject" | ascii |
| $b2 | text | "/relationships/attachedTemplate" | ascii |
| $c1 | text | "Target=\"mhtml:http" | nocase |
| $c2 | text | "!x-usc:http" | nocase |
| $c3 | text | "TargetMode=\"External\"" | nocase |
Condition
uint32( 0 ) == 0x6D783F3C and filesize < 10KB and 1 of ( $b* ) and all of ( $c* )In plain words (Heuristic)
- The file must be smaller than 10KB (a cheap guard that skips large files).
- All patterns in ( $c* ) must match.
- At least 1 patterns in ( $b* ) 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.
Licence & attribution
Author: Jeremy Brown / @alteredbytes
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: 812bb68e-71ea-5a9a-8d39-ab99fdaa6c58
Tags:CVE_2021_40444FILE
Related rules
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-09-18
- ExploitSignature Base (Florian Roth / Nextron)· James E.C, Proofpoint· 2021-09-18