Executive Summary
In August 2024, security researchers documented a novel supply chain attack where threat actors discovered exposed LLM inference endpoints, relabeled them with popular model names like DeepSeek, and distributed them as 'free' alternatives to attract AI coding agents. A honeypot captured a real coding agent session from China that transmitted 88 messages containing filesystem data, PowerShell command outputs, and tool manifests to an untrusted endpoint. The malicious endpoint operator could have responded with tool calls to execute arbitrary commands, read sensitive files, or exfiltrate data from the victim's machine without exploiting vulnerabilities. This represents a new attack vector where AI agents voluntarily connect to rogue infrastructure, exposing their capabilities and local environment data through normal inference requests with tools enabled and permissive configurations.
This incident highlights the emerging risks as AI coding agents become mainstream development tools, with threat actors adapting traditional supply chain tactics to target autonomous systems that can execute code and access filesystems based on remote model responses.
Why This Matters Now
AI coding agents are rapidly being adopted across enterprises with often permissive default configurations, creating an immediate attack surface where malicious model endpoints can execute commands and access sensitive data without traditional exploitation techniques.
Attack Path Analysis
Attackers established a rogue LLM inference endpoint honeypot that was indexed by FOFA and incorporated into 'free' model provider lists. Users connected their AI coding agents with tool execution capabilities to this malicious endpoint, exposing session histories, filesystem data, and tool manifests. The rogue endpoint could have executed arbitrary commands through tool_calls responses, potentially leading to credential theft and further compromise.
Kill Chain Progression
This analysis maps confirmed threat intelligence to the full cloud kill chain to show where defensive gaps would emerge as an attack progresses.
Initial Compromise
Description
Attacker deploys rogue LLM inference endpoint advertising as 'free DeepSeek' model, gets indexed by FOFA scanner and added to community 'free model' lists, attracting AI coding agents with tool execution capabilities
MITRE ATT&CK® Techniques
Supply Chain Compromise
Exploit Public-Facing Application
Command and Scripting Interpreter: PowerShell
Browser Session Hijacking
Exfiltration Over C2 Channel
Data from Local System
Masquerading
Process Injection
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Software Engineering Techniques for Secure Development
Control ID: 6.2.4
NYDFS 23 NYCRR 500 – Penetration Testing and Vulnerability Assessments
Control ID: 500.15
DORA – ICT Third-Party Risk Management
Control ID: Article 28
CISA ZTMM 2.0 – Identity and Access Management
Control ID: 3.2
NIS2 Directive – Cybersecurity Risk Management Measures
Control ID: Article 21.2(a)
ISO 27001:2022 – Information Security Policy for Supplier Relationships
Control ID: A.15.1.1
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
Supply chain compromise through rogue LLM endpoints targets coding agents with tool execution capabilities, exposing source code, credentials, and enabling unauthorized system access.
Information Technology/IT
Malicious model endpoints can exploit AI coding agents to access infrastructure credentials, execute commands, and compromise zero trust architectures through egress security bypasses.
Financial Services
Coding agents used in financial development environments risk exposing sensitive data and violating HIPAA/PCI compliance through compromised inference endpoints with tool invocation.
Computer/Network Security
Rogue AI endpoints circumvent traditional security controls by exploiting trust relationships in agent-based development workflows, requiring new detection and policy frameworks.
Sources
- The Coding-Agent Trap: When a "Free" LLM Endpoint Is the Adversary, (Mon, Aug 31st)https://isc.sans.edu/diary/rss/33298Verified
- MITRE ATLAS - AI Agent Tool Invocation (AML.T0053)https://atlas.mitre.org/techniques/AML.T0053Verified
- MITRE ATLAS - AI Supply Chain Compromise (AML.T0010)https://atlas.mitre.org/techniques/AML.T0010Verified
- OpenCode AI Coding Agent Documentationhttps://github.com/AgentOps-AI/opencodeVerified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.
Aviatrix Zero Trust CNSF would have constrained this AI agent honeypot attack by limiting network reachability to malicious endpoints and reducing lateral movement scope after initial compromise. The segmented architecture could significantly reduce the blast radius of compromised AI development workflows.
Control: Cloud Native Security Fabric (CNSF)
Mitigation: Network segmentation policies would likely constrain AI agent connectivity to unauthorized external endpoints, reducing reachability to rogue inference services outside approved model providers.
Control: Zero Trust Segmentation
Mitigation: Workload isolation policies would likely constrain the scope of tool execution capabilities, reducing the attack surface available to malicious endpoints through segmented compute environments.
Control: East-West Traffic Security
Mitigation: Microsegmentation enforcement would likely limit lateral access pathways from compromised AI development workstations, constraining attacker reach to adjacent network resources and credential stores.
Control: Multicloud Visibility & Control
Mitigation: Traffic visibility and anomaly detection would likely identify suspicious communication patterns with unauthorized endpoints, reducing the effectiveness of C2 channels masquerading as legitimate AI services.
Control: Egress Security & Policy Enforcement
Mitigation: Egress filtering and data loss prevention policies would likely constrain large data transfers to unauthorized external endpoints, reducing the volume of sensitive information transmitted through AI agent sessions.
While some credential exposure may still occur within compromised segments, the blast radius would likely be constrained to isolated development environments rather than spreading across enterprise infrastructure.
Impact at a Glance
Affected Business Functions
- Software Development Operations
- Code Repository Management
- AI/ML Development Workflows
- Intellectual Property Protection
Estimated downtime: 2 days
Estimated loss: $25,000
Exposed development environment data including Windows usernames, directory listings, file contents from Downloads folder containing novels, PowerShell command outputs, filesystem paths, and AI agent tool manifests. Potential exposure of source code, development credentials, and proprietary development practices through compromised AI coding agent sessions.
Recommended Actions
Key Takeaways & Next Steps
- • Implement egress security policies to allowlist authorized LLM inference providers and block connections to unverified endpoints advertising 'free' models
- • Deploy zero trust segmentation to isolate AI agent workstations and prevent lateral movement if tool execution capabilities are compromised
- • Enable multicloud visibility to detect anomalous AI agent traffic patterns, oversized requests containing tool manifests, and connections to suspicious model endpoints
- • Establish threat detection for AI agent sessions transmitting filesystem data, credentials, or development artifacts to external inference services
- • Enforce encrypted traffic inspection to identify and block exfiltration of sensitive agent context through malicious LLM API channels



