Files
Anthropic-Cybersecurity-Skills/skills/conducting-cloud-infrastructure-penetration-test/references/api-reference.md
T
mukul975 27c6414ca5 Add folder anatomy (scripts/agent.py + references/api-reference.md) for 648 cybersecurity skills
Complete skill folder anatomy across all cybersecurity skills:
- scripts/agent.py: 80-150 line Python agents using real libraries (impacket,
  boto3, azure-mgmt-*, kubernetes, pefile, yara, scapy, shodan, stix2, etc.)
- references/api-reference.md: real API documentation with method signatures
- LICENSE: MIT license for all skill folders
2026-03-10 21:02:12 +01:00

1.9 KiB

Cloud Infrastructure Penetration Test — API Reference

Libraries

Library Install Purpose
boto3 pip install boto3 AWS SDK for Python — EC2, S3, IAM, security group enumeration
ScoutSuite pip install scoutsuite Multi-cloud security auditing tool
pacu pip install pacu AWS exploitation framework for penetration testing

Key boto3 Methods

Method Description
ec2.describe_security_groups() List all security groups with inbound/outbound rules
ec2.describe_instances() Enumerate EC2 instances with metadata options
s3.list_buckets() List all S3 buckets in the account
s3.get_bucket_acl(Bucket=name) Check bucket ACL for public access grants
s3.get_bucket_policy(Bucket=name) Retrieve bucket resource policy JSON
iam.list_users() Enumerate all IAM users
iam.list_attached_user_policies(UserName=u) List managed policies attached to a user
iam.list_access_keys(UserName=u) List access keys with creation dates
iam.simulate_principal_policy() Test effective permissions for a principal
sts.get_caller_identity() Identify current credentials (account, ARN)

ScoutSuite CLI

scout aws --no-browser --report-dir ./report
scout azure --cli --no-browser
scout gcp --no-browser

Key Constants

Constant Value
IMDSv2 required HttpTokens: "required"
Public ACL URI http://acs.amazonaws.com/groups/global/AllUsers
Admin policy ARN arn:aws:iam::aws:policy/AdministratorAccess

External References