YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_Sentinelone_Remotepotato0_Privesc
Detects RemotePotato0 binary
Hack toolSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X (with warnings)
- Author
- SentinelOne
- Date
- 2021-04-26
- Modified
- 2023-12-05
- Score / Quality
- 75 / 79
What this rule detects
Detects RemotePotato0 binary
Targets: Windows PE.
It defines 5 patterns (4 text, 1 hex, 0 regex).
YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal
Summary generated from the rule's metadata and condition.
Rule source
hktl-sentinelone-remotepotato0-privesc.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_Sentinelone_Remotepotato0_Privesc : FILE
{
meta:
= "Detects RemotePotato0 binary"
= "SentinelOne"
= "f6dffd6b-e794-5c4a-9700-5c2022168f44"
= "2021-04-26"
= "2023-12-05"
= "https://labs.sentinelone.com/relaying-potatoes-dce-rpc-ntlm-relay-eop"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_remote_potato0.yar#L2-L17"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "f3a3a917908af6260f40b217f966750a095140abb6bf85cf3a728725bc16996f"
= 75
= 79
= "FILE"
strings:
$import1 = "CoGetInstanceFromIStorage"
$istorage_clsid = "{00000306-0000-0000-c000-000000000046}" nocase wide ascii
$meow_header = { 4d 45 4f 57 }
$clsid1 = "{11111111-2222-3333-4444-555555555555}" wide ascii
$clsid2 = "{5167B42F-C111-47A1-ACC4-8EABE61B0B54}" nocase wide ascii
condition:
( uint16( 0 ) == 0x5A4D ) and $import1 and $istorage_clsid and $meow_header and 1 of ( $clsid* )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $import1 | text | "CoGetInstanceFromIStorage" | |
| $istorage_clsid | text | "{00000306-0000-0000-c000-000000000046}" | nocase wide ascii |
| $meow_header | hex | { 4d 45 4f 57 } | |
| $clsid1 | text | "{11111111-2222-3333-4444-555555555555}" | wide ascii |
| $clsid2 | text | "{5167B42F-C111-47A1-ACC4-8EABE61B0B54}" | nocase wide ascii |
Condition
( uint16( 0 ) == 0x5A4D ) and $import1 and $istorage_clsid and $meow_header and 1 of ( $clsid* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $clsid* ) must match.
- Pattern $import1 must be present.
- Pattern $istorage_clsid must be present.
- Pattern $meow_header must be present.
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: SentinelOne
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: f6dffd6b-e794-5c4a-9700-5c2022168f44
Tags:FILE