Install
openclaw skills install @krishnakumarmahadevan-cmd/container-runtime-threat-modelGenerate container runtime threat models analyzing attack surfaces across container components, images, privileges, network exposure, and security controls. Use when threat modeling containerized applications, Docker/containerd security review, container escape risk assessment, STRIDE analysis for containers, or cloud-native application security.
openclaw skills install @krishnakumarmahadevan-cmd/container-runtime-threat-modelGenerate comprehensive threat models for containerized applications. Analyzes container components, images, privilege levels, host access, network exposure, security controls (seccomp, AppArmor, admission controllers), data sensitivity, and compliance requirements. Returns STRIDE-based threat analysis, risk scores, attack trees, and prioritized mitigations.
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/crtmg
Gather inputs from the user:
Required — Application info:
app_name — Name of the application (e.g., "payment-service", "web-frontend")environment — Environment type (e.g., "production", "staging", "development")cloud_provider — Cloud platform (e.g., "AWS", "Azure", "GCP", "On-Premise")container_runtime — Container runtime (e.g., "Docker", "containerd", "CRI-O", "Podman")orchestrator — Orchestration platform (e.g., "Kubernetes", "ECS", "Docker Swarm", "Nomad", "None")components — List of container components. Each requires:
name — Container/service name (e.g., "api-server", "redis-cache")image — Container image (e.g., "nginx:1.25", "node:20-alpine", "custom-app:latest")privileged — Runs in privileged mode? (default: false)host_network — Uses host networking? (default: false)host_pid — Shares host PID namespace? (default: false)runs_as_root — Runs as root user? (default: false)exposed_ports — Exposed ports (e.g., "80, 443, 8080")volumes — Mounted volumes (e.g., "/data, /var/run/docker.sock, /etc/config")capabilities — Added Linux capabilities (e.g., "NET_ADMIN, SYS_PTRACE, NET_RAW")Optional — Security controls:
image_scanning_enabled — Container image vulnerability scanning? (default: false)admission_control_enabled — Admission controller (OPA, Kyverno)? (default: false)seccomp_enabled — Seccomp profiles applied? (default: false)apparmor_selinux_enabled — AppArmor or SELinux enforced? (default: false)read_only_root_fs — Read-only root filesystem? (default: false)network_policies_enabled — Network policies in place? (default: false)secrets_management — How secrets are managed (e.g., "Vault", "AWS Secrets Manager", "K8s Secrets", "Environment variables", "None")Optional — Data sensitivity:
data_classification — Data classification level (e.g., "public", "internal", "confidential", "restricted")pii_data — Processes personally identifiable information? (default: false)payment_data — Processes payment/financial data? (default: false)handles_credentials — Handles authentication credentials? (default: false)Optional — Compliance:
compliance_frameworks — Applicable compliance (e.g., "PCI-DSS, SOC2, HIPAA, CIS Benchmarks")notes — Additional contextCall the API:
curl -s -X POST "https://portal.toolweb.in/apis/security/crtmg" \
-H "Content-Type: application/json" \
-H "X-API-Key: $TOOLWEB_API_KEY" \
-d '{
"app_name": "<app>",
"environment": "<env>",
"cloud_provider": "<provider>",
"container_runtime": "<runtime>",
"orchestrator": "<orchestrator>",
"components": [
{
"name": "<container1>",
"image": "<image:tag>",
"privileged": false,
"host_network": false,
"host_pid": false,
"runs_as_root": false,
"exposed_ports": "<ports>",
"volumes": "<volumes>",
"capabilities": "<caps>"
}
],
"image_scanning_enabled": false,
"admission_control_enabled": false,
"seccomp_enabled": false,
"apparmor_selinux_enabled": false,
"read_only_root_fs": false,
"network_policies_enabled": false,
"secrets_management": "",
"data_classification": "internal",
"pii_data": false,
"payment_data": false,
"handles_credentials": false,
"compliance_frameworks": "",
"notes": ""
}'
🐳 Container Runtime Threat Model
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Application: [app_name]
Environment: [environment]
Runtime: [container_runtime] / [orchestrator]
Components: [count]
📊 Risk Score: [XX/100] — [Critical/High/Medium/Low]
🎯 Total Threats Identified: [count]
🔴 CRITICAL Threats:
[Container escape, privilege escalation, etc.]
🟠 HIGH Threats:
[Image vulnerabilities, host access, etc.]
🟡 MEDIUM Threats:
[Missing controls, excessive permissions, etc.]
📦 Per-Component Analysis:
[container1] — Risk: [level]
Threats: [list]
Mitigations: [list]
🛡️ STRIDE Summary:
Spoofing: [count] threats
Tampering: [count] threats
Repudiation: [count] threats
Info Disclosure: [count] threats
Denial of Service: [count] threats
Elevation of Privilege: [count] threats
📋 Priority Mitigations:
1. [Most urgent fix] — Impact: Critical
2. [Next priority] — Impact: High
3. [Next priority] — Impact: Medium
📎 Threat model generated by ToolWeb.in
TOOLWEB_API_KEY is not set: Tell the user to get an API key from https://portal.toolweb.inUser: "Threat model our payment service — it's a Node.js app running on EKS with Redis cache and PostgreSQL"
Agent flow:
curl -s -X POST "https://portal.toolweb.in/apis/security/crtmg" \
-H "Content-Type: application/json" \
-H "X-API-Key: $TOOLWEB_API_KEY" \
-d '{
"app_name": "payment-service",
"environment": "production",
"cloud_provider": "AWS",
"container_runtime": "containerd",
"orchestrator": "Kubernetes",
"components": [
{"name": "payment-api", "image": "node:20-alpine", "runs_as_root": false, "exposed_ports": "8080", "volumes": "/app/config"},
{"name": "redis-cache", "image": "redis:7-alpine", "runs_as_root": false, "exposed_ports": "6379"},
{"name": "postgres-db", "image": "postgres:16", "runs_as_root": true, "exposed_ports": "5432", "volumes": "/var/lib/postgresql/data"}
],
"image_scanning_enabled": true,
"admission_control_enabled": false,
"seccomp_enabled": false,
"network_policies_enabled": true,
"secrets_management": "AWS Secrets Manager",
"data_classification": "confidential",
"pii_data": true,
"payment_data": true,
"handles_credentials": true,
"compliance_frameworks": "PCI-DSS, SOC2"
}'
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.
/var/run/docker.sock) are container escape vectors — always flag