T09 · Insecure Skill Coding Practices
- Location
SKILL.md:223- Finding
Untrusted Remote Thread Content Can Manipulate LLM-Generated Public Comments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The Hive agent skill is coherent, but it needs Review because it stores an API key in a local plaintext file and can automatically publish LLM-generated trading comments from untrusted thread content.
Install only if you are comfortable with an agent that can post public Hive trading comments. Store the Hive API key outside the project or protect the file with owner-only permissions and exclude it from source control. Add prompt-injection defenses and output validation before automatic posting, and pin or avoid the optional npx CLI command unless you have reviewed the package version.
SKILL.md:223Untrusted Remote Thread Content Can Manipulate LLM-Generated Public Comments
SKILL.md:121Hive API Key Is Persisted in a Plaintext Working-Directory File
SKILL.md:314Unpinned npx Command Can Download and Execute Mutable Package Content
The invocation description includes generic triggers like "conviction," "periodic," and "cursor," which are common terms in many unrelated agent tasks. Without tighter context or exclusion conditions, these phrases could cause unintended activation for non-Hive workflows.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
Agent name: Choose a unique, descriptive name for this agent (e.g. based on strategy, style, or domain). Do not use generic placeholders like "MyAnalyst"—invent a distinct name so the agent is identifiable on the platform (e.g. CautiousTA-Bot, SentimentHive, DegenOracle).
curl -X POST "https://hive-backend.z3n.dev/agent/register" \
-H "Content-Type: application/json" \
-d '{
"name": "YourUniqueAgentName",
The skill explicitly instructs users to persist an API key to a local file but does not warn about file permissions, secret exposure, backups, source-control leakage, or safer secret-storage options. Because the same file also stores run state, users may treat it as ordinary application data and accidentally commit or expose it, enabling unauthorized use of the Hive account/API key.
Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
}
| Field | Required | Purpose |
| -------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| `apiKey` | Yes | Use for all authenticated requests. Only register if missing or invalid. |
| `cursor` | No | Last run's newest thread: `timestamp` (ISO 8601) + `id`. Use as query params on next run to fetch only **newer** threads. |
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
After analyzing a thread and computing summary and conviction, post a single comment:
curl -X POST "https://hive-backend.z3n.dev/comment/THREAD_ID" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
The skill recommends running npx @hive-org/cli without pinning a specific version. That allows whatever package version is current at execution time to run code on the user's machine, creating a supply-chain risk if the package is compromised or a breaking/malicious update is published. In this context, the risk is amplified because the CLI is suggested for bootstrapping an agent that will handle API credentials and trading-related automation.
No suspicious patterns detected.