Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Cloudatlas_Init_Module_Virtualalloc

Find init module of CloudAtlas with params passed to VirtualAlloc

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

What this rule detects

Find init module of CloudAtlas with params passed to VirtualAlloc

Targets: Windows PE, Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-cloudatlas-init-module-virtualalloc.yarDetection Rule License 1.1
rule SEKOIA_Apt_Cloudatlas_Init_Module_Virtualalloc : FILE
{
	meta:
		description = "Find init module of CloudAtlas with params passed to VirtualAlloc"
		author = "Sekoia.io"
		id = "299ed681-9d1f-4b47-8389-ff5a608f49d4"
		date = "2023-09-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_cloudatlas_init_module_virtualalloc.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "02a1a9582f5ccf421b08c41c35049416b9cdefc9228daf6b38d95e9b0930cc5a"
		hash = "c7f19c7c295c86867ea7fa4597ba0cebe12f751753866e7298fd5d84676facc3"
		logic_hash = "31ffaeccc0b8fe36eea3b3a8200eff6a420b1a3937fd439dc84121654fcea502"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chunk_1 = {
        6A 40
        68 00 30 10 00
        8B 8D ?? ?? ?? ??
        8B 51 50
        52
        6A 00
        FF 15 ?? ?? ?? ??
        }

	condition:
		( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and $chunk_1 and filesize < 3MB
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$chunk_1hex{ 6A 40 68 00 30 10 00 8B 8D ?? ?? ?? ?? 8B 51 50 52 6A 00 FF 15 ?? ?? ?? ?? }

Condition

( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and $chunk_1 and filesize < 3MB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be smaller than 3MB (a cheap guard that skips large files).
  • Pattern $chunk_1 must be present.

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

  • 02a1a9582f5ccf421b08c41c35049416b9cdefc9228daf6b38d95e9b0930cc5a
  • c7f19c7c295c86867ea7fa4597ba0cebe12f751753866e7298fd5d84676facc3

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: 299ed681-9d1f-4b47-8389-ff5a608f49d4

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE