← Back to SOC feed Coverage →

Affect system token

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-04-22T09:00:00Z · Confidence: medium

Hunt Hypothesis

The hypothesis is that an adversary may be attempting to manipulate system tokens to escalate privileges or maintain persistence within the environment. A SOC team should proactively hunt for this behavior in Azure Sentinel to identify potential privilege escalation or persistence mechanisms that could lead to more severe compromises.

YARA Rule

rule win_token {
    meta:
        author = "x0r"
        description = "Affect system token"
    version = "0.1"
    strings:
        $f1 = "advapi32.dll" nocase
        $c1 = "DuplicateTokenEx"
        $c2 = "AdjustTokenPrivileges"
        $c3 = "OpenProcessToken"
        $c4 = "LookupPrivilegeValueA"
    condition:
        $f1 and 1 of ($c*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 5 string patterns in its detection logic.

False Positive Guidance

Original source: https://github.com/Yara-Rules/rules/blob/main/capabilities/capabilities.yar