Agent Shield MCP Server

@elliotllliu/agent-shield npm v0.16.0

Published by @elliotllliu — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

Multi-engine AI agent security scanner — one scan, four engines, one report

Trust grade
C
79/100
Last scanned get badge →
Trust
C · 79/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
C Why this grade threat 86 − adoption risk = 79/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 14.2 = 86. What the published surface and source actually contain:

PointsWhat was foundCategory
−14.2 Untrusted input concatenated into a command sink ×8 MTC-SRC-009 injection

2. Client adoption risk — 86 − 7 = 79. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 27

high Reads a sensitive credential path or dumps the environment (dist/rules/prompt-injection.js)MTC-SRC-006

In the server's implementation (`dist/rules/prompt-injection.js:131`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: redentials|config\.json|id_rsa|\.gnupg)/i, description: "TPA: reads sensitive files for exfiltration", severity: "medium

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/prompt-injection.js

high Reads a sensitive credential path or dumps the environment (dist/rules/sensitive-read.js)MTC-SRC-006

In the server's implementation (`dist/rules/sensitive-read.js:6`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { pattern: /~\/\.ssh\/id_rsa|\.ssh\/id_rsa|ssh_key|id_ed25519/i, desc: "SSH private key" }, { pattern: /~\/\.ssh\/

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/sensitive-read.js

high Reads a sensitive credential path or dumps the environment (dist/runtime/detectors/data-leak.js)MTC-SRC-006

In the server's implementation (`dist/runtime/detectors/data-leak.js:13`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ess" }, { pattern: /id_rsa|id_ed25519|id_ecdsa|authorized_keys/i, rule: "arg-ssh-key", level: "high", desc: "SSH key

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/runtime/detectors/data-leak.js

high Dynamic code execution in server code (dist/llm-analyzer.js)MTC-SRC-001

In the server's implementation (`dist/llm-analyzer.js:13`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ternally 5. Backdoors — eval(), exec(), reverse shells, dynamic code execution 6. Social engineering — instructions to b

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/llm-analyzer.js

high Dynamic code execution in server code (dist/rules/backdoor.js)MTC-SRC-001

In the server's implementation (`dist/rules/backdoor.js:8`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: +Function\s*\(/, desc: "new Function() constructor", severity: "high" }, { pattern: /child_process\s*\.\s*exec\s*\(/

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/backdoor.js

high Dynamic code execution in server code (dist/rules/obfuscation.js)MTC-SRC-001

In the server's implementation (`dist/rules/obfuscation.js:6`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: tob\b/, desc: "atob() + eval() combo", severity: "high" }, { pattern: /Buffer\.from\s*\([^)]*,\s*["']base64["']\).*\

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/obfuscation.js

high Shell/command execution in server code (dist/analyzers/data-flow.js)MTC-SRC-002

In the server's implementation (`dist/analyzers/data-flow.js:12`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: xecSync\s*\(|spawn\s*\(|child_process/; /** Eval sinks */ const EVAL_SINK_RE = /\beval\s*\(|new\s+Function\s*\(/; /** Va

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/analyzers/data-flow.js

high Shell/command execution in server code (dist/engines/aggregator.js)MTC-SRC-002

In the server's implementation (`dist/engines/aggregator.js:141`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ackdoor|command.*inject|child_process|spawn|code.*gen|dynamic.*exec/i.test(combined)) return "code-execution";

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/aggregator.js

high Shell/command execution in server code (dist/engines/aguara.js)MTC-SRC-002

In the server's implementation (`dist/engines/aguara.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; export class AguaraAdapter { id = "aguara"; displayName = "Aguara";

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/aguara.js

high Shell/command execution in server code (dist/engines/auto-install.js)MTC-SRC-002

In the server's implementation (`dist/engines/auto-install.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; import { existsSync, mkdirSync, chmodSync } from "fs"; import { join } from "pat

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/auto-install.js

high Shell/command execution in server code (dist/engines/invariant.js)MTC-SRC-002

In the server's implementation (`dist/engines/invariant.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; import { readdirSync, readFileSync } from "fs"; import { join } from "path"; /**

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/invariant.js

high Shell/command execution in server code (dist/engines/semgrep.js)MTC-SRC-002

In the server's implementation (`dist/engines/semgrep.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; export class SemgrepAdapter { id = "semgrep"; displayName = "Semgrep";

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/semgrep.js

high Shell/command execution in server code (dist/engines/skill-vetter.js)MTC-SRC-002

In the server's implementation (`dist/engines/skill-vetter.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; /** * Skill Vetter adapter — runs the vett.sh multi-scanner script. * https://

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/skill-vetter.js

high Shell/command execution in server code (dist/engines/tencent.js)MTC-SRC-002

In the server's implementation (`dist/engines/tencent.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port { execSync } from "child_process"; export class TencentGuardAdapter { id = "tencent"; displayName = "Tencen

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/tencent.js

high Shell/command execution in server code (dist/llm-analyzer.js)MTC-SRC-002

In the server's implementation (`dist/llm-analyzer.js:13`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: 5. Backdoors — eval(), exec(), reverse shells, dynamic code execution 6. Social engineering — instructions to bypass sa

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/llm-analyzer.js

high Shell/command execution in server code (dist/rules/backdoor.js)MTC-SRC-002

In the server's implementation (`dist/rules/backdoor.js:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: igh" }, { pattern: /child_process\s*\.\s*exec\s*\(/, desc: "child_process.exec() — use execFile instead", severity:

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/backdoor.js

medium Untrusted input concatenated into a command sink (dist/engines/aguara.js)MTC-SRC-009

In the server's implementation (`dist/engines/aguara.js:36`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { raw = execSync(`aguara scan "${targetDir}" --format json --no-color 2>/dev/null`, {

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/aguara.js

medium Untrusted input concatenated into a command sink (dist/engines/auto-install.js)MTC-SRC-009

In the server's implementation (`dist/engines/auto-install.js:29`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ra — 正在下载..."); execSync(`curl -fsSL "${releaseUrl}" -o "${binPath}" 2>/dev/null`, { timeout: 60000,

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/auto-install.js

medium Untrusted input concatenated into a command sink (dist/engines/invariant.js)MTC-SRC-009

In the server's implementation (`dist/engines/invariant.js:51`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: const raw = execSync(`mcp-scan scan --json "${configFile}" 2>/dev/null`, { timeo

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/invariant.js

medium Untrusted input concatenated into a command sink (dist/engines/semgrep.js)MTC-SRC-009

In the server's implementation (`dist/engines/semgrep.js:36`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: e raw = execSync(`semgrep scan "${targetDir}" --config p/default --json --quiet --no-git-ignore --timeou

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/semgrep.js

medium Untrusted input concatenated into a command sink (dist/engines/skill-vetter.js)MTC-SRC-009

In the server's implementation (`dist/engines/skill-vetter.js:21`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try { execSync(`test -f "${p}"`, { stdio: "pipe" }); this.scriptPath = p;

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/skill-vetter.js

medium Untrusted input concatenated into a command sink (dist/engines/tencent.js)MTC-SRC-009

In the server's implementation (`dist/engines/tencent.js:35`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: output = execSync(`ai-infra-guard scan "${targetDir}" --format json 2>/dev/null || python3 -m ai_infra_gu

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/engines/tencent.js

medium Untrusted input concatenated into a command sink (dist/rules/python-ast.js)MTC-SRC-009

In the server's implementation (`dist/rules/python-ast.js:45`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: )}`); try { execSync(`mkdir -p ${tmpDir}`, { stdio: "pipe" }); } catch { return []; }

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/python-ast.js

medium Untrusted input concatenated into a command sink (dist/scanner/files.js)MTC-SRC-009

In the server's implementation (`dist/scanner/files.js:22`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: -")); try { execSync(`unzip -q -o "${filePath}" -d "${tmpDir}"`, { stdio: "pipe" }); } catch {

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/scanner/files.js

medium Dynamic module load from a non-literal (dist/rules/backdoor.js)MTC-SRC-005

In the server's implementation (`dist/rules/backdoor.js:19`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: _\s*\(/, desc: "dynamic __import__()", severity: "medium" }, // Shell { pattern: /\$\(curl\s/, desc: "command su

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/backdoor.js

medium Dynamic module load from a non-literal (dist/rules/python-security.js)MTC-SRC-005

In the server's implementation (`dist/rules/python-security.js:17`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: import__\s*\(/m, desc: "__import__() — dynamic module loading", severity: "high", category: "code-exec" }, { pattern

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/rules/python-security.js

medium Dynamic module load from a non-literal (src/analyzers/python_ast.py)MTC-SRC-005

In the server's implementation (`src/analyzers/python_ast.py:115`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: "__import__() with dynamic module name", "medium") # getattr w

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/analyzers/python_ast.py

Tools 2

Each tool and what it can reach — statically extracted from the published source.

  • multi_engine_scanno sensitive capability
  • scanno sensitive capability

What this scan could not see

Versions 1

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v0.16.0 latest C 79/100 27 1.13.0 2026-09-07

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: C · 79/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/elliotllliu-agent-shield/badge.svg)](https://mcptrustchecker.com/registry/elliotllliu-agent-shield)
HTML
<a href="https://mcptrustchecker.com/registry/elliotllliu-agent-shield"><img src="https://mcptrustchecker.com/registry/elliotllliu-agent-shield/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/elliotllliu-agent-shield/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan @elliotllliu/agent-shield --online

Use the free API → How scoring works

More in Security & Testing