Request a demo
AI & agent security

Know every model and agent you ship, and what each one is allowed to do

Teams are shipping LLM features, agents with tool access and MCP servers faster than security can review them. InsightFortify finds them in code, flags the unsafe patterns against the OWASP Top 10 for LLM Applications, and enforces what an agent may do while it runs — with SDKs, an MCP proxy and a human approval queue.

Three layers

Inventory → static findings → runtime guardrails

1 · Inventory

An AI bill of materials

Every repository scan lists the AI it contains: model weight files (pickle, safetensors, GGUF, ONNX, Keras), models named in code (from_pretrained, model="gpt-4o"), LangChain, CrewAI and AutoGen agents with the tools they are given, and every MCP server in a client config.

2 · Static findings

OWASP LLM Top 10, in code review

Unsafe patterns found by reading the code’s syntax tree and the model files opcode by opcode. Nothing is executed or unpickled during a scan.

3 · Guardrails

Policy before the tool call

Deny a tool, require a person’s approval, block a host or cap the call rate. Checked against the inventory statically, by the SDK or proxy before each call, and on the events agents report.

What it finds

Mapped to the OWASP Top 10 for LLM Applications (2025)

CategoryWhat InsightFortify looks for
LLM01 Prompt injectionRequest input formatted straight into a prompt
LLM02 DisclosureA literal secret in an MCP config; an LLM SDK key exposed to the browser
LLM03 Supply chainA pickle model that imports os or subprocess on load; trust_remote_code=True; an unpinned npx/uvx MCP server
LLM05 Output handlingA model’s answer reaching eval, exec, a shell or SQL
LLM06 Excessive agencyShell, Python REPL and unrestricted file tools; LangChain’s allow_dangerous_*; generated code run outside a sandbox; filesystem MCP servers rooted at /
LLM07 System prompt leakageCredentials written into a system prompt
LLM10 Unbounded consumptionAn agent with no iteration limit
Guardrails for agents

Ask before the tool runs

Your agent host makes one call before running a tool and gets back allow, deny or require_approval. Agents report the calls they made, and InsightFortify raises a finding when one used a denied tool or host, went over its rate limit, or used a tool its inventory says it was never given.

  • deny_tool — e.g. shell* for every customer-facing agent
  • require_approval — refunds, deletes, outbound email
  • deny_host — nothing outside *.internal.example.com
  • max_calls_per_hour — a ceiling on runaway loops
# before running a tool, the agent host asks
POST /api/agents/guardrails/check
{ "agent":  "support-assistant",
  "tool":   "shell.run",
  "target": "http://169.254.169.254/latest/meta-data/" }

# and gets a decision it must honour (inside "data")
{ "decision": "deny",
  "policy":   "No shell for customer-facing agents",
  "reason":   "shell.run is denied by No shell for customer-facing agents" }
Agents
Agents: guardrail policies, the agents they bind, and the tool-call events agents reported
Enforcement

Enforce it in the agent, with a person in the loop

A policy is only as good as the code that honours it. InsightFortify ships that code: SDKs for agents you build, a proxy for MCP servers you don’t control, and an approval queue for the calls a person should see first.

SDKs

Python and TypeScript

Check before a tool runs, fail closed by default, wait for approval, report what ran. A decorator for plain functions, a LangChain callback, and helpers for Anthropic and OpenAI tool-calling loops. Secret-looking arguments are redacted before they leave the host.

MCP guard proxy

In front of any MCP server

A stdio proxy between an MCP client and any server. Denied calls are answered with a tool error and never reach the server; calls that need approval wait for one; allowed calls are forwarded and reported.

Approvals

A person decides, on the record

require_approval holds the call in the console’s approval queue. A security lead or analyst approves or denies; the identity that asked can never approve its own request; unanswered requests expire as denials; every decision is in the audit trail.

# an agent you build: Python
from insightfortify_guard import GuardClient

guard = GuardClient(agent="support-assistant")

@guard.tool("refund_payment", target=lambda a: f"order/{a['order_id']}")
def refund_payment(order_id: str, amount: float): ...
# denied → raises; require_approval → waits for a person

# an MCP server you don't control: wrap it
insightfortify-mcp-guard --agent claude-code -- \
  npx -y @modelcontextprotocol/server-filesystem /work
Agent approvals
The agent approvals queue: a support assistant waiting for a person to approve a refund and an outbound email

Enforcement happens in the SDK or the MCP guard proxy the agent host runs; the SDKs fail closed by default: no decision, no tool call.

For the CISO

Answer the board’s AI question with an inventory, not a survey

“Where are we using AI, and what can it do?” is now a standing board question. Questionnaires to engineering teams go stale in a month. A scan-derived inventory updates on every push.

Find the AI in your codebase

Point a scan at the repositories you think use AI, and at the ones you think don’t.

Request a demo