YARA · SEKOIA.IO Community
SEKOIA_Apt_Tortoiseshell_Wateringhole_Script
Detect's Tortoiseshell WH script
- 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:
= "Detect's Tortoiseshell WH script"
= "Sekoia.io"
= "58c5ae66-fe09-497c-80bf-20feee4d95e7"
= "2023-05-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_tortoiseshell_wateringhole_script.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "8ad886443b1bd17048054b57650d38cda1ffccc10fedfac86283a41daf956dc2"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | 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 < 10000In 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06