{"score":90,"grade":"A","scannedAt":"2026-12-05T22:58:17.812Z","scanner":"grades-0.2","signals":{"ecosystem":"pypi","name":"mcp-safeguard","version":"0.11.0","license":"MIT","repository":"https://github.com/SyedAnas01/mcp-safeguard","firstPublished":"2026-05-06T18:06:37.442155Z","lastPublished":"2026-11-25T01:28:47.237617Z","versions":12,"files":119,"bytes":2678533,"hosts":["attacker.com","cognivators.com","dailycve.com","thehackernews.com","www.cyera.com","www.sentinelone.com"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":true},"findings":[{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/mcp_safeguard/scanner/source_scanner.py","line":661,"snippet":"r\"(?:child_process\\.exec(?:Sync)?|(?<![.\\w])exec(?:Sync)?|\""},{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/mcp_safeguard/scanner/source_scanner.py","line":701,"snippet":"r\"\\bfunction\\s+exec(?:Sync)?\\s*\\(|\\b(?:var|let|const)\\s+exec(?:Sync)?\\s*=\\s*(?:function\\b|\\()\""},{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/mcp_safeguard/scanner/source_scanner.py","line":1514,"snippet":"r\"(?<![\\w.])exec(?:Sync|Async|Promise|P)?\\s*\\(|\\.exec(?:Sync|Async)\\s*\\(|\\bpromisify\\(\\s*exec\\s*\\)\\s*\\(|\""},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"src/mcp_safeguard/scanner/rescan.py","line":224,"snippet":"comparing local state only\", never as \"nothing changed\".\"\"\""},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"src/mcp_safeguard/scanner/tool_analyzer.py","line":148,"snippet":"r\"(?i)read\\s+.{0,80}(~/|/etc/|\\.ssh|id_rsa|mcp\\.json|\\.env|config|secret|credential)\""},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/mcp_safeguard/observability/dashboard.py","line":35,"snippet":"report_dir = Path(os.environ.get(\"MCP_SAFEGUARD_REPORT_DIR\", \"/tmp/mcp-safeguard-reports\"))"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/mcp_safeguard/scanner/adversary.py","line":64,"snippet":"import urllib.request"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/mcp_safeguard/scanner/adversary.py","line":1756,"snippet":"req = urllib.request.Request(url, data=json.dumps(body).encode(), headers=headers, method=\"POST\")"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/mcp_safeguard/scanner/adversary.py","line":1757,"snippet":"with urllib.request.urlopen(req, timeout=self._timeout) as resp:  # noqa: S310 -- operator-configured URL"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/mcp_safeguard/scanner/adversary.py","line":1800,"snippet":"e = os.environ if env is None else env"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/mcp_safeguard/scanner/credential_scanner.py","line":241,"snippet":"(r\"os\\.environ\\[\", Severity.MEDIUM, \"Python os.environ access in tool text\"),"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"src/mcp_safeguard/scanner/ledger.py","line":132,"snippet":"with path.open(\"a\", encoding=\"utf-8\") as fh:"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"src/mcp_safeguard/scanner/priority_score.py","line":447,"snippet":"result = subprocess.run("},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"src/mcp_safeguard/scanner/rescan.py","line":145,"snippet":"result = subprocess.run("},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"src/mcp_safeguard/scanner/sandbox.py","line":74,"snippet":"`subprocess.Popen`/`os.system` (every subprocess/exec call, full argv),"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"src/mcp_safeguard/scanner/sandbox.py","line":624,"snippet":"with open({out_path!r}, \"w\") as f:"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"src/mcp_safeguard/scanner/taint_scanner.py","line":249,"snippet":"\"os.remove($CMD)\","}],"vulns":[],"installScripts":[],"server":{"name":"com.cognivators/mcp-safeguard","description":"Security scanner for MCP servers: prompt injection, credential leaks, SSRF, shell injection.","repository":"https://github.com/SyedAnas01/mcp-safeguard","version":"0.11.0"}}