AI Security

Dependency Confusion: Griffin AI vs Mythos

Dependency confusion is older than most of the AI tooling trying to detect it. The attacks have adapted to the defences — detection needs to keep up.

Nayan Dey
Senior Security Engineer
3 min read

Alex Birsan published the dependency confusion attack in 2021. Five years later, the attack is still producing incidents because the defences remain uneven across ecosystems and organisations. The detection problem has evolved — modern attacks use internal-looking names, spoofed publish metadata, and targeted package namespaces. Static pattern matching catches the obvious cases and misses the ones that disproportionately matter. Griffin AI and Mythos-class general-purpose tools diverge on this detection, and the gap matters because dependency confusion is one of the attacks most likely to reach production via an AI-assisted engineering workflow.

What modern dependency confusion looks like

Three patterns that appear in 2026 incidents:

  • Internal-namespace squatting on public registries. An attacker publishes @mycompany/internal-service on public npm, hoping a developer's resolver reaches public before internal.
  • Typosquatting with internal intent. An attacker publishes packages targeting specific known-internal names with small variations.
  • Registry priority mismatches. An organisation uses a private registry but some CI configurations still default to public. The attacker's package is pulled by the misconfigured CI.

Each requires different detection.

How Griffin AI handles it

Three integrated capabilities:

Registry-aware dependency resolution. The engine knows which registries are configured for each project and which packages should resolve to each. A package declared in the internal registry that also exists publicly is flagged as a risk.

Scope-collision detection. Internal namespaces (e.g., @mycompany/*) are tracked; public packages using those namespaces are surfaced automatically.

Publisher verification. For packages pulled from public registries, publisher identity is checked against expected publishers. A new publisher on an expected-internal name is flagged.

A concrete example

A Node.js service declares a dependency on @acme/shared-auth. The org runs its own private npm registry where @acme/shared-auth is published. A CI pipeline has a misconfigured .npmrc that falls back to public npm if the internal registry returns 404.

During a deploy, the internal registry has a brief 500 error. The CI falls back to public npm. An attacker has published @acme/shared-auth on public npm. The malicious package is pulled, installed, and runs.

Griffin AI surfaces this in two ways: (1) @acme/* scope collision on public registry, flagged during routine scans; (2) CI registry-fallback misconfiguration surfaced as a policy finding.

A Mythos-class tool often catches (1) but misses (2) because the CI configuration is a separate reasoning task.

What to evaluate

Three concrete checks:

  1. Create a public package matching your internal namespace. Does the platform flag it?
  2. Introduce a CI fallback misconfiguration. Is it detected?
  3. Change the publisher on an internal-looking public package. Is the publisher-drift flagged?

How Safeguard Helps

Safeguard's dependency confusion detection combines registry-aware resolution, scope-collision detection, publisher verification, and CI configuration analysis. Findings come with the specific attack vector and remediation recommendation. For organisations whose internal namespace is large or whose CI configurations vary across repos, this coverage is the architectural property that makes dependency confusion preventable rather than post-incident.

Related articles in AI Security

AI Security

Safeguard Now Supports Every Major AI Model Family for Zero-Day Discovery: Anthropic, OpenAI, Gemini, Microsoft, Meta, and Your Own Models

You should not have to choose between your organization's AI strategy and your security platform. Safeguard's agentic zero-day discovery and remediation pipeline now works on Anthropic Claude Fable 5, OpenAI GPT, Google Gemini, Microsoft Phi, Meta Llama, Safeguard native models, and privately hosted custom models — all running as first-class agents in the same Multi-Agent TAOR Deep Think AI Engine.

June 9, 2026Read
AI Security

Anthropic Claude Mythos Releases Tomorrow: Capabilities, Benchmarks, and What Security Teams Must Do Now

Anthropic's Claude Mythos model goes public on June 10, 2026 — a frontier AI that scored 97.6% on the Math Olympiad, completed expert-level hacking tasks at 73% success, and found 271 vulnerabilities in Firefox 150. Here is everything security teams need to know before it lands, and how Safeguard already supports Mythos zero-day discovery natively.

June 9, 2026Read
AI Security

Claude Fable 5: Anthropic's Most Capable Public Model Is Here — Benchmarks, Capabilities, and What It Means for Security

Anthropic just released Claude Fable 5, its most capable publicly available model and the first Mythos-class AI open to everyone. 80.3% on SWE-Bench Pro, 88% on Terminal-Bench 2.1, state-of-the-art across software engineering, vision, and scientific research. Safeguard has already integrated Fable 5 natively — here is everything you need to know.

June 9, 2026Read

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.