exploiting-aws-with-pacu
Pass
Audited by Gen Agent Trust Hub on Aug 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/agent.pyscript utilizes thesubprocess.runfunction to execute thepacucommand-line utility for AWS testing. The commands are constructed using list-based arguments, which follows security best practices to prevent shell injection. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdfile provides instructions to download and install the Pacu framework from its official GitHub repository (github.com/RhinoSecurityLabs/pacu). This is a well-known industry tool for cloud penetration testing. - [DATA_EXFILTRATION]: The
scripts/agent.pyscript contains anexport_sessionfunction that reads from the local Pacu SQLite database (which stores enumerated AWS resource data) and writes the content to a user-defined JSON file. While this involves data movement, it is a standard reporting feature for penetration testing tools. - [PROMPT_INJECTION]: The skill instructs the agent to process data enumerated from a live AWS account (e.g., S3 bucket names, IAM policy names). This represents an indirect prompt injection surface if the target environment contains maliciously named resources, though the script uses safe subprocess execution to mitigate local impact.
Audit Metadata