sre-security-incident-triage
Skill4 starsChanged 25 days agoMITView on GitHub
Use when a security compromise is suspected: leaked credentials, suspicious access, compromised host or container, unexpected infra changes. Preserve evidence, gated containment, hand off to security.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/sre-safety-gates.mdcCursor rule
- sre-awsSkill
- sre-azureSkill
- sre-capacity-planningSkill
- sre-change-safetySkill
- sre-chaos-engineeringSkill
- sre-cloud-cost-reviewSkill
- sre-database-triageSkill
- sre-datadogSkill
- sre-dependency-mappingSkill
- sre-diagnosticsSkill
- sre-dr-backup-testSkill
- sre-dynatraceSkill
- sre-emudhra-ca-checkSkill
- sre-engineerSkill
- sre-expiry-auditSkill
- sre-gcpSkill
- sre-incident-commandSkill
- sre-incident-communicationSkill
- sre-k8s-safe-remediationSkill
- sre-k8s-triageSkill
- sre-k8s-upgrade-autopilotSkill
- sre-message-queue-triageSkill
- sre-migration-safetySkill
- sre-observability-cost-cutterSkill
- sre-observability-query-cookbookSkill
- sre-oncall-auditSkill
- sre-oncall-handoffSkill
- sre-pagerduty-opsgenieSkill
- sre-php2shell-checkSkill
- sre-postmortem-templatesSkill
- sre-production-readinessSkill
- sre-prometheus-grafanaSkill
- sre-remediation-actionsSkill
- sre-runbook-templatesSkill
- sre-safety-gatesSkill
- sre-service-mesh-triageSkill
- sre-slo-alertingSkill
- sre-slo-burn-rate-rulesSkill
- sre-terraformSkill
- sre-toil-reviewSkill
- sre-awsSkill
- sre-azureSkill
- sre-capacity-planningSkill
- sre-change-safetySkill
- sre-chaos-engineeringSkill
- sre-cloud-cost-reviewSkill
- sre-database-triageSkill
- sre-datadogSkill
- sre-dependency-mappingSkill
- sre-diagnosticsSkill
- sre-dr-backup-testSkill
- sre-dynatraceSkill
- sre-emudhra-ca-checkSkill
- sre-engineerSkill
- sre-expiry-auditSkill
- sre-gcpSkill
- sre-incident-commandSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Wait for explicit human approval before any prod-changing command, MCP write tool, or external post.
- Distinctive: line 21
Do not restart, delete, re-image, or scale down suspected hosts/pods before evidence is captured and security agrees — it destroys evidence.
- Distinctive: line 22
Do not paste secrets, tokens, or customer data into chat, tickets, or AI tools.
- Distinctive: line 23
Do not tip off a suspected insider in public channels.
- Distinctive: line 24
Do not post externally; legal/privacy own customer and regulator notices.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Incident Triage
Safety gates (REQUIRED)
- Read-only diagnosis first.
- Propose each change with risk (low/med/high) and reversibility.
- Wait for explicit human approval before any prod-changing command, MCP write tool, or external post.
- Act only as approved, verify, and stop and escalate if anything gets worse.
Full rules: sre-safety-gates. Read-only MCP setup: sre-safety-gates/references/mcp.md.
Hand off early. Notify the security team / security on-call as soon as compromise is plausible. They own the investigation; SRE supports.
Do not
- Do not restart, delete, re-image, or scale down suspected hosts/pods before evidence is captured and security agrees — it destroys evidence.
- Do not paste secrets, tokens, or customer data into chat, tickets, or AI tools. Reference them by name/ID.
- Do not tip off a suspected insider in public channels; use a private channel.
- Do not post externally; legal/privacy own customer and regulator notices.
Workflow
- Open a private channel, page security on-call, start a timeline (UTC).
- Scope (read-only): what is suspected, which accounts/keys/hosts, first and last seen.
- Preserve evidence: snapshot disks/volumes, export audit logs, save pod specs and logs, record running processes — through approved tooling.
- Propose containment (with security, approval required): rotate/disable leaked keys, isolate host (security group / network policy), revoke sessions, block IPs. Prefer isolate over delete.
- Monitor for continued activity after containment.
- Hand off with evidence locations and timeline; support recovery.
- Postmortem with security (
sre-postmortem-templates), keeping sensitive details restricted.
Read-only audit queries
# AWS: recent activity for an access key
aws cloudtrail lookup-events --profile <profile> --region <region> --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=<AKIA...> --max-results 50
# Azure: activity log for a resource group, last 24h
az monitor activity-log list --resource-group <rg> --subscription <subscription-id> --offset 24h -o table
# GCP: admin activity audit log
gcloud logging read 'logName:"cloudaudit.googleapis.com%2Factivity"' --project=<PROJECT_ID> --freshness=1d --limit=50
# Kubernetes: who can do what
kubectl --context <ctx> -n <ns> auth can-i --list --as=<user>Containment actions (WRITE — security + IC approval)
| Action | Risk | Reversible |
Deactivate AWS access key: aws iam update-access-key --profile <profile> --access-key-id <id> --status Inactive --user-name <user> | med | yes |
| Isolate pod: apply deny-all NetworkPolicy selecting the pod | med | yes |
Cordon node: kubectl --context <ctx> cordon <node> | low | yes |
| Rotate secret in secret manager and redeploy consumers | med | partial |
Output
- Security triage record: timeline, scope, evidence locations, containment taken (with approver), handoff to security
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

