TL;DR: Unosecur says GitLost showed that prompt injection can expose private repository content when an AI agent has cross-repository read access, and that 79% of organisations lack visibility into what their AI agents are doing, according to Microsoft Cyber Pulse data cited by Unosecur. The failure is not the prompt alone but the over-privileged identity behind it, which makes guardrails insufficient on their own.
Editorial analysis by NHI Mgmt Group, based on content published by Unosecur: “You Cannot Govern What You Don't See: A Study on the GitLost Incident”.
Key questions
Q: What breaks when an AI agent has more repository access than its task requires?
A: The access model breaks because the agent can be steered into retrieving or disclosing data outside the intended workflow.
Q: Why do prompt guardrails fail when AI agents have broad identity permissions?
A: Prompt guardrails only shape the model's response, not the underlying access rights the agent already has.
Q: What are the signs that shadow agents are outside IAM governance?
A: The clearest signs are missing owners, incomplete inventory, unclear access scope, and workflows that can act across systems without approval records.
Practitioner guidance
- Inventory every AI agent and shadow workflow Create a current register of agents, owners, permitted repositories, and the tools each agent can invoke.
- Restrict cross-repository read paths Limit each agent to the smallest repository set required for its task and deny private repository reads unless the workflow explicitly requires them.
- Bind access to task scope Issue permissions for a specific task, not for the agent in general, so a public-facing workflow cannot reuse credentials that reach private infrastructure.
Bottom line: GitLost shows that prompt injection becomes a governance failure when an AI agent can reach private data it was never meant to access.
What's in the full article
Unosecur's full analysis covers the operational detail this post intentionally leaves for the source:
- The exact GitLost attack flow and how the injected instruction moved through the agent's workflow
- The Microsoft Cyber Pulse visibility figures cited in the article and how Unosecur uses them to frame shadow-agent risk
- The vendor's description of how its identity fabric approach maps to discovery, least privilege, and RBAC and ABAC for agents
- The FAQ section's direct explanation of why guardrails alone do not stop this class of disclosure
👉 Read Unosecur's analysis of the GitLost incident and AI agent identity failure →
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Prompt injection is the trigger, but over-privileged agent identity is the failure mode. GitLost only worked because the AI agent had access to private repositories that were outside the task it was performing. That is an NHI governance problem, not a prompt-engineering problem. The practitioner takeaway is that any workflow allowing an agent to cross trust boundaries without explicit identity scoping is already failing at design time.
A question worth separating out:
Q: How should security teams govern workforce and customer AI agents differently?
A: Treat workforce agents as internal automation with blast-radius risk and customer agents as externally exposed, tenant-isolated actors. The former needs tight scoping across internal systems, while the latter needs delegated identity, tenant binding, and stronger isolation around each request. One IAM pattern rarely fits both without creating blind spots.
👉 Read our full editorial: GitLost shows why AI agent governance fails without identity controls