Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Evilnumpayload_Fmtstr

Detect payload of EvilNum

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

What this rule detects

Detect payload of EvilNum

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

Summary generated from the rule's metadata and condition.

Rule source

evilnumpayload-fmtstr.yarDetection Rule License 1.1
rule SEKOIA_Evilnumpayload_Fmtstr
{
	meta:
		description = "Detect payload of EvilNum"
		author = "Sekoia.io"
		id = "980c58e4-e04d-4076-a92e-2c04ced19ece"
		date = "2022-07-25"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/evilnumpayload_fmtstr.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "7aa55d0677e58658bb76a2d7386a7434011b5f9b8c9de1b718c37f85907ddcc3"
		score = 75
		quality = 80
		tags = ""
		version = "1.1"
		classification = "TLP:CLEAR"

	strings:
		$fmtstr01 = "{\"v\":\"" ascii wide
		$fmtstr02 = ",\"u\":\"" ascii wide
		$fmtstr03 = ",\"a\":\"" ascii wide
		$fmtstr04 = ",\"w\":\"" ascii wide
		$fmtstr05 = ",\"d\":\"" ascii wide
		$fmtstr06 = ",\"n\":\"" ascii wide
		$fmtstr07 = ",\"r\":\"1\"" ascii wide
		$fmtstr08 = ",\"r\":\"0\"" ascii wide
		$fmtstr09 = ",\"xn\":\"" ascii wide
		$fmtstr10 = ",\"s\":0}" ascii wide
		$fmtstr11 = "{\"u\":\"" ascii wide
		$fmtstr12 = "\",\"sc\":1" ascii wide
		$fmtstr13 = ",\"dt\":\"" ascii wide

	condition:
		8 of ( $fmtstr* )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$fmtstr01text"{\"v\":\""ascii wide
$fmtstr02text",\"u\":\""ascii wide
$fmtstr03text",\"a\":\""ascii wide
$fmtstr04text",\"w\":\""ascii wide
$fmtstr05text",\"d\":\""ascii wide
$fmtstr06text",\"n\":\""ascii wide
$fmtstr07text",\"r\":\"1\""ascii wide
$fmtstr08text",\"r\":\"0\""ascii wide
$fmtstr09text",\"xn\":\""ascii wide
$fmtstr10text",\"s\":0}"ascii wide
$fmtstr11text"{\"u\":\""ascii wide
$fmtstr12text"\",\"sc\":1"ascii wide
$fmtstr13text",\"dt\":\""ascii wide

Condition

8 of ( $fmtstr* )

In plain words (Heuristic)

  • At least 8 patterns in ( $fmtstr* ) 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: 980c58e4-e04d-4076-a92e-2c04ced19ece

Metadata

version1.1
classificationTLP:CLEAR