AI Coding Assistants Generate Insecure Code and Amplify Supply-Chain Risks in Production
AI coding assistants are accelerating development but introducing significant security gaps that often go unnoticed until deployment. Research from Veracode shows that models produced vulnerable code in 45% of tested tasks across Java, Python, C#, and JavaScript, frequently selecting unsafe patterns for log injection and XSS when given a choice.
The problem stems from AI prioritizing functional output over defensive practices. Stanford University findings indicate developers using assistants wrote less secure code yet believed it was safer, especially when they trusted the tool without iterative prompt refinement.
Real incidents highlight the risks. Lovable applications built via natural language prompts exposed user data in over 10% of examined cases because Supabase tables lacked Row Level Security, resulting in CVE-2025-48757. Attackers could read sensitive records without authentication.
Supply-chain exposure grows when AI suggests non-existent packages. Studies found nearly 20% of recommended libraries do not exist, enabling slopsquatting where adversaries pre-register malicious names. PyTorch suffered a dependency confusion attack via the torchtriton package on PyPI, which exfiltrated credentials and SSH keys from affected systems.
Further incidents include poisoned versions of the Nx build tool that abused AI CLI tools to hunt for secrets, the Shai-Hulud npm worm that stole tokens to publish malicious updates, and compromised LiteLLM releases that bypassed security scanners like Trivy.
Defensive measures include using hashed lockfiles, corporate proxy repositories, and requiring AI to validate output against known vulnerability patterns before acceptance.
Related articles
AI Agent Autonomously Exploits MONAI Label Flaw to Obtain Root Shell in 11 Minutes
CISA added a critical unauthenticated path traversal vulnerability in MONAI Label to its Known Exploited Vulnerabilities catalog. An AI agent using the CAIRN engine identified the flaw on a live server, wrote a reverse shell into sitecustomize.py, and triggered execution via the training API to obtain root access without any human step-by-step guidance. The entire process from reconnaissance to shell took 11 minutes on a real medical imaging research server. The same agent later received a proxy channel and expanded laterally by searching for additional instances of the vulnerable software across university networks. Over 100 organizations have been compromised using similar AI-driven tactics targeting payment systems, e-commerce platforms, and AI infrastructure. AWS MadPot observed related activity involving the ARTEX framework aimed at stealing AI model credentials.
AI Agent Pipeline Uncovers Critical OpenClaw Vulnerability Missed by Traditional Scanners
A security researcher built an autonomous penetration testing system using an uncensored DeepSeek model running inside the ztorch harness to proactively attack his own infrastructure. The setup combined ZCode with the abliteration.ai API and the TORCH-2.0 framework, allowing the agent to discover eight vulnerabilities, including one critical flaw granting unauthenticated remote command execution on an OpenClaw gateway. Unlike conventional Chinese vulnerability scanners, the LLM-driven agent performed reconnaissance through browser developer tools, identified WebSocket endpoints, and successfully executed six privileged remote calls without any credentials. The entire test cost approximately two dollars on DeepSeek and five to seven dollars on GLM-5.3. After manually patching the issues, the researcher re-ran the agent to confirm remediation. The experiment demonstrates that LLM-based agents can emulate real pentester behavior rather than simple rule-based scanning, highlighting both their defensive value and the emerging threat of similar automated attacks from adversaries.
OpenID Foundation Launches Agent Auth Working Group to Standardize AI Agent Identification and Authorization
The OpenID Foundation has announced the creation of the Agent Auth (AAuth) working group to develop common standards for verifying that AI agents are acting on behalf of specific individuals or organizations. The initiative addresses critical challenges in access control, permission delegation, and audit trails as enterprises increasingly grant AI agents access to corporate data. Existing guidance from NIST, OWASP, Sber, Yandex Cloud, and VK Tech already explores how to limit agent permissions, handle revocation, and maintain clear records of actions performed. The new group will evaluate prior proposals, including a draft protocol published by Dick Hardt in April, and aims to release a developer version of the core specification in Q2 2027 with a final version in Q1 2028. AAuth Supervision focuses on obtaining explicit user consent that defaults to single operations and can optionally extend to similar actions within the same task. The effort responds to real-world deployments where companies must determine which operations an agent may perform autonomously and how to trace accountability back to the human who issued the original instruction.
Ruishu Information Deploys AITM+BATM+AI Gateway to Break Agent Fatal Three Elements
The rise of autonomous AI Agents has shifted security focus from model compliance to risks involving untrusted content, private data access, and exfiltration capabilities. Security firm Dragos sent nearly two million bait requests to AI providers and uncovered widespread data leakage and privacy violations in Agent service chains. Researcher Simon Willison defined the Fatal Three Elements that close a complete data theft attack chain when combined. Ruishu Information counters these risks with a three-layer architecture consisting of AITM for lifecycle management, BATM for dynamic access control, and an AI security gateway for traffic oversight. The solution replaces static permissions with continuous trust verification across supply chain, behavior, and data flows. National regulators in China have issued guidelines requiring security controls throughout the Agent lifecycle.