IT Brief Australia - Technology news for CIOs & IT decision-makers
Australia
Managing the Spiralling Costs and Security Risks of AI Tokenmaxxing

Managing the Spiralling Costs and Security Risks of AI Tokenmaxxing

Wed, 25th Nov 2026 (Today)
Pejman Tabassomi
PEJMAN TABASSOMI Field CTO Datadog

The rise of "Tokenmaxxing" – the excessive use of AI tokens by engineers – has prompted companies to take a closer look at how AI resources are being used. AI models can generate thousands of tokens in the space of a few minutes, especially for intensive tasks and workloads. However, the cost of running AI models is escalating faster than expected.

Many organisations have used token consumption as an indicator of productivity, which has incentivised Tokenmaxxing to the extent that engineering teams at Meta created a "token leaderboard" to rank token usage. Datadog's 2026 State of AI Engineering report quantifies the scale of this problem. It found that token usage per request more than doubled year over year for median customers and quadrupled for 90th-percentile power users among Datadog-monitored services.

For organisations, the challenge is to find the right balance between AI cloud spend, return on investment, and security. Tightening controls on AI usage too far, however, risks slowing innovation.

Controlling AI costs

With organisations under pressure to cut costs across the board while maintaining velocity in AI production and innovation, it is wise to use cost management and optimisation measures to reduce waste and maximise spending in the areas that matter most. This helps ensure that budgets for critical services such as cybersecurity are not affected.

Tokenmaxxing can be managed through context optimisation. This means reducing token costs throughout an agent request by restricting the context processed by the LLM to what is necessary, while maintaining response quality. AI models can retrieve thousands of lines of source code, internal documentation and other context from a repository, even though only a subset of that information is ultimately needed to generate the final response.


By optimising outputs, it is possible to filter out irrelevant search results and deduplicate repetitive content. This process also allows teams to break down sessions with an AI model, such as Claude, Gemini or a GPT variant, to identify what contributes to the end-to-end cost of a request. Managed cost reduction lets teams make the changes needed to lower token costs, maintain their current AI workflows, and fine-tune the configuration of the AI toolsets they use.

Reducing AI costs is only part of the challenge, though. As AI usage grows, so too do the security risks associated with these workloads.

New AI security risks

Organisations need to rethink existing threat models as AI workloads create new attack surfaces. Tokenmaxxing has contributed to this by generating higher volumes of sensitive data inputs and outputs, increasing exposure to threat actors using new techniques that teams are still learning to address.

One example is prompt injection, where an attacker manipulates the information or instructions provided to a model, attempting to make it behave in ways that developers or engineers did not intend or to reveal information it should not disclose. While prompt injections are often framed as malicious user messages, Datadog's researchers found that prompts can also be injected through instructions delivered via retrieved documents, tool results or files in a trusted workspace.

Other risks include supply chain compromises, where attackers target popular third-party tools, libraries, registries and even Model Context Protocol (MCP) servers. Data leakage is also still a major issue; sensitive data can leak into LLM datasets unless it is actively scanned or blocked.

These risks make visibility and control increasingly important as AI becomes more deeply embedded in engineering workflows.

Visibility and control

The first step in managing Tokenmaxxing security risks is to create an inventory of the AI models, agents and tools that engineering teams are using. AI agents are made up of models, instructions, data and tools, so thoroughly investigating potential security risks requires drilling down into each component. This helps teams assess agents' functionality and the environments in which they operate and decide where monitoring and guardrails are needed.

To monitor and secure sessions involving Tokenmaxxing, this inventory can help show which models, tools and services an agent can reach and what actions it can take. Teams also need to verify sources, so they know whether an agent accessed an approved source, a public marketplace or a repository.

It's also important to track sensitive data across AI agent workflows. Sensitive data can enter a session through prompts, retrieved content or tool responses, and then reappear in model outputs or downstream tool calls. Tracking that path helps teams determine where the data came from and whether it reached another system.

Unified monitoring and observability lets teams trace how a prompt leads to an action and place controls along that path. Guardrails can help block unsafe prompts or tool calls before they reach downstream systems, while limiting what an agent can do if a request gets past these checks. This framework gives engineers and security analysts the context they need to investigate blocked requests and detection signals.

Balancing cost and security

As AI use continues to grow, organisations must control Tokenmaxxing while maintaining the productivity and innovation benefits that AI offers. Reducing unnecessary token consumption can help control costs, but it needs to be paired with visibility into the models, agents, tools and data involved. Unified monitoring, observability and appropriate guardrails can help organisations put controls in place, identify potential security risks and support AI use without disrupting established workflows.