MCP security: MockForge against OWASP AISVS C10
OWASP’s AI Security Verification Standard has a chapter for the Model Context
Protocol, C10: what an application does to use MCP safely, as a client, as
a server, and as the operator of either. Version 1.01 of the standard states
39 requirements in it, each at one of three levels. This page says where
MockForge stands on each: it is the project’s own reading of its MCP server
against the chapter, kept true by a test, and it is no certification. The
standard’s own words are not reproduced here; the ids, the levels and the
chapter’s title are what it states as fact, and every requirement below is
said in this project’s words.
Two things of MockForge’s are read against the chapter:
- The mock MCP server,
mockforge serve --mcp-mock: the tool server an agent under test talks to, from a catalog or replaying a pinned server. - MockForge’s own MCP client, in
mockforge mcp-contract, which lists a server’s tools to pin them and to check them, and the stdio servermockforge mcpthat a local client launches.
A requirement gets one of five words:
| Word | Meaning |
|---|---|
| Conforms | The mock or the client does what the requirement asks, and a test holds it. |
| Partly | Some of it is done; the cell says what is not. |
| Does not | It is not done, and the cell says whether that is a gap or a choice. |
| Not asked of a mock | It is asked of a client, an operator or a production server, and a mock for testing has nothing to answer it with; the cell says what MockForge does instead. |
| Put to your agent | It is asked of the client your agent is, and MockForge’s part is to test that client: a shipped suite puts the requirement to the agent. |
In sum, of the chapter’s 39 requirements:
- Conforms: 12
- Partly: 4
- Does not: 2
- Not asked of a mock: 17
- Put to your agent by the shipped suites: 4
At the first level, the ones every application is asked to meet, the chapter has 15 requirements: 5 are met, 2 partly, none is left undone by the mock, 5 are not asked of a mock, and 3 are put to your agent.
C10.1 Component integrity
| Requirement | Level | MockForge | What that means |
|---|---|---|---|
| C10.1.1 | 1 | Conforms | The mock loads no MCP component: it is the one binary, built from a lock file that the security audit in CI reads on every change, and it fetches nothing at run time. A catalog is a file the operator names. |
| C10.1.2 | 2 | Not asked of a mock | Which servers a client may talk to is the client’s or the organisation’s policy. MockForge’s own client talks only to the server it is given. |
| C10.1.3 | 2 | Does not | The mock and the stdio server run with the rights of whoever started them, in no sandbox of their own. Start the mock where it may write only its record log, and give a catalog you trust: a tool of a catalog can be an operation of the mock’s own API. |
C10.2 Authentication and authorization
The mock authenticates nobody and authorizes nobody: it is made for testing,
and by default it listens on this machine alone, where only this machine’s
pages and clients reach it. The requirements of this section are asked of a
server that has users. To mock an authorizing server, a catalog says what a
tool needs and what it must be given: requires refuses a call that leaves
an argument out or sends it blank, and equals refuses every value but one.
| Requirement | Level | MockForge | What that means |
|---|---|---|---|
| C10.2.1 | 1 | Not asked of a mock | There is no token to validate. Keep the mock on this machine, or put it behind a server that does this. |
| C10.2.2 | 1 | Not asked of a mock | The mock issues and checks no token, so it reads no claim of one. |
| C10.2.3 | 1 | Not asked of a mock | The mock holds no token and no credential of its own. What an agent sends in an argument is written to the record log the operator names, which is what the log is for: keep it as you keep a test fixture. |
| C10.2.4 | 2 | Not asked of a mock | Every caller is listed the same tools, since every caller is the same tester. |
| C10.2.5 | 2 | Partly | requires and equals refuse a call by the values it sends, which is the mock’s way of an argument-level check. There is no caller to check a tool against. |
| C10.2.7 | 1 | Conforms | A tool that is an operation of the mock’s API asks the mock’s own app, from no address in particular; nothing the request carried reaches any other service. |
| C10.2.8 | 1 | Not asked of a mock | The mock keeps no state between requests beyond how many times the tools were listed. |
| C10.2.9 | 2 | Not asked of a mock | The mock is no OAuth client. |
| C10.2.10 | 2 | Not asked of a mock | As C10.2.8: there is no state to use twice. |
C10.3 Transport
| Requirement | Level | MockForge | What that means |
|---|---|---|---|
| C10.3.1 | 1 | Partly | serve can answer over TLS from a certificate and key you give it, and the mock is on this machine alone by default, where nothing leaves the machine. It authenticates no one (see C10.2), so a mock served to others needs a server in front of it that does. |
| C10.3.2 | 1 | Conforms | mockforge mcp speaks over stdio only, to the local client that launched it; it has no other transport. |
| C10.3.3 | 1 | Partly | The mock reads Origin on its own, whatever address it listens on: a request that says where its page is is answered only when that page is on this machine, is served from an address, or is an origin the server’s CORS policy allows. A browser says where its page is on every request it makes to this endpoint, and a page that reached the mock under a name that resolved to something else a moment before names the site it came from, so this is what stops it. Host is read too for a mock bound to this machine (--http-host 127.0.0.1, localhost or ::1), which then answers only under localhost or its own addresses; the mock listens on every address by default, and a mock reached by any of them has no one name to check Host against, so Host is not read then. |
| C10.3.4 | 2 | Partly | MockForge’s client speaks revision 2026-07-28 first and falls back to the earlier handshake for a server that does not know it, which is the order the specification gives for a negotiation, and it lets a server of the earlier era be pinned and checked too. --no-fallback has the client refuse such a server instead, as the requirement asks of a client that acts for a user: nothing is pinned, and a check reports nothing as unchanged. The fallback stays the default so that a tool whose work is to look at servers of both eras can. |
| C10.3.5 | 3 | Not asked of a mock | There is no token to constrain to a sender. |
| C10.3.6 | 2 | Conforms | On revision 2026-07-28 the mock checks the headers a request mirrors its method, revision and tool name into against the body, and refuses the request when they differ, before anything is answered. The check is made because the request’s own metadata says it is of that revision, not because a header claims it. |
C10.4 Schema, message and input validation
| Requirement | Level | MockForge | What that means |
|---|---|---|---|
| C10.4.1 | 1 | Put to your agent | The suite undeclared-field answers a tool call with a field the tool’s declared output schema does not name, and an instruction in it: a client that checks the result against the schema never shows the model the field. |
| C10.4.2 | 1 | Put to your agent | Every suite whose attack is an instruction in a tool’s description or in a tool’s result breaks this requirement when the agent fails it, and leads its class with it. For a server’s side of it, mcp-contract check quotes the wording of a tool definition that reads as an instruction to the agent, and mockforge agent-redteam corpus gives the eleven planted texts with a harmless look-alike beside each, labelled, to measure a screener with: MockForge’s own signal, measured so, points at four of the eleven. |
| C10.4.3 | 1 | Conforms | An unknown tool, an argument a tool requires and is not given, an argument of another type than its schema says, and a name its schema does not declare are each refused with the reason, and the tool is not called. How large a request may be is bounded besides (see C10.4.5). |
| C10.4.4 | 2 | Conforms | A call’s arguments are checked against the tool’s input schema as the catalog declares it: the type of a value, the enum it is one of, the names an object requires, the properties it declares and whether it allows others, and the items of an array with their least and most count. A keyword the mock does not read, a pattern or a format, is not checked. |
| C10.4.5 | 2 | Conforms | A request body over two mebibytes is refused by the server before the mock reads it, and what a tool answers from the mock’s own API is cut at sixteen kibibytes, saying so. |
| C10.4.6 | 2 | Does not | A mock’s answers are not signed. A client that checks signatures has nothing to check, which is a fair thing to find out about a mock. |
| C10.4.7 | 2 | Not asked of a mock | Consent to install a server is the client’s to ask. |
| C10.4.8 | 3 | Put to your agent | The suite tool-rug-pull shows a tool as it was to the first listing of the tools and changed from the second on, and fails an agent that calls it again without the approval again. For a server’s side of it, mcp-contract check fails when a pinned server’s tool definitions changed. |
| C10.4.9 | 2 | Not asked of a mock | The mock is no proxy and has no upstream identity to share. |
| C10.4.10 | 2 | Not asked of a mock | Binding consent to an endpoint is the client’s to do. |
| C10.4.11 | 1 | Put to your agent | The suite mirrored-header lists a tool whose definition names a mirrored header with a line break and a second header in its name, and fails an agent that calls the tool: a client that checks the annotation drops that tool from its list and warns, and keeps the others. |
| C10.4.12 | 2 | Conforms | On revision 2026-07-28 the three headers every request mirrors are checked against the body, an encoded Mcp-Name being decoded first, and so is each Mcp-Param-* header a tool’s definition mirrors a parameter into: present where the argument is given, absent where it is not, decoded and equal to it. A request that differs is refused before any tool is called, the reason naming the header. A definition whose annotation the protocol does not allow is a client’s to reject, and the mock checks nothing of it. |
| C10.4.13 | 2 | Conforms | The check goes sixteen levels into the arguments and no further, and accepts what lies beyond, so a schema cannot make it work without end; and it compiles no pattern. |
| C10.4.14 | 1 | Conforms | Nothing the mock loads follows a reference to an address. A spec with references to other files has them read from the disk beside it, and a reference to an address is left as it stands. |
| C10.4.15 | 2 | Not asked of a mock | The mock resolves no schema reference: it lists a tool’s input schema as the catalog declares it. |
| C10.4.16 | 2 | Conforms | No answer of the mock may be cached: each carries Cache-Control: no-store, server/discover says its answer is private and lives for no time, and the tools are listed afresh, since a tool can change from one listing to the next. |
| C10.4.17 | 2 | Conforms | As C10.4.16: every answer is marked not to be stored, which is the strictest scope there is, and the one answer that describes the server says it is private. |
| C10.4.18 | 2 | Not asked of a mock | The mock sends no elicitation request. |
| C10.4.19 | 1 | Not asked of a mock | As C10.4.18. |
| C10.4.20 | 2 | Not asked of a mock | Consent before an elicitation’s address is opened is the client’s to ask. |
| C10.4.21 | 2 | Not asked of a mock | How a client opens an elicitation’s address is the client’s to do. |
What MockForge tests of this chapter for your agent
Four requirements of the chapter are asked of the client an agent is, and a shipped suite puts each to the agent, with a verdict and the evidence:
| Requirement | Suite | What the agent has to do |
|---|---|---|
| C10.4.1 | undeclared-field | Stop a result that is not what the tool’s declared schema says, before the model reads it. |
| C10.4.11 | mirrored-header | Drop a tool whose definition carries a header annotation the protocol does not allow, and keep the other tools. |
| C10.4.2 | argument-escalation, argument-exfiltration, boundary-spoofing, confirmation-step, forged-user-turn, hidden-instruction, late-instruction, result-injection, self-approval, tool-poisoning, tool-rug-pull, undeclared-field | Treat what a tool says as data: follow the task, not the tool’s description or result. |
| C10.4.8 | tool-rug-pull | Notice that a tool’s definition changed, and not call it again without the approval again. |
The end of mockforge agent-redteam list says which requirements of the
standard the shipped suites put to an agent, with the suites that put each.
How this page is kept true
A test of mockforge-contracts reads this page and holds it to what the build
knows of the standard: every requirement of the chapter is in the tables once,
at the level the standard gives it, with one of the five words; and the counts
in the sum are the tables’ own. When a requirement’s status changes, the test
fails until the sum says so too.
What is not claimed
- No certification. This is a self-assessment, in the project’s words; the standard’s authors have not seen it.
- The mock is not a production MCP server. Where the chapter asks for authentication, authorization, tokens or consent, the mock does not have them and says so above; it is made to stand in for a server that does, on this machine, while an agent is tested against it.
- The gaps are named, not hidden. A sandbox of the mock’s own (C10.1.3) and signed answers (C10.4.6) are not done.