Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Uta0178_Javascript_Inclusion_Strings

Detects UTA0178 malicious inclusion strings

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

What this rule detects

Detects UTA0178 malicious inclusion strings

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

Summary generated from the rule's metadata and condition.

Rule source

apt-uta0178-javascript-inclusion-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Uta0178_Javascript_Inclusion_Strings
{
	meta:
		description = "Detects UTA0178 malicious inclusion strings"
		author = "Sekoia.io"
		id = "af816c35-1f00-47ea-86ee-c034607c625e"
		date = "2024-01-12"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_uta0178_javascript_inclusion_strings.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d3fedf49417178df374d6ae20e57ffcfa00cb68a647769964c049d9a8e0f4958"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s0 = ".value"
		$s1 = "btoa("
		$s2 = "https://"
		$s3 = "new XMLHttpRequest();"
		$s4 = ".send(null);"

	condition:
		@s0< @s1 and @s1 < @s2 and @s2 < @s3 and @s3 < @s4 and @s4- @s0 < 350
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$s0text".value"
$s1text"btoa("
$s2text"https://"
$s3text"new XMLHttpRequest();"
$s4text".send(null);"

Condition

@s0< @s1 and @s1 < @s2 and @s2 < @s3 and @s3 < @s4 and @s4- @s0 < 350

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: af816c35-1f00-47ea-86ee-c034607c625e

Metadata

version1.0
classificationTLP:CLEAR