The Supply Chain Is No Longer Just Packages

Software supply-chain security has long been thought about through a specific model: a component is compromised, many organizations consume it, and the affected systems are then traced through the dependency tree. SolarWinds, Log4Shell, malicious npm packages, fake PyPI modules, and compromised open-source dependencies are different examples of that model. The attack scales through one mechanism: the same component is used across many codebases. Defense is built accordingly — Software Composition Analysis tools scan dependencies, track package versions, match known vulnerabilities.

AI coding assistants change that picture. What gets compromised here is not always a published package, open-source dependency, or build tool. The risk emerges within the developer workflow itself. During code suggestion, refactoring, test generation, bug fixing, or helper-function writing, the AI assistant directly contributes to first-party code.

This contribution does not appear as a dependency. It does not pass through package registries. It does not show up in the SCA tool's dependency tree. Most of the time, it looks like a normal developer commit. So the new question is this: if the change entering the code is not a package but an AI-driven suggestion, how does supply-chain security see it?

Incidents disclosed in early 2026 took this question out of the theoretical. Anthropic disclosed that a Chinese state-affiliated group, using Claude Code, ran a coordinated campaign that compromised roughly 30 organizations across technology, financial services, and government. In the same period, separate reports described AI-assisted operations against critical-infrastructure targets.

What these incidents share is that the AI tool stops being just a productivity layer and becomes part of the attack chain. The risk here goes deeper than the sentence "AI is writing code." The actual risk: AI-assisted code enters the codebase through trusted developer identity; but it does not always deserve the same trust.

The Numbers

~30
Organizations Infiltrated

Disclosed by Anthropic, across technology, finance, government sectors

Voice of Emirates 2026
3
Sectors Hit

Technology, financial services, government agencies

Anthropic Disclosure
State
Threat Actor Type

Chinese state-sponsored group, attributed by Anthropic

Anthropic Disclosure
A03
OWASP Top 10:2025 Match

Software Supply Chain Failures — new category for 2025

OWASP Top 10:2025

A New Attack Pattern: The Assistant Is Used Without Being Compromised

In a classic supply-chain attack, the attacker usually targets a shared component. A package is poisoned. A maintainer account is taken over. A build system is manipulated. A signing key is leaked. An update channel is abused. Every organization that consumes that component is then affected.

The pattern that develops through an AI coding assistant is different. The attacker does not need to compromise the assistant itself. The assistant is used as a tool by the attacker, or is influenced through contexts steered into the developer workflow. This is a subtler model.

The attacker can prepare prompts, examples, repo contexts, open-source content, Q&A pages, or issue text designed to elicit specific code suggestions. The goal is for the AI assistant to produce code that looks reasonable but contains a security flaw. From the developer's point of view, the process is ordinary. A refactor is performed. A helper function is requested. The suggestion looks reasonable. The code is read, tests pass, the pull request is approved. The change ships.

But the produced code can contain a small logic flaw, weak validation, an SSRF path, a hidden data leak, faulty authorization, or a backdoor that may be exercised later. This code is not an external dependency — it is the organization's own code. So the classic SCA tool sees nothing.

That is exactly the problem: the supply-chain attack has moved out of the dependency tree and into the development workflow.

Why This Is Different from the Classic Supply-Chain Problem

Risk from AI coding assistants relates to OWASP A03 Software Supply Chain Failures. But it does not share the same mechanism as a classic supply-chain attack. Both threat models can sit under the same category, but their defense forms differ.

Classic Supply Chain vs AI Coding Assistant Attacks

DimensionClassic Supply-Chain AttackAI Coding Assistant Attack
What is compromisedA published dependency, package, or build toolAn AI suggestion inside the developer workflow
Scaling mechanismThe same package is used across many organizationsThe same assistant is used by many developers
How the code arrivesArrives as an external dependencyIs committed as first-party code
Detection toolSCA, SBOM, signing, package historyCode review, static analysis, AI usage trail
VisibilityVisible in the dependency treeCan disappear inside a normal commit
Patch pathUpdate the package, change the dependencyReview code path, audit commit history, change processes
Disclosure sourceResearcher, victim, package registryModel provider, security research, internal audit
Core riskAn external component is poisonedInternal code is influenced by an untrusted suggestion
The Consequence for Defense

This difference produces a critical consequence on the defense side. SCA sees dependencies; it does not specifically separate code a developer wrote with AI help. SBOM lists packages; it does not surface a logic flaw produced by a suggestion engine. A package signature can be verified; but a subtle backdoor inside a commit shows up as "your own code." So the AI coding assistant risk is not just a new tool-security problem — it is a point where the secure development lifecycle needs to be revisited.

What 2026 Incidents Show

Incidents in 2026 demonstrated that AI coding tools are not just a theoretical risk. The shared message of different events was the same: attackers use AI tools for development, reconnaissance, exploit generation, and operational speed.

State-Affiliated Campaign Through Claude Code

Anthropic disclosed that a Chinese state-affiliated group ran a coordinated campaign using Claude Code that compromised roughly 30 organizations across technology, financial services, and government. The disclosure came not from a victim but from the model provider — creating a new transparency dimension. But it also points to an uncomfortable reality: detected campaigns represent only the visible portion.

AI-Assisted Critical Infrastructure Operations

In the same period, reports emerged of models like Claude being used in attacks on critical-infrastructure targets. In critical-infrastructure environments, code generation, configuration analysis, script writing, vulnerability research, and operational automation carry high value for the attacker. AI tools reduce the cost and increase the speed of these stages — coding assistants must enter the threat model of critical-infrastructure security teams.

Claude Code's Own Attack Surface

In late 2025 and early 2026, some vulnerabilities were reported in Claude Code itself — remote code execution through untrusted repositories and API key exposure. Here the issue is not abuse of the assistant; it is the assistant tool itself becoming attack surface. The two risks complement each other — AI coding assistants should be evaluated not only as model outputs but as privileged tools in the development environment.

How the Attack Works in Practice

Attacks driven by AI coding assistants are not uniform. But the common flow can be summarized in stages.

1

Target Selection

The attacker first tries to identify organizations actively using AI coding assistants. Information can be derived from public sources: tool names in job postings, developer blogs, conference talks, open-source commit messages, public issues and PRs, employee social-media posts, corporate engineering write-ups. Knowing the organization uses specific AI tools, the attacker can research how the development workflow can be influenced. AI adoption becomes an intelligence signal for attack preparation.

2

Context Preparation

The attacker prepares contexts that can make the AI assistant produce a certain kind of code. These can be direct prompts, but in subtler scenarios they can be prepared as open-source repos, documentation, forum answers, issue descriptions, sample code, or test data. Risky areas: URL-fetch helpers open to SSRF, weak input validation, flawed auth-bypass checks, unsafe deserialization, query construction open to injection, credentials written to logs, token/API key leakage, flawed CORS policy, path traversal, race conditions, missing tenant isolation.

3

Delivery

The context the attacker prepares can enter the developer workflow through different paths — sample code inside a public repo, Stack Overflow-style Q&A content, GitHub issues, documentation of an open-source dependency, prompt or code fragment, or social-engineering stage. The assistant itself does not have to be compromised — the assistant becomes the carrier of a poorly prepared context.

4

The Developer Accepts the Suggestion

The most critical point. The AI assistant suggests code. The developer reviews — looks stylistically reasonable, functionally correct, tests pass. PR approved. In many organizations AI-assisted code does not go through a higher review bar than human-written code. Sometimes the opposite happens: AI-produced code is accepted more quickly because it looks 'standard' or 'helpful.' That is a flawed assumption — AI-assisted code can carry external influence because of the producing model, the prompt context, and the sources used.

5

Ship to Production and Exploitation

Once the planted flaw is in production, the attacker can exploit it through classical paths. From the outside, the attack can look like a normal web exploit, API abuse, auth bypass, or data leak. The incident response team focuses first on the external attack surface. But the root cause may be an AI-assisted change merged weeks or months earlier — making attribution harder, because the flaw did not come from an external dependency but from the organization's own commit history.

6

Persistence and Retrospective Audit

One of the hardest aspects is retrospective audit. When a disclosure about a tool arrives or a specific abuse pattern surfaces, the organization should ask: which teams used this assistant, which repos used it, which commits were AI-assisted, which security-sensitive paths changed, which suggestions were accepted directly, which changes shipped to production, which services run this code. Most organizations cannot answer quickly — AI usage is often not systematically labeled, logged, or tracked at the commit level.

Why Current Defenses Fall Short

In supply-chain risk driven by AI coding assistants, the defense gap is not just a tooling gap — it is a process gap. Three core problems stand out.

SCA Does Not See First-Party Code

Software Composition Analysis tools are designed to scan dependencies. They look at package names, versions, CVE matches, licenses, and known risks. But code produced by the AI assistant and committed by the developer is not a dependency — it looks like the organization's own code. SCA alone cannot catch this attack class. SCA is still necessary; but it should not be assumed to cover AI-assisted code risk.

Static Analysis Misses Logic Flaws

SAST tools catch many obvious flaws — injection patterns, hardcoded secrets, unsafe deserialization, path traversal. But when the attacker deliberately designs subtle logic flaws, edge-case bugs, or stylized backdoors, static analysis is not always enough. Especially hard: tenant isolation errors, authorization gaps, business-logic bypasses, conditional data leaks, security checks based on flawed assumptions, timing-dependent flaws, complex microservice interactions.

Code Review Doesn't Separate AI Output

In many organizations, the code-review process does not separate AI-assisted code from human-written code. That is risky on its own. AI-produced code should be treated like an external contribution — the developer may be internal and trusted, but the model, context, and sources used in producing the code can be open to external influence. 'The developer is trusted' is not the same as 'the code is trusted.' AI-assisted code needs stronger review discipline in security-sensitive areas.

What Organizations Should Change

Banning AI coding assistants outright is not realistic for most organizations. The productivity advantage is large, and developers will keep using these tools. The right approach is not banning, but setting security discipline based on usage context.

Six Concrete Changes

1

Mark AI-Generated Changes Separately

The first requirement is visibility. The organization should know which code changes were produced with AI help. This information can live in pull request descriptions, commit metadata, development platform integrations, or internal policy labels. The goal is not to punish the developer — the goal is to leave a trail for post-incident and security review. When a new disclosure about an AI tool arrives, the organization should be able to find which repos and commits could be affected, quickly.

2

Review AI-Assisted Code Like an External Contribution

AI-produced code, even when committed by an internal developer, should be subject to the discipline of external contributions. This applies especially to authentication, authorization, network access, file handling, deserialization, cryptography, secret management, input validation, data export, tenant isolation, payment and financial transaction flows. In these areas, AI-assisted changes should pass through senior developer or security engineer review.

3

Define Additional Security Gates in CI/CD

Additional controls for AI-assisted commits in the CI/CD pipeline: SAST, secret scanning, dependency scanning, IaC scanning, API contract validation, required test coverage, risky-function-use checks, additional approval for changes in security-sensitive files, threat-modeling notes, manual security review labels. The point is not that AI-assisted code is automatically treated as bad — the point is that it passes through extra security gates in risky areas.

4

Build a Context-Based Policy for AI Tool Use

Two extremes — 'AI is free' or 'AI is forbidden' — are weak policies. A better approach is context-based policy: research prototype free with basic review, internal tool controlled with SAST + code review, customer-facing application limited with security review, identity/auth code high restriction with senior review + threat model, cryptography very limited with expert approval, secret management very limited with security team approval, production infrastructure controlled with IaC scanning + change approval. This model protects risky areas without cutting off developer productivity entirely.

5

Log AI Assistant Use at the Team Level

AI coding tools occupy a privileged position in the development environment. They can access repo context, read code, produce suggestions, operate close to terminal, test, local file, or API key context. Track: which teams use which AI tool, which repos is it active in, which branches/PRs did it touch, which file types did it produce suggestions on, which security-sensitive areas did it touch, which suggestions were accepted directly, which model was used in which version. These logs become critical for post-incident response.

6

Watch Style Anomalies + Interpret OWASP A03

AI-produced code often carries certain style traces — naming preferences, error-handling form, comment structure, test layout. Items to flag: code style noticeably different from team's habit, sudden refactors in security-sensitive modules, helper functions with broad authority, error states silently swallowed, authorization-check calls moved or reduced. A style anomaly is not direct evidence of attack but it is a review signal. Within OWASP Top 10:2025, Software Supply Chain Failures should not be limited to npm, PyPI, or container images — AI coding assistants are also part of the software production chain, requiring vendor evaluation.

Context-Based AI Usage Policy

A practical example of how policy can vary by context — protecting risky areas without blocking productivity in low-risk ones.

ContextAI UseAdditional Control
Research prototypeFreeBasic review
Internal toolControlledSAST + code review
Customer-facing applicationLimitedSecurity review
Identity/auth codeHigh restrictionSenior review + threat model
CryptographyVery limitedExpert approval
Secret managementVery limitedSecurity team approval
Production infrastructureControlledIaC scanning + change approval
A New Security Discipline in the Developer Workflow

AI coding assistants do not make secure development unnecessary. On the contrary, they make secure-development discipline more important. The volume of produced code rises. Refactoring speed rises. The number of helper functions rises. A developer can produce more changes in the same time. That is a good productivity gain; but if review capacity does not scale with it, the probability of missing a security flaw goes up. So organizations should drop this assumption: 'if AI is speeding up the code, review can stay the same.' The more accurate assumption: if AI is accelerating code production, review and validation must scale too. That does not mean more bureaucracy — it means more targeted control. Low-risk changes pass through quickly. Security-sensitive paths reviewed more strictly. AI-assisted commits made visible. CI/CD automation adds extra gates in risky areas.

Where TR7 Sits in the Defense Picture

The primary defense for supply-chain risk driven by AI coding assistants lives inside the development workflow — code review, AI usage policy, CI/CD controls, and secure-development discipline are the first line of defense. TR7 does not replace that process. TR7's role is to reduce the impact when a planted flaw reaches production, surface exploitation attempts, and limit the blast radius.

WAF for Common Planted Flaws

If the flaw planted in AI-assisted code falls into a class like SSRF, SQL injection, deserialization, path traversal, or weak input validation, TR7 WAF can catch a meaningful portion of those exploitation attempts. The WAF does not remove the underlying error; the code still needs to be fixed. But it reduces exploitation attempts in production and provides visibility.

AGS Limits Compromised-Path Authority

When a flaw reaches production, which data and systems the attacker can reach is determined by the identity and authority model. TR7 Access Gateway constrains application access through identity, context, and policy. A compromised path therefore does not automatically mean access to the entire application surface or all internal systems — especially important for auth or access-control flaws planted through AI-assisted code.

ZeroLeak for High-Value Surfaces

In some applications, a flaw that escapes at the code level can produce unacceptable consequences — admin consoles, financial portals, customer PII screens, legal document systems, critical control panels. ZeroLeak renders these high-value applications in an isolated environment instead of running them on the user device. A planted backdoor or client-side attack surface has a more limited area of effect.

Forensic Logging for Scope Assessment

When an incident is traced to an AI-assisted change, the most critical question is scope. TR7's forensic logging and session observability accelerate post-incident scope assessment — full request/response logs, WAF events, identity context, session records, and traffic analytics evaluated together. Security teams understand not just the code root cause but the real production impact.

Network Segmentation Reduces Blast Radius

When a flaw planted by AI-assisted code is exploited, the attacker's next target is usually lateral movement. Microsegmentation at the network and application layers constrains that movement — a compromised component can reach only the systems it needs. Unrelated services, admin panels, and data stores are not accessible by default. Reduces 'one flaw, the whole environment' risk.

Real-Time Analytics for Pattern Detection

If a planted flaw reaches production, the first signal often appears as anomalies in traffic patterns — unusual rise in requests to a specific endpoint, unexpected parameter combinations, new error codes, anomalous data access from a single user. TR7's real-time analytics layer surfaces these patterns, helping security teams respond without waiting for periodic review.

Conclusion: AI Code Is Not Trusted Input

AI coding assistants increase software development speed. That reality will not change. Organizations will use these tools; developers will prototype faster, refactor, and fix bugs. But the productivity gain does not automatically invalidate security assumptions.

AI-assisted code, even when committed under a trusted developer identity, should not be treated as trusted. The context in which the code was produced, the model used, the prompt, the repo content, and the external sources are all part of the attack surface.

So supply-chain security can no longer be limited to scanning packages. The new supply chain also includes: coding assistants, prompt contexts, AI-assisted commits, developer workflows, model-provider incident disclosures, repo access permissions, CI/CD security gates, AI usage logs, code-review discipline.

The right approach is not to ban AI use. The right approach is to make AI-assisted code a visible, auditable, and risk-based development input. Classic supply-chain security was asking, "which package are we using?" In 2026, the additional question: who wrote this code, which tool helped, and how was that tool's output validated?

References & Sources

February 2026 reporting on Claude Code vulnerabilities and abuse patterns. https://thehackernews.com/2026/02/claude-code-flaws-allow-remote-code.html

Industry analysis of the AI coding assistant security landscape. https://seceon.com/claude-code-vulnerability-exposes-new-ai-security-risks/

Category framing that now extends to the AI tool supply chain. https://owasp.org/Top10/2025/0x00_2025-Introduction/

Bring AI-Assisted Code Production Into the Security Process

When AI coding assistants become part of the development workflow, the security process needs to be updated accordingly. AI-assisted changes should be marked, reviewed more strictly in security-sensitive areas, run through CI/CD controls, and leave a trail for post-incident audit. TR7 — through WAF, AGS, ZeroLeak, forensic logging, microsegmentation, and real-time analytics — helps reduce the impact of flaws that reach production. The primary defense is the secure-development process; the application-layer defense is the last safety net.

Explore the TR7 WAAP Architecture