Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How can organisations reduce the risk of cost…
Cyber Security

How can organisations reduce the risk of cost harvesting?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Cyber Security

Reduce the risk by controlling who can drive expensive model usage and how often they can do so. Set quotas, billing alerts, per-user limits and request throttles, and watch for long prompts, repeated retries and automated abuse. Review endpoints that trigger high compute, because attackers may deliberately generate expensive inference activity to drain budget or exhaust capacity.

How cost harvesting happens in AI workloads

cost harvesting is a denial-of-wallet pattern: an attacker, abusive user, or buggy integration deliberately drives up model and inference spend without needing to break confidentiality or integrity first. It becomes easier when expensive endpoints are public, usage is unconstrained, or the system treats all requests as equally cheap. The practical question is how to make expensive usage observable, bounded, and attributable.

That means treating model calls like any other metered resource. The control objective is not just blocking fraud, but preventing unplanned consumption from scaling faster than your detection, billing, or capacity response. Where cost is driven by token volume, retries, streaming, or downstream tool invocation, the attack surface is often operational rather than purely application-layer.

One useful reference point for understanding how abusive consumption patterns show up in AI systems is the MITRE ATLAS Guide, which covers AI attack techniques and mitigation mapping, including resource consumption abuse and exfiltration via inference endpoints.

Controls that reduce expensive request abuse

The strongest reductions come from combining spend controls with request controls. Quotas cap total consumption over time, per-user or per-tenant limits stop one actor from dominating budget, and throttles slow repeated retries or scripted bursts. Billing alerts are useful only when they are tied to real response actions, not just finance notifications after the fact.

At the request layer, focus on the inputs that make a call expensive: long prompts, large context windows, high retry rates, repeated regeneration, and endpoints that trigger tool use or multi-step inference. If a route can invoke a high-compute model, route it through stronger authentication, tighter authorization, and narrower rate limits than ordinary traffic. For cloud and API-heavy deployments, the OWASP API Security Top 10 is a useful lens for unrestricted resource consumption and access control failures.

Cost protection also improves when organisations separate experimentation from production. Sandboxed keys, disposable test budgets, and environment-specific limits make it harder for a compromised account or a careless integration to drain the main billing pool. This is especially important when the same endpoint can be reached by humans, automation, and internal services.

For broader platform hardening, the NIST Cybersecurity Framework 2.0 helps structure governance, protection, detection, response, and recovery around a metered AI service.

Why monitoring and abuse detection need to be cost-aware

Standard API monitoring is not enough if it does not track economic impact. A small number of repeated requests can create disproportionate spend when prompts are large, responses are verbose, or model chaining amplifies compute. Organisations should watch for abnormal prompt length, retry storms, bursty token consumption, and unusual patterns of access to the most expensive endpoints.

Detection works best when operational teams can correlate usage with identity, application, and business context. For example, a single service account generating many expensive completions across many tenants is more suspicious than the same volume from a known batch job. That is why logging should preserve request origin, model tier, token counts, and the caller that triggered the action, not just HTTP status and latency.

When abuse is driven through machine-to-machine paths, the OWASP Non-Human Identity Top 10 is relevant because overprivileged credentials, long-lived secrets, and poor offboarding often make automated spend abuse easier to sustain.

Risk and Threat Considerations

Cost harvesting is attractive because it can be profitable, low-noise, and scalable. The attacker does not always need to compromise data; they may simply force expensive inference until budget, quotas, or capacity are exhausted. In shared environments, this can also create collateral impact by slowing legitimate workloads or forcing emergency shutdowns.

Failure mechanism: A public or weakly gated endpoint allows repeated high-cost calls, retries, or long-context prompts to accumulate charges faster than the organisation can detect and stop them. If the same pathway is used by automation, a small abuse script can multiply its impact across many requests or tenants.

Impact: The organisation may see unexpected bill spikes, degraded service, reduced headroom for real users, and forced throttling of valid traffic. In severe cases, the response to budget exhaustion can itself become an availability incident.

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 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API4 — Unrestricted Resource ConsumptionAI inference endpoints can be abused for costly repeated requests.
Recommendation — Rate-limit expensive model routes and cap repeated consumption before budget is drained.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlCost harvesting is reduced when expensive actions are tied to verified callers.
Recommendation — Restrict high-cost model access to authenticated, authorized identities.
CIS Controls v8CIS-6 — Access Control ManagementSpend abuse often follows excessive access to expensive services and keys.
Recommendation — Remove unnecessary access to high-cost AI endpoints and service credentials.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIAutomated credentials with broad access can generate runaway model spend.
Recommendation — Reduce privileges on machine credentials that can invoke expensive inference.

Practitioner Guidance

What to prioritise: Put the tightest controls on the routes that can trigger the most expensive model behaviour. If one endpoint can create far more spend than the rest, treat it as a protected control point rather than a normal API path.

What to verify: Confirm that quotas, throttles, and alerts are enforced per identity or tenant, not only at the account level. A useful control should still hold when the same caller changes IPs, retries requests, or moves between environments.

Decision rule: If a request pattern can materially change cost without changing business value, cap it first and investigate later. If you wait to confirm abuse before limiting spend, the budget leak may already be large enough to matter.

Practitioner takeaway: The best cost-harvesting defence is not a single alert, but a layered limit model that makes expensive behaviour hard to repeat, easy to attribute, and cheap to stop.

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 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org