Back to skill

Security audit

Charset Fix

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small, purpose-aligned Windows encoding helper with disclosed shell examples and no evidence of hidden persistence, data access, or exfiltration.

Install this only if you need Windows terminal encoding fixes, especially for Chinese/Unicode output in Git Bash, MSYS2, BusyBox, or WSL-like shells. Review the visible shell commands before running the optional helper script, and prefer the ClawHub package or a repository source you trust.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
Findings (5)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill description is written entirely in Chinese and explicitly targets fixing Chinese text output, but it does not offer an alternative language or indicate that Chinese-only operation is an intentional, justified regional constraint. Under the policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill includes multiple shell commands and code snippets that users or agents are expected to run, but it does not declare any explicit tool scope such as permissions or allowed-tools. In an agent ecosystem, this creates an authorization gap: the skill can influence shell execution without a machine-readable restriction boundary, increasing the chance of unintended command execution or over-broad tool access.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/fix.py (reported line 23)May include surrounding context.

python
print("=== Encoding Check ===")
    
    # System code page
    r = subprocess.run(['powershell.exe', '-NoProfile', '-Command', 'chcp'],
                       capture_output=True, text=True, encoding='gbk')
    print(f"System code page: {r.stdout.strip()}")

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/fix.py (reported line 51)May include surrounding context.

python
# 2. PowerShell test
    print("\n2️⃣  PowerShell test:")
    r = subprocess.run([
        'powershell.exe', '-NoProfile', '-Command',
        "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; Write-Host '中文测试成功 ✅'"
    ], capture_output=True, text=True, encoding='utf-8')

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/fix.py (reported line 59)May include surrounding context.

python
# 3. System info (via cmd bridge)
    print("\n3️⃣  Windows system info (via cmd bridge):")
    r = subprocess.run(['cmd.exe', '/c', 'ver'],
                       capture_output=True, text=True, encoding='gbk')
    print(f"   {r.stdout.strip()}")