Initial commit
This commit is contained in:
12
semgrep.yml
Normal file
12
semgrep.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# Run: semgrep --config semgrep.yml applepy
|
||||
# Or: semgrep --config=p/python applepy
|
||||
|
||||
rules:
|
||||
- id: subprocess-with-shell-true
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
message: Avoid subprocess with shell=True (injection risk).
|
||||
pattern-either:
|
||||
- pattern: subprocess.run(..., shell=True, ...)
|
||||
- pattern: subprocess.Popen(..., shell=True, ...)
|
||||
- pattern: subprocess.call(..., shell=True, ...)
|
||||
Reference in New Issue
Block a user