Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Crime_H2Miner_Kinsing

Rule to find Kinsing malware

MalwareKinsingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Tony Lambert, Red Canary
Date
2020-06-09
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Rule to find Kinsing malware

Associated malware family: Kinsing.

Targets: Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

crime-h2miner-kinsing.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Crime_H2Miner_Kinsing : FILE
{
	meta:
		description = "Rule to find Kinsing malware"
		author = "Tony Lambert, Red Canary"
		id = "1cabca0d-7134-517e-b82e-f2b20b4d1c34"
		date = "2020-06-09"
		modified = "2023-12-05"
		reference = "https://github.com/Neo23x0/signature-base"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_h2miner_kinsing.yar#L1-L20"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "8795f01f4ce85ca37a4e4667a4ee9756dae6af42884cf79830877a5c35a3bd3b"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$s1 = "-iL $INPUT --rate $RATE -p$PORT -oL $OUTPUT"
		$s2 = "libpcap"
		$s3 = "main.backconnect"
		$s4 = "main.masscan"
		$s5 = "main.checkHealth"
		$s6 = "main.redisBrute"
		$s7 = "ActiveC2CUrl"
		$s8 = "main.RC4"
		$s9 = "main.runTask"

	condition:
		( uint32( 0 ) == 0x464C457F ) and filesize > 1MB and all of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"-iL $INPUT --rate $RATE -p$PORT -oL $OUTPUT"
$s2text"libpcap"
$s3text"main.backconnect"
$s4text"main.masscan"
$s5text"main.checkHealth"
$s6text"main.redisBrute"
$s7text"ActiveC2CUrl"
$s8text"main.RC4"
$s9text"main.runTask"

Condition

( uint32( 0 ) == 0x464C457F ) and filesize > 1MB and all of them

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be larger than 1MB.
  • All 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: Tony Lambert, Red Canary

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 1cabca0d-7134-517e-b82e-f2b20b4d1c34

Tags:FILE

More Kinsing rules