T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/analyze_trends.py:14- Finding
Unvalidated Agent Identifier Enables Cross-Agent Path Traversal
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a disclosed agent-performance optimizer, but its scripts use unchecked agent IDs in workspace paths, which could let a user read or overwrite another agent's optimizer data if filesystem permissions allow it.
Review before installing in any shared or multi-agent workspace. Only run these scripts for agent IDs you control, avoid putting secrets in trajectory records, and add agent-id validation plus path containment checks before relying on the report-writing script.
scripts/analyze_trends.py:14Unvalidated Agent Identifier Enables Cross-Agent Path Traversal
The skill documentation is written entirely in Chinese, including the title, description, and usage guidance, with no indication that other languages are supported or that Chinese is required for a region-specific purpose. This creates a natural-language policy concern because it effectively imposes a specific language without user opt-in.
The skill documents and encourages file read/write behavior across /workspace/subagents/{agent_id}/optimizer/* but does not declare any explicit tool scope such as permissions or allowed-tools. That creates an authorization ambiguity: an agent may gain broader filesystem capabilities than a reviewer expects, and the dynamic agent_id path construction increases the risk of unintended file access if callers supply unsafe values.
The prompt template explicitly instructs the agent in Chinese and specifies output requirements in Chinese, which effectively forces a specific language/locale. The file does not indicate that this language choice is optional, user-selected, or required for a region-specific use case.
The script’s docstrings, usage/help text, and user-facing print messages are all in Chinese, including the CLI description and status output. This imposes a specific language on users without opt-in or explanation, which matches the natural-language locale policy violation criteria.
The module docstring, usage description, and later user-facing print strings are written in Chinese, which imposes a specific language on users. The file does not provide any opt-in, localization setting, or justification that this skill is intended only for Chinese-speaking or region-specific use.
The module docstring and CLI description state that this script generates an optimization report, but execution will fail at the first use of defaultdict because it is never imported. This is an intent-code divergence because the documentation presents the tool as usable while the implementation cannot complete as written.