Source profileQuality 92/100

brucesongs/kali-claw/skills/privilege-escalation/SKILL.md

privilege-escalation

Privilege escalation is the process of elevating access from a low-privileged user context (standard user, service account, or limited shell) to root on Linux or SYSTEM/Administrator on Windows.

Source repository stars
67
Declared platforms
2
Static risk flags
1
Last source update
2026-08-19
Source checked
2026-08-28

Decision brief

What it does: where it fits

Supplementary Files: - payloads.md — Complete command reference organized by escalation vector: automated enumeration, SUID/GTFOBins exploitation, sudo abuse, capabilities, kernel exploits, Windows token impersonation, service path hijacking, DLL hijacking, and UAC bypass - test…

Best for

  • Low-privilege shell on Linux — Escalate from a www-data or standard user shell to root via SUID binaries, sudo misconfigurations, cron abuse, or kernel exploits
  • Low-privilege shell on Windows — Escalate from a standard user to SYSTEM or Administrator via token impersonation, service misconfigurations, or UAC bypass
  • Container escape context — Identify capabilities, SUID binaries, or host-mounted filesystems that enable breakout from a container to the host

Not for

  • Skipping enumeration: Jumping straight to exploitation without thorough enumeration leads to missed vectors and wasted time. Always complete the full enumeration phase before attempting any exploit.
  • Running linpeas as root: Running automated enumeration tools with elevated privileges defeats the purpose of identifying escalation vectors from the current user context.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/privilege-escalation"
Safe inspection promptEditorial

Inspect the Agent Skill "privilege-escalation" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/privilege-escalation/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Linux Escalation Workflow

    1. Run linpeas.sh -a for automated enumeration 2. Check sudo -l for misconfigured rules 3. Run find / -perm -4000 -type f 2/dev/null for SUID binaries 4. Run getcap -r / 2/dev/null for capabilities 5. Inspect /etc/crontab and crontab -l for cron abuse 6. Check cat /proc/version;…

    Run linpeas.sh -a for automated enumerationCheck sudo -l for misconfigured rulesRun find / -perm -4000 -type f 2/dev/null for SUID binaries
  2. 02

    Windows Escalation Workflow

    1. Run winPEAS.exe quiet cmd fast for automated enumeration 2. Check whoami /priv for exploitable token privileges 3. Run systeminfo for OS version and patch level 4. Check net user; net localgroup administrators for user context 5. Inspect sc qc for unquoted service paths 6. Ch…

    Run winPEAS.exe quiet cmd fast for automated enumerationCheck whoami /priv for exploitable token privilegesRun systeminfo for OS version and patch level
  3. 03

    Summary

    Privilege Escalation skill domain covering post exploitation operations.

    Privilege Escalation skill domain covering post exploitation operations.Tools: linpeas, winpeas, linux-exploit-suggester, pspy, GTFOBins, lolbas, sudo, capshDomain: post-exploitation
  4. 04

    Description

    Privilege escalation is the process of elevating access from a low-privileged user context (standard user, service account, or limited shell) to root on Linux or SYSTEM/Administrator on Windows. It is the critical bridge between initial foothold and full system control, determin…

    Privilege escalation is the process of elevating access from a low-privileged user context (standard user, service account, or limited shell) to root on Linux or SYSTEM/Administrator on Windows. It is the critical bridg…This skill covers the complete escalation workflow: automated enumeration with linpeas/winpeas, manual verification of misconfigurations, exploitation of SUID binaries via GTFOBins, sudo rule abuse, Linux capabilities e…Core objective: systematically identify and exploit every viable escalation path from the current user context to the highest privilege level on the target system.
  5. 05

    Prerequisites

    Before executing privilege escalation, ensure the following conditions are met:

    Established foothold — A low-privilege shell or session on the target system (Linux or Windows)Authorization — Written permission explicitly covering privilege escalation activities and credential harvestingSession stability — A reliable connection (reverse shell, SSH session, or RDP) with reasonable persistence

Permission review

Static risk signals and limitations

Writes files

medium · line 295

The documentation asks the agent to create, modify, or delete local files.

**Time-stomping**: Modify file timestamps with `timestomp` (Meterpreter) to match legitimate binaries.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars67SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
brucesongs/kali-claw
Skill path
skills/privilege-escalation/SKILL.md
Commit
a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Skill: Privilege Escalation

Supplementary Files:

  • payloads.md — Complete command reference organized by escalation vector: automated enumeration, SUID/GTFOBins exploitation, sudo abuse, capabilities, kernel exploits, Windows token impersonation, service path hijacking, DLL hijacking, and UAC bypass
  • test-cases.md — Structured test case templates (TC-PE-001 to TC-PE-008) covering Linux and Windows privilege escalation scenarios with severity ratings and expected results

Summary

Privilege Escalation skill domain covering post exploitation operations.

Tools: linpeas, winpeas, linux-exploit-suggester, pspy, GTFOBins, lolbas, sudo, capsh

Domain: post-exploitation

MITRE ATT&CK: TA0004-Privilege Escalation

Description

Privilege escalation is the process of elevating access from a low-privileged user context (standard user, service account, or limited shell) to root on Linux or SYSTEM/Administrator on Windows. It is the critical bridge between initial foothold and full system control, determining the depth and impact of a penetration test or red team engagement.

This skill covers the complete escalation workflow: automated enumeration with linpeas/winpeas, manual verification of misconfigurations, exploitation of SUID binaries via GTFOBins, sudo rule abuse, Linux capabilities exploitation, cron job hijacking, kernel exploit identification and safe execution, and Windows-specific vectors including token impersonation, unquoted service paths, DLL hijacking, AlwaysInstallElevated, and UAC bypass techniques.

Core objective: systematically identify and exploit every viable escalation path from the current user context to the highest privilege level on the target system.


Prerequisites

Before executing privilege escalation, ensure the following conditions are met:

  1. Established foothold — A low-privilege shell or session on the target system (Linux or Windows)
  2. Authorization — Written permission explicitly covering privilege escalation activities and credential harvesting
  3. Session stability — A reliable connection (reverse shell, SSH session, or RDP) with reasonable persistence
  4. Tool transfer capability — Ability to upload enumeration scripts and exploitation tools to the target
  5. Operational awareness — Understanding of the target environment (production vs. test, criticality level, allowed impact)

Use Cases

  1. Low-privilege shell on Linux — Escalate from a www-data or standard user shell to root via SUID binaries, sudo misconfigurations, cron abuse, or kernel exploits
  2. Low-privilege shell on Windows — Escalate from a standard user to SYSTEM or Administrator via token impersonation, service misconfigurations, or UAC bypass
  3. Container escape context — Identify capabilities, SUID binaries, or host-mounted filesystems that enable breakout from a container to the host
  4. Domain environment escalation — Leverage local privilege escalation as a stepping stone to domain-level compromise through credential harvesting and lateral movement
  5. Red team assessment depth — Demonstrate the full impact of an initial compromise by reaching the highest privilege level, proving that the foothold leads to complete system control

Variants

Escalation TypePlatformRisk LevelTypical Vector
SUID Binary ExploitationLinuxMediumNon-standard SUID binary with GTFOBins entry
sudo MisconfigurationLinuxMediumNOPASSWD, wildcard, LD_PRELOAD rules
Capabilities AbuseLinuxMediumcap_setuid, cap_dac_read_search on exploitable binary
Cron Job HijackingLinuxMediumWritable cron script or PATH hijack
Kernel ExploitLinuxHighKnown CVE matching running kernel version
NFS no_root_squashLinuxMediumExported filesystem with root_squash disabled
Docker/LXC GroupLinuxMediumUser in docker group can escape to host root
Token ImpersonationWindowsMediumSeImpersonatePrivilege / Potato attacks
Service Path HijackWindowsMediumUnquoted service path with writable directory
DLL HijackingWindowsMediumWritable directory in DLL search order
AlwaysInstallElevatedWindowsMediumMSI packages install as SYSTEM
UAC BypassWindowsLowAuto-elevation of built-in Windows binaries
Stored CredentialsWindowsLowCredentials in registry, files, or vault

Core Tools

ToolPurposeCommand Example
linpeasAutomated Linux privilege escalation enumeration; checks SUID, sudo, capabilities, cron, NFS, kernel, and hundreds of misconfiguration vectors./linpeas.sh -a 2>/dev/null | tee linpeas.out
winpeasAutomated Windows privilege escalation enumeration; checks services, tokens, registry, UAC, stored credentials, and DLL hijacking paths.\winPEAS.exe quiet cmd fast
linux-exploit-suggesterKernel version-based exploit recommendation; maps running kernel to known CVEs with reliability ratings./linux-exploit-suggester.sh --uname "5.4.0"
pspyMonitor running processes without root; discover cron jobs, scheduled tasks, and hidden root processes in real time./pspy64 -pf -i 1000
GTFOBinsReference database of Unix binaries exploitable for privilege escalation through SUID, sudo, or capabilitiesReference: https://gtfobins.github.io
lolbasReference database of Windows living-off-the-land binaries usable for escalation, execution, or credential accessReference: https://lolbas-project.github.io
sudoExploit sudo misconfigurations: NOPASSWD entries, wildcard injection, env_keep, and rule-based bypassessudo -l; sudo /usr/bin/vim -c ':!/bin/bash'
capshEnumerate and decode Linux capabilities on binaries; identify exploitable capability assignmentscapsh --print; getcap -r / 2>/dev/null

Methodology

Attack Chain

Enumeration                    Identification                 Exploitation
(linpeas, winpeas,           (sudo -l, SUID find,           (GTFOBins, kernel exploit,
 manual checks)               getcap, pspy)                  token impersonation)
      |                              |                              |
      v                              v                              v
                           Escalation                    Persistence & Documentation
                           (root/SYSTEM shell)           (document path, clean artifacts)

Phase details:

  1. Enumerate — Run linpeas (Linux) or winpeas (Windows) for automated enumeration. Collect system information: kernel version, OS release, running processes, installed packages, network configuration, and user context. This phase casts the widest possible net to identify all potential escalation vectors.

  2. Identify — Manually verify and prioritize the enumeration findings. Check sudo permissions (sudo -l), locate SUID binaries (find / -perm -4000), enumerate capabilities (getcap -r /), inspect cron jobs (/etc/crontab, crontab -l), and review running services. On Windows, examine token privileges (whoami /priv), service configurations, registry keys, and UAC settings. Prioritize vectors by reliability and impact.

  3. Exploit — Apply the appropriate exploitation technique for the identified vector. Use GTFOBins for SUID/sudo binary exploitation, linux-exploit-suggester output for kernel-level attacks, token impersonation for Windows privilege abuse, or lolbas techniques for living-off-the-land escalation. Execute with caution, especially for kernel exploits which can destabilize the target.

  4. Escalate — Achieve root (Linux) or SYSTEM/Administrator (Windows) access through the exploited vector. Verify the escalation with id or whoami commands. Harvest credentials from the elevated context for further lateral movement if within scope.

  5. Persist — Document the complete escalation path including every command executed, every file modified, and every vulnerability exploited. Record the before/after privilege context. Clean up any artifacts (uploaded tools, temporary files) unless persistence testing is explicitly authorized.

Defense Perspective

Defense MeasureEscalation Vector MitigatedDescription
Principle of Least PrivilegeSUID, sudo, capabilitiesRemove unnecessary SUID bits, restrict sudo rules, drop unused capabilities
Kernel PatchingKernel exploitsMaintain current kernel versions; apply security patches promptly
Credential Guard / LSA ProtectionToken impersonationProtect LSASS memory; prevent SeDebugPrivilege abuse
UAC ConfigurationUAC bypassSet UAC to "Always Notify"; restrict auto-elevation for built-in accounts
Service HardeningService path, DLL hijackingQuote all service paths; use explicit paths; implement DLL search order
File Integrity MonitoringSUID/cron modificationAlert on changes to SUID bits, cron files, and system binaries
Application Whitelistinglolbas/GTFOBins abuseRestrict executable locations; block unapproved binaries

Practical Steps

Linux Escalation Workflow

  1. Run linpeas.sh -a for automated enumeration
  2. Check sudo -l for misconfigured rules
  3. Run find / -perm -4000 -type f 2>/dev/null for SUID binaries
  4. Run getcap -r / 2>/dev/null for capabilities
  5. Inspect /etc/crontab and crontab -l for cron abuse
  6. Check cat /proc/version; uname -r for kernel exploits
  7. Run linux-exploit-suggester.sh to map kernel CVEs
  8. Verify with pspy64 for hidden scheduled processes
  9. Exploit highest-reliability vector first
  10. Confirm with id showing uid=0(root)

Windows Escalation Workflow

  1. Run winPEAS.exe quiet cmd fast for automated enumeration
  2. Check whoami /priv for exploitable token privileges
  3. Run systeminfo for OS version and patch level
  4. Check net user; net localgroup administrators for user context
  5. Inspect sc qc <service> for unquoted service paths
  6. Check registry for AlwaysInstallElevated and stored credentials
  7. Run accesschk.exe for writable service directories
  8. Exploit token impersonation if SeImpersonatePrivilege present
  9. Attempt UAC bypass if standard user can auto-elevate
  10. Confirm with whoami showing SYSTEM or Administrator

Key Decisions

  • Kernel exploit as last resort: Kernel exploits carry the highest risk of system instability or crash. Always attempt misconfiguration-based escalation (SUID, sudo, cron, services) before kernel exploits. If a kernel exploit is necessary, verify the target kernel version precisely and test in an identical environment first when possible.
  • Enumeration depth vs. stealth: Automated tools like linpeas and winpeas are thorough but noisy. In stealth-sensitive engagements, use manual enumeration commands selectively. In standard penetration tests, run automated tools for comprehensive coverage and document all findings.
  • Living-off-the-land vs. uploaded tools: Prefer GTFOBins/lolbas techniques using existing system binaries over uploading custom exploits. System binaries are less likely to trigger antivirus or EDR alerts, and they leave fewer artifacts on disk.

Quality Criteria

  • Every escalation path must be documented with step-by-step reproduction instructions
  • Before and after privilege levels must be captured (screenshots of id / whoami output)
  • All attempted vectors must be reported, including failed attempts — they reveal defense effectiveness
  • Kernel exploit usage must include justification for why safer alternatives were insufficient
  • Cleanup of all uploaded tools and temporary modifications must be verified before disconnection
  • All findings must be mapped to MITRE ATT&CK technique IDs for standardized reporting

Escalation Priority Matrix

PriorityVectorWhy
1 (Try first)SUID/GTFOBins, sudo misconfigReliable, no system risk, fast
2Capabilities, cron abuseReliable, requires specific conditions
3Service misconfigurations (Windows)Moderate reliability, environment-dependent
4Token impersonation (Windows)Highly reliable when SeImpersonate present
5 (Last resort)Kernel exploitsHigh crash risk, version-specific

Rule: Never attempt a kernel exploit until all misconfiguration vectors have been exhausted and documented.


Common Pitfalls

  • Running linpeas/winpeas without reviewing output context: These tools produce hundreds of lines of output flagged with color codes. Blindly following the first highlighted finding without understanding the system context can waste time on false positives. Cross-reference tool findings with manual verification before attempting exploitation.
  • Attempting kernel exploits without version verification: A single kernel version digit difference can mean the exploit will crash the target instead of elevating privileges. Always verify the exact kernel version with uname -r and cross-reference with the exploit's supported range.
  • Ignoring operational security during escalation: Running privilege escalation tools modifies filesystem timestamps, creates log entries, and may trigger EDR alerts. Maintain a modification log and plan cleanup before executing escalation commands.

Anti-Patterns

  • Skipping enumeration: Jumping straight to exploitation without thorough enumeration leads to missed vectors and wasted time. Always complete the full enumeration phase before attempting any exploit.
  • Running linpeas as root: Running automated enumeration tools with elevated privileges defeats the purpose of identifying escalation vectors from the current user context.
  • Ignoring failed exploits: Failed exploitation attempts provide valuable intelligence about defensive controls. Document every attempt with the exact error or behavior observed.
  • Kernel exploit on production: Kernel exploits can cause system panics and reboots. Obtain explicit written authorization and schedule during maintenance windows for production targets.
  • Neglecting cleanup: Leaving enumeration scripts, modified SUID binaries, or temporary cron entries on the target creates evidence and potential instability.

Reporting and Documentation

Privilege escalation reports must include: the initial user context and privilege level, the enumeration methodology (automated + manual), every escalation vector identified, the vector successfully exploited, step-by-step reproduction commands, proof of escalation (screenshots), and recommended remediation for each identified vector. Map all techniques to MITRE ATT&CK technique IDs (e.g., T1548.001 — Abuse Elevation Control Mechanism: Setuid and Setgid). Document the risk rating for each finding based on exploitability and impact.


Troubleshooting

ProblemCauseSolution
linpeas output is overwhelmingToo many findings to parseUse grep filters: linpeas.out | grep -i "peass|suid|sudo"
SUID binary not in GTFOBinsCustom or uncommon binaryCheck binary with strings, ltrace, strace for exploitable behavior
sudo exploit fails after sudo -l shows vulnerabilityEnvironment variables or PATH issuesUse sudo -V to check version; try absolute paths
Kernel exploit compilation failsMissing gcc or headersCross-compile on attacker machine; use static binary
Token impersonation returns access deniedPatched OS or EDR blockingCheck Windows build; try alternative Potato variant; check EDR logs
Cron payload not executingWrong schedule or permissionVerify with pspy; check cron log: grep CRON /var/log/syslog
getcap returns emptyNo capabilities set or filesystem mounted nosuidFall back to SUID/sudo vectors; check mount options with mount | grep nosuid

Legal and Ethical Considerations

Privilege escalation explicitly accesses resources and data beyond the initial compromise scope. The engagement letter must specifically authorize privilege escalation activities. Kernel exploits carry denial-of-service risk; obtain explicit approval before attempting kernel-level attacks on production systems. Credential harvesting during escalation (e.g., /etc/shadow, SAM database) must be reported and handled according to the engagement's data handling requirements.


Integration with Other Skills

Privilege escalation receives initial access from skills/network-pentest/, skills/web-xss/, skills/web-sqli/, and skills/web-auth-bypass/. Successful escalation feeds into skills/post-exploitation/ for persistence and lateral movement. Credential material harvested during escalation (hashes, SSH keys, tokens) feeds into skills/password-attack/ for cracking. Container escape findings relate to skills/container-security/. Active Directory escalation connects to skills/api-security/ for domain-level attack paths.


Detection Methods

Privilege escalation detection combines endpoint telemetry (EDR), system audit logs, and behavioral baselines. Understanding detection signals helps testers operate more stealthily and helps defenders prioritize monitoring.

Linux Host Indicators

  • SUID binary execution: Unusual SUID binaries executed (find / -perm -4000 -type f 2>/dev/null); known privesc tools like linpeas, pspy, linux-smart-enumeration.
  • sudo abuse: sudo -l enumeration; sudo rules with NOPASSWD or wildcard commands; sudo invocations outside user's typical pattern.
  • Cron job tampering: Modifications to /etc/crontab, /etc/cron.d/*, or user crontabs; root-owned cron entries executing scripts in writable directories.
  • Kernel exploit signatures: dirtycow / dirtypipe / DirtyPipe / OverlayFS patterns in process name or memory.
  • Capability misuse: Binaries with cap_setuid, cap_dac_override, cap_sys_admin capabilities; setcap invocations.

Windows Host Indicators

  • Token impersonation: ImpersonateNamedPipeClient API calls; duplicate token handle operations; whoami /priv queries listing SeImpersonatePrivilege.
  • UAC bypass: COM interface hijacking patterns; eventvwr.exe / fodhelper.exe / computerdefaults.exe executed by non-admin users.
  • Service exploitation: Service binary path with unquoted spaces; weak service permissions modified by non-admin (accesschk.exe enumeration); sc config modifications.
  • LSASS access: Non-system processes accessing LSASS memory; procdump -ma lsass.exe; comsvcs.dll MiniDump calls.
  • SAM/NTDS dumping: reg save HKLM\SAM; volume shadow copy of ntds.dit; ntdsutil invocation.

Container-Specific Indicators

  • Container escape attempts: Access to /proc/1/root, cgroup manipulation, mount of host filesystem, CAP_SYS_ADMIN capability usage.
  • Privileged container abuse: kubectl exec --privileged; docker run --privileged; containers running as --pid=host or --network=host.
  • kubelet API access: Requests to https://node:10250/pods; anonymous auth attempts on kubelet.

SIEM Detection Rules

  • Sysmon Event ID 1: Process creation; alert on whoami /priv, systeminfo, accesschk.exe, winPEAS.exe.
  • Sysmon Event ID 10: Process access; alert on TargetImage: lsass.exe.
  • Sysmon Event ID 13: Registry value set; alert on HKLM\\SYSTEM\\CurrentControlSet\\Services\\.*\\ImagePath modifications.
  • Auditd rules: acl,/etc/sudoers modification; perm_su events; SUID binary creation.
  • Splunk SPL: index=linux sourcetype=auditd type=EXECVE | stats count by a0 | where a0 IN ("linpeas","pspy","unix-privesc-check")

Defense Evasion Techniques

Stealth Enumeration

  • Slow scanning: Space enumeration across hours; cache results to avoid repeated find calls.
  • LOLBins over custom tools: Use getent, id, groups, ls -la /etc/sudoers instead of dropping linpeas.
  • Native binary renaming: Copy find to ~/.local/bin/.cache to avoid process-name detection.
  • PowerShell without AMSI: Patch amsi.dll in-memory before enumeration; use pwsh CoreCLR bypass.
  • In-memory enumeration: Use Reflective PE loading or .NET Interactive to run tools without disk artifacts.

Service Exploitation Stealth

  • Service binary obfuscation: Encode service binary with custom encoder to evade AV signatures.
  • DLL hijacking over custom binary: Use legitimate signed binary + malicious DLL sidecar (less suspicious than dropping .exe).
  • WMI over PsExec: Use WMI subscription (__EventFilter + CommandLineEventConsumer) instead of PsExec to avoid PSEXESVC.exe service creation event.
  • DCOM over RPC: Use DCOM (MMC20.Application) for lateral movement to avoid standard RPC patterns.

Token Impersonation Stealth

  • Stolen token over delegation: Use stolen token to access services instead of creating new logon events.
  • Process injection into legit process: Inject into explorer.exe or svchost.exe to inherit legitimate token.
  • Avoid whoami /priv: Use OpenProcessToken + GetTokenInformation API directly to avoid SIEM-detected whoami invocation.

Kernel Exploit Stealth

  • Target isolated hosts: Run kernel exploits on isolated hosts to avoid panic-induced reboots visible to monitoring.
  • Match kernel version precisely: Avoid partial-match exploitation (crashes); use uname -r exact match.
  • Memory-only exploits: Prefer in-memory kernel exploits (no /tmp/exploit artifacts).
  • Use known-good variants: DirtyPipe (CVE-2022-0847) over DirtyCOW (CVE-2016-5195) — newer, less signatured.

Log Manipulation

  • Selective clearing: Delete only specific audit logs (/var/log/audit/audit.log lines for our session) instead of full file.
  • Time-stomping: Modify file timestamps with timestomp (Meterpreter) to match legitimate binaries.
  • Auditd rule abuse: Pause auditd rules via auditctl -e 0 if root; restore after operations.
  • Hide processes: Use rootkit-style LD_PRELOAD hook to hide our processes from ps.

Container Escape Stealth

  • Sidecar injection over new container: Inject into existing pod rather than spawning new container (visible to kubectl get pods).
  • Bypass via mounted Docker socket: Use /var/run/docker.sock mount to spawn sibling container (less visible than escape).
  • kubelet over API server: Use kubelet API on worker node (10250) to escape API server monitoring.
  • eBPF bypass: Some kernel exploits don't trigger eBPF-based Falco rules (e.g., CVE-2022-0185 before Falco rule update).

Learning Resources


All privilege escalation techniques must be executed only within written authorization scope. Unauthorized system access is illegal.

Last updated: 2026-06-04

Frequently asked questions

What to verify before installation and use

What does the privilege-escalation source document cover?

Supplementary Files: - payloads.md — Complete command reference organized by escalation vector: automated enumeration, SUID/GTFOBins exploitation, sudo abuse, capabilities, kernel exploits, Windows token impersonation, service path hijacking, DLL hijacking, and UAC bypass - test…

How do I install privilege-escalation?

The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/privilege-escalation". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor.

Which permission-related actions were detected?

Static rules flagged write-files in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing