Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› HalluSquatting
Cyber Security

HalluSquatting

← Back to Glossary
By NHI Mgmt Group Updated November 1, 2026 Domain: Cyber Security

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.

What HalluSquatting Is in Practice

HalluSquatting is not a malware family or a single exploit technique on its own, but a way of abusing the gap between what an AI agent sees in plain text and what it confidently infers. The attacker seeds a believable name or instruction into public or semi-public content, then relies on the agent to “fill in” the rest and treat that planted context as trustworthy.

This matters because agentic systems often use retrieval, search, or tool discovery before they act. If the agent accepts a poisoned description as authoritative, the malicious text can become the starting point for tool use, repository access, or follow-on automation.

Why HalluSquatting Works

The attack succeeds when a model or agent matches on naming patterns instead of validating provenance. A README, skill file, or MCP description can look legitimate enough for an agent to select it, especially when the surrounding context contains familiar wording, obvious tooling cues, or a plausible repository name.

That makes HalluSquatting a supply-chain and trust-boundary problem. The content itself is the lure, but the real weakness is overreliance on unverified instructions. In agentic environments, a text artifact can function like an access path when the agent uses it to decide what to load, call, or execute.

Where the Exposure Comes From

Exposure is highest where agents consume open-ended text from registries, package repositories, documentation sites, shared workspaces, or code hosting platforms. If the agent can discover tools or repositories by name and then act on that discovery without strong origin checks, the attacker only needs the planted text to be found first.

Organizations should assume the attack surface includes documentation, metadata, and prompt-adjacent content, not just code. The dangerous part is the handoff from language understanding to action, because the agent may convert a plausible description into a real execution decision.

How to Reduce the Risk of HalluSquatting

Defensive controls should make provenance, allowlisting, and review part of the tool-discovery path, not an afterthought. Treat plain-text instructions as untrusted until they are matched to a known source, signed artifact, vetted catalog entry, or approved internal registry.

Design agent workflows so that a retrieved name is only a candidate, not a command. When the system has to choose between convenience and verification, verification should win, especially for actions that can introduce new code, credentials, or external dependencies.

Risk and Threat Considerations

HalluSquatting can turn ordinary documentation into a malicious control plane for an agent. The main risk is silent trust abuse: the agent may follow planted context, load the wrong tool, or propagate the attacker’s instructions into later steps without an obvious user-facing warning.

Failure mechanism: The attacker exploits pattern matching, retrieval, and name-based selection by placing malicious text where the agent is likely to “discover” it and then treat it as legitimate context.

Impact: The result can be unauthorized tool use, unsafe automation, poisoned output, or downstream exposure of data, secrets, or privileged actions if the agent trusts the false instruction path.

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 MITRE ATT&CK address the attack and risk surface, while SLSA, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI04 — Agentic Supply Chain VulnerabilitiesCovers poisoned agent inputs and supply-chain abuse of agent behavior.
Recommendation — Validate tool and content sources before agents act on retrieved instructions.
MITRE ATT&CKT1608 — Stage CapabilitiesCovers attacker-prepared content used to stage later execution or access.
Recommendation — Hunt for staged decoy content in repositories and documentation paths.
SLSASupply-chain provenanceCovers provenance and integrity expectations for artifacts consumed in delivery chains.
Recommendation — Require provenance checks before agent-facing artifacts are trusted.
CIS Controls v8CIS-16 — Application Software SecurityCovers secure handling of software inputs, dependencies, and trusted sources.
Recommendation — Restrict which external sources can influence production automation.
NIST CSF 2.0PR.DS-06 — Integrity Checking MechanismsCovers integrity validation for data and content before use in operations.
Recommendation — Apply integrity checks to content that drives automated actions.

Practitioner Guidance

What to watch for: Pay special attention to workflows where an agent can independently search for tools, skills, or repositories and then act without a separate verification step. Those are the environments where planted text is most likely to become execution authority.

Governance implication: Define who can publish agent-facing instructions, how those instructions are reviewed, and what counts as an approved source of truth. If a text artifact can influence agent behavior, it deserves the same governance discipline as other sensitive operational inputs.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 1, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org