Inventory-to-Governance Security Pattern
Discover AI assets, map their behavior, block abuse, then govern them
- Difficulty
- Advanced
- Time to result
- ~ongoing to results
- Steps
- 5
- Confidence
- 98%
Apply the recurring security-adoption pattern used with earlier technologies to an AI environment. Begin by discovering every AI tool and workload, then expand the inventory beyond models and agents to include their APIs, MCP servers, data sources, and sensitive information. Next, observe what those assets do and map how they connect, because an asset list alone does not expose behavior or routes through the environment. Use that understanding to block harmful actions at the relevant connections. Finally, turn the resulting visibility and enforcement into governance and compliance as regulation catches up. The mechanism moves from visibility to context to control: discovery establishes the scope, behavioral mapping identifies meaningful risk, blocking constrains abuse, and governance makes the controls durable and accountable.
Origin
Tim Erlin described this as a recurring security pattern seen with virtualization, cloud, and now AI. Extracted from Code Story: Insights from Startup Tech Leaders.
Core principles
- 01Protection starts with knowing what exists
- 02An AI inventory must include every connected resource
- 03Behavior and interconnections reveal the real attack surface
- 04Enforcement should precede governance and compliance
How to run it
- 1
Discover the AI estate
Create an inventory of every AI tool and workload operating in the environment. Include agents and the LLMs the organization runs or accesses.
Pro tip Treat inventory as the immediate first action rather than waiting for AI adoption to stabilize.
Watch out Cataloging only models and agents captures only part of the environment.
- 2
Expand to connected resources
Add every API, MCP server, data source, and sensitive-data path used by the AI assets. Record what information agents and LLMs can access and how it moves.
Pro tip Follow each workload outward until every dependency and data connection is represented.
Watch out Internal APIs can still have an external route through an AI tool.
- 3
Map behavior and connections
Observe what the inventoried assets do and how they interact. Use those behaviors and interconnections to understand the operational attack surface.
Pro tip Capture the user context in which an agent acts, not merely the fact that a connection exists.
Watch out An inventory without behavior does not show whether an action is appropriate.
- 4
Block harmful actions
Apply controls at the identified connections to prevent bad actions. Preserve strong authentication, authorization, and least privilege rather than exempting AI systems from established principles.
Pro tip Think creatively about implementing existing controls instead of assuming AI requires entirely new security concepts.
Watch out Do not assume that an action is authorized merely because an agent can perform it.
- 5
Establish governance
Turn the discovered scope, observed behavior, and enforced controls into ongoing governance and compliance. Adapt the governance layer as the regulatory environment develops.
Watch out Governance built before discovery may omit unknown workloads, connections, and data flows.
In the wild
A retailer inventories a customer-service agent, then follows its connections to the refund API, identity service, MCP tools, and customer records. The security team maps which user context accompanies each refund request, blocks refunds outside approved authorization limits, and records the controls in its AI governance process.
→ The organization governs the agent's actual capabilities and data paths instead of protecting only the model interface.
Common mistakes
Inventorying AI alone
A list of agents and models omits the APIs, MCP servers, and data sources through which those systems act. The resulting view understates both reach and risk.
Skipping behavior mapping
Knowing that assets exist does not explain what they do or how they connect. Controls applied without that context may miss harmful actions.
Granting AI a security exception
Relaxing authentication, authorization, or least privilege to accelerate adoption removes controls that remain relevant to agents. Capability is then mistaken for permission.
Is it for you?
Best for
Enterprise security teams moving AI tools, workloads, and agents from experimentation into production.
Not ideal for
Teams seeking a single control that can secure unknown assets without first discovering and observing them.
From the transcript
“So the first thing, the first practical step is inventory.”
“So understanding the behavior, the interconnections, the connections between those assets and objects.”
“That's why I think those are first two steps, and then you move on to locking bad actions, and then ultimately you end up with…”
From the episode
The AI Control Loop: AI Security is API Security - with Tim Erlin of Wallarm
Tim Erlin