Conducting Cloud Incident Response
Overview
Cybersecurity skill for conducting cloud incident response. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"conducting cloud incident response"
"Responds to security incidents in cloud environments (AWS, Azure, GCP) by perfor"
Cloud security posture management (CSPM) alerts on unauthorized resource changes
CloudTrail, Azure Activity Logs, or GCP Audit Logs show suspicious API calls
Cloud access keys or service principal credentials are suspected compromised
Unauthorized compute instances, storage buckets, or IAM changes are detected
A cloud-hosted application is breached and attacker activity spans cloud services
Do not use for on-premises-only incidents with no cloud component; use standard enterprise IR procedures.
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
- Cloud-native logging enabled and centralized: AWS CloudTrail (all regions), Azure Activity/Sign-in Logs, GCP Cloud Audit Logs
- IR-specific cloud IAM roles pre-provisioned with read-only forensic access
- Isolated forensic account/subscription/project for evidence preservation
- Cloud incident response runbooks specific to each cloud provider
- Cloud-native security tools: AWS GuardDuty, Azure Defender for Cloud, GCP Security Command Center
- Network traffic logging: VPC Flow Logs (AWS/GCP), NSG Flow Logs (Azure)
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 incident response 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 incident response 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 incident response.
- 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
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
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-incident-response3description: Use when responds to security incidents in cloud environments (AWS, Azure, GCP) by performing identity-based containment, cloud-native log analysis, resource isolation, and forensic evidence acquisition adapted for ephemeral cloud infrastructure. Activates for requests involving cloud incident response, AWS security incident, Azure compromise, GCP breach, cloud forensics, or cloud identity compromise. . Use when working with conducting cloud incident response.4license: Apache-2.05---67# Conducting Cloud Incident Response89## Overview1011Cybersecurity skill for conducting cloud incident response. Follows industry best practices and security standards.1213## When to Use14**Trigger phrases:**15- "conducting cloud incident response"16- "Responds to security incidents in cloud environments (AWS, Azure, GCP) by perfor"171819- Cloud security posture management (CSPM) alerts on unauthorized resource changes20- CloudTrail, Azure Activity Logs, or GCP Audit Logs show suspicious API calls21- Cloud access keys or service principal credentials are suspected compromised22- Unauthorized compute instances, storage buckets, or IAM changes are detected23- A cloud-hosted application is breached and attacker activity spans cloud services2425**Do not use** for on-premises-only incidents with no cloud component; use standard enterprise IR procedures.262728## When NOT to Use2930- When you lack proper authorization for testing31- For production systems without change management32- When the task requires legal or compliance expertise beyond technical scope333435## Prerequisites3637- Cloud-native logging enabled and centralized: AWS CloudTrail (all regions), Azure Activity/Sign-in Logs, GCP Cloud Audit Logs38- IR-specific cloud IAM roles pre-provisioned with read-only forensic access39- Isolated forensic account/subscription/project for evidence preservation40- Cloud incident response runbooks specific to each cloud provider41- Cloud-native security tools: AWS GuardDuty, Azure Defender for Cloud, GCP Security Command Center42- Network traffic logging: VPC Flow Logs (AWS/GCP), NSG Flow Logs (Azure)4344## Workflow4546```python47# Example: IOC detection48import re4950IOC_PATTERNS = {51 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",52 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",53 "hash_md5": r"\b[a-f0-9]{32}\b",54 "hash_sha256": r"\b[a-f0-9]{64}\b",55}5657def extract_iocs(text: str) -> dict:58 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}59```60611. **Scope the Analysis** — Define what cloud incident response artifacts or data sources to examine and the investigation timeline.622. **Preserve Evidence** — Create forensic copies of relevant data. Maintain chain of custody documentation.633. **Extract Key Indicators** — Parse and extract relevant cloud incident response data points from collected artifacts.644. **Correlate Findings** — Cross-reference extracted data with other sources (threat intel, logs, timelines).655. **Build Timeline** — Construct a chronological sequence of events related to cloud incident response.666. **Document Analysis** — Write findings report with evidence, conclusions, and recommendations.6768## Tools6970- **Forensic Toolkit** — Evidence collection and analysis71- **Timeline Tools** — Chronological event reconstruction72- **Log Analysis Platform** — Centralized log parsing and search737475## Process76771. **Reconnaissance** — Gather target information, identify attack surface, enumerate services781. **Analysis/Exploitation** — Execute the technique, analyze results, document findings791. **Reporting** — Document IOCs, write findings, provide remediation recommendations8081## Verification8283- [ ] All cloud incident response procedures executed completely and documented84- [ ] Findings validated against multiple data sources85- [ ] False positives identified and filtered86- [ ] Results documented with evidence and timestamps87- [ ] Recommendations provided with risk-based prioritization8889## Anti-Rationalization Table9091| Rationalization | Reality |92|---|---|93| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |94| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |95| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |