Back to skill

Security audit

Cn Diff Checker

Security checks for vulnerabilities and agentic risk

Overview

This is a simple Chinese text/file diff utility with a narrow terminal-display risk but no evidence of hidden access, persistence, network use, or destructive behavior.

Install only if you are comfortable using a Chinese-language command-line diff helper. Avoid using it to inspect untrusted files in a sensitive terminal session unless control characters are sanitized or output is redirected to a safe viewer.

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/cn_diff_checker.py:42
Finding

Terminal Escape-Sequence Injection Through Untrusted Diff Content

Content
View full analysis
Remediation
View remediation
= 0x20 else f'\\x{ord(char):02x}' for char in value ) def render(value, color=''): value = safe_terminal_text(value) if color and sys.stdout.isatty(): return f"{color}{value}{RESET}" return value ``` All vulnerable output paths should use `safe_terminal_text()` or `render()` rather than printing input-derived values directly. ]]>
Vulnerability Patterns
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The module docstring and user-facing descriptions specify the tool entirely in Chinese, which can impose a fixed language/locale on users without opt-in. The policy for this review flags language-forcing behavior unless the file offers a language choice or clearly justifies the locale restriction.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.