By NHI Mgmt Group Editorial TeamBased on Lasso Security: “Shift AI Security Left: Introducing Lasso’s GitHub Integration” (June 3, 2026)

TL;DR: AI security now has to start in the repository because teams often cannot see where AI is used, what agents are active, or which permissions and MCP connections they hold, according to Lasso Security. That matters because static AppSec controls miss AI-native risks such as prompt injection sinks, unsafe tool execution, and shadow AI before deployment.


At a glance

What this is: This is a view that shifts AI security into GitHub so teams can discover AI components, relationships, and risks before deployment.

Why it matters: It matters because IAM, PAM, and NHI programmes cannot govern AI systems they cannot inventory, especially when tools, permissions, and MCP links evolve inside code.


Context

The governance gap is visibility, not just vulnerability scanning: teams are building AI logic directly into code, but many cannot answer where AI exists, which agents are active, or what permissions they carry. In practice, that leaves AI security dependent on after-the-fact review models that were built for static software.

For identity and access teams, the problem is that AI systems now combine models, tools, data sources, and connected services inside the same development workflow. That creates a governance surface that spans NHI, agentic AI, and application delivery, and it demands earlier inventory and relationship mapping than traditional AppSec provides.


Key questions

Q: Where does AI security fail when teams cannot inventory agents and tools in code?

A: It fails at the point where ownership, access scope, and trust relationships become invisible. Without repository-level discovery, teams cannot tell which AI components exist, what they connect to, or how far a compromise could spread. That makes governance reactive, because the first reliable control happens after exposure instead of before deployment.

Q: Why do AI agents create a bigger governance problem than ordinary endpoint tools?

A: Because an AI agent can execute many file reads, API calls, and transfers in one session without a human approving each step. That collapses the assumption that access is reviewed before action. Governance must therefore focus on delegated machine activity, not only on user approval flows.

Q: What are the signs that an AI project has become shadow AI?

A: The main signs are orphaned agents, unmanaged MCP connections, and AI logic appearing in branches or services without a clear owner or approved governance path. If security cannot map the component back to a repository, a team, and a permission scope, the project is already outside normal control boundaries.

Q: How do security teams decide which AI agents to fix first?

A: Prioritise the agents that combine business criticality with the broadest dependency chains and the most sensitive data paths. That combination tells you where an unreviewed agent could create the largest blast radius, and it gives development teams a concrete order for remediation.


How it works in practice

Why repository-level AI discovery matters

Repository-level discovery finds AI components before they are promoted into deployed services. In this article’s model, code analysis identifies models, agents, MCP servers, tools, and other agentic resources early enough to build an inventory and a relationship graph. That is materially different from scanning only runtime logs or production endpoints, because the trust relationships already exist in the code. For identity teams, this is where ownership, permissions, and dependency mapping can be tied back to the build artifact rather than guessed later.

Practical implication: treat GitHub as a control point for AI inventory, ownership, and trust mapping before release.

Why static AppSec misses AI-native risk

Static application security testing and software composition analysis are useful for code defects and vulnerable libraries, but they do not model AI behaviour well. AI systems can route prompts, call tools, and reach data through paths that are not obvious from dependency lists alone. That is why risks such as prompt injection sinks, unsafe code execution, shadow AI, and unmanaged MCP growth need relationship-aware analysis. The technical issue is not just bad code, but dynamic execution paths that change how access is exercised.

Practical implication: complement SAST and SCA with controls that understand AI execution paths and connected services.

How graph-based visibility changes prioritisation

A Security Graph turns isolated findings into an execution map. Instead of seeing a list of alerts, teams can see how models connect to tools, where sensitive data flows, and which agents have excessive autonomy or risky trust relationships. That matters because prioritisation in AI security is not about the longest list of issues, but about the pathways that create the largest blast radius. In governance terms, the graph links code, access, and runtime exposure into one decision surface.

Practical implication: prioritise remediation by trust path and blast radius, not by alert count alone.


NHI Mgmt Group analysis

Repository discovery is becoming the new control plane for AI identity governance: If teams cannot see AI primitives in code, they cannot govern the identities those primitives will later exercise. The article shows that discovery, ownership, and trust mapping are moving upstream into development workflows. The practitioner conclusion is that AI inventory has to begin where AI is assembled, not where it is already running.

Legacy AppSec assumptions do not hold for AI-native systems: Traditional SAST and SCA assume the risky object is code or a dependency, but AI systems also introduce dynamic prompt routing, tool use, and connected services. That breaks static review models because the sensitive behaviour emerges from relationships, not just from packages. The implication is that security teams must evaluate AI systems as execution graphs, not as ordinary libraries.

Blast radius is now an identity question as much as a code question: When models, agents, tools, and MCP servers are connected, the main governance issue becomes how far a compromised or misused component can reach. That is a workload identity and authorization problem, not simply an application issue. Practitioners should treat AI adjacency as an access-scope problem and map the trust chain explicitly.

Shadow AI is a governance failure, not just an inventory gap: The article’s mention of orphan agents and unsanctioned models shows that unmanaged AI projects create policy drift before production ever begins. The issue is not only that teams lack a list, but that they lack lifecycle control over where those systems appear and who owns them. The practitioner conclusion is that AI governance now needs continuous discovery tied to delivery pipelines.

Continuous AI security is the right operating model because AI systems evolve faster than release-based controls: The post points to CI/CD embedding as the next phase because models, prompts, and integrations change continuously. That means security posture can no longer be certified once per release and assumed stable. The practitioner takeaway is to move from periodic review to ongoing control of AI change, exposure, and ownership.

From our research library:

What this signals

GitHub is becoming the earliest workable control point for AI governance: when models, agents, and MCP servers are defined in code, discovery has to happen before release or the organisation will always be chasing exposure after the fact. That changes the operational baseline for IAM and NHI teams because ownership, permissions, and trust chains need to be visible at build time, not discovered in production.

Dynamic AI relationships are the real governance surface: the hard problem is not identifying that AI exists, but understanding which tools it can reach and how far its access can spread. That is why blast-radius mapping belongs alongside inventory, especially when AI components evolve continuously inside CI/CD pipelines.


For practitioners

  • Map AI assets in GitHub Connect repository scanning to every codebase that may contain models, agents, MCP servers, or agentic workflows. Use the resulting inventory to establish ownership and scope before code reaches deployment.
  • Build a graph of AI trust relationships Track how models, tools, data sources, and connected services interact so you can see which paths create sensitive-data exposure or excessive autonomy.
  • Rework prioritisation around blast radius Rank findings by the reach of the affected agent or integration, not by static severity alone, because a small code issue can create broad downstream access.
  • Add AI checks to CI/CD Embed AI security review into build and deployment workflows so new prompts, models, or agent connections are evaluated as they are introduced.

Key takeaways

  • AI security is moving into the repository because teams need to see models, agents, tools, and MCP connections before deployment.
  • Static AppSec alone cannot govern AI-native behaviour because prompt routing, tool use, and connected services create relationships that ordinary dependency scanning misses.
  • The practical response is continuous discovery and graph-based prioritisation so security teams can manage AI access scope and blast radius as code changes.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 9, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org