Independent analysis by NHI Mgmt GroupSource article: Halcyon, “Attackers Are Now Stealing AI Models, Prompts, and API Keys” (September 30, 2026)

TL;DR: AI extortion now targets stolen models, prompt libraries and API keys as both resale inventory and free compute, according to Halcyon, while harvested tokens can replay past MFA and operate inside victim environments. Identity inventory and key governance have become ransomware controls, not just access hygiene.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Halcyon's blog post: Extortion groups are stealing AI models, prompt libraries and API keys to resell access and power follow-on attacks.

Why it matters: Security and identity teams need inventory, ownership and revocation controls for AI assets because stolen keys and tokens can become both ransom leverage and covert compute.


Context

The security gap is not just theft of data, but theft of the identities and artefacts that let AI systems operate. When models, prompt libraries and API keys are dispersed across clouds, subscriptions and development workflows, conventional asset inventories miss the operational objects attackers now monetise.

This is fundamentally an identity governance problem for AI estates: if a key can be replayed, a token can outlive MFA, or a model store has no owner, the attack surface becomes both invisible and reusable. Treat non-human identity governance as the starting point, because the same governance failures that expose service accounts now expose AI workloads and their credentials.


Key questions

Q: How should security teams govern API keys used for generative AI access?

A: Treat them as machine identities with lifecycle controls, not as disposable developer conveniences. Each key should have an owner, a specific purpose, an expiry date, and a revocation path. Security teams should also scan repositories, CI/CD pipelines, logs, and collaboration tools so leaked keys are discovered before they become standing access.

Q: Why do stolen tokens bypass MFA?

A: MFA is checked during login, but a stolen token is already proof that login succeeded. Once an attacker has that token, they can often act as the authenticated user without facing another MFA challenge. That is why session protection and token revocation matter as much as the login flow.

Q: How should teams protect prompt libraries and model files?

A: Protect them as sensitive AI assets with strict access control, versioning, integrity checks and secret scanning. Store prompt libraries and model files in repositories with role-based access, branch protection, signed artefacts and audit logs. Keep API keys, system prompts and embedded credentials out of the files, and remove unused copies from build artefacts, shared drives and backups.

Q: How can security teams detect AI credential abuse before it becomes a campaign?

A: Look for abnormal model usage, sudden changes in call volume, repeated access from unfamiliar contexts, and activity that crosses normal session boundaries. Combine those signals with token inventory and ownership data so the investigation can move from a single alert to a credential-level view of likely abuse.


Technical breakdown

Why API keys become ransomware fuel

API keys are not just authentication artefacts. They are billing authority, service access and sometimes broad runtime trust compressed into a string that is easy to copy and easy to reuse. In AI environments, the attacker value is amplified because a valid key can be used to consume compute, test prompts, exfiltrate outputs or keep access alive without drawing the same attention as a conventional intrusion. The issue is not the key format itself, but the fact that many organisations still treat the key as a convenience token rather than a governed identity. See the API Key Management Guide.

Practical implication: Map AI service keys to the workloads they authorise and remove any key that can be reused outside its intended system boundary.

How stolen tokens bypass MFA controls

A harvested token can sit above the authentication event that produced it. If the token remains valid after the original sign-in, the attacker does not need to repeat the MFA challenge because the session artefact already carries the trust decision. That changes the problem from password theft to session replay, where the real control question is how long issued artefacts remain usable and where they can be replayed. For AI systems, this matters because tokens often bridge users, tools and cloud services in ways that obscure provenance. See the NHI Authentication Guide.

Practical implication: Tighten token lifetime, binding and revocation so issued artefacts cannot outlive the context in which they were created.

What happens when prompt libraries become target assets

Prompt libraries are operational knowledge, not source code, but they now carry similar value because they shape model behaviour, automation logic and access patterns. If attackers steal them, they gain insight into internal workflows, escalation paths and the way teams have tuned AI systems for business use. That makes prompts a governance object as much as a content object. The security failure is not simply leakage of text; it is the exposure of machine instructions that reveal how the organisation’s AI estate is wired.

Practical implication: Classify prompt repositories as governed assets and apply access controls, ownership and retention rules equal to their operational value.


Threat narrative

Attacker objective: The attacker wants to turn AI assets into monetisable access, either by selling them or by using them to run operations at the victim's expense.

  1. Entry begins with stolen or harvested AI credentials, including API keys and tokens that provide legitimate access to AI services and related cloud accounts.
  2. Escalation follows when those credentials are reused to pull proprietary models, prompt libraries or additional service artefacts from the victim environment.
  3. Impact emerges when the stolen assets are monetised through resale, extortion pressure or follow-on attacks that consume the victim's own AI resources.
  • Hugging Face Spaces breach 2024: Unauthorised access to Hugging Face Spaces may have exposed secrets users stored for AI apps; tokens were revoked and org tokens removed.
  • Dropbox Sign breach 2024: A compromised back-end service account gave attackers Dropbox Sign customer data, including API keys, OAuth tokens and MFA information.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI identity theft is now an extortion workflow, not a side effect. The article shows that criminals are monetising the same artefacts defenders use to run AI services, including models, prompt stores and keys. That shifts the centre of gravity from data loss to operational identity loss, because the stolen asset is often the right to compute, not just the content being computed. Practitioners should treat AI access artefacts as revenue-bearing identity objects, not as peripheral secrets.

The named concept here is AI credential monetisation. Once a key or token can be sold, replayed or used to fund further operations, its value is no longer limited to the application it protects. That creates a market where access itself becomes the product, and governance must account for resale utility as well as immediate misuse. Security teams should rethink whether their AI inventory can distinguish authorised runtime access from commodity access in underground markets.

AI programmes are inheriting the NHI failure mode of unmanaged sprawl. Models, prompt libraries and keys are spreading faster than ownership models, which means the control gap is not just weak security policy but missing accountability. This mirrors the earlier service-account problem: if no one can answer where the asset lives, who owns it, and when it should be revoked, the attacker is already ahead. Secret sprawl now includes AI runtime artefacts.

Token replay shows that authentication evidence is not the same as access durability. MFA may prove who signed in, but it does not necessarily constrain how long the resulting token remains valid or where it can be reused. That distinction matters for AI services because tokens often bridge multiple tools and cloud contexts. The implication for practitioners is to govern issued trust artefacts as independently revocable assets, not as a by-product of login success.

From our research library:

What this signals

AI credential monetisation: when models, prompts and keys can be sold, organisations need governance over value-bearing access artefacts rather than only over data stores. The next control question is whether every AI workload identity has an owner, a rotation path and a revocation trigger.

Harvester economics will keep favouring assets that are small, portable and reusable. That means AI programmes should expect attackers to prioritise keys, tokens and prompt stores over louder targets such as databases, and they should tune monitoring to those quieter objects.

If a token can replay past MFA, then access reviews alone cannot prove that runtime trust was well controlled. The programme signal to watch is whether issued credentials are short-lived, bound and aggressively revoked when the context changes.


For practitioners

  • Define ownership for AI runtime assets Assign business and technical owners to models, prompt libraries, service keys and tokens so every AI artefact has a revocation path and a review cadence.
  • Shorten token usefulness windows Reduce token lifetime, scope and replay value so a harvested credential cannot be used long after the original authentication event.
  • Inventory AI access artefacts separately Track AI models, prompt stores and service accounts as distinct governed assets, instead of burying them inside generic cloud inventory.
  • Remove reusable access from exposed services Revoke keys and rotate credentials wherever AI services or supporting systems expose access that can be copied, replayed or resold.

Key takeaways

  • Attackers are now monetising AI operational assets, which makes keys, tokens and prompt libraries part of the ransomware problem space.
  • The article's key evidence is that stolen artefacts can be reused for access, resale and follow-on attacks without behaving like a conventional database breach.
  • Practitioners need inventory, ownership and revocation controls for AI access artefacts, because the abuse pattern is built around reusable trust rather than visible malware.

Related NHI Mgmt Group resources: Ultimate Guide to NHIs · Guide to the Secret Sprawl Challenge · NHI Authentication Guide · API Key Management Guide


Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe central failure is exposed API keys, tokens and model artefacts that become attacker inventory.
NHI-04 — Insecure AuthenticationHarvested tokens replay past MFA, showing that issued trust artefacts can outlive the login event.
NHI-07 — Long-Lived SecretsReusable AI credentials remain valuable because they stay valid long enough to be sold or replayed.
Recommendation — Scan AI estates for exposed keys and revoke any leaked non-human credential immediately. Bind issued tokens to context and shorten their usable lifetime so replay fails. Replace long-lived AI secrets with tightly scoped, short-lived credentials and enforce expiry.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationThe attack pattern combines credential theft with theft of AI assets and follow-on misuse.
Recommendation — Map AI key theft to credential access and hunt for exfiltration of model and prompt stores.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAI keys and tokens are access artefacts that need explicit entitlement governance.
Recommendation — Review entitlements for every AI workload identity and remove standing access that is not essential.

Key terms

  • API Key: A unique identifier used to authenticate a software application or service when calling an API. API keys are static, long-lived credentials and a major source of secrets sprawl, so they need careful storage, narrow scoping, regular rotation, monitoring for leakage and prompt revocation when no longer needed.
  • Prompt Library: A prompt library is a collection of prewritten prompts for use with generative AI systems. It stores reusable instructions, examples, and templates so users can standardise outputs and workflows across different tasks and models. In security and governance, prompt libraries may also carry approved phrasing and guardrails for controlled use.
  • Token Replay: Token replay is the reuse of a valid access or refresh token by someone other than the intended client. The token may still be unexpired and cryptographically correct, so the compromise often shows up only through context anomalies such as location, device, or session overlap.
  • Large Language Model: A large language model is an AI system trained on large text datasets to generate and transform language based on statistical patterns. In identity security, its value depends on whether the output is accurate enough to support search, reporting, or analysis without introducing hallucination, leakage, or inconsistent results.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org