YARA · SEKOIA.IO Community
SEKOIA_Tool_Win_Gosecretsdump
Finds gosecretsdump EXE based on strings
- Author
- Sekoia.io
- Date
- 2024-06-10
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds gosecretsdump EXE based on strings
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
tool-win-gosecretsdump.yarDetection Rule License 1.1
rule SEKOIA_Tool_Win_Gosecretsdump : FILE
{
meta:
= "Finds gosecretsdump EXE based on strings"
= "Sekoia.io"
= "9225fe95-e37c-48ff-b5b5-680f255349bd"
= "2024-06-10"
= "2024-12-19"
= "https://github.com/C-Sto/gosecretsdump/releases"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_win_gosecretsdump.yar#L1-L27"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "957b0deae745e4fda5a790acc391cebf9d193efb2a19ad5eb18c54da8c17bcfa"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "github.com/C-Sto/gosecretsdump" ascii
$str02 = "/pkg/esent" ascii
$str03 = "/pkg/ditreader" ascii
$str04 = "/pkg/samreader" ascii
$str05 = "ntdsFileLocation" ascii
$str06 = "NTDSLoc" ascii
$str07 = "SAMEntries" ascii
$str08 = "SAMHashAES" ascii
$str09 = "NTLMHash" ascii
$str10 = "HasNoLMHashPolicy" ascii
$str11 = "PreviousIncBackup" ascii
$str12 = "Esent_record" ascii
condition:
uint16( 0 ) == 0x5A4D and 7 of them
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "github.com/C-Sto/gosecretsdump" | ascii |
| $str02 | text | "/pkg/esent" | ascii |
| $str03 | text | "/pkg/ditreader" | ascii |
| $str04 | text | "/pkg/samreader" | ascii |
| $str05 | text | "ntdsFileLocation" | ascii |
| $str06 | text | "NTDSLoc" | ascii |
| $str07 | text | "SAMEntries" | ascii |
| $str08 | text | "SAMHashAES" | ascii |
| $str09 | text | "NTLMHash" | ascii |
| $str10 | text | "HasNoLMHashPolicy" | ascii |
| $str11 | text | "PreviousIncBackup" | ascii |
| $str12 | text | "Esent_record" | ascii |
Condition
uint16( 0 ) == 0x5A4D and 7 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 7 patterns in the rule 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: 9225fe95-e37c-48ff-b5b5-680f255349bd
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