Skip to content
Back to skills

Cloud Penetration Testing

ASecurity

Use when testing cloud infrastructure security.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 10, 2026
securitypythonrustgoawsgcpazuretestingapisecurity

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill cloud-penetration-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud Penetration Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloud Penetration Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-cloud-penetration-testing/badge)](https://www.skillsdirectory.com/skills/loopyluci-cloud-penetration-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloud-penetration-testing
description: "Use when testing cloud infrastructure security."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [cloud-pentest, AWS, Azure, GCP, IAM, S3, metadata, privilege-escalation]
    related_skills: [cloud-cost-optimization-finops, identity-access-management, container-security-testing, webapp-penetration-testing]
---

# Cloud Penetration Testing

Testing cloud infrastructure security — from AWS/Azure/GCP IAM enumeration through S3 bucket to privilege escalation, metadata service, and container escape.

## When to Use

- Assessing cloud infrastructure security posture
- Testing cloud IAM policies for privilege escalation
- Auditing cloud storage (S3, Blob, GCS) configuration
- Cloud metadata service exploitation
- Container escape within cloud environments

## Cloud Attack Techniques

```python
CLOUD_ATTACKS = {
    'iam_enumeration': 'Enumerate IAM permissions, users, roles, policies via CLI or API',
    's3_bucket': 'List bucket contents, upload/download, ACL misconfiguration, public access',
    'metadata_service': 'Query http://169.254.169.254/latest/meta-data/ for instance creds',
    'lambda_injection': 'Exploit event injection into Lambda functions for privilege escalation',
    'cloudtrail_logs': 'Disable or modify logging to cover tracks (cloudtrail:StopLogging)',
    'kms_key_abuse': 'Decrypt data using misconfigured KMS key policies',
    'privilege_escalation': 'iam:PassRole, iam:CreatePolicyVersion, ec2:RunInstances with admin role',
}

# AWS metadata service attacks
AWS_METADATA_QUERY = [
    "curl http://169.254.169.254/latest/meta-data/iam/security-credentials/",
    "curl http://169.254.169.254/latest/user-data/",
    "curl http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE]/",
]

# GCP metadata
GCP_METADATA = "curl -H 'Metadata-Flavor: Google' http://169.254.169.254/computeMetadata/v1/"

# Azure IMDS
AZURE_IMDS = "curl -H 'Metadata: true' http://169.254.169.254/metadata/instance?api-version=2021-02-01"
```

## Verification Checklist

- [ ] IAM policy enumeration (users, roles, policies, trust relationships)
- [ ] Privilege escalation paths identified (iam:PassRole, etc.)
- [ ] Storage services audited (S3, Blob, GCS — ACLs, public access)
- [ ] Metadata service accessible (if running in cloud)
- [ ] CloudTrail/CloudWatch logs checked for sensitive data
- [ ] Lambda/Cloud Functions checked for secrets in env vars
- [ ] KMS keys checked for overly permissive policies
- [ ] VPC security groups reviewed for overly broad rules
- [ ] Container images scanned for vulnerabilities

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.