Skip to main content

semgrep-rule-creator

Guides the creation of custom Semgrep rules to detect security vulnerabilities and code patterns through a structured testing approach.

Install this skill

or
0/100

Security score

The semgrep-rule-creator skill was audited on Jun 3, 2026 and we found 14 security issues across 2 threat categories, including 1 critical. Review the findings below before installing.

Categories Tested

Security Issues

high line 52

Eval function call - arbitrary code execution

SourceSKILL.md
52pattern: eval(...)
critical line 104

Eval function call - arbitrary code execution

SourceSKILL.md
104**Why prioritize taint mode?** Pattern matching finds syntax but misses context. A pattern `eval($X)` matches both `eval(user_input)` (vulnerable) and `eval("safe_literal")` (safe). Taint mode tracks
high line 122

Eval function call - arbitrary code execution

SourceSKILL.md
122message: User input passed to eval() allows code execution
high line 127

Eval function call - arbitrary code execution

SourceSKILL.md
127- pattern: eval(...)
high line 133

Eval function call - arbitrary code execution

SourceSKILL.md
133eval(request.args.get('code'))
high line 136

Eval function call - arbitrary code execution

SourceSKILL.md
136eval("print('safe')")
medium line 75

System command execution

SourceSKILL.md
75pattern: os.system("rm " + $VAR)
medium line 80

System command execution

SourceSKILL.md
80- pattern: os.system(...)
medium line 75

Python os.system command execution

SourceSKILL.md
75pattern: os.system("rm " + $VAR)
medium line 80

Python os.system command execution

SourceSKILL.md
80- pattern: os.system(...)
low line 165

External URL reference

SourceSKILL.md
1651. [Rule Syntax](https://semgrep.dev/docs/writing-rules/rule-syntax)
low line 166

External URL reference

SourceSKILL.md
1662. [Pattern Syntax](https://semgrep.dev/docs/writing-rules/pattern-syntax)
low line 167

External URL reference

SourceSKILL.md
1673. [ToB Testing Handbook - Semgrep](https://appsec.guide/docs/static-analysis/semgrep/advanced/)
low line 168

External URL reference

SourceSKILL.md
1684. [Constant propagation](https://semgrep.dev/docs/writing-rules/data-flow/constant-propagation)
Scanned on Jun 3, 2026
View Security Dashboard
Installation guide →