Conducting Cloud Penetration Testing
Overview
Cybersecurity skill for conducting cloud penetration testing. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"conducting cloud penetration testing"
"This skill outlines methodologies for performing authorized penetration testing "
When performing authorized security assessments of cloud environments before production deployment
When validating cloud security controls after a major architectural change or migration
When compliance requirements mandate annual penetration testing of cloud infrastructure
When testing incident response readiness by simulating realistic cloud-based attack scenarios
When assessing lateral movement risk across multi-account or multi-cloud environments
Do not use for unauthorized testing against cloud accounts, for testing cloud provider infrastructure itself (covered by the shared responsibility model), or for DDoS simulation without explicit cloud provider approval.
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- Written authorization from the cloud account owner and scope definition document
- AWS, Azure, or GCP penetration testing policy acknowledgment (AWS no longer requires pre-approval for most services)
- Isolated testing account or explicitly scoped production account with breakglass procedures
- Cloud-specific offensive tooling installed: Pacu (AWS), ScoutSuite, Prowler, CloudFox
- MITRE ATT&CK Cloud matrix for finding classification
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Scope the Analysis — Define what cloud penetration testing artifacts or data sources to examine and the investigation timeline.
- Preserve Evidence — Create forensic copies of relevant data. Maintain chain of custody documentation.
- Extract Key Indicators — Parse and extract relevant cloud penetration testing data points from collected artifacts.
- Correlate Findings — Cross-reference extracted data with other sources (threat intel, logs, timelines).
- Build Timeline — Construct a chronological sequence of events related to cloud penetration testing.
- Document Analysis — Write findings report with evidence, conclusions, and recommendations.
Tools
- Forensic Toolkit — Evidence collection and analysis
- Timeline Tools — Chronological event reconstruction
- Log Analysis Platform — Centralized log parsing and search
Process
- Design — Define interface, identify patterns, plan implementation
- Implement — Write code following existing conventions, add tests
- Verify — Run tests, check integration, validate behavior
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: conducting-cloud-penetration-testing3description: Use when this skill outlines methodologies for performing authorized4 penetration testing against AWS, Azure, and GCP cloud environments. It covers understanding5 the shared responsibility model for testing scope, leveraging cloud-specific attack6 tools like Pacu and ScoutSuite, exploiting IAM misconfigurations, testing for SSRF7 to cloud metadata services, and reporting findings aligned to MITRE ATT&CK Cloud8 matrix.9domain: cybersecurity10tags:11- cloud-pentesting12- offensive-security13- aws-exploitation14- shared-responsibility15- mitre-attack-cloud16subdomain: cloud-security17version: 1.0.018author: oyi7719license: Apache-2.020nist_ai_rmf:21- MEASURE-2.722- MAP-5.123- MANAGE-2.424atlas_techniques:25- AML.T007026- AML.T006627- AML.T008228d3fend_techniques:29- Token Binding30- Restore Access31- Application Protocol Command Analysis32- Reissue Credential33- Network Isolation34nist_csf:35- PR.IR-0136- ID.AM-0837- GV.SC-0638- DE.CM-0139category: cybersecurity40metadata:41 source: https://skillmd.com/skills/oyi77/conducting-cloud-penetration-testing42---4344# Conducting Cloud Penetration Testing4546## Overview4748Cybersecurity skill for conducting cloud penetration testing. Follows industry best practices and security standards.4950## When to Use51**Trigger phrases:**52- "conducting cloud penetration testing"53- "This skill outlines methodologies for performing authorized penetration testing "545556- When performing authorized security assessments of cloud environments before production deployment57- When validating cloud security controls after a major architectural change or migration58- When compliance requirements mandate annual penetration testing of cloud infrastructure59- When testing incident response readiness by simulating realistic cloud-based attack scenarios60- When assessing lateral movement risk across multi-account or multi-cloud environments6162**Do not use** for unauthorized testing against cloud accounts, for testing cloud provider infrastructure itself (covered by the shared responsibility model), or for DDoS simulation without explicit cloud provider approval.636465## When NOT to Use6667- When you lack proper authorization for testing68- For production systems without change management69- When the task requires legal or compliance expertise beyond technical scope707172## Prerequisites7374- Written authorization from the cloud account owner and scope definition document75- AWS, Azure, or GCP penetration testing policy acknowledgment (AWS no longer requires pre-approval for most services)76- Isolated testing account or explicitly scoped production account with breakglass procedures77- Cloud-specific offensive tooling installed: Pacu (AWS), ScoutSuite, Prowler, CloudFox78- MITRE ATT&CK Cloud matrix for finding classification7980## Workflow8182```python83# Example: IOC detection84import re8586IOC_PATTERNS = {87 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",88 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",89 "hash_md5": r"\b[a-f0-9]{32}\b",90 "hash_sha256": r"\b[a-f0-9]{64}\b",91}9293def extract_iocs(text: str) -> dict:94 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}95```96971. **Scope the Analysis** — Define what cloud penetration testing artifacts or data sources to examine and the investigation timeline.982. **Preserve Evidence** — Create forensic copies of relevant data. Maintain chain of custody documentation.993. **Extract Key Indicators** — Parse and extract relevant cloud penetration testing data points from collected artifacts.1004. **Correlate Findings** — Cross-reference extracted data with other sources (threat intel, logs, timelines).1015. **Build Timeline** — Construct a chronological sequence of events related to cloud penetration testing.1026. **Document Analysis** — Write findings report with evidence, conclusions, and recommendations.103104## Tools105106- **Forensic Toolkit** — Evidence collection and analysis107- **Timeline Tools** — Chronological event reconstruction108- **Log Analysis Platform** — Centralized log parsing and search109110111## Process1121131. **Design** — Define interface, identify patterns, plan implementation1141. **Implement** — Write code following existing conventions, add tests1151. **Verify** — Run tests, check integration, validate behavior116117## Verification118119- [ ] All cloud penetration testing procedures executed completely and documented120- [ ] Findings validated against multiple data sources121- [ ] False positives identified and filtered122- [ ] Results documented with evidence and timestamps123- [ ] Recommendations provided with risk-based prioritization124125## Anti-Rationalization Table126127| Rationalization | Reality |128|---|---|129| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |130| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |131| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |