MCP, MCP server
Wazuh Mcp Server
Wazuh Mcp Server, 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.
Rescanned at commit e751871c850d, unchanged since the check below.
INSTALL_UNPINNED NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST SECRETS_PATH_DOTENV PERMISSION_SHELL_DECLARED SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP
Why this grade
- INSTALL_UNPINNED Low
Dependencies use a range or git URL with no lockfile.
requirements.txt, line 10
fastapi>=0.128.0,<1.0.0 - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
deploy-production.sh, line 147
if curl -f -s http://localhost:3000/health > /dev/null 2>&1; then - NETWORK_UNNAMED_HOST Low
Calls a fixed host that the description does not name.
deploy-production.sh, line 147
if curl -f -s http://localhost:3000/health > /dev/null 2>&1; then - SECRETS_PATH_DOTENV Low
Mentions a .env file.
deploy-production.sh, line 3
# generated key to the server (which reads MCP_API_KEY from .env). - PERMISSION_SHELL_DECLARED Note
Runs shell commands, and the manifest or description says so.
deploy.py, line 70
result = subprocess.run(cmd, capture_output=True, text=True, check=check) - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
evals/tool_selection.py, line 190
p.add_argument("--api-key", default=os.getenv("OPENAI_API_KEY")) - OBFUSCATION_FILE_OVER_READ_CAP Note
A file was over the read cap and was not fully read.
src/wazuh_mcp_server/server.py, line 1
#!/usr/bin/env python3
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
Note
requests shell access. The manifest names this permission.
PERMISSION_SHELL_DECLARED
deploy.py, line 70
result = subprocess.run(cmd, capture_output=True, text=True, check=check)
deploy.py, line 73
subprocess.run(cmd, check=check)
installers/install.py, line 80
result = subprocess.run(command, capture_output=True, text=True, check=check)
Show more
tools/branch-sync.py, line 32
result = subprocess.run(
tools/branch-sync.py, line 129
subprocess.run(["git", "tag", tag_name], check=True)
tools/branch-sync.py, line 141
"last_update": str(subprocess.check_output(["date"], text=True).strip()),
tools/release-coordinator.py, line 19
result = subprocess.run(
tools/release-coordinator.py, line 32
subprocess.run(["git", "checkout", branch_name], check=True)
Install and update
Concern
dependencies are not pinned.
INSTALL_UNPINNED
requirements.txt, line 10
fastapi>=0.128.0,<1.0.0
Network
Concern
can reach a host that is not written as a fixed address. can reach download.docker.com. The description does not name that host. can reach raw.githubusercontent.com. The description does not name that host.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
deploy-production.sh, line 147
if curl -f -s http://localhost:3000/health > /dev/null 2>&1; then
deploy-production.sh, line 171
if curl -f -s http://localhost:3000/health | grep -q '"status":"healthy"'; then
deploy-production.sh, line 195
echo " • Get Token: curl -X POST http://localhost:3000/auth/token -d '{\"api_key\":\"YOUR_KEY\"}'"
Show more
deploy.py, line 258
urllib.request.urlopen(req, timeout=2)
deploy.py, line 284
with urllib.request.urlopen(req, timeout=5) as response:
deploy.py, line 314
print(f' curl -X POST http://localhost:{port}/auth/token \\')
deploy.py, line 322
print(f" • Metrics: curl http://localhost:{port}/metrics")
install.sh, line 167
curl \
install.sh, line 173
curl -fsSL https://download.docker.com/linux/$DISTRO/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
install.sh, line 396
if curl -f -s --max-time 10 -u "$WAZUH_USER:$WAZUH_PASS" \
install.sh, line 430
if curl -f -s --max-time 5 http://localhost:${MCP_PORT:-3000}/health >/dev/null 2>&1; then
install.sh, line 477
if curl -f -s http://localhost:$port/health | jq -e '.status == "healthy"' >/dev/null 2>&1; then
install.sh, line 484
if curl -f -s http://localhost:$port/ \
installers/platform/install-arch.sh, line 104
curl \
installers/platform/install-arch.sh, line 114
curl \
installers/platform/install-debian.sh, line 92
curl \
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
deploy-production.sh, line 3
# generated key to the server (which reads MCP_API_KEY from .env).
deploy-production.sh, line 5
# docker compose up -d # primary, reads .env
evals/tool_selection.py, line 190
p.add_argument("--api-key", default=os.getenv("OPENAI_API_KEY"))
Show more
deploy-production.sh, line 6
# python deploy.py # cross-platform helper (configures MCP_API_KEY in .env)
deploy-production.sh, line 71
if [[ ! -f .env ]]; then
deploy-production.sh, line 72
if [[ -f .env.example ]]; then
deploy-production.sh, line 73
cp .env.example .env
deploy-production.sh, line 74
print_success "Copied .env.example to .env"
deploy-production.sh, line 76
print_error ".env file not found and no .env.example template available"
src/wazuh_mcp_server/auth.py, line 74
self.token_lifetime = int(os.getenv("TOKEN_LIFETIME_HOURS", "24"))
src/wazuh_mcp_server/auth.py, line 115
mcp_api_key = os.getenv("MCP_API_KEY", "").strip()
src/wazuh_mcp_server/config.py, line 341
auth_secret = os.getenv("AUTH_SECRET_KEY", "").strip()
src/wazuh_mcp_server/config.py, line 372
mcp_api_key = os.getenv("MCP_API_KEY", "").strip()
src/wazuh_mcp_server/config.py, line 440
os.getenv("TOKEN_LIFETIME_HOURS", "24"), "TOKEN_LIFETIME_HOURS", max_val=8760
src/wazuh_mcp_server/config.py, line 446
os.getenv("OAUTH_ACCESS_TOKEN_TTL", "3600"), "OAUTH_ACCESS_TOKEN_TTL"
src/wazuh_mcp_server/config.py, line 449
os.getenv("OAUTH_REFRESH_TOKEN_TTL", "86400"), "OAUTH_REFRESH_TOKEN_TTL"
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
src/wazuh_mcp_server/server.py, line 1
#!/usr/bin/env python3
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 e751871c850d. requests shell access. The manifest names this permission. dependencies are not pinned. can reach a host that is not written as a fixed address. can reach download.docker.com. The description does not name that host. can reach raw.githubusercontent.com. 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: e751871c850ddccdf643785bc23cd38e859f1fba
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.