New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Detecting T1548 Abuse

Free

Identify UAC bypass and privilege escalation attempts.

Get this skill

Free · Opens the source repo

What Detecting T1548 Abuse does

The Detecting T1548 Abuse Elevation Control Mechanism skill is designed for cybersecurity professionals focused on identifying and mitigating privilege escalation threats in Windows and Linux environments. This skill specifically targets the detection of abuse surrounding elevation control mechanisms, including User Account Control (UAC) bypasses on Windows systems and setuid/setgid exploits on Linux. It leverages Sysmon and Windows Security events to monitor critical activities such as registry changes, integrity-level transitions, and parent-child process relationships. By utilizing this skill, security teams can enhance their threat-hunting capabilities and ensure robust detection coverage against common attack vectors.

This skill is particularly valuable when investigating incidents where attackers may have gained administrative access without triggering UAC prompts. It provides a structured workflow for monitoring UAC registry modifications, detecting auto-elevating processes, and tracking integrity level changes. The skill also includes detection queries for platforms like Splunk and KQL, allowing users to implement effective monitoring strategies tailored to their specific environments. Additionally, it offers a comprehensive understanding of the tactics employed by threat actors, such as registry hijacking and the exploitation of auto-elevating binaries.

For organizations that have been alerted to the use of UAC bypass exploits by threat intelligence, this skill serves as a critical tool for validating existing detection mechanisms. During security assessments, it can be employed to ensure that controls are in place to detect and respond to elevation abuse effectively. By correlating findings with the broader attack chain, users can gain insights into how escalated privileges were leveraged and take appropriate actions to mitigate future risks.

When to use it

Use this skill when investigating potential privilege escalation incidents or validating detection coverage for UAC bypass techniques.

When not to use it

It may not be suitable for environments without Sysmon or where UAC is not applicable, such as non-Windows systems.

What you can build with it

Investigating UAC Bypass

A security analyst uses this skill to investigate a suspected UAC bypass incident, monitoring registry changes and process behaviors.

Validating Detection Coverage

During a security assessment, a team employs this skill to validate their detection mechanisms against known UAC bypass techniques.

Threat Intelligence Response

After receiving threat intelligence on UAC bypass exploits, a security team utilizes this skill to enhance their monitoring capabilities.

How to install Detecting T1548 Abuse

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/detecting-t1548-abuse-elevation-control-mechanism --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Detecting T1548 Abuse Elevation Control Mechanism

When to Use

  • When hunting for privilege escalation via UAC bypass in Windows environments
  • After threat intelligence indicates use of UAC bypass exploits by active threat groups
  • When investigating how attackers achieved administrative access without triggering UAC prompts
  • During security assessments to validate UAC bypass detection coverage
  • When monitoring for setuid/setgid abuse on Linux systems

Prerequisites

  • Sysmon Event ID 1 with command-line and parent process logging
  • Windows Security Event ID 4688 with process tracking
  • Registry auditing for UAC-related keys (HKCU\Software\Classes)
  • Sysmon Event ID 12/13 (Registry key/value modification)
  • EDR with elevation monitoring capabilities

Workflow

  1. Monitor UAC Registry Modifications: Many UAC bypasses modify registry keys under HKCU\Software\Classes\ms-settings\shell\open\command or HKCU\Software\Classes\mscfile\shell\open\command. Track Sysmon Events 12/13 for these changes.
  2. Detect Auto-Elevating Process Abuse: Certain Windows binaries auto-elevate without UAC prompts (fodhelper.exe, computerdefaults.exe, eventvwr.exe). Hunt for these being launched by non-standard parent processes.
  3. Track Process Integrity Level Changes: Monitor for processes escalating from medium to high integrity level without corresponding UAC consent events.
  4. Hunt for Elevated Process Spawning: Detect when auto-elevating processes spawn unexpected children (cmd.exe, powershell.exe) -- indicating UAC bypass exploitation.
  5. Monitor Linux Elevation Abuse: Track sudo misconfiguration exploitation, setuid binary abuse, and capability manipulation.
  6. Correlate with Privilege Escalation Chain: Map elevation abuse to the broader attack chain, identifying what was done with escalated privileges.

Key Concepts

ConceptDescription
T1548.002Bypass User Account Control
T1548.001Setuid and Setgid (Linux)
T1548.003Sudo and Sudo Caching
T1548.004Elevated Execution with Prompt (macOS)
UAC Auto-ElevationWindows binaries that elevate without prompt
fodhelper.exeCommon UAC bypass vector via registry hijack
eventvwr.exeMSC file handler UAC bypass
Integrity LevelWindows process trust level (Low/Medium/High/System)

Detection Queries

Splunk -- UAC Bypass via Registry Modification

index=sysmon (EventCode=12 OR EventCode=13)
| where match(TargetObject, "(?i)HKCU\\\\Software\\\\Classes\\\\(ms-settings|mscfile|exefile|Folder)\\\\shell\\\\open\\\\command")
| table _time Computer User EventCode TargetObject Details Image

Splunk -- Auto-Elevating Process Abuse

index=sysmon EventCode=1
| where match(Image, "(?i)(fodhelper|computerdefaults|eventvwr|sdclt|slui|cmstp)\.exe$")
| where NOT match(ParentImage, "(?i)(explorer|svchost|services)\.exe$")
| table _time Computer User Image CommandLine ParentImage ParentCommandLine

KQL -- UAC Bypass Detection

DeviceRegistryEvents
| where Timestamp > ago(7d)
| where RegistryKey has_any ("ms-settings\\shell\\open\\command", "mscfile\\shell\\open\\command")
| where ActionType == "RegistryValueSet"
| project Timestamp, DeviceName, RegistryKey, RegistryValueData, InitiatingProcessFileName

Sigma Rule

title: UAC Bypass via Registry Modification
status: stable
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|contains:
            - '\ms-settings\shell\open\command'
            - '\mscfile\shell\open\command'
            - '\exefile\shell\open\command'
    condition: selection
level: high
tags:
    - attack.privilege_escalation
    - attack.t1548.002

Common Scenarios

  1. fodhelper.exe Registry Hijack: Attacker sets HKCU\Software\Classes\ms-settings\shell\open\command to a malicious executable, then launches fodhelper.exe which auto-elevates and executes the hijacked command.
  2. eventvwr.exe MSC Bypass: Modifying HKCU\Software\Classes\mscfile\shell\open\command to intercept Event Viewer's auto-elevation behavior.
  3. sdclt.exe Bypass: Leveraging the Windows Backup utility's auto-elevation to execute arbitrary commands.
  4. CMSTP.exe INF Bypass: Using Connection Manager Profile Installer with a malicious INF file to bypass UAC via /s /ni flags.
  5. DLL Hijacking in Auto-Elevate: Placing malicious DLLs in search paths of auto-elevating executables.

Output Format

Hunt ID: TH-UAC-[DATE]-[SEQ]
Host: [Hostname]
Bypass Method: [Registry hijack/DLL hijack/Token manipulation]
Auto-Elevate Binary: [fodhelper.exe/eventvwr.exe/etc.]
Registry Key Modified: [Full registry path]
Payload Executed: [Command or binary path]
User Context: [Account]
Risk Level: [Critical/High/Medium]
ATT&CK Technique: [T1548.00x]

Frequently asked questions about Detecting T1548 Abuse

Similar skills