T09 · Insecure Skill Coding Practices
- Location
scripts/regex_engine.py:47- Finding
Unbounded Execution of User-Controlled Regular Expressions Enables Denial of Service
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a small regex helper skill whose behavior matches its stated purpose, with a normal regex denial-of-service caveat for untrusted patterns.
This skill is reasonable to install for local, trusted regex work. Avoid exposing its test, extract, or replace methods directly to untrusted users unless you add regex timeouts, length limits, or process isolation.
scripts/regex_engine.py:47Unbounded Execution of User-Controlled Regular Expressions Enables Denial of Service
The README presents the skill as operating in Chinese, including the description and the claim that regex explanations are translated into '人类可读的中文说明'. This indicates a language-specific constraint without documenting user choice or opt-in, which is a natural-language policy issue under the locale/language rule.
This code file contains user-facing natural-language descriptions entirely in Chinese, including the module title and class docstring. The policy requires flagging language or locale constraints when a specific language is imposed without offering a user choice or documenting a justified regional scope.
The natural-language content of the skill description, usage guidance, and labels is presented in Chinese only. Under the policy criteria, forcing a specific language without user opt-in can be a locale/language policy violation when no alternative or language choice is offered.
The docstring and all user-facing print strings are in Chinese, which imposes a specific language on users of this example. Under the policy, locale or language restrictions should either be optional for the user or clearly justified as region-specific.
This file contains natural-language comments written only in Chinese, which imposes a specific language context without any indication of user opt-in or a documented regional requirement. The policy for this review requires flagging language or locale constraints that are forced without explicit choice or justification.
This test file includes Chinese-only natural-language content in the module docstring, test prompts, and explanation assertions, such as expecting outputs containing Chinese phrases and generating patterns from Chinese requests. That creates a locale assumption in the skill behavior without offering a language choice or documenting a justified region-specific constraint.
No suspicious patterns detected.