MCP, MCP server
sugar
🍰 Sugar - The autonomous layer for AI coding agents
Compatibility: Not stated.
Grade D
Two or more Medium findings, or a High finding. Only try it in a sandbox.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
Rescanned at commit 623a8e3455df, unchanged since the check below.
NETWORK_HOST_FROM_INPUT INSTALL_REMOTE_SCRIPT SECRETS_PATH_CREDENTIAL
Why this grade
- NETWORK_HOST_FROM_INPUT High
A file takes a URL or endpoint as input and has no fixed host list.
sugar/quality_gates/functional_verifier.py, line 166
# Use curl for HTTP requests - 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).
Dockerfile, line 17
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ - SECRETS_PATH_CREDENTIAL Medium
Mentions a credential store path (~/.ssh, id_rsa, .npmrc, .aws/credentials, credentials.json, .netrc).
examples/agent_local_test.py, line 25
"protected_paths": [".env", "credentials.json"],
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
.claude-plugin/hooks/session_start.py, line 34
result = subprocess.run(
sugar/main.py, line 1446
process = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr)
sugar/main.py, line 1818
result = subprocess.run(
Show more
sugar/main.py, line 2248
result = subprocess.run(
sugar/main.py, line 2256
auth_result = subprocess.run(
sugar/main.py, line 2267
repo_result = subprocess.run(
sugar/main.py, line 2286
git_result = subprocess.run(
sugar/main.py, line 2351
result = subprocess.run(
Install and update
Serious
install fetches a script from the network.
INSTALL_REMOTE_SCRIPT
requirements.txt, line 2
aiosqlite>=0.19.0
Dockerfile, line 17
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
Network
Serious
accepts a host from input, with no fixed list in this file.
NETWORK_HOST_FROM_INPUT
sugar/quality_gates/functional_verifier.py, line 166
# Use curl for HTTP requests
sugar/quality_gates/functional_verifier.py, line 221
raise Exception(f"Unexpected curl output format: {output}")
sugar/quality_gates/success_criteria.py, line 187
# Use curl to check HTTP status
Show more
sugar/quality_gates/success_criteria.py, line 234
# Use curl to check if there's a redirect
docs/phase3_sdk_integration.md, line 736
await fetch(`${this.sugarApiUrl}/events/opencode`, {
docs/phase3_sdk_integration.md, line 756
const response = await fetch(`${this.sugarApiUrl}/context/inject`, {
docs/phase3_sdk_integration.md, line 778
await fetch(`${this.sugarApiUrl}/tasks/${taskId}/complete`, {
docs/phase3_sdk_integration.md, line 858
const response = await fetch(`${this.sugarApiUrl}/memory/search`, {
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_CREDENTIAL SECRETS_PATH_DOTENV
.claude-plugin/agents/quality-guardian.md, line 297
API_KEY = os.getenv("API_KEY")
examples/agent_local_test.py, line 25
"protected_paths": [".env", "credentials.json"],
scripts/benchmark_v3.py, line 129
"protected_files": [".env", "*.pem", "credentials.json"],
Show more
scripts/benchmark_v3.py, line 143
"protected_files": [".env", "*.pem", "credentials.json", "secrets/*"],
scripts/benchmark_v3.py, line 150
{"file_path": "/project/.env"},
scripts/benchmark_v3.py, line 242
"protected_files": [".env", "*.pem"],
sugar/main.py, line 2534
"venv", ".venv", "env", ".env",
sugar/agent/hooks.py, line 56
".env",
sugar/agent/hooks.py, line 57
".env.local",
sugar/discovery/github_watcher.py, line 128
token = self.config.get("token", "") or os.getenv("GITHUB_TOKEN", "")
sugar/integrations/github.py, line 150
self.token = token or os.environ.get("GITHUB_TOKEN")
sugar/integrations/opencode/config.py, line 41
api_key=os.environ.get("OPENCODE_API_KEY"),
sugar/mcp/server.py, line 474
anthropic_api_key=anthropic_api_key or os.environ.get("ANTHROPIC_API_KEY"),
sugar/mcp/server.py, line 475
github_token=github_token or os.environ.get("GITHUB_TOKEN"),
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
uv.lock, line 1
version = 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 623a8e3455df. requests shell access. The manifest names this permission. install fetches a script from the network. accepts a host from input, with no fixed list in this file. 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: 623a8e3455df7fb9f543685faaf7106c1089cec7
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.