YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Lazagne_Strings
Detects LaZagne hacktool based on strings
- 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:
= "Detects LaZagne hacktool based on strings"
= "Sekoia.io"
= "5a5e7a07-1252-48cc-ada5-46e796c4e00e"
= "2022-02-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_lazagne_strings.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "a6db351fee9a28b1a6d82c2ce063088a1050ee8379cc13ca3cf8cc2038043951"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $w1 | text | "lazagne.softwares" | |
| $w2 | text | "pypykatz.lsadecryptor" | |
| $l0 | text | "PyModule_GetDict" | |
| $l1 | text | "softwares.sysadmin.filezilla" | |
| $l2 | text | "softwares.walle" | |
| $l3 | text | "softwares.databases.sqldeveloper" | |
| $l4 | text | "softwares.wifi.wpa_supplicant" |
Condition
( uint32be( 0 ) == 0x7f454c46 and all of ( $l* ) ) or ( uint16be( 0 ) == 0x4d5a and all of ( $w* ) ) and filesize < 40MBIn 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09