Join our Newsletter — 33% off our NHI Course
Home› Glossary› AI Security› Inference
AI Security

Inference

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: AI Security

Inference is the process of using a trained model to generate outputs from new inputs. In security terms, it matters because inference cost can vary dramatically based on prompt size, tool calls, and model selection, which makes it a target for abuse and cost escalation.

What inference means in an AI system

Inference is the runtime phase where a trained model turns new input into an output. The model is already built; the live question is how efficiently and reliably it can answer, classify, predict, or generate from fresh prompts, retrieved context, or tool results.

That distinction matters because inference is not just “model use”, it is the production workload that converts compute, context, and access into a result. The design choices around model size, prompt length, retrieval, and tool orchestration shape both quality and cost.

Why inference cost and latency vary

Inference cost can change sharply with token volume, context window size, number of steps, and whether the model must call external tools or APIs. Larger prompts and multi-step flows consume more compute, more time, and often more downstream service capacity.

In practice, the same model can be inexpensive for short, direct prompts and expensive for long-running or agentic workflows. That variability is why inference is a budgeting, scaling, and performance concern, not just a machine learning term.

How inference is abused or overconsumed

Because inference is metered by usage, it can be targeted for cost escalation. Unchecked repetition, oversized prompts, recursive tool loops, and abusive automation can turn a well-designed model service into an unexpectedly expensive platform.

Inference abuse is also a security issue when shared services, quotas, or billing boundaries are weak. The service may remain available, but the organisation absorbs the cost, queueing delay, or resource contention created by misuse.

What strong inference operations depend on

Reliable inference depends on clear workload boundaries, predictable prompt handling, and visibility into what drives each call’s resource use. Teams need to distinguish ordinary product traffic from pathological requests, because inference is often the most visible cost centre in an AI application.

It also depends on the surrounding control plane. If retrieval, tools, or upstream inputs are inconsistent, the model can be technically “working” while still producing unstable or misleading results. NIST SP 800-53 Rev 5 Security and Privacy Controls remains useful here because it frames the access, audit, configuration, and monitoring controls that support reliable service operation.

Risk and Threat Considerations

Inference becomes risky when an attacker, abusive user, or buggy workflow can drive up token usage, trigger repeated tool calls, or force expensive model selection. The result is usually a blend of availability pressure, unexpected spend, and reduced responsiveness for legitimate users.

Failure mechanism: Oversized prompts, recursive agent loops, and uncontrolled retries multiply compute use until quotas, budgets, or latency thresholds are exceeded.

Impact: The organisation can face cost spikes, degraded service quality, queue buildup, and reduced trust in the AI system’s operating model.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0ID.AM-01 — Asset InventoryInference services depend on knowing which model paths and workloads exist.
Recommendation — Inventory inference endpoints, model routes, and supporting dependencies.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingInference abuse is visible through logs, usage spikes, and anomalous request patterns.
Recommendation — Review inference logs for abnormal usage, retries, and cost-driving patterns.
CIS Controls v8CIS-12 — Network Infrastructure ManagementInference workloads need managed boundaries and monitored paths to limit abuse and congestion.
Recommendation — Constrain and monitor inference service paths to reduce uncontrolled consumption.
OWASP API Security Top 10API4 — Unrestricted Resource ConsumptionInference endpoints can be exhausted through repeated or oversized requests.
Recommendation — Apply API4-style limits to cap inference volume, retries, and expensive request patterns.
NIST AI RMFGOVERN — GOVERNInference cost and operational drift are AI governance concerns that require accountability.
Recommendation — Assign governance for inference cost controls, service tiers, and operating thresholds.

Practitioner Guidance

What to watch for: Treat prompt length, tool-call frequency, retries, and model tier selection as operational signals, not just product telemetry. When those variables drift upward, inference economics and service stability usually move together.

Governance implication: Define who can invoke high-cost inference paths, set usage guardrails, and make ownership for budget and performance explicit. That is especially important when the application can chain retrieval or tools into a longer execution path.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org