Back to skill

Security audit

Discord Context

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Discord forum context cache that uses a bot token and local workspace memory files for its stated purpose.

Install this only for a Discord bot token with minimal server and channel access, and use an intended OpenClaw workspace because the skill reads and writes files under that workspace's memory tree. Review cached context before sharing it elsewhere.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Lp3

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding
The skill invokes a Node.js CLI that uses both environment access and network connectivity to talk to Discord, but the manifest does not declare an explicit tool scope such as permissions or allowed-tools. That creates an authorization gap: an orchestrator or reviewer cannot easily constrain or reason about what the skill is allowed to access, increasing the chance of over-privileged execution and misuse of the Discord token or outbound network access.

Static analysis

Detected: suspicious.env_credential_access

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/discord-context-cli.js:63