New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Detecting Privilege Escalation Attempts

Free

Proactively hunt for privilege escalation indicators.

Get this skill

Free · Opens the source repo

What Detecting Privilege Escalation Attempts does

Detecting Privilege Escalation Attempts is a Python-based skill designed for cybersecurity professionals focused on identifying and mitigating threats associated with privilege escalation. This skill is particularly useful for threat hunters, incident responders, and security analysts who need to monitor and analyze potential security breaches in both Windows and Linux environments. By leveraging this skill, users can efficiently detect various techniques employed by attackers, such as access token manipulation, UAC bypass, and unquoted service path abuse, among others.

The skill operates by integrating with existing EDR and SIEM platforms, requiring telemetry and log data from systems like CrowdStrike, Splunk, and Sysmon. Users can formulate hypotheses based on threat intelligence and execute detection queries to gather relevant event data. The structured workflow allows for thorough analysis and validation of findings, ensuring that security teams can distinguish between genuine threats and false positives effectively. This proactive approach to threat hunting is essential for maintaining robust security postures in organizations.

In addition to its detection capabilities, the skill provides a framework for documenting and reporting findings, which is crucial during incident response and security assessments. By correlating detected activities with known attack patterns and techniques from the MITRE ATT&CK framework, users can enhance their understanding of threat actor behaviors and improve their overall detection coverage. This skill is an invaluable asset for teams engaged in purple team exercises, where collaboration between offensive and defensive security practices is paramount.

When to use it

Use this skill during threat hunting, incident response, or security assessments when investigating privilege escalation techniques.

When not to use it

It may not be suitable for environments lacking the necessary EDR or SIEM infrastructure.

What you can build with it

Hunting for UAC Bypass

Utilize the skill to identify attempts to bypass User Account Control during security assessments.

Investigating EDR Alerts

Respond to alerts from EDR platforms by running detection queries to validate suspicious privilege changes.

Assessing Incident Response Capabilities

Use the skill during incident response to scope potential compromises related to privilege escalation.

How to install Detecting Privilege Escalation Attempts

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/detecting-privilege-escalation-attempts --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 Privilege Escalation Attempts

When to Use

  • When proactively hunting for indicators of detecting privilege escalation attempts in the environment
  • After threat intelligence indicates active campaigns using these techniques
  • During incident response to scope compromise related to these techniques
  • When EDR or SIEM alerts trigger on related indicators
  • During periodic security assessments and purple team exercises

Prerequisites

  • EDR platform with process and network telemetry (CrowdStrike, MDE, SentinelOne)
  • SIEM with relevant log data ingested (Splunk, Elastic, Sentinel)
  • Sysmon deployed with comprehensive configuration
  • Windows Security Event Log forwarding enabled
  • Threat intelligence feeds for IOC correlation

Workflow

  1. Formulate Hypothesis: Define a testable hypothesis based on threat intelligence or ATT&CK gap analysis.
  2. Identify Data Sources: Determine which logs and telemetry are needed to validate or refute the hypothesis.
  3. Execute Queries: Run detection queries against SIEM and EDR platforms to collect relevant events.
  4. Analyze Results: Examine query results for anomalies, correlating across multiple data sources.
  5. Validate Findings: Distinguish true positives from false positives through contextual analysis.
  6. Correlate Activity: Link findings to broader attack chains and threat actor TTPs.
  7. Document and Report: Record findings, update detection rules, and recommend response actions.

Key Concepts

ConceptDescription
T1134Access Token Manipulation
T1548.002UAC Bypass
T1068Exploitation for Privilege Escalation
T1574.009Unquoted Service Path

Tools & Systems

ToolPurpose
CrowdStrike FalconEDR telemetry and threat detection
Microsoft Defender for EndpointAdvanced hunting with KQL
Splunk EnterpriseSIEM log analysis with SPL queries
Elastic SecurityDetection rules and investigation timeline
SysmonDetailed Windows event monitoring
VelociraptorEndpoint artifact collection and hunting
Sigma RulesCross-platform detection rule format

Common Scenarios

  1. Scenario 1: Potato exploit for SYSTEM token impersonation
  2. Scenario 2: Fodhelper.exe UAC bypass technique
  3. Scenario 3: PrintSpoofer privilege escalation from service to SYSTEM
  4. Scenario 4: CVE kernel exploit for local privilege escalation

Output Format

Hunt ID: TH-DETECT-[DATE]-[SEQ]
Technique: T1134
Host: [Hostname]
User: [Account context]
Evidence: [Log entries, process trees, network data]
Risk Level: [Critical/High/Medium/Low]
Confidence: [High/Medium/Low]
Recommended Action: [Containment, investigation, monitoring]

Frequently asked questions about Detecting Privilege Escalation Attempts

Similar skills