Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Oilrig_Saitama_Backdoor_May2022

Detects tje Saitama backdoor

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

What this rule detects

Detects tje Saitama backdoor

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-oilrig-saitama-backdoor-may2022.yarDetection Rule License 1.1
rule SEKOIA_Apt_Oilrig_Saitama_Backdoor_May2022 : FILE
{
	meta:
		description = "Detects tje Saitama backdoor"
		author = "Sekoia.io"
		id = "4ea8c27f-c441-4616-a29b-2b5dfdd3bd20"
		date = "2022-05-13"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_oilrig_saitama_backdoor_may2022.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b3876995fde9c26052c39859684cec05e8c1bc8e2a62946b49ed328e84499dc6"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = { 7E [4] 7E [4] 59 0A 02 8E 69 06 28 [4] D1 0B 02 16 7E [4] 7E [4] 07 }
		$ = "systeminfo | findstr" wide
		$ = "powershell -exec bypass -enc" wide
		$ = "SendAndReceive : {0}" wide
		$ = "SleepSecond : Start" wide

	condition:
		uint16be( 0 ) == 0x4d5a and 2 of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$hex{ 7E [4] 7E [4] 59 0A 02 8E 69 06 28 [4] D1 0B 02 16 7E [4] 7E [4] 07 }
$text"systeminfo | findstr"wide
$text"powershell -exec bypass -enc"wide
$text"SendAndReceive : {0}"wide
$text"SleepSecond : Start"wide

Condition

uint16be( 0 ) == 0x4d5a and 2 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 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: 4ea8c27f-c441-4616-a29b-2b5dfdd3bd20

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE