Building soc metrics and kpi tracking

From oyi77/1ai-skills · View interactive version

Building soc metrics and kpi tracking is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when builds SOC performance metrics and KPI tracking dashboards measuring Mean Time to Detect (MTTD), Mean Time to Respond (MTTR), alert quality ratios, analyst productivity, and detection coverage using SIEM data. Use when SOC leadership needs operational visibility, continuous improvement trac

How to use this skill

Skill file

Building Soc Metrics And Kpi Tracking

Overview

Cybersecurity skill for building soc metrics and kpi tracking. Follows industry best practices and security standards.

When to Use

Trigger phrases:

Use this skill when:

Do not use metrics as punitive measures against analysts — metrics should drive process improvement, not individual performance management.

When NOT to Use

Prerequisites

Workflow

  1. Pick outcomes, not vanity metrics — choose a small set tied to decisions: detection quality, response speed, analyst workload, and coverage. Explicitly reject individual analyst ranking; use metrics for process improvement only.
  2. Define formulas and clocks — document each KPI with exact data source, event start/end, timezone, exclusions, and whether the median or mean is used. Keep MTTD/MTTR definitions stable before trending.
  3. Establish baseline — collect 30–90 days of clean data; record staffing, shifts, and major incidents so anomalies can be explained.
  4. Compute core measures — mean/median time to detect and respond; alert-to-incident ratio; true-positive/false-positive rate; auto-close rate; reopen rate; incidents by severity; SLA attainment; detection coverage by ATT&CK technique; analyst queue depth and after-hours load.
  5. Build dashboards with drill-down — every aggregate links back to the alerts/tickets behind it; add data-freshness timestamps and exclusions notes. Segment by severity/service/shift without exposing individual performance scores.
  6. Review and improve — monthly operations review: identify trend shifts, ask why, assign owners for process changes; re-measure after change. Never use a metric as a quota or weapon.
  7. Version definitions — store KPI definitions in version control with change dates; mark breaks in continuity on trend charts.

Tools

KPI Definitions

| Metric | Definition | Guardrail |

|---|---|---|

| MTTD | median(detected_at − first_observed_at) for confirmed incidents | report only when both timestamps are reliable; segment by severity |

| MTTR | median(contained_at − declared_at) for confirmed incidents | do not mix containment with full recovery; track separately |

| Alert precision | true-positive alerts ÷ reviewed alerts | label sample window and review coverage |

| Alert-to-incident ratio | confirmed incidents ÷ total alerts | interpret with precision and coverage, not alone |

| ATT&CK coverage | tested techniques with active detections ÷ in-scope techniques | a technique counts covered only with telemetry + tested detection |

| SLA attainment | in-SLA incidents ÷ incidents with applicable SLA | disclose exclusions and severity mix |

Never set a “zero incidents” target: it rewards under-reporting. Pair speed metrics with quality measures and sample reviewed cases to catch gaming.

Verification

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |

| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |

| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.