Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Tortoiseshell_Wateringhole_Script

Detect's Tortoiseshell WH script

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

What this rule detects

Detect's Tortoiseshell WH script

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

Summary generated from the rule's metadata and condition.

Rule source

apt-tortoiseshell-wateringhole-script.yarDetection Rule License 1.1
rule SEKOIA_Apt_Tortoiseshell_Wateringhole_Script : FILE
{
	meta:
		description = "Detect's Tortoiseshell WH script"
		author = "Sekoia.io"
		id = "58c5ae66-fe09-497c-80bf-20feee4d95e7"
		date = "2023-05-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_tortoiseshell_wateringhole_script.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8ad886443b1bd17048054b57650d38cda1ffccc10fedfac86283a41daf956dc2"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "btoa(pluggin.toString())"
		$ = "btoa(document.referrer)"
		$ = "pluggin.push(navigator.plugins[i]"
		$ = "navigator.language"
		$ = "window.RTCPeerConnection"
		$ = "sha256(canvas.toDataURL("
		$ = "canvas.getContext('2d"
		$ = "noop = function() {},"

	condition:
		5 of them and filesize < 10000
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$text"btoa(pluggin.toString())"
$text"btoa(document.referrer)"
$text"pluggin.push(navigator.plugins[i]"
$text"navigator.language"
$text"window.RTCPeerConnection"
$text"sha256(canvas.toDataURL("
$text"canvas.getContext('2d"
$text"noop = function() {},"

Condition

5 of them and filesize < 10000

In plain words (Heuristic)

  • The file must be smaller than 10000 (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

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: 58c5ae66-fe09-497c-80bf-20feee4d95e7

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE