The open-source rule file is where an MCP security review starts
An MCP security review that stops at the server leaves the decision that lets a call run unread. Kortix is an open-source CompanyOS — your agents, skills, company memory, and connectors in one git repo you own — and in my opinion its rule file is the artifact to read first; I work on Kortix's marketing, so weigh that accordingly.
Five risks, and the decision the server does not make
"The main MCP security risks are poisoned tool descriptions, servers that accept unauthenticated calls, malicious or vulnerable server packages, indirect prompt injection through tool results, and over-broad permissions." That list comes from Pillar's account of the protocol's risks, and it is the one most reviews start from. It is also where most of them stop.
Two facts make the list harder to act on than it looks. An MCP server acts with its own credentials, not the caller's, so the identity behind a call belongs to the server. And a tool description is an instruction to the model: "A server can change what it tells the agent after it has been approved." In August 2026 Pillar found a live campaign whose server stayed harmless for its first three tool calls. Then it told the agent to collect SSH keys and cloud credentials.
Neither fact shows up in a tool list. Both are settled between the model and the server. The decision that lets one call run is written on the client side. In Kortix that is kortix.yaml, in the workspace repo. It holds a match pattern, an action, and where it matters a condition on the call's arguments. It is the one artifact a reviewer can read before anything executes.
What an agent can reach through a connector is three layers. The tool list, the grant and the account are the other two. The rule file is the layer that turns reach into a decision, one call at a time.
The workspace block a reviewer reads first
policy:
default_mode: risk
policies:
- match: "helpdesk.delete_*"
action: block
approvals:
ttl: 4hrisk, one rule that blocks every delete on the helpdesk connector, and a four-hour window on a held call.Source: kortix.com/docs/developers#example-project
Three levels, three edits
The workspace rule, a connector's base rules and an agent's policy set, each a line a person can review before a call runs.
Workspace rule
# The shape of the entry: the docs print these keys with a gmail rule.
policy:
default_mode: risk
policies:
- match: "*.delete*"
action: blockBase rules
# The shape of the entry: the docs print these two rules under a policy set.
connectors:
- slug: helpdesk
provider: http
base_url: https://helpdesk.example.com/api
policies:
- match: "get_*"
action: always_run
- match: "*"
action: blockAgent policy set
agents:
researcher:
connectors: [helpdesk]
policy_sets:
helpdesk: read-onlyWhich of the five risks the file decides
Over-broad permissions is the risk the rule file was built for, and it is the one it decides outright. A * that asks, a *.delete* that blocks, a sensitive connector, a risk default, a policy set bound to one agent: each is a line that narrows what an agent may do. Connector credentials are brokered server-side and never enter the machine. The rule file decides which calls that brokered credential is used for.
Indirect prompt injection through tool results is narrowed rather than decided. The file never reads a result, so it cannot tell an injected instruction from a real one. What it can do is make the instruction useless. A call the rule blocks does not run because a result asked for it. The blast radius is the set of calls the file allows.
Poisoned tool descriptions are narrowed at best. A tool the file blocks is never called, whatever its description says. A tool the file allows is called on the strength of a description nobody read. That description can change after approval. "Approval is not a one-time event. Servers update, packages change hands and descriptions change at runtime. An allowlist needs version and behavior checks, not only names."
Unauthenticated servers and malicious or vulnerable packages stay outside the file. The first is the connector's auth and the server's own access controls. The second is an inventory and version problem, and the file has no view of what a server runs.
Pillar's control list points at the same split: "an inventory of every MCP server in use, an allowlist of approved servers and tools, least-privilege credentials, and inspection of tool calls and results at runtime." The rule file is the allowlist and the least-privilege part. The inventory and the runtime inspection are the work around it.
One of the five risks is decided outright, two are narrowed, and two stay outside the file. A review that says the rule file covers MCP security is as wrong as one that never opens it.
What the file cannot do
The rule file decides a call. It does not authenticate the server, validate a tool's description, or inspect a tool's result. The specification puts those duties elsewhere.
"Token passthrough is explicitly forbidden in the authorization specification." A server must not accept a token issued for another resource and forward it. That is the server's duty, and no client-side rule can perform it.
"MCP proxy servers MUST implement per-client consent." A proxy that uses one static client ID with a third-party authorization server can be made to skip the consent screen. That is the confused deputy, and the duty belongs to the proxy. An MCP gateway between client and server is where it lands.
The specification's own split is plain about the rest. Servers MUST validate all tool inputs, implement proper access controls, rate limit tool invocations and sanitize tool outputs. Clients SHOULD prompt for confirmation on sensitive operations, show tool inputs before calling the server, and log tool usage. The rule file is the client's half made concrete, and it is one part of that half.
Two questions go to whoever runs the server, and neither has an answer in the rule file. Which credential does it hold, and what can that credential reach? And when did its tool list last change? A server that cannot answer the second one is a server whose descriptions nobody is watching.
The other client-side decision is whose account a call runs as. Whose permissions a call carries is a separate review. A rule file that blocks a delete still runs the reads it allows under whatever identity the connector holds.
Questions a security reviewer asks about a connector rule file
The five risks, the level that decides each one, and what stays with the server.
What are the main MCP security risks?
Poisoned tool descriptions, servers that accept unauthenticated calls, malicious or vulnerable server packages, indirect prompt injection through tool results, and over-broad permissions. A client-side rule file decides the last one outright and narrows two more, and the server and the proxy keep the rest.
Does a policy rule stop prompt injection through tool results?
No. The rule file never reads a tool's result, so it cannot tell an injected instruction from a real one. It can make the instruction useless by blocking the call the injection asks for, which is why the set of allowed calls is the blast radius.
Where is an MCP connector's permission rule written?
On the client side, in the file that configures the connector. In Kortix that is kortix.yaml: the workspace policies, an agent's policy_sets, and the connector's own base rules, read in that order with the first match deciding.
Can a rule file authenticate an MCP server?
No. It decides which calls run, and the server's own access controls and the connector's auth decide whether the server accepts a call. Token passthrough is forbidden in the specification, and a proxy must implement per-client consent.
What happens when no rule matches?
A sensitive connector holds the call for approval, reads included. Otherwise policy.default_mode decides: allow_all runs the call, and risk runs a read while a write or a delete waits.
Does one approval cover later calls?
No. An approval covers one exact action: the same connector, action, arguments and account. Change a detail and a new approval is needed, and a server that changes behaviour after approval is why an allowlist needs version and behaviour checks.
Read the rule before you approve the tool.
Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.