Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Bot_Lin_Kinsing_Strings

Catch Kinsing malware based on strings

MalwareKinsingSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-11-24
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Catch Kinsing malware based on strings

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

bot-lin-kinsing-strings.yarDetection Rule License 1.1
rule SEKOIA_Bot_Lin_Kinsing_Strings : FILE
{
	meta:
		description = "Catch Kinsing malware based on strings"
		author = "Sekoia.io"
		id = "ce41b6d0-bc22-4a85-a3bb-ed3234871524"
		date = "2023-11-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/bot_lin_kinsing_strings.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "164b22734541d43047a2ea868cf0a269efe69c64a6392030168f4d391b1be777"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "MinerUrl" ascii
		$s2 = "main.masscan" ascii
		$s3 = "redisBrute" ascii
		$s4 = "ActiveC2CUrl" ascii
		$s5 = "main.getKi" ascii
		$s6 = "main.getMu" ascii
		$s7 = "tryToRunMiner" ascii
		$s8 = "main.kiLoader" ascii
		$s9 = "main.downloadAndExecute" ascii

	condition:
		uint32( 0 ) == 0x464c457f and all of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"MinerUrl"ascii
$s2text"main.masscan"ascii
$s3text"redisBrute"ascii
$s4text"ActiveC2CUrl"ascii
$s5text"main.getKi"ascii
$s6text"main.getMu"ascii
$s7text"tryToRunMiner"ascii
$s8text"main.kiLoader"ascii
$s9text"main.downloadAndExecute"ascii

Condition

uint32( 0 ) == 0x464c457f and all of them

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • 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: 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: ce41b6d0-bc22-4a85-a3bb-ed3234871524

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Kinsing rules