Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Gamaredon_Htmlsmuggling_2024

Detects HTML Smuggling webpages of Gamaredon used in 2024

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-09-09
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects HTML Smuggling webpages of Gamaredon used in 2024

It defines 7 patterns (7 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-gamaredon-htmlsmuggling-2024.yarDetection Rule License 1.1
rule SEKOIA_Apt_Gamaredon_Htmlsmuggling_2024 : FILE
{
	meta:
		description = "Detects HTML Smuggling webpages of Gamaredon used in 2024"
		author = "Sekoia.io"
		id = "8fa1f80b-2261-4d63-92d8-7c360be73fe2"
		date = "2024-09-09"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_gamaredon_htmlsmuggling_2024.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "ab2807824e68d5efb4c896e1af82e693"
		hash = "926b7e65d0d61cd6ba9e085193ae8b1d"
		logic_hash = "9cd82f497fd7b82f02fec4ce1d131cd2685861c7c02aaae992e07a7d8bd30595"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "').innerHTML;window['" ascii fullword
		$ = "='at'+'ob';"
		$ = "]('*','');"
		$ = "display:none"
		$ = "0px;\" onerror=\""
		$ = "'ev'+'"
		$ = "<!DOCTYPE html PUBLIC"

	condition:
		5 of them and filesize < 1MB
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$text"').innerHTML;window['"ascii fullword
$text"='at'+'ob';"
$text"]('*','');"
$text"display:none"
$text"0px;\" onerror=\""
$text"'ev'+'"
$text"<!DOCTYPE html PUBLIC"

Condition

5 of them and filesize < 1MB

In plain words (Heuristic)

  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • At least 5 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).

  • ab2807824e68d5efb4c896e1af82e693
  • 926b7e65d0d61cd6ba9e085193ae8b1d

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: 8fa1f80b-2261-4d63-92d8-7c360be73fe2

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE