Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Mul_Alchimist

Detect the Alchimist implant based on strings

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

What this rule detects

Detect the Alchimist implant based on strings

Targets: Windows PE, Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

implant-mul-alchimist.yarDetection Rule License 1.1
rule SEKOIA_Implant_Mul_Alchimist : FILE
{
	meta:
		description = "Detect the Alchimist implant based on strings"
		author = "Sekoia.io"
		id = "66330cc6-a7da-4717-9977-0cede48f46f5"
		date = "2022-10-18"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_mul_alchimist.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d4a5338c502b145a1d7ad9f35779e24d66ee2d11bf760d498aab39e2c62fbeb4"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "POST /users/loginpage.html HTTP/1.1" ascii
		$str02 = "pm3/apps/Insekt/main.go" ascii
		$str03 = "generate new insekt err" ascii
		$str04 = "[SHELLCODE][filesize]:[scan]" ascii
		$str05 = "\\Device\\NamedPipe\\cygwinbad" ascii
		$str06 = "pm3/utils.GetTmpDir" ascii
		$str07 = "os/exec.Command" ascii

	condition:
		( uint16( 0 ) == 0x5A4D or uint32( 0 ) == 0x464C457F ) and 5 of them
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$str01text"POST /users/loginpage.html HTTP/1.1"ascii
$str02text"pm3/apps/Insekt/main.go"ascii
$str03text"generate new insekt err"ascii
$str04text"[SHELLCODE][filesize]:[scan]"ascii
$str05text"\\Device\\NamedPipe\\cygwinbad"ascii
$str06text"pm3/utils.GetTmpDir"ascii
$str07text"os/exec.Command"ascii

Condition

( uint16( 0 ) == 0x5A4D or uint32( 0 ) == 0x464C457F ) and 5 of them

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.
  • At least 5 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: 66330cc6-a7da-4717-9977-0cede48f46f5

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE