Back to skill

Security audit

MysteelAI-智能问数

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because it reports automatic deletion of existing CSV files and plaintext storage of an API key, while some referenced runtime files were not available for review.

Consider avoiding installation until you can verify that CSV cleanup is restricted to files the skill created and that API keys are stored securely. The scan was partial: it inspected all four listed components, but several referenced files were missing, so their behavior and protections could not be reviewed.

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
scripts/search.py
Finding

CSV export deletes pre-existing CSV files without explicit authorization

Content
View full analysis

Impact

Existing CSV data can be lost without confirmation, including when the response contains no data to export.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (5)

Tainted flow: 'req' from os.getenv (line 308, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

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

python
method="POST"
        )

        with urllib.request.urlopen(req, timeout=60) as response:
            if response.status != 200:
                error_body = response.read().decode("utf-8", errors="ignore")
                return {

Credential Access

High
Category
Privilege Escalation
Confidence
94% confidence
Finding

Accepting an API credential is legitimate, but this path receives it through command-line arguments and automatically persists it as plaintext in references/api_key.md. Arguments may be captured in process inspection or execution logs, while the file has no explicit owner-only permission enforcement and may enter shared workspaces or backups, exposing access to the user's API account.

Content

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

python
parser.print_help()
        sys.exit(1)

    # Priority 1: Try to get API key from command line argument (from user conversation)
    api_key = None
    if args.api_key:
        api_key = args.api_key.strip()

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network.

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.

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 · references/api_reference.md (reported line 69)May include surrounding context.

  • 债券收益率
  • 外汇汇率

cURL Example

bash
curl --location 'https://mcp.mysteel.com/mcp/info/ai-search/search' \

CSV export automatically deletes existing CSV files, including files not created by this skill.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

CSV export deletes every matching CSV older than 24 hours and removes excess files without verifying that the skill created them. Because --output-dir accepts an arbitrary directory, an ordinary export can silently destroy unrelated user data, even when the response contains no exportable records.

Content

No source excerpt is available for this finding.