T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Execution of Unverifiable External Scripts
- Content
View full analysis
⚠️ **外部依赖声明**:本 Skill 的核心脚本 `scripts/knowledge-ingest.py` 不包含在本目录中。 > 它是一个独立的 Python 工具,需从项目仓库单独获取或根据本 Skill 描述的接口自行实现。 ``` ```bash # 方式 A:自动下一批(推荐,从断点续跑) python3 scripts/knowledge-ingest.py # 方式 B:指定单个客户(调试或重跑) python3 scripts/knowledge-ingest.py --client <客户名> # 方式 C:查看当前状态 python3 scripts/knowledge-ingest.py --status # 方式 D:重置进度(从头重跑,慎用!) python3 scripts/knowledge-ingest.py --reset ``` ```bash # 使用搜索脚本做语义检索测试(选取 3 条典型查询) python3 scripts/kg_search.py "你的测试查询1" --top 5 python3 scripts/kg_search.py "你的测试查询2" --top 5 python3 scripts/kg_search.py "你的测试查询3" --top 5 ``` ### Technical Analysis The project contains only `SKILL.md`; neither `scripts/knowledge-ingest.py` nor `scripts/kg_search.py` is available for review. Nevertheless, the Skill instructs the Agent to execute both scripts directly with Python. The documentation does not provide an authoritative source URL, immutable revision, cryptographic checksum, signature, trusted publisher identity, or other integrity-verification procedure. It also permits the primary script to be obtained separately or independently implemented. Consequently, the actual code executed under the documented filenames can differ from the behavior reviewed in this audit. The ingestion script is expected to receive access to the knowledge-base directory, vector-database configuration, connection credentials, and ingestion state. A malicious or compromised replacement would execute with all filesystem, environment, network, and database privileges granted to the invoking Agent. The separate `kg_search.py` dependency is not even identified in the external-dependency warning. ### Attack Path 1. An attacker supplies, replaces, or compromises `scripts/knowledge-ingest.py` or `scripts/kg_search.py`. 2. The repla ...[truncated 1254 chars]- Remediation
View remediation
