performing-cloud-penetration-testing-with-pacu

Performs authorized AWS penetration testing with Pacu to enumerate IAM and validate privilege escalation paths.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill performing-cloud-penetration-testing-with-pacu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-cloud-penetration-testing-with-pacu
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/cloud-security/performing-cloud-penetration-testing-with-pacu
Command: npx skills add https://github.com/xalgord/xalgorix --skill performing-cloud-penetration-testing-with-pacu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pacu.

What problem does it solve?

Security teams need to know the real blast radius of compromised AWS credentials, but manual IAM analysis misses escalation paths and produces unverified findings. This Skill guides a systematic Pacu-based assessment that enumerates permissions, exploits privilege escalation, and confirms each finding with proof-of-access checks.

Core Features & Use Cases

  • IAM Enumeration and Privilege Escalation: Runs Pacu modules like iam__enum_permissions and iam__privesc_scan to map 21+ escalation methods including PassRole combinations with Lambda, EC2, Glue, and CloudFormation.
  • Data Access and Lateral Movement Testing: Enumerates S3 buckets, Lambda environment variables, Secrets Manager, SSM parameters, and cross-account role assumption to demonstrate impact.
  • Detection Validation: Checks whether GuardDuty, Security Hub, and CloudWatch alarms detected the testing activity, measuring SOC response time.
  • Use Case: A red team simulates a leaked developer access key, escalates from read-only S3 access to full administrator via iam:PassRole plus lambda:CreateFunction, and reports exactly which controls detected or missed each step.

Quick Start

Use the Pacu cloud penetration testing skill to assess my authorized AWS test account starting from these limited credentials and report all privilege escalation paths found.

Frequently Asked Questions about performing-cloud-penetration-testing-with-pacu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test AWS privilege escalation with Pacu?

Run iam__enum_permissions first to collect the principal's effective permissions, then run iam__privesc_scan to test 21+ escalation methods including PassRole combinations. Confirm any hit by performing the gated action with the escalated credentials rather than trusting scanner output alone.

How to enumerate IAM permissions in an AWS pentest?

Use Pacu's iam__enum_users_roles_policies_groups and iam__enum_permissions modules after setting session keys with set_keys. Watch for AccessDenied errors on iam:GetAccountAuthorizationDetails, since gaps there cause the privilege escalation scanner to report false negatives.

Why does Pacu iam__privesc_scan report no escalation paths?

The scanner only reasons over permissions already collected, so incomplete enumeration hides real paths. Ensure iam__enum_permissions completed without AccessDenied gaps, run set_regions all, map PassRole target roles with iam__enum_roles, and review resource-based policies on S3, KMS, and Lambda.

Does Pacu testing trigger GuardDuty alerts?

Yes, Pacu modules generate many API calls and commonly trigger findings such as Recon:IAMUser/MaliciousIPCaller. Coordinate with the SOC to whitelist testing IPs or establish communication channels, and use the engagement to measure detection and response times.

When should I not use Pacu for AWS testing?

Do not use Pacu without written authorization from the account owner, against AWS infrastructure itself which is covered by shared responsibility, or for DDoS-style volumetric attacks without AWS approval. Production accounts require explicit authorization and documented breakglass procedures.