MCP, MCP server
PharosRAG
PharosRAG, 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 162c7ca3e975, unchanged since the check below.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
eval/_common.py, line 56
shutil.rmtree(dest, ignore_errors=True) - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
src/pharos/parser.py, line 42
r = requests.post(f"{BASE}/api/v4/file-urls/batch", headers=_headers(token), json=body, timeout=60) - SECRETS_PATH_DOTENV Low
Mentions a .env file.
eval/_common.py, line 14
REPO = os.path.dirname(HERE) # = pharos 仓根;load_env 读 REPO/.env(即 pharos/.env)。引擎包已 pip install -e . 安装 - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
eval/_common.py, line 109
key = os.environ.get("DEEPSEEK_API_KEY")
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
Concern
can delete files.
PERMISSION_DELETE_FILES
eval/_common.py, line 56
shutil.rmtree(dest, ignore_errors=True)
eval/acl_regression.py, line 62
shutil.rmtree(work, ignore_errors=True)
eval/acl_regression.py, line 141
shutil.rmtree(work, ignore_errors=True)
Show more
eval/dump_chunks.py, line 65
shutil.rmtree(UNITS)
eval/dump_judge_units.py, line 47
shutil.rmtree(JUDGE)
scripts/select_sample.py, line 209
shutil.rmtree(CORPUS)
src/embedder/embed.py, line 98
os.remove(tmp) # 清理准备产物;失败不掩盖主异常
src/embedder/embed.py, line 136
os.remove(path)
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
src/pharos/parser.py, line 42
r = requests.post(f"{BASE}/api/v4/file-urls/batch", headers=_headers(token), json=body, timeout=60)
src/pharos/parser.py, line 56
r = requests.put(file_url, data=f, timeout=600)
src/pharos/parser.py, line 69
r = requests.get(f"{BASE}/api/v4/extract-results/batch/{batch_id}", headers=_headers(token), timeout=60)
Show more
src/pharos/parser.py, line 83
r = requests.get(zip_url, timeout=600)
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
eval/_common.py, line 14
REPO = os.path.dirname(HERE) # = pharos 仓根;load_env 读 REPO/.env(即 pharos/.env)。引擎包已 pip install -e . 安装
eval/_common.py, line 22
"""极简 .env 加载(免 python-dotenv);已存在的环境变量优先(setdefault)。"""
eval/_common.py, line 109
key = os.environ.get("DEEPSEEK_API_KEY")
Show more
eval/_common.py, line 23
path = path or os.path.join(REPO, ".env")
eval/_common.py, line 35
# 评审修:先加载 .env,下面的模块级常量才能读到 .env 里的 PHAROS_EVAL_*(原调用在常量之后 -> .env 静默失效)
eval/_common.py, line 111
raise ValueError("缺 DEEPSEEK_API_KEY(放 .env,勿提交)")
scripts/migrate_to_server.py, line 17
# 先起 server:docker compose --env-file .env.compose up -d qdrant
scripts/vllm_equiv_probe.py, line 16
docker compose --env-file .env.compose stop inference
scripts/vllm_g2_topk.py, line 10
docker compose --env-file .env.compose stop inference # 腾 GPU
src/pharos/cli.py, line 21
if os.environ.get("PHAROS_API_KEY"):
src/pharos/cli.py, line 102
path = args.file or os.environ.get("PHAROS_KEYS_FILE") or os.path.expanduser("~/pharos.keys.json")
src/pharos/config.py, line 156
api_key=os.environ.get("PHAROS_API_KEY", "").strip(),
src/pharos/config.py, line 157
keys_file=os.path.expanduser(os.environ.get("PHAROS_KEYS_FILE", "").strip()),
src/pharos/config.py, line 165
llm_api_key_env=os.environ.get("PHAROS_LLM_API_KEY_ENV", "DEEPSEEK_API_KEY"),
src/pharos/mcp_adapter.py, line 35
"X-API-Key": os.environ.get("PHAROS_API_KEY", ""),
src/pharos/toolcore.py, line 58
raw = os.environ.get("PHAROS_MAX_CONTEXT_TOKENS") or os.environ.get("RAG_MAX_CONTEXT_TOKENS", "12000")
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
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 162c7ca3e975. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: 162c7ca3e975440d0f345d0faca9194b4705d774
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.