Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Apt28_Htmlsmuggling_Disclosing_Ip

Detects some kind of HTMLSmuggling used by APT28

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

What this rule detects

Detects some kind of HTMLSmuggling used by APT28

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

Summary generated from the rule's metadata and condition.

Rule source

apt-apt28-htmlsmuggling-disclosing-ip.yarDetection Rule License 1.1
rule SEKOIA_Apt_Apt28_Htmlsmuggling_Disclosing_Ip : FILE
{
	meta:
		description = "Detects some kind of HTMLSmuggling used by APT28"
		author = "Sekoia.io"
		id = "57adc227-2b72-457e-a786-97ca1a7300d8"
		date = "2023-09-11"
		modified = "2024-12-19"
		reference = "https://www.zscaler.com/blogs/security-research/steal-it-campaign"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_apt28_htmlsmuggling_disclosing_ip.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "047d2d5f8d04576b6d57bc599f82406804845a3acb7628e7ad9b56e71e4dfe92"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "ipapi.co/json"
		$s2 = "a.download("
		$s3 = "a.click("

	condition:
		$s1 and $s2 and $s3 and filesize < 5000
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"ipapi.co/json"
$s2text"a.download("
$s3text"a.click("

Condition

$s1 and $s2 and $s3 and filesize < 5000

In plain words (Heuristic)

  • The file must be smaller than 5000 (a cheap guard that skips large files).
  • Pattern $s1 must be present.
  • Pattern $s2 must be present.
  • Pattern $s3 must be present.

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

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: 57adc227-2b72-457e-a786-97ca1a7300d8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE