AI's Logic Gap Creates Provenance Debt

AI's Logic Gap Creates Provenance Debt

Identity Spoofing Fuels Supply Chain Attacks

In May 2026, the GitHub "Megalodon" campaign infected over 5,500 GitHub repositories through malicious commits disguised as legitimate automated contributions, harvesting cloud credentials and CI/CD secrets, Foresiet reported. This failure to cryptographically bind AI commits to verifiable identities drives software supply chain vulnerabilities, enabling spoofed authorship and unverified delegation, NHIMG and Beyond Identity explain. NHIMG observed that this lack of binding allows attackers to move malicious code into trusted build paths using stolen keys, spoofed author fields, or automated AI-generated changes to bypass review. Software supply chain attacks were projected to cost organizations $60 billion in 2025, NHIMG and Beyond Identity projected.

Specific incidents demonstrate this risk: Large Language Model (LLM)-based Automated Program Repair (APR) systems were misled by crafted bug reports into producing insecure patches that reverted previously fixed vulnerabilities, with 42% of these changes passing undetected, a 2025 arXiv preprint found. The TeamPCP Group used stolen GitHub Personal Access Tokens in February and March 2026 to force-push malicious commits to 35 version tags of the checkmarx/kics-github-action repository and introduced malicious versions of the LiteLLM AI gateway to PyPI, Asecurityengineer reported. The Shai-Hulud and Mini Shai-Hulud worms, active from September 2025 to May 2026, compromised npm maintainer accounts to publish malicious package versions, with underlying bash scripts generated by LLMs, Asecurityengineer documented. Threat actors phished the lead maintainer's npm account in March 2026, publishing a malicious version of the Axios library, Asecurityengineer revealed. Even with valid cryptographic provenance, malware was distributed across 32 Red Hat packages in 2026, subverting trusted publishing mechanisms, Hyrax AI found. In February 2026, a researcher spoofed an AI agent's identity by matching a display name, causing the OpenClaw "Agents of Chaos" agent to delete its memory and reassign administrative access, Kiteworks reported.

Provenance Debt: The Compounding Cost of Drift

Historical track records reveal that silent architectural drift, stemming from a lack of causal reasoning, has proven more costly and persistent to remediate than identity spoofing, Snuglab and SwissCognitive explain. This architectural drift creates a compounding "provenance debt" that fundamentally transforms the development process, arXiv, Snuglab, and SwissCognitive observe. Snuglab and SwissCognitive caution that because AI often generates both the code and its tests, they share identical blind spots, creating a false sense of security that masks systemic failures. This forces developers to spend significant time debugging and verifying AI-generated code, with 88% of organizations requiring multiple redeployment cycles to confirm fixes, Bitloops found. Engineering teams that skip initial lineage tracking can spend significant time reconstructing architectural traces after a single incident, Quanmed.AI and Snuglab reported. Without data lineage, a single corrupted source file can silently propagate errors across dozens of downstream models, accounting for 70% of AI project delays, Bitloops determined.

Dual Approach: Identity and Semantic Traceability

Current provenance-tracking frameworks have often prioritized cryptographic identity binding, which can create a false sense of traceability by masking deeper architectural disconnects, NHIMG, Snuglab, and Beyond Identity explain. To resolve this, leading provenance frameworks now advocate for a dual approach that combines cryptographic identity controls with end-to-end semantic traceability, NHIMG, Snuglab, Bitloops, Prove, Beyond Identity, IETF Datatracker, and Private.me observe. Traditional version control systems and early AI-era frameworks primarily focus on verifying who made a change, NHIMG and Beyond Identity point out. Modern frameworks like SLSA, AgentROA (Agent Route Authorization), and xBind enforce cryptographic policy models that bind commits to verified human or agent identities using hardware-backed credentials and cryptographically signed execution receipts, NHIMG, Beyond Identity, IETF Datatracker, and Private.me confirm.

However, prioritizing identity binding at the expense of capturing semantic reasoning chains obscures the why behind code changes, Snuglab reported. Snuglab highlights that this lack of semantic traceability masks deeper architectural disconnects, such as direct database imports in service layers and "naive" upgrades that violate behavioral contracts. Tools like Bitloops capture the complete chain from prompt to commit, including the exact prompt, the AI's applied reasoning and constraints, draft commits showing code evolution, and human review feedback, Bitloops explained. This "Committed Checkpoint" provides an immutable audit trail of the original intent and discovered constraints, ensuring cryptographic identity is paired with semantic reasoning, Bitloops asserts. Standards like C2PA (Content Authenticity Initiative) also embed cryptographically signed provenance manifests directly into files, declaring origin, tools used, and AI involvement, Harvard Law's Library Innovation Lab blog documents.

Efficient Hybrid Provenance Model

The most efficient hybrid provenance model adopts a dual approach, using thorough cryptographic identity controls to verify the originator of every commit or agent action, while simultaneously capturing machine-readable semantic metadata for AI-generated changes, NHIMG, Snuglab, Bitloops, Prove, Beyond Identity, IETF Datatracker, and Private.me propose. Maintaining full semantic causal graphs, which capture the complete chain of evidence from prompt to commit, incurs significant storage overhead due to the need for queryable indexes of reasoning traces and committed checkpoints, Bitloops reported. Snuglab and Harvard Law note that this also introduces workflow friction by requiring developers to weigh coding speed against auditability. In contrast, standard cryptographic binding, which verifies the originator of changes by requiring every commit to be cryptographically signed, has relatively low compute and latency overhead, NHIMG and Beyond Identity emphasize. Given that approximately 41% of all code is now AI-generated or AI-assisted, relying solely on cryptographic binding leaves organizations vulnerable to structural errors like hallucinated dependencies and architectural drift, NHIMG, Snuglab, and Beyond Identity warn. This integration ensures provenance metadata is embedded directly into automated verification and governance pipelines, providing forensic confidence without sacrificing the high velocity of AI-driven development, Snuglab, Bitloops, and IETF Datatracker concluded.


Download the full research report (PDF)