Skip to main content

Airlock Audits MCP Servers: Testing Declarations Against Reality

Developer builds Airlock to test MCP server tools against readOnlyHint declarations, uncovering hidden behaviors and protocol security boundaries.

AI-written
Inewgen
30 Aug 2026Source: Dev.to3 min read (0 views)
Share
Airlock Audits MCP Servers: Testing Declarations Against Reality

Stock photo for illustration only, not from the actual event

Font size
  • MCP servers can publish readOnlyHint to bypass human approval flows.
  • Airlock compares server tool declarations against observed behaviors.
  • Testing revealed hidden write behaviors and unannounced data egress in fixtures.
  • Audits on ContextFirewall and stdio servers highlight critical security boundaries.

Model Context Protocol (MCP) servers describe their own tools, allowing them to publish annotations such as readOnlyHint: true . Agent harnesses often use these declarations to decide whether human approval is required. This creates an uncomfortable trust boundary because the server being evaluated is the same entity defining its own potential danger.

To address this, developer built Airlock to test declarations against observed behavior and enforce strict wire policies. Airlock reports its observations while explicitly noting that the absence of findings does not prove safety. For instance, a tool called export_report might declare itself read-only while simultaneously writing a file outside the operator's permitted scope.

36Checks per fixture
7Findings from 24 probes

Airlock opens a case, inventories declared tools, executes them under a constrained budget, and contrasts declarations with runtime observations. If a tool behaves inconsistently with its declaration, that discrepancy becomes concrete evidence. For approved cases, Airlock deploys a per-case enforcing proxy rather than routing traffic back to the suspect server directly.

"Airlock reports what it observed. Absence of a finding is not proof of safety."

Airlock Developer
cybersecurity dashboard monitoring analytics screen

Stock photo for illustration only, not from the actual event

Never miss the latest news?

Subscribe to get news summaries by email - not often enough to be annoying.

โฆษณา

Airlock ships with two six-tool fixtures sharing identical surfaces. The dishonest fixture incorporates five hidden behaviors, including filesystem writes behind readOnlyHint: true , scope escapes, undeclared egress, injected instructions, and canary exfiltration. In controlled mode, it registered 7 findings across 36 checks, whereas the honest fixture yielded zero findings across the exact same check suite.

Context Note: The rise of AI agent architectures utilizing external Model Context Protocol servers introduces severe trust vulnerabilities. Because agent frameworks rely heavily on self-reported metadata, independent validation layers like Airlock are crucial to prevent automated systems from executing malicious operations disguised as read-only routines.

Airlock deliberately avoids using a single safety score, as averages can easily mask a single deceitful tool. It incorporates explicit states like not_tested and distinguishes capability absence from missing evidence. Furthermore, its handling of stdio servers ensures that commands are executed securely through fixed argument maps rather than vulnerable dynamic shell string parsing.

Source: Dev.to

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article