Back to skill

Security audit

xsearchywq

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward X/Twitter search helper that sends the user's search request to xAI as disclosed.

Install only if you are comfortable sending your X/Twitter search queries, handles, date filters, and optional media-analysis requests to xAI using your XAI_API_KEY. Avoid using it for confidential investigations or sensitive personal data unless that external processing is acceptable.

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
  • 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 (6)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill declares executable requirements and uses both environment access and outbound network access, but it does not declare an explicit tool scope such as permissions or allowed-tools. This weakens sandboxing and review because the runtime capabilities are broader than what the manifest explicitly communicates, increasing the chance of unintended data access or external transmission.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description says to use the skill when the user wants to "find tweets," "search X/Twitter," or "find social media posts about a topic," which are broad, natural phrases likely to occur in ordinary conversation. It does not provide exclusion conditions or clearer boundaries for when this skill should or should not activate.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation instructs users to send search queries to the xAI API but does not clearly warn that user queries and related parameters are transmitted to an external third-party service. This can lead to unintended disclosure of sensitive prompts, names, handles, or investigative topics, especially because the skill targets real-time social media lookup.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/search.py (reported line 18)May include surrounding context.

python
def redirect_request(self, req, fp, code, msg, headers, newurl):
        raise HTTPError(newurl, code, f"Redirect to {newurl} blocked (auth safety)", headers, fp)

API_URL = "https://api.x.ai/v1/responses"
MODEL = "grok-4.20-reasoning"
TIMEOUT_S = 120
MAX_HANDLES = 10

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This code sends the user-provided query to the xAI API over the network, and may also include handle/date filters in the tool configuration. While the module docstring says it uses the Grok API, there is no runtime prompt, print/log disclosure, or in-file warning near execution to make clear that user input is being sent to a third-party service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The code reads the XAI_API_KEY environment variable to authenticate outbound requests. Although this is functionally necessary, there is no user-facing notice in comments, help text, or runtime output indicating that the skill depends on and will use a sensitive credential from the environment.

Content

No source excerpt is available for this finding.