SMTP Penetration Testing
Fail
Audited by Gen Agent Trust Hub on Mar 4, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill directs the agent to execute numerous powerful networking and security tools with the intent to scan and attack remote infrastructure.
- Evidence: Sub-skills like
Phase 5,Phase 7, andExample 1describe the execution ofnmap,hydra,smtp-user-enum,msfconsole,medusa,nc, andopenssl. These tools are used for port scanning, banner grabbing, user enumeration, and authentication testing. - [EXTERNAL_DOWNLOADS]: The skill attempts to modify the local system environment by installing external software packages.
- Evidence: In
sub-skills/required-tools.md, the instructions specifically command the agent to usesudo apt-get installto fetch and installnmap,netcat,hydra, andsmtp-user-enumfrom external repositories. The use ofsudofor tool installation represents a privilege escalation finding. - [DATA_EXFILTRATION]: The skill facilitates sending sensitive probes and authentication data to external network targets.
- Evidence:
Phase 7(Brute Force Authentication) andExample 1detail the use ofhydrawith wordlists (e.g.,rockyou.txt,fasttrack.txt) to attempt unauthorized access to external mail servers, which involves transmitting potential credentials across the network. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection as it is designed to ingest and parse output from untrusted external command-line tools.
- Ingestion points: The agent parses output from
nmap,smtp-user-enum, andmsfconsole(found inPhase 2,Phase 5, andExample 2) to identify valid users or open relays. - Boundary markers: There are no explicit delimiters or instructions to ignore embedded commands within the processed tool outputs.
- Capability inventory: The skill possesses extensive capabilities including system-level command execution (
sudo), network communication, and automated shell command assembly. - Sanitization: No sanitization, validation, or filtering of the output from these external tools is performed before the agent uses the data to inform its next actions.
Recommendations
- AI detected serious security threats
Audit Metadata