运行内置 SQLi/XSS/命令注入/路径遍历样例,用于快速验证引擎是否检出攻击。
AI agents invoke waf_run_self_tests to trigger actions in Hospital WAF MCP. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
This tool executes pre-defined security test payloads against the WAF engine. While the payloads are curated samples rather than arbitrary code, the tool triggers execution of attack vectors (SQL injection, XSS, command injection, path traversal) through the system.
From the tool's definition Tool description states it 'runs built-in SQLi/XSS/command injection/path traversal samples' (translated from Chinese: '运行内置 SQLi/XSS/命令注入/路径遍历样例'). The term '运行' (run) and the reference to executing test payloads indicates code/command execution.
Attacks that exploit this kind of access
运行内置 SQLi/XSS/命令注入/路径遍历样例,用于快速验证引擎是否检出攻击。. It is categorised as a Execute tool in the Hospital WAF MCP MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Hospital WAF MCP server in PolicyLayer and add a rule for waf_run_self_tests: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Hospital WAF MCP. Nothing to install.
waf_run_self_tests is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the waf_run_self_tests rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for waf_run_self_tests. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
waf_run_self_tests is provided by the Hospital WAF MCP server (12211725-star/hospital-waf-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
waf_run_self_tests is one line of Hospital WAF's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →