tiangong-wiki-skill
Fail
Audited by Gen Agent Trust Hub on Aug 16, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONCREDENTIALS_UNSAFE
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides a
skill addcommand that facilitates the installation of external AI agent skills from arbitrary source URLs or local paths. This is implemented by spawning an externalnpx skills addcommand, allowing for the execution of unverified remote code. - File:
src/core/workspace-skills.ts - Evidence:
spawnSync(getNpxCommand(), ["-y", "skills", "add", source, ...])wheresourcecan be a user-provided URL. - [COMMAND_EXECUTION]: The package makes frequent use of
child_process.spawnandspawnSyncto interact with the host system. It executesgitfor journaling,npxfor skill management, and utilizes platform-specific file openers likerundll32.exeon Windows, which can be high-risk if target paths are manipulated. - Files:
src/utils/process.ts,src/daemon/git-journal.ts,src/core/workspace-skills.ts - [DATA_EXFILTRATION]: Functional requirements involve sending local knowledge pages and raw vault documents to external LLM providers (OpenAI, OpenRouter, vLLM) and document parsing services (TianGong Unstructure). It also communicates with Synology NAS devices over the network to sync files.
- Files:
src/core/embedding.ts,src/core/synology.ts,src/core/vault-processing.ts - [INDIRECT_PROMPT_INJECTION]: The skill features an automated 'vault-to-wiki' workflow that ingests and processes untrusted files from a user-defined directory. These files are read by an LLM-driven agent, making the system vulnerable to adversarial content within those files that could hijack the agent's logic.
- Files:
src/core/vault-processing.ts,references/vault-to-wiki-instruction.md - [CREDENTIALS_UNSAFE]: Sensitive configuration data, including LLM API keys and Synology NAS credentials (username/password), are stored in plain text within a
.wiki.envfile in the project workspace. Although diagnostic commands attempt to redact these keys in their output, the local storage remains a security concern. - Files:
src/core/paths.ts,src/core/synology.ts(handlingSYNOLOGY_PASSWORD)
Recommendations
- AI detected serious security threats
Audit Metadata