YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Nekostealer
Detect the NekoStealer infostealer based on specific strings
- Author
- Sekoia.io
- Date
- 2023-01-24
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the NekoStealer infostealer based on specific strings
Targets: Windows PE.
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-nekostealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Nekostealer : FILE
{
meta:
= "Detect the NekoStealer infostealer based on specific strings"
= "Sekoia.io"
= "8b7d2708-9d33-4855-8e02-f6afedb7dda8"
= "2023-01-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_nekostealer.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "f027775bebb48ceb128392040ec2ac8ad84f2a2009760c040e4d376c2f06b663"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$nek = "NekoStealer.Stealing" ascii
$str01 = "\\Local Storage\\leveldb" wide
$str02 = "======================= Discord Tokens =======================" wide
$str03 = "======================== IP Information ========================" wide
$str04 = "https://ipapi.co/" wide
condition:
uint16( 0 ) == 0x5A4D and ( #nek > 10 or all of ( $str* ) )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $nek | text | "NekoStealer.Stealing" | ascii |
| $str01 | text | "\\Local Storage\\leveldb" | wide |
| $str02 | text | "======================= Discord Tokens =======================" | wide |
| $str03 | text | "======================== IP Information ========================" | wide |
| $str04 | text | "https://ipapi.co/" | wide |
Condition
uint16( 0 ) == 0x5A4D and ( #nek > 10 or all of ( $str* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $str* ) must match.
- Pattern $nek must occur > 10 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.
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: 8b7d2708-9d33-4855-8e02-f6afedb7dda8
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