Automation
Security Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5755
Answer
Security automation applies automation to security work: patching, vulnerability scanning, compliance checks, certificate renewal, secret rotation, and SOAR-driven response to alerts.
Remember
- Automate repetitive, well-defined tasks first.
- Protect the automation's own credentials.
- Keep humans in the loop for risky actions.
First checks
- Security automation catalogue (provisioning, rotation, scanning, response) — coverage
- Run results and failures — reliability
- Approval gates for destructive actions — safety
Verify in this order
trigger → enrich/check → decide → act (gated) → audit
Where it usually breaks
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Automation → Security Automation · operational reference
| Layer | Automation → Security Automation operational reference |
|---|---|
| Runtime/ownership | Security automation / Microsoft Sentinel SOAR patterns · identify controller/parser, durable intent, identity and target ownership before mutation |
| Persistent intent | Versioned definition/configuration with explicit dependencies, scope and credential boundary |
| Verification | Trace one incident from trigger → condition → automation rule/playbook → target action → independent incident/resource read-back. |
| Expected interpretation | The rule fires only for the intended incident conditions, actions execute in the intended order, privileged operations use the expected identity, and the incident plus target system reflect the intended state. |
| Recovery boundary | Preserve correlation IDs + pre-state, repair first failing boundary, then verify the target independently |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5755