Join our Newsletter — 33% off our NHI Course
Home› Guides› AML.T0034 Cost Harvesting: Stop Attackers Turning Your AI…
Guide AI Threats & Model Security

AML.T0034 Cost Harvesting: Stop Attackers Turning Your AI Bill into a Weapon

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 11 min read
On this page

Pay-per-use AI services turn every request into a cost, so an adversary who cannot steal anything can still hurt you by making the system work harder than it should. MITRE ATLAS tracks this as AML.T0034 Cost Harvesting: deliberately driving a victim's AI services beyond normal operating capacity to increase the cost of the service. ATLAS release 2026.10 places it in the Impact tactic (AML.TA0011), rates it feasible, and since March 2026 splits it into three sub-techniques covering high-volume queries, expensive queries and agents coerced into wasteful work. This guide is for platform owners, AI application teams and FinOps and security leads who run LLM APIs, inference endpoints or agents. It explains how ATLAS defines the technique, how to tell it apart from neighbouring threats, and which limits, telemetry and tests stop it. The detailed limit design is in the Denial-of-Wallet and AI Agent Cost Runaway Guide; this page is the ATLAS view.

Key takeaways

  • The goal is financial harm. ATLAS separates cost harvesting from resource hijacking: the adversary is not using your compute for their own work, they are making you pay for load you did not want.
  • Three routes, three controls. Excessive Queries (AML.T0034.000) needs rate limits and quotas, Resource-Intensive Queries (AML.T0034.001) needs per-request bounds, and Agentic Resource Consumption (AML.T0034.002) needs workflow-level budgets.
  • Autoscaling amplifies the bill. ATLAS notes that inflated load can trigger autoscaling that provisions more resources, raising cost and exposure, and can saturate GPU pipelines so legitimate users see latency or outages.
  • Agents multiply one prompt into many calls. A single injected instruction can push an agent into fan-out or self-delegation loops, so limits on the front door alone are not enough.
  • No case study yet. ATLAS rates the technique feasible and records no case study for it; the evidence base is research such as sponge examples, which raised energy use by a factor of 10 to 200.

How the technique works

ATLAS describes three sub-techniques, all added on 30 March 2026. They differ in where the cost comes from, which decides where the control must sit.

Sub-techniqueHow cost is driven upPlatforms (ATLAS)Why it is hard to spotPrimary control
AML.T0034.000 Excessive QueriesAutomated high volumes of normal, cheap requests that exploit rate limits, autoscaling and pay-per-use billingPredictive, Generative, AgenticEach request looks legitimate; the problem is volume, often spread across keys or accountsRate, burst and concurrency limits plus quotas per identity (AML.M0004)
AML.T0034.001 Resource-Intensive QueriesFew requests that are expensive to process: long inputs, requests for very long outputs, prompts that demand complex reasoning, or sponge examplesPredictive, Generative, AgenticATLAS notes that fewer, heavier queries may be harder to detect and block than a floodBounds on input, output, time and compute per request (AML.M0036)
AML.T0034.002 Agentic Resource ConsumptionInstructions placed in the agent's context through prompt injection (AML.T0051) or tool data poisoning (AML.T0099) that cause unnecessary searches, fan-out, many tool calls or recursive self-delegationAgenticThe user's request is small; the cost appears inside the workflowWorkflow budgets: iterations, tool calls, delegation depth, downstream spend (AML.M0036)

The precondition is access. For most deployments that means AML.T0040 AI Model Inference API Access through a public or partner endpoint, or the ability to place content where an agent will read it. The sponge examples research cited by ATLAS showed that crafted inputs to vision and language models raised energy consumption by a factor of 10 to 200 and transferred across CPUs, GPUs and an ASIC simulator; its proposed defence was to analyse energy use for the worst case rather than the average.

Telling it apart from neighbouring threats

The same spike on a billing dashboard can come from several causes. Intent and pattern decide which playbook applies.

ThreatAdversary goalTypical signalReference
Cost harvestingRaise the victim's costLoad from your own users, keys or content sources with little useful output; repetitive or oversized requestsAML.T0034
Resource hijacking (LLMjacking)Use the victim's AI for the attacker's own purposesStolen keys invoking models from unfamiliar locations, often in regions or models you do not useATT&CK T1496.004 Cloud Service Hijacking; see the LLMjacking 2024 to 2026 breach analysis
Denial of AI serviceMake the service unavailableErrors and timeouts for legitimate users are the aim, cost is a side effectAML.T0029 Denial of AI Service
Model extractionCopy model behaviourHigh query volume with systematic input coverage and interest in confidence scoresAML.T0005 Replicate AI Model Behavior
Accidental runawayNoneA bug, retry storm or misconfigured agent in your own codeInternal incident

LLMjacking shows the scale of the bill when model use is not bounded: Sysdig estimated the cost to a victim at over $46,000 a day in May 2024 and over $100,000 a day in September 2024. Under ATLAS that is hijacking rather than harvesting, but the same quotas, budgets and alerts limit both.

Prevention: limits at three layers

ATLAS maps four mitigations to AML.T0034. ATLAS says resource limits must apply across the complete workflow, because one request may start many model calls or external actions, and that they complement query-rate limits rather than replace them.

LayerATLAS mitigationConcrete settings
Identity and accessAML.M0019 Control Access to AI Models and Data in ProductionAuthenticate every endpoint; no anonymous access to paid models; separate keys per application and tenant
Request volumeAML.M0004 Limit AI Service Query Volume and RateShort-term rate, burst and concurrency limits with longer-term quotas, applied by user, API key, tenant or device; watch for evasion through distributed requests, account rotation or stolen credentials
Per requestAML.M0036 Limit AI Workload Resource ConsumptionMaximum input size and context tokens, maximum output tokens, execution timeout, memory and batch size
Per workflowAML.M0036 Limit AI Workload Resource ConsumptionLimits on iterations, retries, tool calls, parallel tasks and delegation depth; cost ceilings, circuit breakers and safe termination
AssuranceAML.M0035 AI Red TeamControlled tests for each sub-technique; verify budgets, quotas, alerts and termination work

Where the limits live

  • AI gateway: a gateway token-limit policy can enforce tokens per minute and a token quota per period keyed to a subscription or identity, returning an error once a limit is exceeded. See the AI Gateway and LLM Gateway Guide.
  • Application: validate input length before the model call and set an explicit maximum output length on every call; do not rely on model defaults.
  • Agent runtime: enforce step, tool-call and spend counters in the orchestrator, not in the prompt, so an injected instruction cannot talk the agent out of them. See AI Agent Rate Limits.
  • Infrastructure: cap autoscaling maximums for inference pools so a flood cannot provision unlimited capacity.
  • Billing: budget alerts are a backstop, not a brake; they report spend after it happens.

Decision guidance

SituationStart withAdd when the risk grows
Internal assistant for staff on a hosted LLMPer-user quotas and maximum output tokensSpend alert per department or project
Public chatbot or free tierAuthentication or strong anonymous throttling, per-session token caps, input length limitsBot detection, adaptive throttling for repetitive or oversized prompts
Partner or customer APIPer-key rate and token quotas tied to contractPer-tenant cost dashboards and automatic suspension at a hard ceiling
Agents that browse, call tools or delegateStep, tool-call and delegation-depth limits; per-task cost ceilingHuman approval above a cost threshold; content provenance checks on retrieved data
Self-hosted inference clusterRequest timeouts, batch and memory limits, autoscaling capsWorst-case latency and energy testing of new models before release

Smaller organisations get most of the value from a gateway quota and a hard spend ceiling per key. Larger ones need per-tenant attribution so the cost of an attack lands on a named identity that can be suspended without affecting others.

How to implement

  1. Map cost paths: list every endpoint, model and agent, what each request can trigger downstream, and who pays.
  2. Baseline: measure normal tokens per request, requests per identity and steps per agent task for two to four weeks (our recommendation).
  3. Set limits in report-only mode: configure quotas and ceilings slightly above the baseline and log breaches without blocking.
  4. Enforce in rings: block first on free or anonymous tiers, then partner keys, then internal users, checking support tickets after each step.
  5. Red team: run the AML.M0035 tests ATLAS lists for each sub-technique: controlled high-volume activity, requests designed to consume disproportionate inference resources, and recursive or fan-out agent behaviour. Use an isolated environment and a fixed test budget.
  6. Roll back safely: keep limit changes in configuration with version history so a limit that blocks legitimate work can be raised in minutes rather than removed.

Where identity fits

Rate limits and quotas only work when they are keyed to an identity the attacker cannot cheaply multiply. ATLAS warns specifically about evasion through account rotation and stolen credentials. Issue a separate API key or workload identity per application, tenant and agent; avoid shared keys that pool everyone's usage; and treat an agent's credentials as having a spending authority that needs its own ceiling. A leaked AI API key is both a secrets incident and a cost incident. See the OWASP LLM Top 10 LLM10 Unbounded Consumption Guide for the identity requirements in that risk.

Detection and measurement

  • Cost per identity: tokens and spend per key, user, tenant and agent, with alerts on deviation from that identity's own baseline. See Cloud Cost Anomalies as Security Signals.
  • Request shape: distribution of input length, requested output length and processing time; heavy tails point to .001.
  • Agent traces: steps per task, tool calls per task, fan-out width and delegation depth; repeated identical tool calls point to .002.
  • Limit hits: 429 and quota responses per identity; many identities hitting limits together suggests distribution across accounts.
  • Autoscaling events: scale-outs without a matching business event.

ATLAS mitigation AML.M0024 AI Telemetry Logging and Monitoring supplies the records these signals depend on.

Metrics

  • Bounded coverage: share of model calls with an explicit maximum output length.
  • Attributed spend: share of AI spend attributed to a named identity or tenant.
  • Agent budget coverage: share of agent workflows with step and cost ceilings enforced by the runtime.
  • Time to contain: from cost anomaly alert to suspension of the responsible key or workflow.
  • Cost per useful outcome: spend per resolved request or completed task, tracked weekly.

Response

  1. Identify the identity, endpoint or content source driving the cost.
  2. Suspend or throttle that key or workflow rather than the whole service.
  3. For .002, find and remove the injected content from the data the agent reads.
  4. Rotate the key if it may have been stolen, and check whether the case is hijacking rather than harvesting.
  5. Ask the provider about billing review for clearly abusive traffic, and record the incident cost.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5SC-5 Denial-of-service Protection; SC-6 Resource AvailabilityLimits on consumption by any one user or process
NIST SP 800-53 Rev 5SI-4 System Monitoring; AU-6 Audit Record Review, Analysis, and ReportingUsage and cost telemetry and review
NIST CSF 2.0PR.IR-04; DE.CM-09Adequate capacity maintained; runtime monitoring
MITRE ATT&CKT1499.003 Application Exhaustion Flood; T1496.004 Cloud Service HijackingConventional counterparts; see MITRE ATT&CK T1499 Endpoint Denial of Service
OWASP Top 10 for LLM Applications 2025LLM10 Unbounded ConsumptionLists Denial of Wallet, Variable-Length Input Flood, Continuous Input Overflow and Resource-Intensive Queries
OWASP API Security Top 10 2023API4 Unrestricted Resource ConsumptionSee the OWASP API Top 10 API4 Unrestricted Resource Consumption Guide

Common failure patterns

  • Rate limits without token limits: request counts are capped but one request can still ask for a maximum-length output.
  • Limits in the prompt: the agent is told to stop after a number of steps, but nothing in the runtime enforces it.
  • Shared keys: one key for many apps or tenants, so an abusive caller cannot be cut off without an outage.
  • Unlimited autoscaling: inference pools scale to whatever traffic arrives.
  • Budgets as brakes: teams assume a billing budget stops spend when it only sends an alert.
  • Retries multiplying load: clients retry heavy requests on timeout, doubling the cost of every slow call.

Practitioner checklist

  • Require authentication on every paid model endpoint.
  • Issue separate keys or workload identities per application, tenant and agent.
  • Set rate, burst, concurrency and quota limits per identity.
  • Set explicit maximum input and output tokens and timeouts on every call.
  • Enforce step, tool-call, delegation-depth and cost ceilings in the agent runtime.
  • Cap autoscaling for inference pools.
  • Alert on cost and token anomalies per identity, not only on total spend.
  • Red team each sub-technique in an isolated environment and retest after changes.

Standards and references

Related NHI Mgmt Group resources: Denial-of-Wallet and AI Agent Cost Runaway Guide · FinOps Security · AML.T0051 LLM Prompt Injection · MITRE ATLAS Mitigations Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.