High-risk tools in Windows Command Line MCP Server
2 of the 8 tools in Windows Command Line MCP Server are classified as high risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at high risk
-
execute_commandExecute 4/5Execute a Windows command and return its output. Only commands in the allowed list can be executed. This tool should be used for running simple commands like 'dir', 'echo', etc.
-
execute_powershellExecute 4/5Execute a PowerShell script and return its output. This allows for more complex operations and script execution. PowerShell must be in the allowed commands list.
Attacks that target this class
High-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.
More on Windows Command Line MCP Server
Enforce policy on Windows Command Line MCP Server
One command generates a policy scaffold for every server in your MCP config.
npx -y @policylayer/intercept init