mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 13:44:56 +03:00
1.7 KiB
1.7 KiB
Workflows - Container Drift Detection
Detection Workflow
- Container image deployed with known-good state
- Runtime monitor (Falco/Sysdig) tracks all process executions and file changes
- Events compared against baseline: original image manifest + expected runtime behavior
- Drift events classified by severity (binary drift = HIGH, config drift = MEDIUM)
- Alerts sent to SIEM/SOC with full container context
- Automated response: isolate pod network, capture forensics, evict pod
Implementation Phases
Phase 1: Visibility (Weeks 1-2)
- Deploy Falco with drift detection rules in alert-only mode
- Collect baseline of normal container behavior per workload
- Identify legitimate runtime changes (log files, temp files, caches)
- Create allowlists for expected runtime modifications
Phase 2: Detection (Weeks 3-4)
- Enable drift detection alerts with tuned thresholds
- Integrate with SIEM for correlation and dashboarding
- Build runbooks for drift investigation
- Conduct tabletop exercises with container drift scenarios
Phase 3: Prevention (Weeks 5-8)
- Enable readOnlyRootFilesystem on all production workloads
- Deploy Pod Security Standards in enforce mode
- Implement image digest pinning in all manifests
- Enable automated pod eviction for confirmed drift events
Incident Response for Drift Events
- Triage: Is the drift from a legitimate operation or potential compromise?
- Contain: Apply NetworkPolicy deny-all to affected pod
- Collect: Capture container filesystem diff, process tree, network connections
- Analyze: Compare drifted files against malware signatures and IoCs
- Remediate: Delete compromised pod, scan all pods in namespace
- Recover: Deploy clean image, verify no persistence mechanisms