All articles
Security EngineeringSecurity Operations & Monitoring
Browse Knowledge Base

Security Metrics and KPIs - Measuring Security Outcomes

13 min read

Learn how to design security metrics and KPIs that measure outcomes, resist gaming, and drive data-driven decisions across detection, vulnerability management, and identity.

Security metrics and KPIs provide measurable indicators of security program effectiveness, driving behavior and enabling data-driven decision-making. Security engineers choose leading and lagging indicators tied to risk and business outcomes that resist gaming and drive meaningful action. Effective metrics are automatable, auditable, and focus on rates and distributions rather than single point measurements.

Metrics shape behavior. Rewarding teams for closing tickets quickly optimizes for speed over quality. Counting vulnerabilities drives scanner gaming. Measure outcomes, not activity—and design metrics that resist gaming.

Metric Principles

The NIST Cybersecurity Framework emphasises measurement as a core component of security program maturity. Effective security metrics follow principles that ensure they drive the right behaviors and provide actionable insights for decision-makers.

Outcome Orientation

Metrics should measure security outcomes including risk reduction, incident impact, and control effectiveness rather than security activity. Activity metrics can be gamed without improving security. For example, measuring "number of security trainings completed" tells you nothing about whether employees actually learned to identify phishing attacks—measuring "phishing simulation click rates" provides outcome data.

Outcome metrics tie to business impact including revenue protection, customer trust, and regulatory compliance. Business alignment increases executive engagement because leaders understand metrics in terms of business risk rather than technical indicators. A metric like "percentage of customer data protected by encryption" resonates more with executives than "number of TLS certificates deployed."

Risk-based metrics prioritize high-impact areas. Not all metrics deserve equal attention, and organisations should weight metrics by the criticality of the systems and data they measure. Coverage of critical assets matters more than coverage of development environments.

Rates and Distributions

Rates including mean time to detect and remediate provide more insight than counts. Rates normalize for volume changes, making it possible to compare performance across time periods with different incident volumes. A team that handles 100 incidents with 2-hour MTTR is performing better than a team handling 10 incidents with 4-hour MTTR.

Distributions including percentiles show variation and outliers. Averages hide important details—a 4-hour average MTTR could mean consistent 4-hour responses or could hide a bimodal distribution where half of incidents resolve in 1 hour and half take 7 hours. P50, P90, and P99 percentiles reveal the true performance distribution.

Trend analysis shows improvement or degradation over time. Trends are more meaningful than point-in-time measurements because they indicate whether investments are producing results. A team with 6-hour MTTR trending downward is in better shape than a team with 4-hour MTTR trending upward.

Automation and Auditability

Metrics should be automatically collected from authoritative sources. Manual metrics are error-prone and time-consuming, creating reporting burden that distracts from security work. Automated collection from ticketing systems, SIEM platforms, and vulnerability scanners ensures consistency and reduces gaming opportunities.

Metric definitions and queries should be published and version-controlled. Published definitions enable reproducibility and prevent disputes about what metrics mean. When a dashboard shows "MTTR," the underlying query should be accessible so stakeholders can verify the calculation.

Metric collection should be auditable with clear data lineage. Auditability builds trust in metrics by enabling stakeholders to trace values back to source data. When executives question a metric, the security team should be able to show exactly where the data came from and how it was calculated.

Detection and Response Metrics

Detection and response metrics measure the effectiveness of security operations and incident response capabilities. These metrics directly impact attacker dwell time and incident impact.

Mean Time to Detect (MTTD)

MTTD measures time from initial compromise to detection. Lower MTTD reduces attacker dwell time, limiting the window attackers have to achieve their objectives. According to industry benchmarks, organisations with mature detection programs achieve MTTD measured in hours rather than weeks or months.

MTTD should be measured per attack type and severity. Different attacks have different detection characteristics—a DDoS attack may be detected immediately through availability monitoring, while lateral movement may evade detection for days. Breaking down MTTD by ATT&CK tactics reveals which attack phases have detection gaps.

MTTD improvement indicates improving detection capabilities. MTTD should trend downward as organisations deploy new detection rules, improve logging coverage, and tune alert thresholds. Sudden MTTD increases may indicate detection blind spots introduced by infrastructure changes.

Mean Time to Respond (MTTR)

MTTR measures time from detection to containment and remediation. Lower MTTR reduces incident impact by limiting the time attackers can operate after detection. MTTR encompasses triage, investigation, containment, and initial remediation activities.

MTTR should be measured by incident severity. Critical incidents should have aggressive MTTR targets—often measured in minutes rather than hours. A critical production compromise requires faster response than a low-severity policy violation. Separate MTTR tracking by severity ensures that critical incidents receive appropriate urgency.

MTTR SLOs provide clear targets aligned with SRE practices. SLO attainment should be tracked and reported, with error budgets triggering process improvements when exhausted. For example, a 95% SLO attainment target for 4-hour MTTR on high-severity incidents sets clear expectations.

True Positive Rate

True positive rate measures percentage of alerts that represent actual security issues. Higher TPR reduces alert fatigue, enabling analysts to focus on real threats rather than chasing false leads. SOC teams with high alert fatigue experience analyst burnout and miss genuine incidents buried in noise.

False positive rate should be tracked alongside TPR. High FPR indicates tuning needs—either alert thresholds are too sensitive, or detection logic needs refinement to exclude benign activity patterns. FPR above 50% typically indicates detection rules that generate more noise than signal.

Alert quality improvement should focus on increasing TPR while decreasing FPR. Quality over quantity—10 high-fidelity alerts per day is more valuable than 1,000 alerts with 95% false positive rate. Detection engineering programs should include regular alert quality reviews and tuning cycles.

ATT&CK Coverage

Detection coverage by MITRE ATT&CK tactics and techniques shows detection gaps. Coverage should increase over time as organisations develop and deploy new detection rules. The ATT&CK Navigator provides visualisation capabilities for coverage mapping.

Coverage should be weighted by threat relevance based on threat intelligence specific to the organisation's industry and threat profile. Not all techniques deserve equal coverage—organisations should prioritise techniques used by adversaries targeting their sector.

Coverage gaps should drive detection development priorities. Gaps represent blind spots where adversaries could operate undetected. Regular coverage assessments identify high-priority techniques lacking detection, informing the detection engineering roadmap.

Vulnerability Management Metrics

Comprehensive vulnerability management requires metrics that measure both operational efficiency and risk reduction. These metrics enable security teams to demonstrate program effectiveness and identify improvement opportunities.

Time to Remediate

Time to remediate measures duration from vulnerability discovery to fix deployment. TTR should be measured by severity, with separate tracking for critical, high, medium, and low severity vulnerabilities. This segmentation ensures that critical vulnerabilities receive appropriate urgency while providing realistic expectations for lower-severity issues.

EPSS (Exploit Prediction Scoring System) integration prioritizes vulnerabilities likely to be exploited in the wild. EPSS-based prioritization is more effective than CVSS alone because CVSS measures technical severity while EPSS predicts actual exploitation likelihood. A vulnerability with CVSS 7.5 and EPSS 0.9 (90% exploitation probability) deserves more urgent attention than a CVSS 9.0 vulnerability with EPSS 0.01.

TTR SLOs should vary by severity and exploitation status. Critical vulnerabilities with active exploitation may require 24-hour remediation, while medium-severity vulnerabilities without known exploitation might have 30-day SLAs. These SLOs should be achievable—unrealistic targets undermine credibility and create compliance theater.

SLO attainment percentage shows compliance with remediation targets. Attainment should approach 100% for critical vulnerabilities, with lower but still high targets for other severities. Tracking attainment by team and system type identifies patterns—teams or systems consistently missing SLAs may need additional resources or process improvements.

Exposure Window

Exposure window measures total time that vulnerabilities are exploitable in production. Shorter windows reduce risk by limiting the opportunity for exploitation. Exposure window is a more comprehensive metric than TTR because it captures the complete risk duration.

Exposure window accounts for both discovery delay and remediation time. Both components should be minimised—improving scanner coverage reduces discovery delay, while streamlined patching processes reduce remediation time. Organisations should track both components separately to identify improvement opportunities.

Patch Coverage

Patch coverage measures percentage of systems with current patches. Coverage should approach 100% for critical patches, with tracking by system criticality and patch severity. Systems containing sensitive data or exposed to the internet warrant higher coverage targets.

Patch lag measures time between patch release and deployment. Lag should be minimised, particularly for security patches addressing actively exploited vulnerabilities. Tracking patch lag by system type reveals infrastructure or process bottlenecks—legacy systems often have longer patch lag due to testing requirements or change management constraints.

Identity and Access Metrics

Identity and access metrics measure the effectiveness of authentication, authorisation, and privilege management controls. These metrics directly impact an organisation's ability to prevent and detect account compromise.

MFA Adoption

MFA adoption percentage measures accounts protected by multi-factor authentication. Adoption should approach 100% for all user accounts, with phishing-resistant MFA (FIDO2, hardware tokens) tracked separately from SMS or TOTP-based MFA. Phishing-resistant MFA provides stronger protection against credential theft attacks.

Privileged account MFA should be tracked separately with higher targets and stricter requirements. Privileged accounts warrant stronger protection because compromise enables broader access. Administrative accounts should require phishing-resistant MFA without exceptions.

MFA bypass rate measures exceptions to MFA requirements. Bypass should be rare and time-limited, with each exception requiring documented justification and automatic expiration. High bypass rates undermine MFA effectiveness and may indicate usability issues driving exception requests.

Privileged Session Duration

Privileged session duration measures how long elevated privileges are held. Shorter durations reduce risk by limiting the window during which compromised sessions can access sensitive resources. Sessions should automatically expire after reasonable periods of inactivity.

Just-in-time (JIT) access reduces standing privileges by granting elevated access only when needed for specific tasks. JIT adoption should increase over time as organisations implement privileged access management solutions. Tracking the percentage of privileged access through JIT versus standing privileges measures program maturity.

Break-Glass Usage

Break-glass frequency measures emergency access usage. Frequent break-glass indicates process problems—either normal access processes are too cumbersome, or legitimate use cases lack appropriate standing access. High break-glass frequency should trigger process reviews to address underlying causes.

Break-glass expiry latency measures time to revoke emergency access. Expiry should be automatic and rapid, with most break-glass access expiring within hours. Manual revocation creates risk of forgotten elevated access persisting indefinitely.

Break-glass audit should be comprehensive. All break-glass usage should be reviewed by security teams within 24 hours, with documentation of justification and actions taken. This audit trail enables detection of misuse and provides accountability.

Control Coverage Metrics

Control coverage metrics measure the extent to which security controls protect organisational assets. These metrics enable security teams to identify coverage gaps and track the adoption of security standards.

Paved Road Adoption

Paved road adoption measures percentage of services using secure-by-default platforms and frameworks. Adoption should increase over time as organisations mature their platform engineering capabilities. Paved roads embed security controls into development workflows, reducing the burden on individual teams to implement security correctly.

Adoption by service criticality shows coverage of high-value assets. Critical services should have higher adoption rates because they represent greater risk. Tracking adoption by business unit or team identifies groups that may need additional support or incentives to migrate to secure platforms.

Evidence Freshness

Evidence freshness measures recency of control validation. Stale evidence indicates potential control drift—a control that was effective six months ago may no longer be configured correctly or may have been disabled. Evidence older than 30-90 days (depending on control type) should trigger revalidation.

Automated evidence collection enables continuous validation through integration with cloud APIs, configuration management systems, and security tools. Automation improves freshness by collecting evidence daily or hourly rather than during annual audits. Continuous evidence collection also enables rapid detection of control degradation.

Policy as Code Adoption

Policy as code adoption measures percentage of policies enforced programmatically through tools like Open Policy Agent or cloud-native policy engines. Adoption enables automated compliance by preventing non-compliant configurations from being deployed rather than detecting violations after the fact.

Policy coverage shows percentage of compliance requirements with automated enforcement. Coverage should increase over time as organisations codify more requirements. Starting with high-impact requirements (network segmentation, encryption, access controls) provides the greatest risk reduction.

Dashboards and Reporting

Effective security metrics require appropriate presentation for different audiences. Dashboards should be tailored to the decisions each audience needs to make.

Executive Dashboards

Executive dashboards should focus on outcomes and trends, not technical details. Executives care about risk and business impact—whether security is improving, what major risks exist, and whether investments are producing results. Technical details like specific vulnerabilities or detection rule performance belong in operational dashboards.

Red/yellow/green indicators provide quick status assessment for executives scanning multiple metrics. Indicators should have clear, documented thresholds so that stakeholders understand what triggers each state. Avoid subjective colour assignments—thresholds should be based on SLO attainment or risk tolerance levels.

Trend arrows show improvement or degradation over relevant time periods. Trends inform strategic decisions about resource allocation and program priorities. A metric showing "yellow" but trending green may need less attention than a "green" metric trending red.

Engineering Dashboards

Engineering dashboards provide detailed metrics for operational teams. Detail enables troubleshooting and optimization—when MTTR increases, engineers need to drill into data to identify whether the cause is detection delay, triage backlog, or remediation complexity.

Drill-down capabilities enable root cause analysis. Drill-down should be self-service, allowing engineers to explore data without waiting for analytics support. Pre-built drill-down paths for common questions accelerate investigation.

Real-time metrics enable rapid response. Real-time visibility reduces MTTR by enabling teams to detect and respond to emerging issues before they escalate. Dashboards should refresh automatically with minimal delay from data sources.

Review Cadence

Weekly operations reviews focus on tactical metrics including MTTR, alert quality, patch coverage, and SLO attainment. Weekly cadence enables rapid course correction—teams can identify and address emerging issues before they become entrenched problems. These reviews should involve operational teams and their managers.

Quarterly strategy reviews focus on strategic metrics including program maturity, coverage trends, and risk posture. Quarterly cadence aligns with planning cycles, informing budget requests and roadmap priorities. These reviews should include security leadership and business stakeholders.

Metric Anti-Patterns

Understanding common metric anti-patterns helps organisations avoid measurements that undermine security programs rather than improving them.

Vanity Metrics

Counting alerts or tickets measures activity, not outcomes. High alert counts may indicate poor tuning rather than effective detection. Organisations should resist the temptation to report impressive-sounding activity numbers that do not correlate with security improvement.

Vulnerability counts without context ignore severity and exploitability. Reporting "we found 10,000 vulnerabilities" provides no insight into actual risk. Context is essential—100 critical vulnerabilities in production systems represent more risk than 10,000 informational findings in development environments.

Gaming Incentives

Metrics tied to individual performance create gaming incentives. When analyst performance reviews depend on ticket closure counts, analysts close tickets prematurely. Team metrics are less gameable because individuals cannot manipulate outcomes without cooperation.

Metrics without context enable manipulation. A team could achieve 100% patch coverage by removing systems from the inventory or reclassifying critical vulnerabilities as informational. Context prevents gaming by requiring metrics to be interpreted alongside related data.

SLOs Without Accountability

SLOs without error budgets lack teeth. The SRE approach uses error budgets to make SLOs actionable—when a team exhausts their error budget, they must prioritize reliability over new features. Security SLOs should follow the same pattern.

SLOs without owners lack accountability. Every SLO should have a clearly identified owner responsible for attainment. Ownership ensures follow-through because someone is accountable for investigating and addressing SLO violations.

Unachievable SLOs demotivate teams and undermine program credibility. SLOs should be challenging but achievable based on historical performance and available resources. Setting a 1-hour MTTR SLO for a team that currently averages 24 hours creates learned helplessness rather than motivation.

Conclusion

Security metrics and KPIs drive behavior and enable data-driven decision-making when tied to outcomes and designed to resist gaming. Security engineers choose metrics that measure risk reduction and control effectiveness rather than activity.

Success requires automatable metrics with published definitions, appropriate review cadence, and clear accountability. Organizations that invest in security metrics fundamentals make data-driven decisions that improve security outcomes across detection, vulnerability management, identity, and control coverage.

References