other
Warning
- Location
- SKILL.md:22
- Finding
- External Disclosure of Host-Level Package Inventory## Vulnerability Details **File Location**: `SKILL.md:22-31` **Vulnerability Type**: Environment Information Disclosure **Risk Level**: Medium **Complete Code Snippet**: ```markdown ## Delivery Rules (Mandatory) After completing the report, send it through the messaging tool. - Channel: feishu - Target: <Feishu group ID or user ID> If the report exceeds 3,800 characters, split it into multiple messages. Each message must remain semantically complete without breaking URLs or formatting. If delivery fails, retry once. If it still fails, output an error—never exit silently. ``` The original instructions are written in Chinese; this is a faithful English translation. ### Technical Analysis The skill mandates transmission of the generated report to an external Feishu destination. The report includes Node.js and npm versions, globally installed npm packages, and project dependency update information. In particular, `references/spec.md:7-10` directs the agent to run `npm list -g --depth=0`, causing collection to extend beyond the current project into host-level software inventory. Software names and exact versions are useful reconnaissance data because they can disclose installed administrative or development tooling and identify components with known vulnerabilities. The destination remains a placeholder, and the instructions do not require validation of the resolved recipient, explicit user approval, redaction, or an allowlist before disclosure. ### Attack Path 1. An operator or scheduled invocation activates the dependency-tracker skill. 2. The agent executes the documented environment checks, including `npm list -g --depth=0`. 3. The resulting report records runtime versions and globally installed package names and versions. 4. The skill resolves the configured Feishu group or user target without requiring destination verification or user confirmation. 5. The report is transmitted to that recipient, exposi ...[truncated 688 chars]
- Remediation
- ## Remediation Suggestions 1. Keep generated reports local by default and make external delivery explicitly opt-in. 2. Display the resolved Feishu channel and recipient and obtain user confirmation before sending. 3. Require an allowlisted, validated destination rather than accepting an unchecked placeholder or arbitrary identifier. 4. Limit routine collection to dependencies in the current project. 5. Make global package enumeration a separate opt-in operation with a documented justification. 6. Redact exact host-level package versions unless they are essential to the approved task. 7. Apply least-privilege access controls to local reports and the Feishu destination. 8. Record delivery destination and authorization decisions in an audit log without storing credentials or message tokens.
