Back to skill

Security audit

regex-sandbox

Security checks for vulnerabilities and agentic risk

Overview

This appears to be a small local regex tester, but the skill documentation and declared tool authority overstate unrelated file-changing behavior.

Review before installing. The code itself looks like a local regex testing utility, but the package should be corrected so its permissions and documentation match the actual tool, especially removing or justifying Write access and the unsupported --apply/file-management claims.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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 (9)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file presents the skill guidance entirely in Chinese, including operational instructions for agents and maintainers, with no indication that language selection is optional or that alternative locales are supported. This can violate language/locale policy when a skill imposes a specific language by default without documented user opt-in or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file includes substantial licensing and governance text only in Chinese, including instructions such as '务必并读' and review requirements, without providing an equivalent English version for those key terms. This creates a language policy concern because users who rely on English are not given an explicit language choice or opt-in for critical information.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The phrase "Whenever the user needs regex-sandbox capabilities" does not define concrete activation conditions or boundaries, so it is unclear when this skill should or should not be invoked. This kind of broad wording can overlap with many ordinary requests involving text processing or debugging.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The English documentation describes disk-writing, backups, deletion, and an --apply mode that are inconsistent with the manifest, which declares a regex sandbox with filesystem: false and subprocess: false. This kind of capability mismatch is dangerous because operators and downstream agents may trust the prose over the manifest and invoke the skill in riskier contexts than intended, leading to unauthorized file modification or incorrect trust decisions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The phrase "当用户需要正则沙盒相关能力时" is circular and does not specify what requests should activate the skill versus not activate it. Without concrete scope or examples, the activation condition is too vague for safe routing.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The Chinese section repeats claims about write-to-disk behavior, backups, moving/renaming, and duplicate deletion that contradict the stated regex-only purpose and the manifest permissions. Repeating the mismatch in another language increases the chance that a reviewer or agent will misunderstand the skill's real authority and use it under false assumptions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The top-level description is written only in Chinese even though the file also contains English fields later, which may impose a language preference without explicit user choice. This can conflict with language/locale expectations if the user has not opted into Chinese-first behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
97% confidence
Finding

The visible natural-language content is entirely in Chinese, including the core description and file guidance, with no indication that other languages are supported. This can violate a language/locale policy when users or agents are not given an opt-in or alternative language path.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The argument parser description and help strings are written in Chinese, and later runtime messages are also Chinese-only. This imposes a specific language on all users without any opt-in or alternative locale, which matches the language/locale policy concern for natural-language content.

Content

No source excerpt is available for this finding.