Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Susp_Apt28_Uac0063_Malicious_Doc_Vba

Detects some suspected APT28 document vba

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
Author
Sekoia.io
Date
2024-07-25
Modified
2024-12-19
Score / Quality
65 / 80

What this rule detects

Detects some suspected APT28 document vba

Targets: OLE / legacy Office.

It defines 2 patterns (1 text, 1 hex, 0 regex).

YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal

Summary generated from the rule's metadata and condition.

Rule source

apt-susp-apt28-uac0063-malicious-doc-vba.yarDetection Rule License 1.1
rule SEKOIA_Apt_Susp_Apt28_Uac0063_Malicious_Doc_Vba : FILE
{
	meta:
		description = "Detects some suspected APT28 document vba"
		author = "Sekoia.io"
		id = "58040dbd-09ae-4f9e-940d-3a522e7ccfbb"
		date = "2024-07-25"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_susp_apt28_uac0063_malicious_doc_vba.yar#L1-L17"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "fceffb8ae94cef3af21b2943131e94db9e0e67073de48d9d32601a245448d067"
		logic_hash = "c57676b765364c5c51d2bf231b5fe858129b45ba837ec6554b353177bb16bd8a"
		score = 65
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = { 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 33 31 30 }
		$ = "ThisDocument" wide

	condition:
		uint32be( 0 ) == 0xd0cf11e0 and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$hex{ 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 33 31 30 }
$text"ThisDocument"wide

Condition

uint32be( 0 ) == 0xd0cf11e0 and all of them

In plain words (Heuristic)

  • The file must start with the OLE header — legacy Office documents, MSI.
  • 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • fceffb8ae94cef3af21b2943131e94db9e0e67073de48d9d32601a245448d067

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 58040dbd-09ae-4f9e-940d-3a522e7ccfbb

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE