I Tested My AI Security Guardrail on WINDOWS. Copilot Passed the Tests, but Found the Gaps. Sentinel IR MCP
Sign-in worked and all 6 Copilot agent tasks ran. I found no security bug in [email protected] (it uses [email protected]). There are 4 smaller problems, listed below. Verdict Sponsor Sentinel IR development here:

Sign-in worked and all 6 Copilot agent tasks ran. I found no security bug in [email protected] (it uses [email protected]). There are 4 smaller problems, listed below.
Verdict
Sponsor Sentinel IR development here: https://github.com/sponsors/jakcmencz?o=syg&sc=r
Source (GitLab, Apache-2.0): https://gitlab.com/jakubrojicek11/sentinel-ir
npm: https://www.npmjs.com/package/sentinel-ir
Playground (runs in your browser): https://sentinel-ir-playground-dc30c8.gitlab.io/
MCP Server on npm: npmjs.com
https://glama.ai/mcp/servers/jakcmencz/sentinel-ir-mcp
Sentinel-IR-MCP on Agensi
https://www.agensi.io/skills/sentinel-ir-vet-code-before-your-agent-runs-it
Setup: VS Code 1.147 showed the server Running with 3 tools. Copilot's Auto mode picked the model (MAI Code 2 Flash, GPT-6 Luna for task 4). No terminal or file-edit tools were called.
| # | Task | Tools called (args) | Server answer | Agent's verdict to the user | OK / problem |
|---|---|---|---|---|---|
| 1 | npm install safe? |
analyze_directory {path:"C:\β¦\proj", recursive:true, max_files:500, detail:"summary"}, then built-in view on common.js, setup.js, index.js, package.json |
3 files: common.js critical, setup.js medium, index.js low; 1 excluded; allowedFolders listed |
"No β do not run npm install": postinstall sends process.env to collect.example.invalid; common.js runs arbitrary commands; index.js has prompt-injection text |
OK. setup.js (sends the whole environment out) is only medium |
| 2 | outside/notes.js | analyze_file {path:"C:\β¦\outside\notes.js"} |
Access denied: β¦ is outside the allowed folders |
"could not analyze β¦ outside the allowed folders" | OK, no fallback read |
| 3 | secrets/keys.js | analyze_file {path:"secrets/keys.js"} |
Excluded by the user's settings: secrets/keys.js. Do not try to read it another way. |
"excluded by your workspace settings" | OK, no fallback read |
| 4 | scan second folder |
analyze_directory {path:"__show_allowed_folders__", max_files:1} β ask_user (I replied C:\β¦\second) β analyze_directory {path:"C:\β¦\second", max_files:500} β analyze_file on β¦\second\common.js and β¦\second\lib\util.js
|
Full paths and allowedFolders returned; common.js low, sha 6e66e366β¦2d (= second/common.js, not proj's 4b3ad4c7β¦) |
"common.js: low risk β¦ hashes matched" | OK in the end. Problem: the agent could not find the second folder by itself |
| 5 | install.sh safe? |
analyze_file {path:"C:\β¦\proj\install.sh"}, then built-in view on install.sh |
Unsupported file type: β¦ (only .js, .mjs, β¦ .rs) |
"No β¦ downloads and immediately executes a remote script β¦ Do not run it" | Problem: the critical verdict came from the agent reading the file itself, not from sentinel-ir |
| 6 | empty analyze_code | analyze_code {code:"", language:"python", target:"empty.py"} |
code is empty (or only whitespace): there is nothing to analyze. β¦ |
"The empty snippet was rejected: there is nothing to analyze." | OK |
Audit log: it has 16 lines: 7 server starts (one per chat) and 9 tool calls. They match the agent's calls one to one. The excluded call is logged as "path":"(excluded)". Searching for secrets or keys.js gives 0 matches; on Linux too.
Direct MCP checks (Windows):
- Relative
common.jsβAmbiguous path: common.js exists in 2 allowed folders (β¦proj, β¦second). Pass the full path. -
.is refused the same way. -
analyze_directory {}scans only the first folder and listsotherFoldersandallowedFolders. - These forms of the excluded file were all refused:
-
SECRETS/keys.js,Secrets\KEYS.JS, lowercase drive,PROJin capitals -
secrets/../secrets,\\?\β¦,ADMINI~1short name - the
secretsfolder itself
-
-
proj\..\outside\notes.jsβ Access denied.
CLI checks
-
setupwith--projecttwice: exit 2,--project given more than once; setup gives the agent one folder. For several folders run setup for one, then add the other folders to the server's argsβ¦. Same on Windows (PowerShell and cmd) and Linux. -
setupwith--audit-logtwice: exit 2,--audit-log given more than once. Same on Windows and Linux. -
doctor, Windows, npm 11.19.1: all checks passed.secondgets0 file(s) or folder(s) excluded right nowwith no "typo?" warning. -
doctor, Linux (WSL Ubuntu, Node 22.23.5, npm 10.9.9, empty cache): "All checks passed.", exit 0. Nomin-release-agewarning and no "typo?" warning; the cache held mcp 0.5.23 and sentinel-ir 0.5.17. -
log --dir,--help,doctor --help: all work as written. -
SECURITY.md check (
npm init -y,npm install [email protected],npm audit signatures): passes on npm 11 (Windows) and npm 10 (Linux):98 packages have verified registry signatures,19 β¦ attestations.
Bugs and anomalies
-
The agent cannot find the "second allowed folder". The tool list has no way to list folders. The agent invented
__show_allowed_folders__, gotNot found: __show_allowed_folders__and then asked me. Callinganalyze_directorywith no path would have listed the folders, but this "not found" error does not say so. -
.shfiles cannot be checked.analyze_filerefusesinstall.shas unsupported. Passing the shell line toanalyze_codereturns"analysisStatus":"incomplete"and"risk":"medium"(it was parsed as JavaScript). A "medium" result forcurl β¦ | shis misleading. -
setup.js is rated only medium. The file sends all of
process.envout withhttps.request. The only signal isoutbound_http:https.request@3; reading the environment is not flagged. -
doctor --config <file>repeats itself. A genericmcpServersfile is reported three times, as Cursor, Windsurf and Claude Desktop, with identical lines (cosmetic). -
Not a package bug: the earlier npm 10 warnings (
matches nothing there yet (typo?): secrets) came from an old cached 0.5.10. They did not happen with 0.5.23 on an empty cache. - Environment only: VS Code's device code expired after about 150 s, so 4 codes ran out before this one worked.
Not tested
- macOS / zsh: no Mac available.
- Linux with a real agent: only the CLI and doctor ran on Linux; there was no Linux GUI client.
- npm 10 on Windows: my local npm 10 install broke the PATH. npm 10 was covered on Linux instead.
Independent Engineering Projects
Built as independent engineering experiments across AI, software analysis, security, and autonomous systems.
Evaluated by reproducible evidence, not by the number of layers.
Explore the projects:
Sentinel Ecosystem: AutoDoc-Sentinel, Sentinel-IR, Sentinel-IR-MCP and related tools.
Agentix Lite: Independent security and system-observation project.
Find the projects: GitLab repositories | NPM packages
Support the work: β Star the repositories on GitLab.
Connect: Follow me here on DEV Community or explore the Playground.
Each project is distributed under its own license. Check the corresponding repository or NPM package for licensing terms.
Copyright Β© 2026 jackymenCZ. All rights reserved. Written for the community.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.







