Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Svcready_Imports

Finds samples of the SVCReady loader

MalwareSvcreadySEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-06-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds samples of the SVCReady loader

Associated malware family: Svcready.

Targets: Windows PE.

It defines 2 patterns (2 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.

loader-win-svcready-imports.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Loader_Win_Svcready_Imports : FILE
{
	meta:
		description = "Finds samples of the SVCReady loader"
		author = "Sekoia.io"
		id = "e89aa736-acee-4881-b367-a9abfe9784ec"
		date = "2022-06-08"
		modified = "2024-12-19"
		reference = "https://threatresearch.ext.hp.com/svcready-a-new-loader-reveals-itself/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_svcready_imports.yar#L3-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f210c5363d19dbc822b8476f8ecfd86184af8f1c36819a6c868f171152e7cb74"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "Svc:RunPEDllNative" ascii
		$str1 = "RunPEDllNative::" ascii

	condition:
		uint16( 0 ) == 0x5A4D and filesize > 200KB and filesize < 2MB and pe.imports ( "GDI32.dll" , "Ellipse" ) and pe.imports ( "GDI32.dll" , "SelectObject" ) and pe.imports ( "GDI32.dll" , "GetStockObject" ) and pe.imports ( "GDI32.dll" ) == 3 and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$str0text"Svc:RunPEDllNative"ascii
$str1text"RunPEDllNative::"ascii

Condition

uint16( 0 ) == 0x5A4D and filesize > 200KB and filesize < 2MB and pe.imports ( "GDI32.dll" , "Ellipse" ) and pe.imports ( "GDI32.dll" , "SelectObject" ) and pe.imports ( "GDI32.dll" , "GetStockObject" ) and pe.imports ( "GDI32.dll" ) == 3 and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 2MB (a cheap guard that skips large files).
  • The file must be larger than 200KB.
  • All patterns in the rule must match.
  • Uses the pe module.
  • Checks imported functions or libraries.

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: e89aa736-acee-4881-b367-a9abfe9784ec

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE