The Hacker News article "Stop Your Legacy Infrastructure from Hijacking Your AI Agents" is a powerful reminder that AI agents are not isolated systems. They inherit permissions, identities, and infrastructure from systems that were built long before the first agent went live.
In the article, a customer success Co-Pilot uses an S3 bucket filled with Salesforce data, runs through Lambda functions, and authenticates through existing identity providers. The attacker does not attack the AI model. The attacker exploits a legacy path: an unpatched Tomcat server, an Active Directory misconfiguration, and a developer's AWS credentials.
Why AI Agent Identity must include Infrastructure Dependencies
AI agents are software systems, but they do not operate in a vacuum. They rely on:
- identity providers and Active Directory,
- cloud storage and S3 buckets,
- serverless compute and Lambda functions,
- IAM roles and API keys.
The Hacker News article shows that these dependencies are not merely supporting systems. They are the attack surface for the agent. If the organization only governs the AI layer, it will miss the real path to compromise.
The Legacy Identity Problem
Most identity programs were designed for humans and traditional service accounts. AI agents blur that distinction.
The article highlights a striking governance fact: 70% of organizations grant AI systems more privileged access than a human in the same role. That is not a security tool finding. It is a governance finding.
The wrong identity model creates three gaps:
- Visibility gap: the organization cannot see which AI agents depend on legacy identities.
- Control gap: AI agents inherit broad permissions that were never reviewed as part of the agent risk profile.
- Shutdown gap: when an AI agent is compromised, there is no fast, testable way to stop the chain.
NIST CSF 2.0 and data lineage for AI agents
NIST CSF 2.0 requires continuous oversight and response across the entire lifecycle. For AI agents, that lifecycle must include the underlying identity and infrastructure path.
Ask these questions:
- What identity relationships does each AI agent inherit?
- Which cloud, storage, and compute assets feed the agent's knowledge base?
- What permissions are shared with other critical systems?
- Can the agent be isolated without breaking the rest of the environment?
ISO/IEC 42001:2023 reinforces this by requiring operational evidence. A policy that says "AI access is reviewed" is not enough. You need logs, dependency mappings, and a proven isolation procedure.
The Exposed Path in the Hacker News Article
The article walks through a realistic attack chain:
- An unpatched perimeter server with CVE-2025-24813 is exploited.
- The attacker moves laterally through Active Directory.
- The attacker harvests AWS keys from a developer's workstation.
- The attacker reads the S3 bucket that feeds the Co-Pilot.
- The AI agent is effectively hijacked.
Each finding is moderate on its own. Together, they become critical because they form a path to the AI asset. That is the definition of a governance failure.



