CB detecting-privilege-escalation-attempts
Detect privilege escalation attempts across Windows and Linux, including access token manipulation, UAC bypass, unquoted service path abuse, kernel exploits, and sudo/doas abuse. Use when threat hunting for T1068-style privilege escalation, triaging EDR/SIEM alerts on suspicious privilege changes, scoping compromise during incident response, or validating detection coverage in a purple team exercise.
Detect privilege escalation attempts across Windows and Linux, including access token manipulation, UAC bypass, unquoted service path abuse, kernel exploits…
As a process B 75/100 · Nearly there — weak spots: failures and branches, running it twice
How to improve
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 15
✓ No critical or high findings
Medium and low: 15
-
low Risky intent
intent-offensive-securityassets/template.md:1Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)# Detecting Privilege Escalation Attempts - Hunt Template
detector -
low Risky intent
intent-offensive-securityassets/template.md:24Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- [ ] T1068 - Exploitation for Privilege Escalation
-
low Risky intent
intent-offensive-securityreferences/api-reference.md:1Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)# API Reference: Detecting Privilege Escalation Attempts
detector -
low Risky intent
intent-offensive-securityreferences/api-reference.md:3Offensive-security / dual-use content (legitimate for authorised testing; review intended use)## Windows Privilege Escalation Techniques
-
low Risky intent
intent-offensive-securityreferences/api-reference.md:13Offensive-security / dual-use content (legitimate for authorised testing; review intended use)## Linux Privilege Escalation Techniques
-
low Risky intent
intent-offensive-securityreferences/standards.md:1Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)# Standards and References - Detecting Privilege Escalation Attempts
detector -
low Risky intent
intent-offensive-securityreferences/standards.md:9Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| T1068 | Exploitation for Privilege Escalation | See attack.mitre.org/techniques/T1068 |
-
low Risky intent
intent-offensive-securityreferences/standards.md:39Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- Atomic Red Team Tests: https://github.com/redcanaryco/atomic-red-team
-
low Risky intent
intent-offensive-securityreferences/workflows.md:1Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)# Detailed Hunting Workflow - Detecting Privilege Escalation Attempts
detector -
low Risky intent
intent-offensive-securityreferences/workflows.md:48Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- Trace lateral movement and privilege escalation paths
-
low Risky intent
intent-offensive-securitySKILL.md:3Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)description: Detect privilege escalation attempts across Windows and Linux, including access token manipulation, UAC bypass, unquoted service path abuse, kernel exploits, and sudo/doas abuse. Use when
detector -
low Risky intent
intent-offensive-securitySKILL.md:35Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)# Detecting Privilege Escalation Attempts
detector -
low Risky intent
intent-offensive-securitySKILL.md:39Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)- When proactively hunting for indicators of detecting privilege escalation attempts in the environment
detector -
low Risky intent
intent-offensive-securitySKILL.md:69Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| T1068 | Exploitation for Privilege Escalation |
-
low Risky intent
intent-offensive-securitySKILL.md:88Offensive-security / dual-use content (legitimate for authorised testing; review intended use)3. **Scenario 3**: PrintSpoofer privilege escalation from service to SYSTEM
Files scanned: 8. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- note
frontmatter-keyunknown frontmatter key "domain" - note
frontmatter-keyunknown frontmatter key "subdomain" - note
frontmatter-keyunknown frontmatter key "d3fend_techniques" - note
frontmatter-keyunknown frontmatter key "nist_csf" - note
frontmatter-keyunknown frontmatter key "mitre_attack"
Process rating: all ten parameters 75/100
- 0Failures and branches. Linear process with no failure handling
- 30Running it twice. 1 mutating operations with no state check
- 60Result and completion. Output format stated, no completion criterion
- 70When it triggers. States when to use, but not when not to
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Tools and files. No external tools needed
- 100Steps. 21 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 693 tokens
- 100Progress reporting. Reports progress
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- -43 reference files, but SKILL.md never points to them: the model will not open them
- -32 of 2 scripts are never mentioned in SKILL.md
- +2Single-language instructions
- +3Description length 403: enough signal without eating the budget
- +4Structure: 8 headings
- +3Step-by-step instructions: 21 items
- +3Output format is stated explicitly
- +4Has examples (1 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 78.