Best Practices Guide

AI Security Metrics: Identifying Vanity Metrics and Measuring Runtime Control Effectiveness

A vanity metric in AI security reports effort or coverage, such as agents inventoried, prompts scanned, policies written, or alerts generated, and would look the same whether or not controls constrain agent behavior. Decision-grade AI security metrics measure outcomes at runtime: the share of tool calls evaluated against least-privilege policy, the share of actions bound to a verified agent identity, permission drift, and audit completeness. Test any metric for actionability, linkage to risk outcomes, resistance to gaming, and verifiability at runtime.

Why activity counts are not assurance

A vanity metric reports effort or coverage. Agents inventoried, prompts scanned, policies written, and alerts generated all describe activity. None of them shows whether controls constrain what an agent actually does.

The defining trait is that a vanity metric would look the same whether or not controls constrain agent behavior. A decision-grade metric measures outcomes at runtime, which is why the two should not share the same place in executive reporting.

Four criteria for a decision-grade metric

Test any AI security metric against these four criteria:

  1. Actionability: the metric supports a specific decision.
  2. Linkage to risk outcomes: the metric connects to a risk outcome, not only to effort or coverage.
  3. Resistance to gaming: the metric cannot be improved without improving the underlying control.
  4. Verifiability at runtime: the metric can be confirmed against enforced behavior at runtime.

Classifying commonly reported metrics

Applying the criteria sorts metrics into three classes. Only the third class measures enforced behavior and supports a specific decision.

Three classes of AI security metric
ClassDescriptionExamples from this guide
Vanity Counts effort or coverage. Unchanged if runtime enforcement is disabled. Agents inventoried, prompts scanned, policies written, alerts generated.
Conditionally useful Informative once a denominator, validation step, or outcome link is added. Depends on the denominator, validation step, or outcome link that is added.
Decision-grade Measures enforced behavior at runtime and supports a specific decision. Tool calls evaluated against least-privilege policy, actions bound to a verified agent identity, permission drift, audit completeness.

Outcome measures for identity, permissions, tool calls, enforcement, and audit

Decision-grade measures describe what happened at runtime rather than what was configured or counted:

  • Tool calls: the share of tool calls evaluated against least-privilege policy.
  • Identity: the share of actions bound to a verified agent identity.
  • Permissions: permission drift.
  • Audit: audit completeness.

Each measure needs a one-line definition that states the numerator, denominator, data source, and owner. Before setting targets, establish a baseline for tool-call evaluation, permission drift, and log completeness.

How metrics get gamed and misread in executive reporting

Effort and coverage counts can rise while enforcement stays unchanged, which makes them easy to misread as progress. Inventory and policy counts are the usual examples.

Two practices reduce this risk. First, add a recurring test with deliberately disallowed actions to confirm that enforcement works as reported. Second, give executives a short set of decision-grade measures, and keep vanity metrics for operational use only.

Steps to replace vanity metrics

  1. Run the disable test on every current metric and relabel those that would not change as effort indicators.
  2. Write a one-line definition for each metric, including numerator, denominator, data source, and owner.
  3. Replace inventory and policy counts with identity-bound and enforcement-evidenced equivalents.
  4. Establish a baseline for tool-call evaluation, permission drift, and log completeness before setting targets.
  5. Add a recurring test with deliberately disallowed actions to confirm that enforcement works as reported.
  6. Report to executives a short set of decision-grade measures, with vanity metrics kept for operational use only.

Measure what controls actually enforce

Trussed AI provides runtime governance and security for enterprise AI agents, including policy enforcement, agent identity, permissions, and audit logging. Talk to an expert about which of these measures your environment can produce today.

Talk to an Expert