Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Malware_Swordldr

Detects Swordldr. Maybe chunk_1 is too restrictive

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

What this rule detects

Detects Swordldr. Maybe chunk_1 is too restrictive

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-swordldr.yarDetection Rule License 1.1
rule SEKOIA_Malware_Swordldr : FILE
{
	meta:
		description = "Detects Swordldr. Maybe chunk_1 is too restrictive"
		author = "Sekoia.io"
		id = "4068c007-50f4-4913-a352-4a40dd4e452b"
		date = "2024-09-25"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_swordldr.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "d0cc758082e303275cbb8cd6b2048eff"
		hash = "7aa57da44718cd88f7d37b33a5d3ad74"
		logic_hash = "9e408181b9122925c0ff9efdaed688e659596b58b9108c0f280d9bc1624d73cb"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = { CC CC CC CC B0 01 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 02 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 03 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 04 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 05 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 06 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 07 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 08 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 09 C3 CC CC CC CC }
		$chunk_1 = {
        48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04
        }

	condition:
		uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$hex{ CC CC CC CC B0 01 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 02 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 03 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 04 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 05 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 06 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 07 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 08 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 09 C3 CC CC CC CC }
$chunk_1hex{ 48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04 }

Condition

uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in the rule must match.
  • Pattern $chunk_1 must occur > 5 times.

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

  • d0cc758082e303275cbb8cd6b2048eff
  • 7aa57da44718cd88f7d37b33a5d3ad74

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: 4068c007-50f4-4913-a352-4a40dd4e452b

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE