LLMjacking: Who Can Spend Your AI API Budget?

Imagine a document-summary feature receives only a few customer requests overnight, yet its model usage climbs sharply. The web dashboard looks quiet because some calls bypassed the application. Alternatively, one legitimate account may have submitted repeated background jobs. These are hypothetical paths with different repairs. Start by finding which identity and route caused the billable work.

Why LLMjacking needs a separate check

Google Threat Intelligence Group’s November 2, 2026 report describes investigations in which attackers monetized compromised enterprise model access. It also reports cases where attackers enabled AI services after obtaining cloud access. An organization can therefore have exposure even before launching a customer-facing AI feature. Google’s LLMjacking research.

For an engineering team, the useful question is narrower than “Is AI expensive?” It is whether a person or workload can create charges outside its approved purpose. Keep ordinary adoption growth, an accidental retry loop and suspected credential abuse as separate hypotheses until the request evidence connects them. A large bill establishes cost, not the cause.

Separate the spending paths

Draw the application route and the direct provider route separately. For each credential, record its owner, approved workload, model access and deployment environment. Then use this decision table to choose the next check.

Observed patternFirst place to investigateEvidence to compare
Provider calls without matching app requestsA direct credential or another workloadProvider principal, request time and application trace
One account creates many summary jobsApplication authorization and job admissionAccount identity, accepted jobs and charged calls
Repeated calls follow timeoutsWorker retries and cancellationJob identifier, attempts and final job state
A previously unused AI service becomes activeCloud administration permissionsService enablement event and change approval

These patterns are investigation leads. Shared gateways and incomplete telemetry can also explain a missing match. Resolve the attribution before disabling a credential used by several production services. The existing exposed API key response guide covers the broader secret-leak workflow.

Put limits at the operation that creates cost

A request counter is only one control. OWASP’s unrestricted resource consumption guidance addresses input sizes, operation limits and third-party spending. Apply that reasoning to the unit your feature actually purchases: a model call, a long output or a background job. OWASP API resource consumption.

For a summary feature, agree maximum input size, allowed models, output allowance, simultaneous jobs and retry count. Reserve capacity before starting work so concurrent requests cannot all pass the same remaining allowance. Decide whether cancellation stops queued work, active provider calls or only the screen update; expose that distinction to the product team.

Check the provider’s own limits separately. Amazon Bedrock documents token-based inference quotas, with exceptions and endpoint-specific allocations. Inspect the quotas on the actual account and model instead of assuming one global ceiling. Amazon Bedrock quotas.

Likewise, Google Cloud distinguishes alerts-only budgets from supported spend-cap budgets. An alerts-only budget does not automatically stop usage. Confirm the configured service’s behavior and reporting delay before treating a billing setting as containment. Google Cloud budget behavior.

Test with a deliberately small allowance

Use a test project or isolated route with an agreed low allowance and synthetic documents. A stubbed provider can exercise application controls without buying inference; a few bounded real calls can then verify the provider boundary. Do not create a large bill to demonstrate that one is possible.

  • Establish one permitted request. Record its account, job identifier, expected model and resulting usage event.
  • Lower the test allowance and submit the next job. Verify rejection occurs before another billable call, and that another account cannot consume the reserved allowance.
  • Introduce one controlled timeout. Check the retry count, queued work and cancellation behavior against the agreed limits.
  • Disable the test credential or route through the planned stop control. Confirm new work is refused and document what happens to work already accepted.

Also send an ordinary request after restoring the test setting. A limit that blocks every customer is a failed release, even if the abuse case is denied. Record the largest accepted input and the first rejected case so the repair has a precise acceptance condition.

AI COST ABUSE / TRACE THE BILLABLE CALL

Two entry routes. One spending decision.

A controlled summary job shows whether application and provider controls cover the same work.

  1. Locate the entry

    Distinguish an app request from a direct provider call.

  2. Resolve the spender

    Map the credential and user to an approved workload.

  3. Check admission

    Apply permissions and usage allowances before inference.

  4. Prove the stop

    Reject new calls and inspect already accepted work.

An alert reports activity; a tested enforcement point determines what can still run.

Make the alert investigable

An alert should identify the affected workload and a person who can act. Combine unexpected spending with contextual signals: a new model, a new credential, changed usage settings or calls outside the approved application route. Establish the normal behavior of batch jobs before treating overnight activity as suspicious.

Keep event identifiers and outcomes in routine logs; avoid copying API keys, full documents or customer prompts into the alert. OWASP’s logging guidance explains why secrets and sensitive content need exclusion or protection. OWASP logging guidance.

Prepare a short response record: who owns the credential, who can stop the route, what legitimate service depends on it and where usage evidence is retained. If compromise is confirmed, revoke the affected access, investigate its origin and verify that replacement credentials have the intended scope. Preserve the timeline for the provider’s billing review without assuming charges will be refunded.

Include cost abuse in application testing

Repeat the bounded cases when you add a model, increase output allowances, introduce a queue or change retry behavior. Keep the direct-provider route in the review even when your public endpoint has effective rate limits. The application gateway cannot enforce a rule on traffic that bypasses it.

At Sectiv, configuration starts with how your application works. Bring the AI request paths, background jobs and spending rules to agree which abuse cases belong in your web, API or source review. AI-assisted testing, validation and expert support then work against that agreed scope. Book a demo.

Common questions

Is LLMjacking the same as a runaway AI agent?

Both can create unexpected charges. LLMjacking involves unauthorized use of model access; a runaway agent can result from a defect in an otherwise authorized workflow. Investigate identity and request traces, then address the cause alongside the usage controls.

Will a WAF rate limit stop stolen model credentials?

It can constrain requests that pass through that WAF. A stolen provider credential may be usable on a separate route. Check the provider permissions and direct-call controls as well as your application gateway.

Do we need to load-test the model to prove a spending limit?

Usually the decision logic can be tested with a small artificial allowance or a provider stub. Use a limited real request only when needed to confirm provider enforcement, with an agreed test budget and stop condition.

YOUR NEXT STEP

Make your AI security checks specific to your business.

Bring the workflow, permission rules and test environment to scope a Sectiv assessment.

Book a demo
References & further reading