Skill Trust Decision
initiation_of_coverage_or_deep_dive
EastMoney 上市公司研究报告生成技能,功能正常,未发现明确恶意行为,存在轻微文档缺失问题。
Why this conclusion was reached
1/4 dimensions flagged Pass
Declared vs actual capability
Declared resources and inferred behavior are broadly aligned.
Block
Hidden execution and egress
1 high-risk artifacts or egress signals were extracted.
Pass
Attack chain and severe findings
There is no explicit malicious chain in the report.
Review
Dependencies and supply chain hygiene
1 dependency or supply-chain issues need attention.
What drove the risk score up
未声明的环境变量 +10
代码使用 MX_SAAS_BASE_URL 但 SKILL.md 未声明
API端点可配置 +10
BASE_URL 默认 eastmoney.com 但可被环境变量覆盖修改
Most important evidence
Low
未声明的 MX_SAAS_BASE_URL 环境变量
代码中读取 MX_SAAS_BASE_URL 环境变量用于自定义 API 端点,但 SKILL.md 文档中未声明此变量。
scripts/generate_deep_research_report.py:52 建议在 SKILL.md 环境变量表格中添加 MX_SAAS_BASE_URL 的说明。
Info
API端点可配置性
BASE_URL 默认指向 eastmoney.com 但可被 MX_SAAS_BASE_URL 环境变量覆盖。虽然这是合法的配置灵活性,但可能被恶意用于将 API key 发送到非预期服务器。
scripts/generate_deep_research_report.py:52 考虑添加端点白名单验证,或在 SKILL.md 中明确说明该变量的合法用途和风险。
Info
API Key 通过 HTTP Header 传输
EM_API_KEY 通过 HTTP header (em_api_key) 发送到外部服务器,这是标准 API 认证方式,不属于凭证收割。
scripts/generate_deep_research_report.py:89 无需修改,这是正常的 API 调用模式。
Info
Base64 解码文件写入
脚本将 API 返回的 base64 编码 PDF/Word 文件解码后写入本地文件系统,路径使用 uuid 生成,不存在明显的路径遍历风险。
scripts/generate_deep_research_report.py:65 无需修改,文件写入是报告生成功能的必要部分。
Declared capability vs actual capability
Filesystem Pass
Declared WRITE
→ Inferred WRITE
SKILL.md:23 声明写入附件目录,scripts/generate_deep_research_report.py:97-109 实现 base64 解码写入 Environment Pass
Declared READ
→ Inferred READ
SKILL.md:9 声明读取 EM_API_KEY,scripts/generate_deep_research_report.py:55-56 读取 EM_API_KEY 和 MX_SAAS_BASE_URL Network Pass
Declared READ
→ Inferred READ
SKILL.md 声明调用 eastmoney.com,scripts/generate_deep_research_report.py:52-53 允许 MX_SAAS_BASE_URL 环境变量覆盖默认端点 Suspicious artifacts and egress
High API Key
API_KEY="your_api_key_here" SKILL.md:47
Medium External URL
https://ai-saas.eastmoney.com scripts/generate_deep_research_report.py:72
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| httpx | * | pip | No | 无版本锁定,但 httpx 库本身安全性良好 |
File composition
3 files · 400 lines
Python 1 files · 220 linesMarkdown 1 files · 175 linesJSON 1 files · 5 lines
Files of concern · 2
scripts/generate_deep_research_report.py 未声明的 MX_SAAS_BASE_URL 环境变量 · API端点可配置性 · API Key 通过 HTTP Header 传输 · Base64 解码文件写入 · https://ai-saas.eastmoney.com
SKILL.md API_KEY="your_api_key_here"
Other files · _meta.json
Security positives
代码逻辑清晰,无混淆或混淆的字符串
无 base64|bash 管道、裸 IP 请求、eval(atob(...)) 等高危模式
无访问 ~/.ssh、~/.aws、.env 等敏感路径
无外部数据外传行为
依赖简洁,仅使用 httpx 库
API 凭证仅发送到声明的 eastmoney.com(默认情况)