Install
openclaw skills install k8s-incident-response-playbookGenerate Kubernetes incident response playbooks tailored to specific incident types, severity levels, and cluster configurations. Use when responding to K8s security incidents, container breaches, pod compromises, cryptomining attacks, privilege escalation, lateral movement, or building K8s IR procedures.
openclaw skills install k8s-incident-response-playbookGenerate customized Kubernetes incident response playbooks based on the incident type, severity, cluster configuration, and available security tooling. Returns step-by-step containment, investigation, eradication, and recovery procedures with kubectl commands, detection queries, and compliance-mapped actions.
Built by a CISSP/CISM certified security professional at ToolWeb.in
TOOLWEB_API_KEY — Get your API key from portal.toolweb.incurl must be available on the systemPOST https://portal.toolweb.in/apis/security/k8irpg
Gather inputs from the user:
Required:
cluster_name — Name of the affected cluster (e.g., "prod-eks-01")environment — Environment type (e.g., "production", "staging", "development")cloud_provider — Cloud platform (e.g., "AWS EKS", "Azure AKS", "GCP GKE", "On-Premise")incident_type — Type of incident. Common types:
incident_severity — Severity level: "Critical", "High", "Medium", "Low"Optional (but recommended for better playbooks):
k8s_version — Kubernetes version (e.g., "1.29")affected_namespace — Namespace where the incident occurred (e.g., "production", "default")affected_workload — Specific workload affected (e.g., "deployment/api-server", "pod/web-frontend-abc123")indicators_of_compromise — Observed IOCs (e.g., "Unusual CPU spike, outbound traffic to mining pool IP 45.xx.xx.xx")detection_source — How the incident was detected (e.g., "Falco alert", "CloudWatch alarm", "Manual observation", "SIEM alert")Security tooling available (true/false):
has_falco — Is Falco or equivalent runtime detection deployed?has_ebpf — Is eBPF-based monitoring available?has_service_mesh — Is a service mesh (Istio, Linkerd) in use?has_network_policies — Are NetworkPolicies implemented?has_pod_security — Are Pod Security Standards enforced?has_audit_logging — Is K8s audit logging enabled?has_siem — Is a SIEM collecting K8s logs?has_backup — Are etcd/cluster backups available?Team context:
team_size — Size of the response team (e.g., "Small (1-3)", "Medium (4-8)", "Large (9+)")on_call_process — On-call process description (e.g., "PagerDuty rotation", "Manual escalation", "None")compliance_frameworks — Applicable compliance (e.g., "SOC2, PCI-DSS, HIPAA")notes — Any additional context about the incidentCall the API:
curl -s -X POST "https://portal.toolweb.in/apis/security/k8irpg" \
-H "Content-Type: application/json" \
-H "X-API-Key: $TOOLWEB_API_KEY" \
-d '{
"cluster_name": "<cluster>",
"environment": "<env>",
"cloud_provider": "<provider>",
"incident_type": "<type>",
"incident_severity": "<severity>",
"k8s_version": "<version>",
"affected_namespace": "<namespace>",
"affected_workload": "<workload>",
"indicators_of_compromise": "<IOCs>",
"detection_source": "<source>",
"has_falco": false,
"has_ebpf": false,
"has_service_mesh": false,
"has_network_policies": false,
"has_pod_security": false,
"has_audit_logging": false,
"has_siem": false,
"has_backup": false,
"team_size": "<size>",
"on_call_process": "<process>",
"compliance_frameworks": "SOC2, PCI-DSS",
"notes": ""
}'
🚨 K8s Incident Response Playbook
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Incident: [incident_type]
Severity: [severity] 🔴/🟠/🟡/🟢
Cluster: [cluster_name] ([environment])
Affected: [namespace]/[workload]
⚡ PHASE 1 — Immediate Containment:
[Step-by-step containment with kubectl commands]
🔍 PHASE 2 — Investigation:
[Evidence collection, log analysis, forensics procedures]
🧹 PHASE 3 — Eradication:
[Remove threat, patch vulnerabilities, rotate credentials]
🔄 PHASE 4 — Recovery:
[Restore services, verify clean state, monitoring]
📋 PHASE 5 — Post-Incident:
[Lessons learned, timeline documentation, compliance reporting]
⚖️ Compliance Actions:
[SOC2/PCI-DSS/HIPAA required notifications and documentation]
📎 Playbook generated by ToolWeb.in
TOOLWEB_API_KEY is not set: Tell the user to get an API key from https://portal.toolweb.inUser: "We detected cryptomining in our production EKS cluster. A pod in the backend namespace is using 100% CPU and making outbound connections to a mining pool."
Agent flow:
curl -s -X POST "https://portal.toolweb.in/apis/security/k8irpg" \
-H "Content-Type: application/json" \
-H "X-API-Key: $TOOLWEB_API_KEY" \
-d '{
"cluster_name": "prod-eks-01",
"environment": "production",
"cloud_provider": "AWS EKS",
"incident_type": "Cryptomining",
"incident_severity": "Critical",
"k8s_version": "1.29",
"affected_namespace": "backend",
"affected_workload": "deployment/data-processor",
"indicators_of_compromise": "100% CPU usage, outbound connections to mining pool IP",
"detection_source": "CloudWatch CPU alarm",
"has_falco": false,
"has_ebpf": false,
"has_service_mesh": false,
"has_network_policies": false,
"has_pod_security": false,
"has_audit_logging": true,
"has_siem": false,
"has_backup": true,
"team_size": "Small (1-3)",
"on_call_process": "Manual escalation",
"compliance_frameworks": "SOC2",
"notes": ""
}'
Created by ToolWeb.in — a security-focused MicroSaaS platform with 200+ security APIs, built by a CISSP & CISM certified professional. Trusted by security teams in USA, UK, and Europe and we have platforms for "Pay-per-run", "API Gateway", "MCP Server", "OpenClaw", "RapidAPI" for execution and YouTube channel for demos.
compliance_frameworks to get required notification timelines