team-knowledge
Warn
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes arbitrary shell commands specified in the project's configuration file (
.tw/config.json) within theplatformandcheckssections. - Evidence in
scripts/tw_runtime/team/platform_script.py: The_executefunction runs commands fromconfig['argv']. - Evidence in
scripts/tw_runtime/team/execution.py: Theexecutefunction usessubprocess.Popento run commands defined in thecheckssection of the profile. - Risk: A malicious repository could define dangerous commands in these sections, leading to arbitrary code execution when the user runs tool commands like
tw team runortw team start. - [EXTERNAL_DOWNLOADS]: The skill can fetch content from arbitrary external URLs.
- Evidence in
scripts/tw_runtime/read.py: Thefetchfunction usesurllib.request.urlopento download data from URLs provided via thetw read --onlinecommand. - Evidence in
scripts/tw_runtime/audit.py: Thecheck_linksfunction performsHEADrequests to verify URLs found in the project's knowledge base. - [INDIRECT_PROMPT_INJECTION]: The skill has a large attack surface for indirect prompt injection as it ingests Markdown files and structured data from the repository into the agent's context.
- Ingestion points:
scripts/tw_runtime/brief.pyreads project knowledge entries (rule,decision,lesson) and includes them in the task brief. - Capability inventory: The skill has extensive
subprocessexecution capabilities and network access. - Boundary markers: Limited. While it uses HTML comments like
<!-- tw-record -->to delimit data, these can be spoofed in ingested content. - Sanitization: The tool performs structure validation but relies on the LLM to interpret text content safely.
Audit Metadata