YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Lighting
Detect the Lighting infostealer based on specific strings
- Author
- Sekoia.io
- Date
- 2022-04-07
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detect the Lighting infostealer based on specific strings
Targets: Windows PE.
It defines 22 patterns (22 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-lighting.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Lighting : FILE
{
meta:
= "Detect the Lighting infostealer based on specific strings"
= "Sekoia.io"
= "3c160c16-f417-4fa2-aa44-fb7b981fb2b3"
= "2022-04-07"
= "2024-12-19"
= "https://blog.cyble.com/2022/04/05/inside-lightning-stealer/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_lighting.yar#L1-L40"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "1c1d39ce886a433a352c55bf436b959ef528ad7ce38027243ed5b5f1ac79822f"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str0 = "\\logins.json" wide
$str1 = "key3.db" wide
$str2 = "\\key4.db" wide
$str3 = "cert9.db" wide
$str4 = "\\places.sqlite" wide
$str5 = "7D78CB380BF5EFB7B851409CA6A875F77DECF09D19B9149DA17A3EBF674BC0F9" ascii
$str6 = "potentiallyVulnerablePasswords" wide
$dll0 = "\\mozglue.dll" wide
$dll1 = "\\nss3.dll" wide
$dll2 = "SbieDll.dll" wide
$app00 = "\\discord\\Local Storage\\leveldb\\" wide
$app01 = "Software\\Valve\\Steam" wide
$app02 = "Telegram Desktop\\tdata" wide
$app03 = "\\Wallets\\Armory\\" wide
$app04 = "\\Wallets\\Atomic\\Local Storage\\leveldb\\" wide
$app05 = "\\Exodus\\exodus.wallet\\" wide
$app06 = "\\Wallets\\Zcash\\" wide
$app07 = "uCozMedia\\Uran" wide
$app08 = "Comodo\\IceDragon" wide
$app09 = "8pecxstudios\\Cyberfox" wide
$app10 = "NETGATE Technologies\\BlackHaw" wide
$app11 = "Moonchild Productions\\Pale Moon" wide
condition:
uint16( 0 ) == 0x5A4D and 6 of ( $str* ) and all of ( $dll* ) and 10 of ( $app* )
}
Strings (22 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str0 | text | "\\logins.json" | wide |
| $str1 | text | "key3.db" | wide |
| $str2 | text | "\\key4.db" | wide |
| $str3 | text | "cert9.db" | wide |
| $str4 | text | "\\places.sqlite" | wide |
| $str5 | text | "7D78CB380BF5EFB7B851409CA6A875F77DECF09D19B9149DA17A3EBF674BC0F9" | ascii |
| $str6 | text | "potentiallyVulnerablePasswords" | wide |
| $dll0 | text | "\\mozglue.dll" | wide |
| $dll1 | text | "\\nss3.dll" | wide |
| $dll2 | text | "SbieDll.dll" | wide |
| $app00 | text | "\\discord\\Local Storage\\leveldb\\" | wide |
| $app01 | text | "Software\\Valve\\Steam" | wide |
| $app02 | text | "Telegram Desktop\\tdata" | wide |
| $app03 | text | "\\Wallets\\Armory\\" | wide |
| $app04 | text | "\\Wallets\\Atomic\\Local Storage\\leveldb\\" | wide |
| $app05 | text | "\\Exodus\\exodus.wallet\\" | wide |
| $app06 | text | "\\Wallets\\Zcash\\" | wide |
| $app07 | text | "uCozMedia\\Uran" | wide |
| $app08 | text | "Comodo\\IceDragon" | wide |
| $app09 | text | "8pecxstudios\\Cyberfox" | wide |
| $app10 | text | "NETGATE Technologies\\BlackHaw" | wide |
| $app11 | text | "Moonchild Productions\\Pale Moon" | wide |
Condition
uint16( 0 ) == 0x5A4D and 6 of ( $str* ) and all of ( $dll* ) and 10 of ( $app* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $dll* ) must match.
- At least 6 patterns in ( $str* ) must match.
- At least 10 patterns in ( $app* ) 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.
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: 3c160c16-f417-4fa2-aa44-fb7b981fb2b3
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20