SSZcreate/Pentab_server / .agents/skills/cybersecurity/skills/exploiting-aws-with-pacu
exploiting-aws-with-pacu
UnverifiedRuns the Pacu AWS exploitation framework end-to-end — session and credential setup, IAM enumeration, automated privilege-escalation scanning via iam__privesc_scan, and persistence/backdooring modules like iam__backdoor_users_keys. Use for authorized AWS penetration tests or red-team engagements, assessing blast radius from a compromised IAM credential, or generating attacker telemetry for purple-team detection testing.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.0 KB |
| SKILL.md | skill md | 10.2 KB |
| references/api-reference.md | markdown | 2.5 KB |
| references/standards.md | markdown | 1.3 KB |
| scripts/agent.py | script | 4.3 KB |
references/api-reference.md
View on GitHub# Pacu — Command and Module Reference
## Console Commands
| Command | Description |
|---------|-------------|
| `set_keys` | Add/update AWS keys for the active session |
| `swap_keys` | Switch between stored key sets in the session |
| `import_keys <profile>` | Import keys from `~/.aws/credentials` (use `--all` for every profile) |
| `whoami` | Show the active principal and key details |
| `ls` / `list` | List available modules |
| `search <term>` | Search modules by name/keyword |
| `help <module>` | Show a module's help and arguments |
| `run <module> [args]` | Execute a module (alias: `exec`) |
| `data <service\|all>` | Query enumerated data from the session DB |
| `services` | List services with collected data |
| `regions` | Show / set in-scope AWS regions (`set_regions`) |
| `sessions` / `swap_session` | Manage multiple engagement sessions |
| `exit` / `quit` | Leave the console |
## Non-Interactive (shell) Flags
| Flag | Description |
|------|-------------|
| `--session <name>` | Select/create the session |
| `--module-name <module>` | Module to run |
| `--module-args "<args>"` | Arguments passed to the module |
| `--exec` | Run the module immediately and exit |
| `--set-regions <r1 r2>` | Constrain regions |
## Key Modules
| Module | Category | Purpose |
|--------|----------|---------|
| `iam__enum_users_roles_policies_groups` | Recon | Enumerate all IAM principals/policies |
| `iam__enum_permissions` | Recon | Resolve current principal's effective permissions |
| `iam__privesc_scan` | Privesc | Detect/exploit privilege-escalation paths |
| `iam__backdoor_users_keys` | Persistence | Create backdoor access key on a user |
| `iam__backdoor_assume_role` | Persistence | Add attacker trust to a role |
| `ec2__enum` | Recon | Enumerate EC2 instances/volumes/snapshots |
| `ec2__startup_shell_script` | Exec | Inject user-data startup script |
| `s3__download_bucket` | Exfil | Download S3 bucket objects |
| `secrets__enum` | Credential Access | Enumerate Secrets Manager / SSM secrets |
| `lambda__enum` | Recon | Enumerate Lambda functions and configs |
## Common privesc primitives checked by `iam__privesc_scan`
`iam:CreatePolicyVersion`, `iam:SetDefaultPolicyVersion`, `iam:AttachUserPolicy`,
`iam:AttachGroupPolicy`, `iam:AttachRolePolicy`, `iam:PutUserPolicy`,
`iam:CreateAccessKey`, `iam:UpdateLoginProfile`, `iam:PassRole` + `lambda:CreateFunction`,
`iam:PassRole` + `ec2:RunInstances`, `sts:AssumeRole`, `glue:CreateDevEndpoint`,
`cloudformation:CreateStack` + `iam:PassRole`.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |