Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Gen_Empire_Onedrive_Stager

Detects the Empire OneDrive stager

Hack toolSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-01-26
Modified
2024-12-19
Score / Quality
75 / 76

What this rule detects

Detects the Empire OneDrive stager

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

Summary generated from the rule's metadata and condition.

Rule source

gen-empire-onedrive-stager.yarDetection Rule License 1.1
rule SEKOIA_Gen_Empire_Onedrive_Stager
{
	meta:
		description = "Detects the Empire OneDrive stager"
		author = "Sekoia.io"
		id = "2053416f-1f53-491e-9c70-787a04362d16"
		date = "2022-01-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/gen_empire_onedrive_stager.yar#L1-L16"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "90b3548cd3f4f7f936da70ec95dbe0ff3c1421d40a6e8557952d28d358b7c1f1"
		score = 75
		quality = 76
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$sleep = "Start-Sleep -Seconds $(($PI -as [Int])*2)" wide ascii nocase
		$down = "wc.DownloadData" wide ascii nocase

	condition:
		$down in ( @sleep .. @sleep + 1000 )
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$sleeptext"Start-Sleep -Seconds $(($PI -as [Int])*2)"wide ascii nocase
$downtext"wc.DownloadData"wide ascii nocase

Condition

$down in ( @sleep .. @sleep + 1000 )

In plain words (Heuristic)

  • Pattern $down must be found within the range @sleep .. @sleep + 1000.

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: 2053416f-1f53-491e-9c70-787a04362d16

Metadata

version1.0
classificationTLP:CLEAR