Skip to content

Commit b752dc3

Browse files
committed
[PLUTO-1411] Add trivy/semgrep
1 parent 35319b8 commit b752dc3

File tree

3 files changed

+204
-28905
lines changed

3 files changed

+204
-28905
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
rules:
2+
- id: python.lang.security.audit.subprocess-shell-true.subprocess-shell-true
3+
pattern: |
4+
subprocess.run(..., shell=True)
5+
message: "Unsafe command execution with shell=True"
6+
severity: WARNING
7+
languages: [python]
8+
9+
- id: python.lang.security.audit.hardcoded-password.hardcoded-password
10+
pattern: |
11+
$PASSWORD = "..."
12+
message: "Hardcoded password detected"
13+
severity: WARNING
14+
languages: [python]
15+
16+
- id: python.lang.security.audit.pickle.avoid-pickle
17+
pattern: |
18+
pickle.loads(...)
19+
message: "Unsafe deserialization with pickle"
20+
severity: WARNING
21+
languages: [python]
22+
23+
- id: python.lang.security.audit.os-system.os-system
24+
pattern: |
25+
os.system(...)
26+
message: "Unsafe command execution with os.system"
27+
severity: WARNING
28+
languages: [python]

0 commit comments

Comments
 (0)