YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_PRV_Advancedrun
Detects NirSoft AdvancedRun privialge escalation tool
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-09-25
- Score / Quality
- 75 / 75
What this rule detects
Detects NirSoft AdvancedRun privialge escalation tool
Targets: Windows PE.
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
indicator-tool-prv-advancedrun.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_PRV_Advancedrun : FILE
{
meta:
= "Detects NirSoft AdvancedRun privialge escalation tool"
= "ditekSHen"
= "c886951a-7ee9-5d38-a724-3dbba8c6ec31"
= "2020-11-06"
= "2024-09-25"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L277-L289"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "3f39e8f0629647f44a2f473d7b49a8b6adb1acd62de36420b80e7820e63854bb"
= 75
= 75
= "FILE"
strings:
$s1 = "RunAsProcessName" fullword wide
$s2 = "Process ID/Name:" fullword wide
$s3 = "swinsta.dll" fullword wide
$s4 = "User of the selected process0Child of selected process (Using code injection) Specified user name and password" fullword wide
$s5 = "\"Current User - Allow UAC Elevation$Current User - Without UAC Elevation#Administrator (Force UAC Elevation)" fullword wide
condition:
uint16( 0 ) == 0x5a4d and 3 of them
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "RunAsProcessName" | fullword wide |
| $s2 | text | "Process ID/Name:" | fullword wide |
| $s3 | text | "swinsta.dll" | fullword wide |
| $s4 | text | "User of the selected process0Child of selected process (Using code injection) Specified user name and password" | fullword wide |
| $s5 | text | "\"Current User - Allow UAC Elevation$Current User - Without UAC Elevation#Administrator (Force UAC Elevation)" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and 3 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 3 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.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: c886951a-7ee9-5d38-a724-3dbba8c6ec31
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekSHen· 2023-08-22
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21