skills/mukul975/anthropic-cybersecurity-skills/performing-privilege-escalation-on-linux/Gen Agent Trust Hub
performing-privilege-escalation-on-linux
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/agent.pyscript executes various system commands using thesubprocessmodule to perform system enumeration. This includes tools such ashostname,uname,sudo -l,find,getcap, andcrontab. These commands are used to identify potential security misconfigurations on the target system. - [EXTERNAL_DOWNLOADS]: The documentation in
references/workflows.mdreferences external scripts for automated enumeration. It provides instructions for downloading tools from thepeass-ngandmzet-GitHub repositories, which are well-known resources in the cybersecurity community. - [REMOTE_CODE_EXECUTION]: The
references/workflows.mdfile contains command patterns that pipe remote script content directly into a shell (e.g.,curl ... | sh). While this is a common practice for tools like LinPEAS during security assessments, it represents a remote code execution pattern. - [PRIVILEGE_ESCALATION]: The skill is explicitly designed to assist in Linux privilege escalation. It provides logic and documentation for exploiting SUID binaries, misconfigured sudo permissions, writable cron jobs, and kernel vulnerabilities to gain root access.
- [INDIRECT_PROMPT_INJECTION]: The skill represents a surface for indirect prompt injection as it ingests and processes untrusted data from the local system environment.
- Ingestion points: The
scripts/agent.pyutility reads and parses output from system commands and configuration files like/etc/crontaband/etc/os-release(referenced inscripts/agent.py). - Boundary markers: No explicit boundary markers or 'ignore' instructions are used to delimit system-provided data from agent instructions.
- Capability inventory: The script possesses the capability to execute shell commands and read sensitive files based on the enumerated data.
- Sanitization: System outputs are processed and presented to the agent without extensive sanitization or validation.
Audit Metadata