Docs / GenAI security

Chapter 08 / Operations

Budget, context & operational cost

Account for engineering time, provider limits, retries, local compute and context growth without inventing a cost-per-compromise.

Research-led, evidence-first. Original report pp. 13–19, 27–40, 45–50. Examples use synthetic data or explicitly authorized labs. Observations, inferences and teaching additions are kept distinct.

On this page

The API bill is only one component

The report’s practical lesson is that operational feasibility depends on more than token prices. Framework setup, VPN routing, package compatibility, debugging and human finishing can dominate an experiment. A low metered bill does not imply that the whole workflow was cheap or accessible to an inexperienced user.

total operational cost =
  metered inference + infrastructure + local compute
  + engineering time + operator review + failed attempts

Report wall-clock time and hands-on time separately.

For local models, $0 in hosted API charges does not mean free inference. Hardware, energy, capacity planning and maintenance still matter. For hosted models, a subscription, API billing tier and token-per-minute allowance are different mechanisms. The report’s CAI /GPT run encountered rate limits despite paid access.

Context can grow without increasing knowledge

Tool outputs often dominate a session: repeated HTML, scan banners, verbose errors and duplicated agent summaries. If every worker receives the full transcript, the same observation may be paid for repeatedly. Context growth can reduce remaining budget while making the useful signal harder to retrieve.

Store raw artifacts outside the model context and pass concise, provenance-preserving summaries. Include enough output to validate the interpretation, and retain a path to the full record. Do not truncate away the one error line that explains why a command never reached the target.

Bound retries and delegation

  • Set wall-clock, request and spending limits before a run begins.
  • Distinguish an automatic retry for a transient fault from a new target-side test.
  • Require a reason before repeating equivalent failed operations.
  • Give parallel workers non-overlapping tasks and a shared evidence store.
  • Stop when the next step needs new authorization, not when the model invents a justification.

Budgets belong in the harness, not merely in the prompt. A model can lose track of how many requests it has already issued. A deterministic controller can count requests, enforce deadlines and refuse operations after a cap. That controller should record its own decisions for audit.

Measure useful progress

Useful operational metrics include time to first verified observation, time to a correctly falsified hypothesis, number of unproductive retries and operator minutes per verified milestone. These measures recognize that ruling out a plausible route can be valuable even when the final objective is not achieved.

Do not use the report’s historical spend to advertise a fixed cost to compromise an organization. Target difficulty, operator skill, model access and setup investment differ. Similarly, its 60/40 or 80/20 style discussions are heuristics about the distribution of work, not experimentally measured universal ratios.

Local and hosted deployment have different boundaries

A local deployment can reduce disclosure to an external inference provider, but does not eliminate logs in the operating system, agent framework, proxy, network or target. Nor does “open weights” guarantee absent safeguards. Effective behavior depends on the exact model, serving layer and application policy.

Choose the deployment based on data sensitivity, permission controls, auditability, reproducibility and required performance. Record where prompts and artifacts may be retained. A private model with a broadly privileged tool server can still be an unsafe system.

Checkpoint

A local run has no API charge but takes two days of engineering and hours of GPU use. A hosted run costs $20 and takes one hour of review. Which costs less? You need a stated accounting method and comparable outcomes; the API line item alone cannot decide.

References & source notes

Source mapping: supplied report, pp. 13–19, 27–40, 45–50. Read the full bibliography and editorial notes, or find a tool in the upstream reference catalogue.

Adapted by OverWatch Labs from the OWASP GenAI Security Project’s LLM Exploit Generation: Phase 2 (October 2026). Reorganized, paraphrased and supplemented with teaching examples. No OWASP endorsement implied.

Original report · CC BY-SA 4.0 · Attribution and changes