MCP, MCP server
c2detect
c2detect, an MCP server listed in the PlugVet directory.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST INSTALL_DOCUMENTED_INSTALLER SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP
Why this grade
- NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
livesearch.py, line 40
with urllib.request.urlopen(req, timeout=TIMEOUT) as r: # nosec - read-only GET - NETWORK_UNNAMED_HOST Low
Calls a fixed host that the description does not name.
livesearch.py, line 40
with urllib.request.urlopen(req, timeout=TIMEOUT) as r: # nosec - read-only GET - INSTALL_DOCUMENTED_INSTALLER Note
Documentation shows an installer that pipes a download into a shell.
README.md, line 630
curl -fsSL https://raw.githubusercontent.com/cognis-digital/c2detect/main/install.sh | sh - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
c2detect/ai_backend.py, line 111
self.api_key = api_key or os.environ.get("COGNIS_AI_KEY") or None - OBFUSCATION_FILE_OVER_READ_CAP Note
A file was over the read cap and was not fully read.
docs/corpus/c2detect-engineering-compendium-reference/c2detect-engineering-compendium-reference.md, line 1
# c2detect - Engineering Compendium & Reference
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.
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
Pass
No shell or command execution found, and no extra permission was declared.
Install and update
Note
README documents an installer that pipes a download into a shell. The docs document an installer that pipes a download into a shell.
INSTALL_DOCUMENTED_INSTALLER
README.md, line 630
curl -fsSL https://raw.githubusercontent.com/cognis-digital/c2detect/main/install.sh | sh
docs/INSTALL.md, line 13
| **curl \| sh** (one-liner) | `curl -fsSL https://raw.githubusercontent.com/cognis-digital/c2detect/main/install.sh \| sh` |
Network
Concern
can reach a host that is not written as a fixed address. can reach raw.githubusercontent.com. The description does not name that host.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
livesearch.py, line 40
with urllib.request.urlopen(req, timeout=TIMEOUT) as r: # nosec - read-only GET
c2detect/active.py, line 320
with socket.create_connection((host, port), timeout=timeout) as raw:
c2detect/ai_backend.py, line 146
with urllib.request.urlopen(req, timeout=HEALTH_TIMEOUT) as resp:
Show more
c2detect/ai_backend.py, line 211
with urllib.request.urlopen(req, timeout=self.timeout) as resp:
c2detect/cli.py, line 423
print(f"note: --feeds could not fetch ({exc}); rule findings only.",
c2detect/datafeeds.py, line 72
def fetch(url: str, *, method: str = "GET", data: Optional[bytes] = None,
c2detect/datafeeds.py, line 80
with urllib.request.urlopen(req, timeout=timeout) as resp:
c2detect/datafeeds.py, line 114
raw = fetch(url, method=method, data=body)
Secrets
Note
reads an environment variable.
SECRETS_ENV_READ
c2detect/ai_backend.py, line 111
self.api_key = api_key or os.environ.get("COGNIS_AI_KEY") or None
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
docs/corpus/c2detect-engineering-compendium-reference/c2detect-engineering-compendium-reference.md, line 1
# c2detect - Engineering Compendium & Reference
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 f3d34f8786e5. README documents an installer that pipes a download into a shell. The docs document an installer that pipes a download into a shell. can reach a host that is not written as a fixed address. can reach raw.githubusercontent.com. The description does not name that host. reads an environment variable. a file was over the read cap and was not fully read.
Date and source
Date checked:
github.com
Commit graded: f3d34f8786e50777d4f0b62c90816ca8e5ee9a1a
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.