Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Backoor_Win_Tinyturla_Ng

Detect the TinyTurla-NG backdoor used by Turla

APT / threat actorTiny TurlaTinyturla NgSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-03-04
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the TinyTurla-NG backdoor used by Turla

Associated malware family: Tiny Turla, Tinyturla Ng.

Targets: Windows PE.

It defines 5 patterns (5 text, 0 hex, 0 regex). YARA modules used: pe.

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

backoor-win-tinyturla-ng.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Backoor_Win_Tinyturla_Ng : FILE
{
	meta:
		description = "Detect the TinyTurla-NG backdoor used by Turla"
		author = "Sekoia.io"
		id = "019043bb-0212-4b73-bc93-03e9a746d28d"
		date = "2024-03-04"
		modified = "2024-12-19"
		reference = "https://blog.talosintelligence.com/tinyturla-next-generation/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backoor_win_tinyturla_ng.yar#L3-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "267071df79927abd1e57f57106924dd8a68e1c4ed74e7b69403cdcdf6e6a453b"
		hash = "d6ac21a409f35a80ba9ccfe58ae1ae32883e44ecc724e4ae8289e7465ab2cf40"
		logic_hash = "a2fe2187e0cdd02fa31cbbecd600d044d4d12788ea6f76086aef7e77cbf232a0"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "delkill /F /IM explENT_USER\\Softwar"
		$ = "Set-PSReadLineOption -HistorySaveStyle SaveNothing"
		$ = "changeshell"
		$ = "chcp 437 > $null"
		$ = "powershell.exe -nologo"

	condition:
		uint16be( 0 ) == 0x4d5a and all of them or pe.imphash ( ) == "2240ae6f0dcbc0537836dfd9205a1f2b"
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$text"delkill /F /IM explENT_USER\\Softwar"
$text"Set-PSReadLineOption -HistorySaveStyle SaveNothing"
$text"changeshell"
$text"chcp 437 > $null"
$text"powershell.exe -nologo"

Condition

uint16be( 0 ) == 0x4d5a and all of them or pe.imphash ( ) == "2240ae6f0dcbc0537836dfd9205a1f2b"

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in the rule must match.
  • Uses the pe module.
  • Checks the PE import hash (imphash).

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).

  • 267071df79927abd1e57f57106924dd8a68e1c4ed74e7b69403cdcdf6e6a453b
  • d6ac21a409f35a80ba9ccfe58ae1ae32883e44ecc724e4ae8289e7465ab2cf40

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: 019043bb-0212-4b73-bc93-03e9a746d28d

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Tiny Turla rules