HalluSquatting is a supply chain attack in which an attacker plants malicious instructions in plain text, such as a README, skill file, or MCP description, and waits for an agent to hallucinate the same tool or repository name. The agent then follows the malicious context as if it were legitimate.
Expanded Definition
HalluSquatting is a prompt-adjacent supply chain tactic aimed at agentic systems: an attacker seeds believable but malicious plain-text context so an AI agent “recognises” a fabricated tool, repository, or skill and then acts on it. The attack does not need to break a model directly. It exploits the gap between probabilistic language generation and execution authority, especially when agents can browse, invoke tools, or follow repository instructions without strong provenance checks.
In practice, the term sits between social engineering, software supply chain abuse, and agentic AI security. It differs from ordinary prompt injection because the malicious content is often placed outside the chat flow, such as in a README, skill manifest, or MCP description, where it can later be retrieved or inferred by an agent. Guidance across the industry is still evolving, but the security concern is clear: the agent treats unverified text as operational truth. For governance and control design, NIST Cybersecurity Framework 2.0 is useful for anchoring provenance, access, and response expectations around AI-assisted workflows. The most common misapplication is assuming a hallucinated tool name is harmless because it was “only generated,” which occurs when the agent is allowed to execute actions before validating source authenticity.
Examples and Use Cases
Implementing defenses against HalluSquatting rigorously often introduces friction in retrieval, review, and execution flows, requiring organisations to weigh agent autonomy against the cost of stronger provenance checks.
- An attacker publishes a repository README that references a fake “internal deployment helper,” and an agent later invents that helper name during a task, then follows the planted instructions.
- A malicious MCP description includes natural-language guidance that appears benign, but the agent later retrieves it and treats the text as an approved tool contract rather than untrusted content.
- A skill file or plugin manifest is named to resemble a common utility, encouraging the agent to hallucinate a matching capability and then route sensitive data into the attacker-controlled workflow.
- A knowledge base entry is crafted so that an agent tasked with support automation “discovers” a repository, script, or endpoint that does not belong to the legitimate environment.
- Security teams testing NIST Cybersecurity Framework 2.0 alignment often use these scenarios to validate whether tool discovery is gated by allowlists, signatures, and owner verification.
Why It Matters for Security Teams
HalluSquatting matters because it turns an AI agent’s helpfulness into an attack surface. If a system cannot distinguish trusted tool metadata from attacker-authored text, then the agent may search for, invoke, or recommend assets that were never approved. That creates risks across code execution, secrets exposure, workflow integrity, and supply chain trust.
For security teams, the issue is not just content quality but authority. In agentic environments, plain text can become executable influence when it is coupled with tool access. Controls therefore need to cover provenance, repository trust, policy enforcement, and review of external references before an agent can act. This is especially relevant where agents interact with developer tooling, MCP-based integrations, or internal knowledge stores that can be indexed, cached, or reused. Industry guidance is still developing, so organisations should treat HalluSquatting as an emerging control problem rather than a settled category. Organisations typically encounter the consequences only after an agent has followed a fake instruction path, at which point containment, source tracing, and rule tightening become operationally unavoidable.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST AI 600-1 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | Addresses access control and least privilege where agents act on untrusted instructions. |
| NIST AI RMF | Provides governance language for managing AI system risks from manipulated context. | |
| NIST AI 600-1 | Covers GenAI risks relevant to prompt-adjacent manipulation and unsafe tool use. | |
| OWASP Agentic AI Top 10 | Directly addresses agentic AI attack paths involving tool abuse and instruction hijacking. | |
| OWASP Non-Human Identity Top 10 | Relevant when planted instructions target machine identities, tools, or service credentials. |
Protect non-human identities by binding tools, secrets, and permissions to verified provenance.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org