Back to skill

Security audit

x-search-oauth

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent X/Twitter search wrapper, but its CLI can expose a gateway token through command-line arguments and forward it to an arbitrary gateway URL.

Review before installing if you plan to use the CLI with custom gateway credentials. Prefer OpenClaw's normal OAuth setup, avoid putting tokens directly in shell commands, and do not combine --gateway-token with an untrusted --gateway-url. The core x_search use appears purpose-aligned, but the credential override path needs caution.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
src/cli.js:92
Finding

Gateway Token Exposed Through Process Command-Line Arguments

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The invocation guidance is broad enough that the skill could be triggered for many loosely related requests about X/Twitter, trends, or monitoring, increasing the chance of over-invocation. In an agent environment, that can cause unintended access to external content and tool use when a narrower or more appropriate skill should have been selected, which expands attack surface and may expose the agent to untrusted content more often.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

This code file parses a sensitive credential via --gateway-token and later passes it to the OpenClaw subprocess, but there is no inline warning, confirmation, or comment near the handling of this secret. Although the help text documents the flag, it does not warn users that they are supplying a sensitive token on the command line, which can have visibility/privacy implications.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.dangerous_exec

Shell command execution detected (child_process).

Critical
Code
suspicious.dangerous_exec
Location
src/cli.js:97