Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Hacktool_Lazagne_Strings

Detects LaZagne hacktool based on strings

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

What this rule detects

Detects LaZagne hacktool 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

hacktool-lazagne-strings.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Lazagne_Strings : FILE
{
	meta:
		description = "Detects LaZagne hacktool based on strings"
		author = "Sekoia.io"
		id = "5a5e7a07-1252-48cc-ada5-46e796c4e00e"
		date = "2022-02-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_lazagne_strings.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "a6db351fee9a28b1a6d82c2ce063088a1050ee8379cc13ca3cf8cc2038043951"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$w1 = "lazagne.softwares"
		$w2 = "pypykatz.lsadecryptor"
		$l0 = "PyModule_GetDict"
		$l1 = "softwares.sysadmin.filezilla"
		$l2 = "softwares.walle"
		$l3 = "softwares.databases.sqldeveloper"
		$l4 = "softwares.wifi.wpa_supplicant"

	condition:
		( uint32be( 0 ) == 0x7f454c46 and all of ( $l* ) ) or ( uint16be( 0 ) == 0x4d5a and all of ( $w* ) ) and filesize < 40MB
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$w1text"lazagne.softwares"
$w2text"pypykatz.lsadecryptor"
$l0text"PyModule_GetDict"
$l1text"softwares.sysadmin.filezilla"
$l2text"softwares.walle"
$l3text"softwares.databases.sqldeveloper"
$l4text"softwares.wifi.wpa_supplicant"

Condition

( uint32be( 0 ) == 0x7f454c46 and all of ( $l* ) ) or ( uint16be( 0 ) == 0x4d5a and all of ( $w* ) ) and filesize < 40MB

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.
  • The file must be smaller than 40MB (a cheap guard that skips large files).
  • All patterns in ( $l* ) must match.
  • All patterns in ( $w* ) 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: 5a5e7a07-1252-48cc-ada5-46e796c4e00e

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE