Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_PRV_Advancedrun

Detects NirSoft AdvancedRun privialge escalation tool

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects NirSoft AdvancedRun privialge escalation tool"
		author = "ditekSHen"
		id = "c886951a-7ee9-5d38-a724-3dbba8c6ec31"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L277-L289"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "3f39e8f0629647f44a2f473d7b49a8b6adb1acd62de36420b80e7820e63854bb"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"RunAsProcessName"fullword wide
$s2text"Process ID/Name:"fullword wide
$s3text"swinsta.dll"fullword wide
$s4text"User of the selected process0Child of selected process (Using code injection) Specified user name and password"fullword wide
$s5text"\"Current User - Allow UAC Elevation$Current User - Without UAC Elevation#Administrator (Force UAC Elevation)"fullword wide

Condition

uint16( 0 ) == 0x5a4d and 3 of them

In 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.

Open in editor

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).

Original rule

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