deepscan-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +419 -0
  3. package/dist/bin/deepscan.d.ts +1 -0
  4. package/dist/bin/deepscan.js +393 -0
  5. package/dist/bin/deepscan.js.map +1 -0
  6. package/dist/chunk-OSYJXVNF.js +7268 -0
  7. package/dist/chunk-OSYJXVNF.js.map +1 -0
  8. package/dist/index.d.ts +470 -0
  9. package/dist/index.js +21 -0
  10. package/dist/index.js.map +1 -0
  11. package/package.json +68 -0
  12. package/rules/built-in/converted-semgrep.yml +37 -0
  13. package/rules/built-in/default-config.yml +59 -0
  14. package/rules/built-in/quality.yml +117 -0
  15. package/rules/built-in/security.yml +383 -0
  16. package/rules/built-in/semgrep-apex.yml +336 -0
  17. package/rules/built-in/semgrep-bash.yml +362 -0
  18. package/rules/built-in/semgrep-c.yml +429 -0
  19. package/rules/built-in/semgrep-clojure.yml +166 -0
  20. package/rules/built-in/semgrep-csharp.yml +1260 -0
  21. package/rules/built-in/semgrep-dart.yml +21 -0
  22. package/rules/built-in/semgrep-dockerfile.yml +874 -0
  23. package/rules/built-in/semgrep-elixir.yml +146 -0
  24. package/rules/built-in/semgrep-generic.yml +2945 -0
  25. package/rules/built-in/semgrep-go.yml +2898 -0
  26. package/rules/built-in/semgrep-hcl.yml +8181 -0
  27. package/rules/built-in/semgrep-html.yml +94 -0
  28. package/rules/built-in/semgrep-java.yml +4219 -0
  29. package/rules/built-in/semgrep-javascript.yml +6243 -0
  30. package/rules/built-in/semgrep-json.yml +360 -0
  31. package/rules/built-in/semgrep-kotlin.yml +540 -0
  32. package/rules/built-in/semgrep-lua.yml +46 -0
  33. package/rules/built-in/semgrep-ocaml.yml +773 -0
  34. package/rules/built-in/semgrep-php.yml +1638 -0
  35. package/rules/built-in/semgrep-python.yml +11240 -0
  36. package/rules/built-in/semgrep-regex.yml +6444 -0
  37. package/rules/built-in/semgrep-ruby.yml +2687 -0
  38. package/rules/built-in/semgrep-rust.yml +278 -0
  39. package/rules/built-in/semgrep-scala.yml +807 -0
  40. package/rules/built-in/semgrep-sh.yml +46 -0
  41. package/rules/built-in/semgrep-solidity.yml +1046 -0
  42. package/rules/built-in/semgrep-swift.yml +200 -0
  43. package/rules/built-in/semgrep-terraform.yml +147 -0
  44. package/rules/built-in/semgrep-typescript.yml +6212 -0
  45. package/rules/built-in/semgrep-xml.yml +31 -0
  46. package/rules/built-in/semgrep-yaml.yml +2785 -0
  47. package/rules/examples/custom-api-security.yml +66 -0
@@ -0,0 +1,2945 @@
1
+ rules:
2
+ - id: ai-config-hidden-unicode-generic
3
+ name: ai-config-hidden-unicode-generic
4
+ description: >-
5
+ Invisible or zero-width Unicode character detected in AI coding assistant config file. These characters can be
6
+ used in "Rules File Backdoor" attacks to inject hidden malicious instructions that are invisible to developers but
7
+ interpreted by AI assistants. Remove all zero-width and bidirectional override characters from this file.
8
+ category: security
9
+ severity: high
10
+ confidence: medium
11
+ languages:
12
+ - generic
13
+ patterns:
14
+ - regex: '[\x{200B}\x{200C}\x{200D}\x{2063}\x{FEFF}\x{202A}-\x{202E}]'
15
+ message: >-
16
+ Invisible or zero-width Unicode character detected in AI coding assistant config file. These characters can be
17
+ used in "Rules File Backdoor" attacks to inject hidden malicious instructions that are invisible to developers
18
+ but interpreted by AI assistants. Remove all zero-width and bidirectional override characters from this file.
19
+ cwe:
20
+ - CWE-116
21
+ owasp: []
22
+ references:
23
+ - >-
24
+ https://www.pillar.security/blog/new-vulnerability-in-github-copilot-and-cursor-how-hackers-can-weaponize-code-agents
25
+ tags:
26
+ - cursor
27
+ - github-copilot
28
+ - windsurf
29
+ - claude-code
30
+ - id: claude-settings-auto-enable-mcp-generic
31
+ name: claude-settings-auto-enable-mcp-generic
32
+ description: >-
33
+ "enableAllProjectMcpServers" is set to true in settings. This automatically enables all MCP servers defined in
34
+ project configuration without user confirmation, allowing malicious repositories to register arbitrary MCP servers
35
+ that execute code on your machine. Remove this setting or set it to false so that MCP servers require explicit
36
+ approval.
37
+ category: security
38
+ severity: medium
39
+ confidence: medium
40
+ languages:
41
+ - generic
42
+ patterns:
43
+ - regex: '"enableAllProjectMcpServers"\s*:\s*true'
44
+ message: >-
45
+ "enableAllProjectMcpServers" is set to true in settings. This automatically enables all MCP servers defined in
46
+ project configuration without user confirmation, allowing malicious repositories to register arbitrary MCP
47
+ servers that execute code on your machine. Remove this setting or set it to false so that MCP servers require
48
+ explicit approval.
49
+ cwe:
50
+ - CWE-862
51
+ owasp: []
52
+ references:
53
+ - https://docs.anthropic.com/en/docs/claude-code/security
54
+ tags:
55
+ - claude-code
56
+ - id: claude-settings-bypass-permissions-generic
57
+ name: claude-settings-bypass-permissions-generic
58
+ description: >-
59
+ Dangerous permission bypass detected in Claude Code or Cursor settings. Settings like "bypassPermissions",
60
+ "allowUnsandboxedCommands: true", or "enableWeakerNestedSandbox: true" disable critical security controls that
61
+ protect against malicious tool use. Remove these settings or set them to false to maintain proper sandboxing and
62
+ permission checks.
63
+ category: security
64
+ severity: high
65
+ confidence: medium
66
+ languages:
67
+ - generic
68
+ patterns:
69
+ - regex: '"bypassPermissions"'
70
+ message: >-
71
+ Dangerous permission bypass detected in Claude Code or Cursor settings. Settings like "bypassPermissions",
72
+ "allowUnsandboxedCommands: true", or "enableWeakerNestedSandbox: true" disable critical security controls that
73
+ protect against malicious tool use. Remove these settings or set them to false to maintain proper sandboxing
74
+ and permission checks.
75
+ - regex: '"allowUnsandboxedCommands"\s*:\s*true'
76
+ message: >-
77
+ Dangerous permission bypass detected in Claude Code or Cursor settings. Settings like "bypassPermissions",
78
+ "allowUnsandboxedCommands: true", or "enableWeakerNestedSandbox: true" disable critical security controls that
79
+ protect against malicious tool use. Remove these settings or set them to false to maintain proper sandboxing
80
+ and permission checks.
81
+ - regex: '"enableWeakerNestedSandbox"\s*:\s*true'
82
+ message: >-
83
+ Dangerous permission bypass detected in Claude Code or Cursor settings. Settings like "bypassPermissions",
84
+ "allowUnsandboxedCommands: true", or "enableWeakerNestedSandbox: true" disable critical security controls that
85
+ protect against malicious tool use. Remove these settings or set them to false to maintain proper sandboxing
86
+ and permission checks.
87
+ cwe:
88
+ - CWE-862
89
+ owasp: []
90
+ references:
91
+ - https://docs.anthropic.com/en/docs/claude-code/security
92
+ tags:
93
+ - claude-code
94
+ - cursor
95
+ - id: claude-settings-env-url-override-generic
96
+ name: claude-settings-env-url-override-generic
97
+ description: >-
98
+ API base URL override detected in settings or environment file. ANTHROPIC_BASE_URL or OPENAI_BASE_URL overrides
99
+ can redirect all API traffic to an attacker-controlled server, exposing prompts, code, and API keys. Remove these
100
+ overrides unless you are intentionally proxying traffic through a trusted endpoint.
101
+ category: security
102
+ severity: high
103
+ confidence: medium
104
+ languages:
105
+ - generic
106
+ patterns:
107
+ - regex: (ANTHROPIC_BASE_URL|OPENAI_BASE_URL)\s*"?\s*[=:]\s*"?\s*\S+
108
+ message: >-
109
+ API base URL override detected in settings or environment file. ANTHROPIC_BASE_URL or OPENAI_BASE_URL
110
+ overrides can redirect all API traffic to an attacker-controlled server, exposing prompts, code, and API keys.
111
+ Remove these overrides unless you are intentionally proxying traffic through a trusted endpoint.
112
+ cwe:
113
+ - CWE-923
114
+ owasp: []
115
+ references:
116
+ - https://docs.anthropic.com/en/docs/claude-code/security
117
+ tags:
118
+ - claude-code
119
+ - cursor
120
+ - id: hooks-dns-exfiltration-generic
121
+ name: hooks-dns-exfiltration-generic
122
+ description: >-
123
+ DNS lookup command uses a variable in the hostname, which could exfiltrate sensitive data via DNS queries. In
124
+ Claude Code and Cursor hooks, this pattern can leak secrets or environment data to attacker-controlled domains.
125
+ Use static hostnames only in DNS commands.
126
+ category: security
127
+ severity: high
128
+ confidence: medium
129
+ languages:
130
+ - generic
131
+ patterns:
132
+ - regex: \b(ping|nslookup|dig|host)\s+.*\$
133
+ message: >-
134
+ DNS lookup command uses a variable in the hostname, which could exfiltrate sensitive data via DNS queries. In
135
+ Claude Code and Cursor hooks, this pattern can leak secrets or environment data to attacker-controlled
136
+ domains. Use static hostnames only in DNS commands.
137
+ cwe:
138
+ - CWE-201
139
+ owasp: []
140
+ references:
141
+ - https://docs.anthropic.com/en/docs/claude-code/hooks
142
+ - https://cursor.com/docs/agent/hooks
143
+ tags:
144
+ - claude-code
145
+ - cursor
146
+ - id: hooks-sensitive-file-access-bash
147
+ name: hooks-sensitive-file-access-bash
148
+ description: >-
149
+ Hook input from jq flows into a file operation without checking for sensitive files. Claude Code and Cursor hooks
150
+ receive JSON input that may reference sensitive files such as ~/.ssh/*, ~/.aws/credentials, or .env files. Filter
151
+ or block access to sensitive paths using realpath and a validation check before performing file operations.
152
+ category: file-ops
153
+ severity: medium
154
+ confidence: medium
155
+ languages:
156
+ - generic
157
+ patterns:
158
+ - regex: \$\(.*\|\s*jq\b[^)]*\)[\s\S]*?\n\s*(cat|rm|cp|mv)\s+\$
159
+ message: >-
160
+ Hook input from jq flows into a file operation without checking for sensitive files. Claude Code and Cursor
161
+ hooks receive JSON input that may reference sensitive files such as ~/.ssh/*, ~/.aws/credentials, or .env
162
+ files. Filter or block access to sensitive paths using realpath and a validation check before performing file
163
+ operations.
164
+ cwe:
165
+ - CWE-538
166
+ owasp: []
167
+ references:
168
+ - https://docs.anthropic.com/en/docs/claude-code/hooks
169
+ - https://cursor.com/docs/agent/hooks
170
+ tags:
171
+ - claude-code
172
+ - cursor
173
+ - id: hooks-stop-missing-active-check-generic
174
+ name: hooks-stop-missing-active-check-generic
175
+ description: >-
176
+ Stop hook outputs a "block" decision. Ensure you check stop_hook_active first and exit 0 if true, otherwise the
177
+ hook will cause an infinite loop by blocking its own stop attempts.
178
+ category: security
179
+ severity: medium
180
+ confidence: medium
181
+ languages:
182
+ - generic
183
+ patterns:
184
+ - regex: '"decision".*"block"'
185
+ message: >-
186
+ Stop hook outputs a "block" decision. Ensure you check stop_hook_active first and exit 0 if true, otherwise
187
+ the hook will cause an infinite loop by blocking its own stop attempts.
188
+ cwe:
189
+ - CWE-835
190
+ owasp: []
191
+ references:
192
+ - https://docs.anthropic.com/en/docs/claude-code/hooks
193
+ - https://cursor.com/docs/agent/hooks
194
+ tags:
195
+ - claude-code
196
+ - cursor
197
+ - id: hooks-unconditional-allow-generic
198
+ name: hooks-unconditional-allow-generic
199
+ description: >-
200
+ Hook unconditionally allows tool execution by outputting a permissionDecision of "allow" without any conditional
201
+ check. This bypasses the entire permission system. Add a conditional check to validate the tool or command before
202
+ allowing.
203
+ category: security
204
+ severity: high
205
+ confidence: medium
206
+ languages:
207
+ - generic
208
+ patterns:
209
+ - regex: permissionDecision.*allow
210
+ message: >-
211
+ Hook unconditionally allows tool execution by outputting a permissionDecision of "allow" without any
212
+ conditional check. This bypasses the entire permission system. Add a conditional check to validate the tool or
213
+ command before allowing.
214
+ cwe:
215
+ - CWE-862
216
+ owasp: []
217
+ references:
218
+ - https://docs.anthropic.com/en/docs/claude-code/hooks
219
+ - https://cursor.com/docs/agent/hooks
220
+ tags:
221
+ - claude-code
222
+ - cursor
223
+ - id: hooks-wget-pipe-bash-generic
224
+ name: hooks-wget-pipe-bash-generic
225
+ description: >-
226
+ Remote script is fetched and piped directly to a shell interpreter. In Claude Code and Cursor hooks, this enables
227
+ remote code execution from untrusted sources. Download the script first, inspect it, then execute it separately.
228
+ category: security
229
+ severity: high
230
+ confidence: medium
231
+ languages:
232
+ - generic
233
+ patterns:
234
+ - regex: (curl|wget)\s+.*\|\s*(bash|sh|zsh)\b
235
+ message: >-
236
+ Remote script is fetched and piped directly to a shell interpreter. In Claude Code and Cursor hooks, this
237
+ enables remote code execution from untrusted sources. Download the script first, inspect it, then execute it
238
+ separately.
239
+ cwe:
240
+ - CWE-829
241
+ owasp: []
242
+ references:
243
+ - https://docs.anthropic.com/en/docs/claude-code/hooks
244
+ - https://cursor.com/docs/agent/hooks
245
+ tags:
246
+ - claude-code
247
+ - cursor
248
+ - id: ide-settings-executable-path-generic
249
+ name: ide-settings-executable-path-generic
250
+ description: >-
251
+ Executable path override detected in VS Code settings pointing to a project-relative path. A malicious repository
252
+ can override interpreter or tool paths in workspace settings to execute arbitrary code when the project is opened.
253
+ Use absolute system paths instead of relative paths for executable settings, and review .vscode/settings.json in
254
+ untrusted repos.
255
+ category: file-ops
256
+ severity: medium
257
+ confidence: medium
258
+ languages:
259
+ - generic
260
+ patterns:
261
+ - regex: >-
262
+ "[^"]*(?:executablePath|ExecutablePath|defaultInterpreterPath|pythonPath|terminal\.integrated\.shell\.\w+)"\s*:\s*"\.\.?/
263
+ message: >-
264
+ Executable path override detected in VS Code settings pointing to a project-relative path. A malicious
265
+ repository can override interpreter or tool paths in workspace settings to execute arbitrary code when the
266
+ project is opened. Use absolute system paths instead of relative paths for executable settings, and review
267
+ .vscode/settings.json in untrusted repos.
268
+ cwe:
269
+ - CWE-94
270
+ owasp: []
271
+ references:
272
+ - https://blog.vipyrsec.com/posts/idesaster/
273
+ tags:
274
+ - vscode
275
+ - id: mcp-hardcoded-config-secret-generic
276
+ name: mcp-hardcoded-config-secret-generic
277
+ description: >-
278
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
279
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
280
+ category: secrets
281
+ severity: high
282
+ confidence: medium
283
+ languages:
284
+ - generic
285
+ patterns:
286
+ - regex: ':\s*"sk-[a-zA-Z0-9]{20,}"'
287
+ message: >-
288
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
289
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
290
+ - regex: ':\s*"sk-ant-[a-zA-Z0-9\-]{20,}"'
291
+ message: >-
292
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
293
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
294
+ - regex: ':\s*"sk-proj-[a-zA-Z0-9\-]{20,}"'
295
+ message: >-
296
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
297
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
298
+ - regex: ':\s*"hf_[a-zA-Z0-9]{20,}"'
299
+ message: >-
300
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
301
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
302
+ - regex: ':\s*"AIza[a-zA-Z0-9\-_]{20,}"'
303
+ message: >-
304
+ Plaintext API key or token detected in MCP configuration file. Hardcoded secrets in config files risk exposure
305
+ through version control or file sharing. Use environment variable references or a secrets manager instead.
306
+ cwe:
307
+ - CWE-798
308
+ owasp: []
309
+ references:
310
+ - https://modelcontextprotocol.io/specification/draft/basic/security_best_practices
311
+ tags:
312
+ - mcp
313
+ - id: mcp-tool-poisoning-generic
314
+ name: mcp-tool-poisoning-generic
315
+ description: >-
316
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
317
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files. Review
318
+ the tool description for hidden instructions or social engineering.
319
+ category: security
320
+ severity: high
321
+ confidence: medium
322
+ languages:
323
+ - generic
324
+ patterns:
325
+ - regex: '"""[^"]*<IMPORTANT>[^"]*"""'
326
+ message: >-
327
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
328
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
329
+ Review the tool description for hidden instructions or social engineering.
330
+ - regex: '"""[^"]*~/\.ssh[^"]*"""'
331
+ message: >-
332
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
333
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
334
+ Review the tool description for hidden instructions or social engineering.
335
+ - regex: '"""[^"]*~/\.cursor/mcp\.json[^"]*"""'
336
+ message: >-
337
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
338
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
339
+ Review the tool description for hidden instructions or social engineering.
340
+ - regex: '"""[^"]*(?:/etc/shadow)[^"]*"""'
341
+ message: >-
342
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
343
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
344
+ Review the tool description for hidden instructions or social engineering.
345
+ - regex: '"""[^"]*(?:read|cat|load|parse|open|access)\s+\.env[^"]*"""'
346
+ message: >-
347
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
348
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
349
+ Review the tool description for hidden instructions or social engineering.
350
+ - regex: '"""[^"]*do not mention[^"]*"""'
351
+ message: >-
352
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
353
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
354
+ Review the tool description for hidden instructions or social engineering.
355
+ - regex: '"""[^"]*do not tell the user[^"]*"""'
356
+ message: >-
357
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
358
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
359
+ Review the tool description for hidden instructions or social engineering.
360
+ - regex: '"""[^"]*ignore previous instructions[^"]*"""'
361
+ message: >-
362
+ MCP tool docstring contains suspicious directives that may indicate tool poisoning. Attackers can embed hidden
363
+ instructions in tool descriptions to manipulate LLM behavior, exfiltrate data, or access sensitive files.
364
+ Review the tool description for hidden instructions or social engineering.
365
+ cwe:
366
+ - CWE-77
367
+ owasp: []
368
+ references:
369
+ - https://modelcontextprotocol.io/specification/draft/basic/security_best_practices
370
+ tags:
371
+ - mcp
372
+ - id: detect-generic-ai-anthprop
373
+ name: detect-generic-ai-anthprop
374
+ description: 'Possibly found usage of AI: Anthropic'
375
+ category: security
376
+ severity: low
377
+ confidence: medium
378
+ languages:
379
+ - generic
380
+ patterns:
381
+ - pattern: anthropic
382
+ message: 'Possibly found usage of AI: Anthropic'
383
+ - pattern: Anthropic
384
+ message: 'Possibly found usage of AI: Anthropic'
385
+ - pattern: claude
386
+ message: 'Possibly found usage of AI: Anthropic'
387
+ cwe: []
388
+ owasp: []
389
+ references:
390
+ - https://semgrep.dev/blog/2024/detecting-shadow-ai
391
+ tags:
392
+ - genAI
393
+ - LLMs
394
+ - id: detect-generic-ai-api
395
+ name: detect-generic-ai-api
396
+ description: 'Possibly found usage of AI: HTTP Request'
397
+ category: security
398
+ severity: low
399
+ confidence: medium
400
+ languages:
401
+ - generic
402
+ patterns:
403
+ - pattern: /chat/completions
404
+ message: 'Possibly found usage of AI: HTTP Request'
405
+ - pattern: api.openai.com
406
+ message: 'Possibly found usage of AI: HTTP Request'
407
+ cwe: []
408
+ owasp: []
409
+ references:
410
+ - https://semgrep.dev/blog/2024/detecting-shadow-ai
411
+ tags:
412
+ - genAI
413
+ - LLMs
414
+ - id: detect-generic-ai-gem
415
+ name: detect-generic-ai-gem
416
+ description: 'Possibly found usage of AI: Gemini'
417
+ category: security
418
+ severity: low
419
+ confidence: medium
420
+ languages:
421
+ - generic
422
+ patterns:
423
+ - pattern: google/generative-ai
424
+ message: 'Possibly found usage of AI: Gemini'
425
+ - pattern: GoogleGenerativeAI
426
+ message: 'Possibly found usage of AI: Gemini'
427
+ cwe: []
428
+ owasp: []
429
+ references:
430
+ - https://semgrep.dev/blog/2024/detecting-shadow-ai
431
+ tags:
432
+ - genAI
433
+ - LLMs
434
+ - id: detect-generic-ai-oai
435
+ name: detect-generic-ai-oai
436
+ description: 'Possibly found usage of AI: OpenAI'
437
+ category: security
438
+ severity: low
439
+ confidence: medium
440
+ languages:
441
+ - generic
442
+ patterns:
443
+ - pattern: openai
444
+ message: 'Possibly found usage of AI: OpenAI'
445
+ - pattern: OpenAI
446
+ message: 'Possibly found usage of AI: OpenAI'
447
+ cwe: []
448
+ owasp: []
449
+ references:
450
+ - https://semgrep.dev/blog/2024/detecting-shadow-ai
451
+ tags:
452
+ - genAI
453
+ - LLMs
454
+ - id: use-assert-class
455
+ name: use-assert-class
456
+ description: >-
457
+ Assert methods in the System class have been replaced with the Assert class:
458
+ https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Assert.htm
459
+ category: security
460
+ severity: medium
461
+ confidence: medium
462
+ languages:
463
+ - generic
464
+ patterns:
465
+ - regex: System\.assert
466
+ message: >-
467
+ Assert methods in the System class have been replaced with the Assert class:
468
+ https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Assert.htm
469
+ cwe: []
470
+ owasp: []
471
+ references:
472
+ - https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Assert.htm
473
+ tags:
474
+ - salesforce
475
+ - id: avoid-native-dml-in-loops
476
+ name: avoid-native-dml-in-loops
477
+ description: >-
478
+ Avoid DML statements inside loops to avoid hitting the DML governor limit. Instead, try to batch up the data into
479
+ a list and invoke your DML once on that list of data outside the loop.
480
+ category: security
481
+ severity: high
482
+ confidence: medium
483
+ languages:
484
+ - generic
485
+ patterns:
486
+ - regex: .*
487
+ message: >-
488
+ Avoid DML statements inside loops to avoid hitting the DML governor limit. Instead, try to batch up the data
489
+ into a list and invoke your DML once on that list of data outside the loop.
490
+ cwe: []
491
+ owasp: []
492
+ references:
493
+ - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
494
+ tags:
495
+ - salesforce
496
+ - id: avoid-operations-with-limits-in-loops
497
+ name: avoid-operations-with-limits-in-loops
498
+ description: >-
499
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending, async
500
+ scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the data into a
501
+ list and invoke the operation once on that list of data outside the loop.
502
+ category: security
503
+ severity: high
504
+ confidence: medium
505
+ languages:
506
+ - generic
507
+ patterns:
508
+ - regex: .*
509
+ message: >-
510
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending,
511
+ async scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the
512
+ data into a list and invoke the operation once on that list of data outside the loop.
513
+ cwe: []
514
+ owasp: []
515
+ references:
516
+ - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
517
+ tags:
518
+ - salesforce
519
+ - id: avoid-soql-in-loops
520
+ name: avoid-soql-in-loops
521
+ description: >-
522
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending, async
523
+ scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the data into a
524
+ list and invoke the operation once on that list of data outside the loop.
525
+ category: security
526
+ severity: high
527
+ confidence: medium
528
+ languages:
529
+ - generic
530
+ patterns:
531
+ - pattern: |
532
+ $OBJECTS = [...SELECT...FROM...];
533
+ message: >-
534
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending,
535
+ async scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the
536
+ data into a list and invoke the operation once on that list of data outside the loop.
537
+ cwe: []
538
+ owasp: []
539
+ references:
540
+ - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
541
+ tags:
542
+ - salesforce
543
+ - id: avoid-sosl-in-loops
544
+ name: avoid-sosl-in-loops
545
+ description: >-
546
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending, async
547
+ scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the data into a
548
+ list and invoke the operation once on that list of data outside the loop.
549
+ category: security
550
+ severity: high
551
+ confidence: medium
552
+ languages:
553
+ - generic
554
+ patterns:
555
+ - regex: .*
556
+ message: >-
557
+ Database class methods, DML operations, SOQL queries, SOSL queries, Approval class methods, Email sending,
558
+ async scheduling or queueing within loops can cause governor limit exceptions. Instead, try to batch up the
559
+ data into a list and invoke the operation once on that list of data outside the loop.
560
+ cwe: []
561
+ owasp: []
562
+ references:
563
+ - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
564
+ tags:
565
+ - salesforce
566
+ - id: apex-csrf-static-constructor
567
+ name: apex-csrf-static-constructor
568
+ description: >-
569
+ Having DML operations in Apex class constructor or initializers can have unexpected side effects: By just
570
+ accessing a page, the DML statements would be executed and the database would be modified. Just querying the
571
+ database is permitted.
572
+ category: api-security
573
+ severity: high
574
+ confidence: medium
575
+ languages:
576
+ - generic
577
+ patterns:
578
+ - regex: .*
579
+ message: >-
580
+ Having DML operations in Apex class constructor or initializers can have unexpected side effects: By just
581
+ accessing a page, the DML statements would be executed and the database would be modified. Just querying the
582
+ database is permitted.
583
+ cwe:
584
+ - CWE-352
585
+ owasp:
586
+ - A01:2021
587
+ - A01:2025
588
+ references:
589
+ - https://cwe.mitre.org/data/definitions/352.html
590
+ tags:
591
+ - salesforce
592
+ - id: razor-use-of-htmlstring
593
+ name: razor-use-of-htmlstring
594
+ description: >-
595
+ ASP.NET Core MVC provides an HtmlString class which isn't automatically encoded upon output. This should never be
596
+ used in combination with untrusted input as this will expose an XSS vulnerability.
597
+ category: security
598
+ severity: medium
599
+ confidence: medium
600
+ languages:
601
+ - generic
602
+ patterns:
603
+ - regex: .*
604
+ message: >-
605
+ ASP.NET Core MVC provides an HtmlString class which isn't automatically encoded upon output. This should never
606
+ be used in combination with untrusted input as this will expose an XSS vulnerability.
607
+ cwe:
608
+ - CWE-116
609
+ owasp:
610
+ - A03:2021
611
+ - A05:2025
612
+ references:
613
+ - https://cwe.mitre.org/data/definitions/116.html
614
+ - https://owasp.org/Top10/A03_2021-Injection/
615
+ - >-
616
+ https://docs.microsoft.com/en-us/aspnet/core/security/cross-site-scripting?view=aspnetcore-6.0#html-encoding-using-razor
617
+ tags:
618
+ - .net
619
+ - id: net-webconfig-debug
620
+ name: net-webconfig-debug
621
+ description: >-
622
+ ASP.NET applications built with `debug` set to true in production may leak debug information to attackers. Debug
623
+ mode also affects performance and reliability. Set `debug` to `false` or remove it from `<compilation ... />`
624
+ category: security
625
+ severity: medium
626
+ confidence: medium
627
+ languages:
628
+ - generic
629
+ patterns:
630
+ - pattern: |
631
+ <compilation ... debug = "true" ... />
632
+ message: >-
633
+ ASP.NET applications built with `debug` set to true in production may leak debug information to attackers.
634
+ Debug mode also affects performance and reliability. Set `debug` to `false` or remove it from `<compilation
635
+ ... />`
636
+ cwe:
637
+ - CWE-11
638
+ owasp:
639
+ - A05:2021
640
+ - A02:2025
641
+ references:
642
+ - >-
643
+ https://web.archive.org/web/20190919105353/https://blogs.msdn.microsoft.com/prashant_upadhyay/2011/07/14/why-debugfalse-in-asp-net-applications-in-production-environment/
644
+ - https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx
645
+ tags:
646
+ - .net
647
+ - id: net-webconfig-trace-enabled
648
+ name: net-webconfig-trace-enabled
649
+ description: >-
650
+ OWASP guidance recommends disabling tracing for production applications to prevent accidental leakage of sensitive
651
+ application information.
652
+ category: security
653
+ severity: medium
654
+ confidence: medium
655
+ languages:
656
+ - generic
657
+ patterns:
658
+ - pattern: |
659
+ <trace ... enabled = "true" ... />
660
+ message: >-
661
+ OWASP guidance recommends disabling tracing for production applications to prevent accidental leakage of
662
+ sensitive application information.
663
+ cwe:
664
+ - CWE-1323
665
+ owasp:
666
+ - A05:2021
667
+ references:
668
+ - https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#asp-net-web-forms-guidance
669
+ - https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx
670
+ tags:
671
+ - .net
672
+ - id: web-config-insecure-cookie-settings
673
+ name: web-config-insecure-cookie-settings
674
+ description: >-
675
+ Cookie Secure flag is explicitly disabled. You should enforce this value to avoid accidentally presenting
676
+ sensitive cookie values over plaintext HTTP connections.
677
+ category: security
678
+ severity: medium
679
+ confidence: medium
680
+ languages:
681
+ - generic
682
+ patterns:
683
+ - regex: .*
684
+ message: >-
685
+ Cookie Secure flag is explicitly disabled. You should enforce this value to avoid accidentally presenting
686
+ sensitive cookie values over plaintext HTTP connections.
687
+ cwe:
688
+ - CWE-614
689
+ owasp:
690
+ - A05:2021
691
+ - A02:2025
692
+ references:
693
+ - https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-cookies
694
+ - >-
695
+ https://docs.microsoft.com/en-us/dotnet/api/system.web.security.formsauthentication.requiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_FormsAuthentication_RequireSSL
696
+ - >-
697
+ https://docs.microsoft.com/en-us/dotnet/api/system.web.security.roles.cookierequiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_Roles_CookieRequireSSL
698
+ tags:
699
+ - .net
700
+ - asp
701
+ - webforms
702
+ - id: html-raw-json
703
+ name: html-raw-json
704
+ description: Unencoded JSON in HTML context is vulnerable to cross-site scripting, because `</script>` is not properly encoded.
705
+ category: security
706
+ severity: high
707
+ confidence: medium
708
+ languages:
709
+ - generic
710
+ patterns:
711
+ - regex: .*
712
+ message: >-
713
+ Unencoded JSON in HTML context is vulnerable to cross-site scripting, because `</script>` is not properly
714
+ encoded.
715
+ cwe:
716
+ - CWE-79
717
+ owasp:
718
+ - A07:2017
719
+ - A03:2021
720
+ - A05:2025
721
+ references:
722
+ - https://owasp.org/Top10/A03_2021-Injection
723
+ tags:
724
+ - razor
725
+ - id: secure-parameter-for-secrets
726
+ name: secure-parameter-for-secrets
727
+ description: >-
728
+ Mark sensitive parameters with the @secure() decorator. This avoids logging the value or displaying it in the
729
+ Azure portal, Azure CLI, or Azure PowerShell.
730
+ category: secrets
731
+ severity: medium
732
+ confidence: medium
733
+ languages:
734
+ - generic
735
+ patterns:
736
+ - pattern: param $NAME string
737
+ message: >-
738
+ Mark sensitive parameters with the @secure() decorator. This avoids logging the value or displaying it in the
739
+ Azure portal, Azure CLI, or Azure PowerShell.
740
+ cwe:
741
+ - CWE-532
742
+ owasp:
743
+ - A09:2021
744
+ - A09:2025
745
+ references:
746
+ - https://cwe.mitre.org/data/definitions/532.html
747
+ - https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/scenarios-secrets
748
+ tags:
749
+ - bicep
750
+ - id: changed-semgrepignore
751
+ name: changed-semgrepignore
752
+ description: >-
753
+ `$1` has been added to the .semgrepignore list of ignored paths. Someone from app-sec may want to audit these
754
+ changes.
755
+ category: security
756
+ severity: medium
757
+ confidence: medium
758
+ languages:
759
+ - generic
760
+ patterns:
761
+ - regex: |
762
+ ^(.*)$
763
+ message: >-
764
+ `$1` has been added to the .semgrepignore list of ignored paths. Someone from app-sec may want to audit these
765
+ changes.
766
+ cwe: []
767
+ owasp: []
768
+ references:
769
+ - https://semgrep.dev/docs/ignoring-files-folders-code/
770
+ tags:
771
+ - semgrep
772
+ - id: bash_reverse_shell
773
+ name: bash_reverse_shell
774
+ description: Semgrep found a bash reverse shell
775
+ category: security
776
+ severity: high
777
+ confidence: medium
778
+ languages:
779
+ - generic
780
+ patterns:
781
+ - pattern: |
782
+ sh -i >& /dev/udp/.../... 0>&1
783
+ message: Semgrep found a bash reverse shell
784
+ - pattern: |
785
+ <...>/dev/tcp/.../...; sh <&... >&... 2>&
786
+ message: Semgrep found a bash reverse shell
787
+ - pattern: |
788
+ <...>/dev/tcp/.../...; cat <&... | while read line; do $line 2>&... >&...;done
789
+ message: Semgrep found a bash reverse shell
790
+ - pattern: |
791
+ sh -i ...<...> /dev/tcp/.../... ...<&... 1>&... 2>&
792
+ message: Semgrep found a bash reverse shell
793
+ cwe:
794
+ - CWE-94
795
+ owasp:
796
+ - A03:2021
797
+ - A05:2025
798
+ references:
799
+ - https://owasp.org/Top10/A03_2021-Injection
800
+ tags:
801
+ - ci
802
+ - id: missing-yum-clean-all
803
+ name: missing-yum-clean-all
804
+ description: >-
805
+ This yum command does not end with '&& yum clean all'. Running 'yum clean all' will remove cached data and reduce
806
+ package size. (This must be performed in the same RUN step.)
807
+ category: security
808
+ severity: medium
809
+ confidence: medium
810
+ languages:
811
+ - generic
812
+ patterns:
813
+ - pattern: yum $COMMAND
814
+ message: >-
815
+ This yum command does not end with '&& yum clean all'. Running 'yum clean all' will remove cached data and
816
+ reduce package size. (This must be performed in the same RUN step.)
817
+ cwe: []
818
+ owasp: []
819
+ references:
820
+ - https://github.com/hadolint/hadolint/wiki/DL3032
821
+ tags:
822
+ - dockerfile
823
+ - id: use-absolute-workdir
824
+ name: use-absolute-workdir
825
+ description: >-
826
+ Detected a relative WORKDIR. Use absolute paths. This prevents issues based on assumptions about the WORKDIR of
827
+ previous containers.
828
+ category: security
829
+ severity: medium
830
+ confidence: medium
831
+ languages:
832
+ - generic
833
+ patterns:
834
+ - regex: .*
835
+ message: >-
836
+ Detected a relative WORKDIR. Use absolute paths. This prevents issues based on assumptions about the WORKDIR
837
+ of previous containers.
838
+ cwe: []
839
+ owasp: []
840
+ references:
841
+ - https://github.com/hadolint/hadolint/wiki/DL3000
842
+ tags:
843
+ - dockerfile
844
+ - id: alias-must-be-unique
845
+ name: alias-must-be-unique
846
+ description: Image aliases must have a unique name, and '$REF' is used twice. Use another name for '$REF'.
847
+ category: security
848
+ severity: high
849
+ confidence: medium
850
+ languages:
851
+ - generic
852
+ patterns:
853
+ - regex: .*
854
+ message: Image aliases must have a unique name, and '$REF' is used twice. Use another name for '$REF'.
855
+ cwe: []
856
+ owasp: []
857
+ references:
858
+ - https://github.com/hadolint/hadolint/wiki/DL3024
859
+ tags:
860
+ - dockerfile
861
+ - id: copy-from-own-alias
862
+ name: copy-from-own-alias
863
+ description: >-
864
+ COPY instructions cannot copy from its own alias. The '$REF' alias is used before switching to a new image. If you
865
+ meant to switch to a new image, include a new 'FROM' statement. Otherwise, remove the '--from=$REF' from the COPY
866
+ statement.
867
+ category: security
868
+ severity: high
869
+ confidence: medium
870
+ languages:
871
+ - generic
872
+ patterns:
873
+ - pattern: |
874
+ FROM $IMAGE:$TAG as $REF
875
+ ...
876
+ COPY --from=$REF
877
+ ...
878
+ FROM
879
+ message: >-
880
+ COPY instructions cannot copy from its own alias. The '$REF' alias is used before switching to a new image. If
881
+ you meant to switch to a new image, include a new 'FROM' statement. Otherwise, remove the '--from=$REF' from
882
+ the COPY statement.
883
+ - pattern: |
884
+ FROM $IMAGE:$TAG AS $REF
885
+ ...
886
+ COPY --from=$REF
887
+ ...
888
+ FROM
889
+ message: >-
890
+ COPY instructions cannot copy from its own alias. The '$REF' alias is used before switching to a new image. If
891
+ you meant to switch to a new image, include a new 'FROM' statement. Otherwise, remove the '--from=$REF' from
892
+ the COPY statement.
893
+ cwe: []
894
+ owasp: []
895
+ references:
896
+ - https://github.com/hadolint/hadolint/wiki/DL3023
897
+ tags:
898
+ - dockerfile
899
+ - id: build-gradle-password-hardcoded
900
+ name: build-gradle-password-hardcoded
901
+ description: >-
902
+ A secret is hard-coded in the application. Secrets stored in source code, such as credentials, identifiers, and
903
+ other types of sensitive data, can be leaked and used by internal or external malicious actors. It is recommended
904
+ to rotate the secret and retrieve them from a secure secret vault or Hardware Security Module (HSM), alternatively
905
+ environment variables can be used if allowed by your company policy.
906
+ category: secrets
907
+ severity: medium
908
+ confidence: medium
909
+ languages:
910
+ - generic
911
+ patterns:
912
+ - pattern: |
913
+ password = env[...] ?: "$SECRET"
914
+ message: >-
915
+ A secret is hard-coded in the application. Secrets stored in source code, such as credentials, identifiers,
916
+ and other types of sensitive data, can be leaked and used by internal or external malicious actors. It is
917
+ recommended to rotate the secret and retrieve them from a secure secret vault or Hardware Security Module
918
+ (HSM), alternatively environment variables can be used if allowed by your company policy.
919
+ cwe:
920
+ - CWE-798
921
+ owasp:
922
+ - A07:2021
923
+ - A07:2025
924
+ references:
925
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
926
+ tags:
927
+ - secrets
928
+ - id: unquoted-attribute-var
929
+ name: unquoted-attribute-var
930
+ description: >-
931
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
932
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{ expr }}".
933
+ category: security
934
+ severity: medium
935
+ confidence: medium
936
+ languages:
937
+ - generic
938
+ patterns:
939
+ - pattern: '{{ ... }}'
940
+ message: >-
941
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
942
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{ expr }}".
943
+ cwe:
944
+ - CWE-79
945
+ owasp:
946
+ - A07:2017
947
+ - A03:2021
948
+ - A05:2025
949
+ references:
950
+ - https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss
951
+ tags:
952
+ - html-templates
953
+ - id: var-in-href
954
+ name: var-in-href
955
+ description: >-
956
+ Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to
957
+ input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using Flask, use 'url_for()'
958
+ to safely generate a URL. If using Django, use the 'url' filter to safely generate a URL. If using Mustache, use a
959
+ URL encoding library, or prepend a slash '/' to the variable for relative links (`href="/{{link}}"`). You may also
960
+ consider setting the Content Security Policy (CSP) header.
961
+ category: security
962
+ severity: medium
963
+ confidence: medium
964
+ languages:
965
+ - generic
966
+ patterns:
967
+ - regex: .*
968
+ message: >-
969
+ Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to
970
+ input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using Flask, use
971
+ 'url_for()' to safely generate a URL. If using Django, use the 'url' filter to safely generate a URL. If using
972
+ Mustache, use a URL encoding library, or prepend a slash '/' to the variable for relative links
973
+ (`href="/{{link}}"`). You may also consider setting the Content Security Policy (CSP) header.
974
+ cwe:
975
+ - CWE-79
976
+ owasp:
977
+ - A07:2017
978
+ - A03:2021
979
+ - A05:2025
980
+ references:
981
+ - https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI
982
+ - https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url
983
+ - https://github.com/pugjs/pug/issues/2952
984
+ - https://content-security-policy.com/
985
+ tags:
986
+ - html-templates
987
+ - id: var-in-script-src
988
+ name: var-in-script-src
989
+ description: >-
990
+ Detected a template variable used as the 'src' in a script tag. Although template variables are HTML escaped, HTML
991
+ escaping does not always prevent malicious URLs from being injected and could results in a cross-site scripting
992
+ (XSS) vulnerability. Prefer not to dynamically generate the 'src' attribute and use static URLs instead. If you
993
+ must do this, carefully check URLs against an allowlist and be sure to URL-encode the result.
994
+ category: security
995
+ severity: medium
996
+ confidence: medium
997
+ languages:
998
+ - generic
999
+ patterns:
1000
+ - pattern: '{{ ... }}'
1001
+ message: >-
1002
+ Detected a template variable used as the 'src' in a script tag. Although template variables are HTML escaped,
1003
+ HTML escaping does not always prevent malicious URLs from being injected and could results in a cross-site
1004
+ scripting (XSS) vulnerability. Prefer not to dynamically generate the 'src' attribute and use static URLs
1005
+ instead. If you must do this, carefully check URLs against an allowlist and be sure to URL-encode the result.
1006
+ cwe:
1007
+ - CWE-79
1008
+ owasp:
1009
+ - A07:2017
1010
+ - A03:2021
1011
+ - A05:2025
1012
+ references:
1013
+ - >-
1014
+ https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A
1015
+ - https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough
1016
+ - https://github.com/ESAPI/owasp-esapi-js
1017
+ tags:
1018
+ - html-templates
1019
+ - id: var-in-script-tag
1020
+ name: var-in-script-tag
1021
+ description: >-
1022
+ Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping
1023
+ does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data
1024
+ on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a
1025
+ JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the
1026
+ 'json_script' template tag and retrieving the data in your script by using the element ID (e.g.,
1027
+ `document.getElementById`).
1028
+ category: security
1029
+ severity: medium
1030
+ confidence: medium
1031
+ languages:
1032
+ - generic
1033
+ patterns:
1034
+ - pattern: '{{ ... }}'
1035
+ message: >-
1036
+ Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping
1037
+ does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this
1038
+ data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively,
1039
+ use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider
1040
+ using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g.,
1041
+ `document.getElementById`).
1042
+ cwe:
1043
+ - CWE-79
1044
+ owasp:
1045
+ - A07:2017
1046
+ - A03:2021
1047
+ - A05:2025
1048
+ references:
1049
+ - >-
1050
+ https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A
1051
+ - https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough
1052
+ - https://github.com/ESAPI/owasp-esapi-js
1053
+ tags:
1054
+ - html-templates
1055
+ - id: invalid-base-url
1056
+ name: invalid-base-url
1057
+ description: >-
1058
+ The 'baseURL' is invalid. This may cause links to not work if deployed. Include the scheme (e.g., http:// or
1059
+ https://).
1060
+ category: security
1061
+ severity: medium
1062
+ confidence: medium
1063
+ languages:
1064
+ - generic
1065
+ patterns:
1066
+ - pattern: baseURL = "..."
1067
+ message: >-
1068
+ The 'baseURL' is invalid. This may cause links to not work if deployed. Include the scheme (e.g., http:// or
1069
+ https://).
1070
+ cwe: []
1071
+ owasp: []
1072
+ references:
1073
+ - https://gohugo.io/
1074
+ tags:
1075
+ - hugo
1076
+ - id: localhost-base-url
1077
+ name: localhost-base-url
1078
+ description: The 'baseURL' is set to localhost. This may cause links to not work if deployed.
1079
+ category: security
1080
+ severity: medium
1081
+ confidence: medium
1082
+ languages:
1083
+ - generic
1084
+ patterns:
1085
+ - pattern: baseURL = "..."
1086
+ message: The 'baseURL' is set to localhost. This may cause links to not work if deployed.
1087
+ - regex: .*(localhost|127\.0\.0\.1).*
1088
+ message: The 'baseURL' is set to localhost. This may cause links to not work if deployed.
1089
+ cwe: []
1090
+ owasp: []
1091
+ references:
1092
+ - https://gohugo.io/
1093
+ tags:
1094
+ - hugo
1095
+ - id: alias-path-traversal
1096
+ name: alias-path-traversal
1097
+ description: >-
1098
+ The alias in this location block is subject to a path traversal because the location path does not end in a path
1099
+ separator (e.g., '/'). To fix, add a path separator to the end of the path.
1100
+ category: file-ops
1101
+ severity: medium
1102
+ confidence: medium
1103
+ languages:
1104
+ - generic
1105
+ patterns:
1106
+ - pattern: |
1107
+ location $...LOCATION {
1108
+ ...
1109
+ alias .../;
1110
+ ...
1111
+ }
1112
+ message: >-
1113
+ The alias in this location block is subject to a path traversal because the location path does not end in a
1114
+ path separator (e.g., '/'). To fix, add a path separator to the end of the path.
1115
+ cwe:
1116
+ - CWE-22
1117
+ owasp:
1118
+ - A05:2017
1119
+ - A01:2021
1120
+ - A01:2025
1121
+ references:
1122
+ - https://owasp.org/Top10/A01_2021-Broken_Access_Control
1123
+ - https://www.acunetix.com/vulnerabilities/web/path-traversal-via-misconfigured-nginx-alias/
1124
+ - https://www.youtube.com/watch?v=CIhHpkybYsY
1125
+ - >-
1126
+ https://github.com/orangetw/My-Presentation-Slides/blob/main/data/2018-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out.pdf
1127
+ tags:
1128
+ - nginx
1129
+ - id: dynamic-proxy-host
1130
+ name: dynamic-proxy-host
1131
+ description: >-
1132
+ The host for this proxy URL is dynamically determined. This can be dangerous if the host can be injected by an
1133
+ attacker because it may forcibly alter destination of the proxy. Consider hardcoding acceptable destinations and
1134
+ retrieving them with 'map' or something similar.
1135
+ category: security
1136
+ severity: medium
1137
+ confidence: medium
1138
+ languages:
1139
+ - generic
1140
+ patterns:
1141
+ - pattern: proxy_pass $SCHEME://$$HOST ...;
1142
+ message: >-
1143
+ The host for this proxy URL is dynamically determined. This can be dangerous if the host can be injected by an
1144
+ attacker because it may forcibly alter destination of the proxy. Consider hardcoding acceptable destinations
1145
+ and retrieving them with 'map' or something similar.
1146
+ - pattern: proxy_pass $$SCHEME://$$HOST ...;
1147
+ message: >-
1148
+ The host for this proxy URL is dynamically determined. This can be dangerous if the host can be injected by an
1149
+ attacker because it may forcibly alter destination of the proxy. Consider hardcoding acceptable destinations
1150
+ and retrieving them with 'map' or something similar.
1151
+ cwe:
1152
+ - CWE-441
1153
+ owasp:
1154
+ - A01:2021
1155
+ - A01:2025
1156
+ references:
1157
+ - https://nginx.org/en/docs/http/ngx_http_map_module.html
1158
+ tags:
1159
+ - nginx
1160
+ - id: dynamic-proxy-scheme
1161
+ name: dynamic-proxy-scheme
1162
+ description: >-
1163
+ The protocol scheme for this proxy is dynamically determined. This can be dangerous if the scheme can be injected
1164
+ by an attacker because it may forcibly alter the connection scheme. Consider hardcoding a scheme for this proxy.
1165
+ category: security
1166
+ severity: medium
1167
+ confidence: medium
1168
+ languages:
1169
+ - generic
1170
+ patterns:
1171
+ - pattern: proxy_pass $$SCHEME:// ...;
1172
+ message: >-
1173
+ The protocol scheme for this proxy is dynamically determined. This can be dangerous if the scheme can be
1174
+ injected by an attacker because it may forcibly alter the connection scheme. Consider hardcoding a scheme for
1175
+ this proxy.
1176
+ cwe:
1177
+ - CWE-16
1178
+ owasp:
1179
+ - A06:2017
1180
+ - A05:2021
1181
+ - A02:2025
1182
+ references:
1183
+ - https://github.com/yandex/gixy/blob/master/docs/en/plugins/ssrf.md
1184
+ tags:
1185
+ - nginx
1186
+ - id: header-injection
1187
+ name: header-injection
1188
+ description: >-
1189
+ The $$VARIABLE path parameter is added as a header in the response. This could allow an attacker to inject a
1190
+ newline and add a new header into the response. This is called HTTP response splitting. To fix, do not allow
1191
+ whitespace in the path parameter: '[^\s]+'.
1192
+ category: security
1193
+ severity: high
1194
+ confidence: medium
1195
+ languages:
1196
+ - generic
1197
+ patterns:
1198
+ - pattern: |
1199
+ location ... <$VARIABLE> ... {
1200
+ ...
1201
+ add_header ... $$VARIABLE
1202
+ ...
1203
+ }
1204
+ message: >-
1205
+ The $$VARIABLE path parameter is added as a header in the response. This could allow an attacker to inject a
1206
+ newline and add a new header into the response. This is called HTTP response splitting. To fix, do not allow
1207
+ whitespace in the path parameter: '[^\s]+'.
1208
+ cwe:
1209
+ - CWE-113
1210
+ owasp:
1211
+ - A03:2021
1212
+ - A05:2025
1213
+ references:
1214
+ - https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md
1215
+ - https://owasp.org/www-community/attacks/HTTP_Response_Splitting
1216
+ tags:
1217
+ - nginx
1218
+ - id: header-redefinition
1219
+ name: header-redefinition
1220
+ description: >-
1221
+ The 'add_header' directive is called in a 'location' block after headers have been set at the server block.
1222
+ Calling 'add_header' in the location block will actually overwrite the headers defined in the server block, no
1223
+ matter which headers are set. To fix this, explicitly set all headers or set all headers in the server block.
1224
+ category: security
1225
+ severity: medium
1226
+ confidence: medium
1227
+ languages:
1228
+ - generic
1229
+ patterns:
1230
+ - pattern: add_header ...;
1231
+ message: >-
1232
+ The 'add_header' directive is called in a 'location' block after headers have been set at the server block.
1233
+ Calling 'add_header' in the location block will actually overwrite the headers defined in the server block, no
1234
+ matter which headers are set. To fix this, explicitly set all headers or set all headers in the server block.
1235
+ cwe:
1236
+ - CWE-16
1237
+ owasp:
1238
+ - A06:2017
1239
+ - A05:2021
1240
+ - A02:2025
1241
+ references:
1242
+ - https://github.com/yandex/gixy/blob/master/docs/en/plugins/addheaderredefinition.md
1243
+ tags:
1244
+ - nginx
1245
+ - id: insecure-redirect
1246
+ name: insecure-redirect
1247
+ description: >-
1248
+ Detected an insecure redirect in this nginx configuration. If no scheme is specified, nginx will forward the
1249
+ request with the incoming scheme. This could result in unencrypted communications. To fix this, include the
1250
+ 'https' scheme.
1251
+ category: security
1252
+ severity: medium
1253
+ confidence: medium
1254
+ languages:
1255
+ - generic
1256
+ patterns:
1257
+ - regex: .*
1258
+ message: >-
1259
+ Detected an insecure redirect in this nginx configuration. If no scheme is specified, nginx will forward the
1260
+ request with the incoming scheme. This could result in unencrypted communications. To fix this, include the
1261
+ 'https' scheme.
1262
+ cwe:
1263
+ - CWE-319
1264
+ owasp:
1265
+ - A03:2017
1266
+ - A02:2021
1267
+ - A04:2025
1268
+ references:
1269
+ - https://owasp.org/Top10/A02_2021-Cryptographic_Failures
1270
+ tags:
1271
+ - nginx
1272
+ - id: insecure-ssl-version
1273
+ name: insecure-ssl-version
1274
+ description: >-
1275
+ Detected use of an insecure SSL version. Secure SSL versions are TLSv1.2 and TLS1.3; older versions are known to
1276
+ be broken and are susceptible to attacks. Prefer use of TLSv1.2 or later.
1277
+ category: security
1278
+ severity: medium
1279
+ confidence: medium
1280
+ languages:
1281
+ - generic
1282
+ patterns:
1283
+ - pattern: ssl_protocols ...;
1284
+ message: >-
1285
+ Detected use of an insecure SSL version. Secure SSL versions are TLSv1.2 and TLS1.3; older versions are known
1286
+ to be broken and are susceptible to attacks. Prefer use of TLSv1.2 or later.
1287
+ cwe:
1288
+ - CWE-326
1289
+ owasp:
1290
+ - A03:2017
1291
+ - A02:2021
1292
+ - A04:2025
1293
+ references:
1294
+ - https://www.acunetix.com/blog/web-security-zone/hardening-nginx/
1295
+ - https://www.acunetix.com/blog/articles/tls-ssl-cipher-hardening/
1296
+ tags:
1297
+ - nginx
1298
+ - id: missing-internal
1299
+ name: missing-internal
1300
+ description: >-
1301
+ This location block contains a 'proxy_pass' directive but does not contain the 'internal' directive. The
1302
+ 'internal' directive restricts access to this location to internal requests. Without 'internal', an attacker could
1303
+ use your server for server-side request forgeries (SSRF). Include the 'internal' directive in this block to limit
1304
+ exposure.
1305
+ category: security
1306
+ severity: medium
1307
+ confidence: medium
1308
+ languages:
1309
+ - generic
1310
+ patterns:
1311
+ - pattern: proxy_pass $...URL;
1312
+ message: >-
1313
+ This location block contains a 'proxy_pass' directive but does not contain the 'internal' directive. The
1314
+ 'internal' directive restricts access to this location to internal requests. Without 'internal', an attacker
1315
+ could use your server for server-side request forgeries (SSRF). Include the 'internal' directive in this block
1316
+ to limit exposure.
1317
+ cwe:
1318
+ - CWE-16
1319
+ owasp:
1320
+ - A06:2017
1321
+ - A05:2021
1322
+ - A02:2025
1323
+ references:
1324
+ - https://github.com/yandex/gixy/blob/master/docs/en/plugins/ssrf.md
1325
+ - https://nginx.org/en/docs/http/ngx_http_core_module.html#internal
1326
+ tags:
1327
+ - nginx
1328
+ - id: missing-ssl-version
1329
+ name: missing-ssl-version
1330
+ description: >-
1331
+ This server configuration is missing the 'ssl_protocols' directive. By default, this server will use
1332
+ 'ssl_protocols TLSv1 TLSv1.1 TLSv1.2', and versions older than TLSv1.2 are known to be broken. Explicitly specify
1333
+ 'ssl_protocols TLSv1.2 TLSv1.3' to use secure TLS versions.
1334
+ category: security
1335
+ severity: medium
1336
+ confidence: medium
1337
+ languages:
1338
+ - generic
1339
+ patterns:
1340
+ - pattern: server { ... listen $PORT ssl; ... }
1341
+ message: >-
1342
+ This server configuration is missing the 'ssl_protocols' directive. By default, this server will use
1343
+ 'ssl_protocols TLSv1 TLSv1.1 TLSv1.2', and versions older than TLSv1.2 are known to be broken. Explicitly
1344
+ specify 'ssl_protocols TLSv1.2 TLSv1.3' to use secure TLS versions.
1345
+ cwe:
1346
+ - CWE-326
1347
+ owasp:
1348
+ - A03:2017
1349
+ - A02:2021
1350
+ - A04:2025
1351
+ references:
1352
+ - https://www.acunetix.com/blog/web-security-zone/hardening-nginx/
1353
+ - https://nginx.org/en/docs/http/configuring_https_servers.html
1354
+ tags:
1355
+ - nginx
1356
+ - id: possible-nginx-h2c-smuggling
1357
+ name: possible-nginx-h2c-smuggling
1358
+ description: >-
1359
+ Conditions for Nginx H2C smuggling identified. H2C smuggling allows upgrading HTTP/1.1 connections to lesser-known
1360
+ HTTP/2 over cleartext (h2c) connections which can allow a bypass of reverse proxy access controls, and lead to
1361
+ long-lived, unrestricted HTTP traffic directly to back-end servers. To mitigate: WebSocket support required: Allow
1362
+ only the value websocket for HTTP/1.1 upgrade headers (e.g., Upgrade: websocket). WebSocket support not required:
1363
+ Do not forward Upgrade headers.
1364
+ category: security
1365
+ severity: medium
1366
+ confidence: medium
1367
+ languages:
1368
+ - generic
1369
+ patterns:
1370
+ - regex: .*
1371
+ message: >-
1372
+ Conditions for Nginx H2C smuggling identified. H2C smuggling allows upgrading HTTP/1.1 connections to
1373
+ lesser-known HTTP/2 over cleartext (h2c) connections which can allow a bypass of reverse proxy access
1374
+ controls, and lead to long-lived, unrestricted HTTP traffic directly to back-end servers. To mitigate:
1375
+ WebSocket support required: Allow only the value websocket for HTTP/1.1 upgrade headers (e.g., Upgrade:
1376
+ websocket). WebSocket support not required: Do not forward Upgrade headers.
1377
+ cwe:
1378
+ - CWE-444
1379
+ owasp:
1380
+ - A04:2021
1381
+ - A06:2025
1382
+ references:
1383
+ - https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c
1384
+ tags:
1385
+ - nginx
1386
+ - id: request-host-used
1387
+ name: request-host-used
1388
+ description: >-
1389
+ '$http_host' and '$host' variables may contain a malicious value from attacker controlled 'Host' request header.
1390
+ Use an explicitly configured host value or a allow list for validation.
1391
+ category: security
1392
+ severity: medium
1393
+ confidence: medium
1394
+ languages:
1395
+ - generic
1396
+ patterns:
1397
+ - pattern: $http_host
1398
+ message: >-
1399
+ '$http_host' and '$host' variables may contain a malicious value from attacker controlled 'Host' request
1400
+ header. Use an explicitly configured host value or a allow list for validation.
1401
+ - pattern: $host
1402
+ message: >-
1403
+ '$http_host' and '$host' variables may contain a malicious value from attacker controlled 'Host' request
1404
+ header. Use an explicitly configured host value or a allow list for validation.
1405
+ cwe:
1406
+ - CWE-290
1407
+ owasp:
1408
+ - A07:2021
1409
+ - A07:2025
1410
+ references:
1411
+ - https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md
1412
+ - https://portswigger.net/web-security/host-header
1413
+ tags:
1414
+ - nginx
1415
+ - id: detected-aws-account-id
1416
+ name: detected-aws-account-id
1417
+ description: >-
1418
+ AWS Account ID detected. While not considered sensitive information, it is important to use them and share them
1419
+ carefully. For that reason it would be preferrable avoiding to hardcoded it here. Instead, read the value from an
1420
+ environment variable or keep the value in a separate, private file.
1421
+ category: security
1422
+ severity: low
1423
+ confidence: medium
1424
+ languages:
1425
+ - generic
1426
+ patterns:
1427
+ - regex: .*
1428
+ message: >-
1429
+ AWS Account ID detected. While not considered sensitive information, it is important to use them and share
1430
+ them carefully. For that reason it would be preferrable avoiding to hardcoded it here. Instead, read the value
1431
+ from an environment variable or keep the value in a separate, private file.
1432
+ cwe:
1433
+ - CWE-798
1434
+ owasp:
1435
+ - A07:2021
1436
+ - A07:2025
1437
+ references:
1438
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
1439
+ tags:
1440
+ - secrets
1441
+ - aws
1442
+ - id: detected-github-token
1443
+ name: detected-github-token
1444
+ description: GitHub Token detected
1445
+ category: secrets
1446
+ severity: high
1447
+ confidence: medium
1448
+ languages:
1449
+ - generic
1450
+ patterns:
1451
+ - regex: .*
1452
+ message: GitHub Token detected
1453
+ cwe:
1454
+ - CWE-798
1455
+ owasp:
1456
+ - A07:2021
1457
+ - A07:2025
1458
+ references:
1459
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
1460
+ tags:
1461
+ - secrets
1462
+ - github
1463
+ - id: detected-npm-registry-auth-token
1464
+ name: detected-npm-registry-auth-token
1465
+ description: NPM registry authentication token detected
1466
+ category: secrets
1467
+ severity: high
1468
+ confidence: medium
1469
+ languages:
1470
+ - generic
1471
+ patterns:
1472
+ - pattern: $AUTHTOKEN = $VALUE
1473
+ message: NPM registry authentication token detected
1474
+ cwe:
1475
+ - CWE-798
1476
+ owasp:
1477
+ - A07:2021
1478
+ - A07:2025
1479
+ references:
1480
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
1481
+ tags:
1482
+ - secrets
1483
+ - npm
1484
+ - id: detected-private-key
1485
+ name: detected-private-key
1486
+ description: >-
1487
+ Private Key detected. This is a sensitive credential and should not be hardcoded here. Instead, store this in a
1488
+ separate, private file.
1489
+ category: secrets
1490
+ severity: high
1491
+ confidence: medium
1492
+ languages:
1493
+ - generic
1494
+ patterns:
1495
+ - regex: .*
1496
+ message: >-
1497
+ Private Key detected. This is a sensitive credential and should not be hardcoded here. Instead, store this in
1498
+ a separate, private file.
1499
+ cwe:
1500
+ - CWE-798
1501
+ owasp:
1502
+ - A07:2021
1503
+ - A07:2025
1504
+ references:
1505
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
1506
+ tags:
1507
+ - secrets
1508
+ - id: detected-username-and-password-in-uri
1509
+ name: detected-username-and-password-in-uri
1510
+ description: Username and password in URI detected
1511
+ category: secrets
1512
+ severity: high
1513
+ confidence: medium
1514
+ languages:
1515
+ - generic
1516
+ patterns:
1517
+ - pattern: $PROTOCOL://$...USERNAME:$...PASSWORD@$END
1518
+ message: Username and password in URI detected
1519
+ cwe:
1520
+ - CWE-798
1521
+ owasp:
1522
+ - A07:2021
1523
+ - A07:2025
1524
+ references:
1525
+ - https://github.com/grab/secret-scanner/blob/master/scanner/signatures/pattern.go
1526
+ tags:
1527
+ - secrets
1528
+ - id: google-maps-apikeyleak
1529
+ name: google-maps-apikeyleak
1530
+ description: Detects potential Google Maps API keys in code
1531
+ category: secrets
1532
+ severity: medium
1533
+ confidence: medium
1534
+ languages:
1535
+ - generic
1536
+ patterns:
1537
+ - regex: ^(AIza[0-9A-Za-z_-]{35}(?!\S))$
1538
+ message: Detects potential Google Maps API keys in code
1539
+ cwe:
1540
+ - CWE-538
1541
+ owasp:
1542
+ - A3:2017
1543
+ references:
1544
+ - https://ozguralp.medium.com/unauthorized-google-maps-api-key-usage-cases-and-why-you-need-to-care-1ccb28bf21e
1545
+ tags:
1546
+ - Google Maps
1547
+ - id: use-SRI-for-CDNs
1548
+ name: use-SRI-for-CDNs
1549
+ description: >-
1550
+ Consuming CDNs without including a SubResource Integrity (SRI) can expose your application and its users to
1551
+ compromised code. SRIs allow you to consume specific versions of content where if even a single byte is
1552
+ compromised, the resource will not be loaded. Add an integrity attribute to your <script> and <link> tags pointing
1553
+ to CDN content to ensure the resources have not been compromised. A crossorigin attribute should also be added.
1554
+ For a more thorough explanation along with explicit instructions on remediating, follow the directions from
1555
+ Mozilla here: https://developer.mozilla.org/en-US/blog/securing-cdn-using-sri-why-how/
1556
+ category: security
1557
+ severity: medium
1558
+ confidence: medium
1559
+ languages:
1560
+ - generic
1561
+ patterns:
1562
+ - regex: .*
1563
+ message: >-
1564
+ Consuming CDNs without including a SubResource Integrity (SRI) can expose your application and its users to
1565
+ compromised code. SRIs allow you to consume specific versions of content where if even a single byte is
1566
+ compromised, the resource will not be loaded. Add an integrity attribute to your <script> and <link> tags
1567
+ pointing to CDN content to ensure the resources have not been compromised. A crossorigin attribute should also
1568
+ be added. For a more thorough explanation along with explicit instructions on remediating, follow the
1569
+ directions from Mozilla here: https://developer.mozilla.org/en-US/blog/securing-cdn-using-sri-why-how/
1570
+ cwe:
1571
+ - CWE-346
1572
+ owasp:
1573
+ - A07:2021
1574
+ - A07:2025
1575
+ references:
1576
+ - https://cwe.mitre.org/data/definitions/352.html
1577
+ - https://developer.mozilla.org/en-US/blog/securing-cdn-using-sri-why-how/
1578
+ tags:
1579
+ - salesforce
1580
+ - visualforce
1581
+ - id: xss-from-unescaped-url-param
1582
+ name: xss-from-unescaped-url-param
1583
+ description: >-
1584
+ To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts.
1585
+ Please update your code to use either the JSENCODE method to escape URL parameters or the escape="true" attribute
1586
+ on <apex:outputText> tags. Passing URL parameters directly into scripts and DOM sinks creates an opportunity for
1587
+ Cross-Site Scripting attacks. Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious
1588
+ scripts are injected into otherwise benign and trusted websites. To remediate this issue, ensure that all URL
1589
+ parameters are properly escaped before including them in scripts.
1590
+ category: xss
1591
+ severity: high
1592
+ confidence: medium
1593
+ languages:
1594
+ - generic
1595
+ patterns:
1596
+ - regex: .*
1597
+ message: >-
1598
+ To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts.
1599
+ Please update your code to use either the JSENCODE method to escape URL parameters or the escape="true"
1600
+ attribute on <apex:outputText> tags. Passing URL parameters directly into scripts and DOM sinks creates an
1601
+ opportunity for Cross-Site Scripting attacks. Cross-Site Scripting (XSS) attacks are a type of injection, in
1602
+ which malicious scripts are injected into otherwise benign and trusted websites. To remediate this issue,
1603
+ ensure that all URL parameters are properly escaped before including them in scripts.
1604
+ cwe:
1605
+ - CWE-79
1606
+ owasp:
1607
+ - A07:2017
1608
+ - A03:2021
1609
+ - A05:2025
1610
+ references:
1611
+ - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/pages_security_tips_xss.htm
1612
+ tags:
1613
+ - salesforce
1614
+ - visualforce
1615
+ - id: csp-header-attribute
1616
+ name: csp-header-attribute
1617
+ description: >-
1618
+ Visualforce Pages must have the cspHeader attribute set to true. This attribute is available in API version 55 or
1619
+ higher.
1620
+ category: security
1621
+ severity: low
1622
+ confidence: medium
1623
+ languages:
1624
+ - generic
1625
+ patterns:
1626
+ - pattern: <apex:page...>...</apex:page>
1627
+ message: >-
1628
+ Visualforce Pages must have the cspHeader attribute set to true. This attribute is available in API version 55
1629
+ or higher.
1630
+ cwe:
1631
+ - CWE-79
1632
+ owasp:
1633
+ - A07:2017
1634
+ - A03:2021
1635
+ - A05:2025
1636
+ references:
1637
+ - https://help.salesforce.com/s/articleView?id=sf.csp_trusted_sites.htm&type=5
1638
+ tags:
1639
+ - salesforce
1640
+ - visualforce
1641
+ - id: visualforce-page-api-version
1642
+ name: visualforce-page-api-version
1643
+ description: Visualforce Pages must use API version 55 or higher for required use of the cspHeader attribute set to true.
1644
+ category: injection
1645
+ severity: medium
1646
+ confidence: medium
1647
+ languages:
1648
+ - generic
1649
+ patterns:
1650
+ - regex: .*
1651
+ message: Visualforce Pages must use API version 55 or higher for required use of the cspHeader attribute set to true.
1652
+ cwe:
1653
+ - CWE-79
1654
+ owasp:
1655
+ - A07:2017
1656
+ - A03:2021
1657
+ - A05:2025
1658
+ references:
1659
+ - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pages.htm
1660
+ tags:
1661
+ - salesforce
1662
+ - visualforce
1663
+ - id: no-interpolation-in-tag
1664
+ name: no-interpolation-in-tag
1665
+ description: >-
1666
+ Detected template variable interpolation in an HTML tag. This is potentially vulnerable to cross-site scripting
1667
+ (XSS) attacks because a malicious actor has control over HTML but without the need to use escaped characters. Use
1668
+ explicit tags instead.
1669
+ category: security
1670
+ severity: medium
1671
+ confidence: medium
1672
+ languages:
1673
+ - generic
1674
+ patterns:
1675
+ - pattern: <{{ ... }} ... >
1676
+ message: >-
1677
+ Detected template variable interpolation in an HTML tag. This is potentially vulnerable to cross-site
1678
+ scripting (XSS) attacks because a malicious actor has control over HTML but without the need to use escaped
1679
+ characters. Use explicit tags instead.
1680
+ cwe:
1681
+ - CWE-79
1682
+ owasp:
1683
+ - A07:2017
1684
+ - A03:2021
1685
+ - A05:2025
1686
+ references:
1687
+ - https://github.com/golang/go/issues/19669
1688
+ - https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/
1689
+ tags:
1690
+ - generic
1691
+ - id: no-interpolation-js-template-string
1692
+ name: no-interpolation-js-template-string
1693
+ description: >-
1694
+ Detected template variable interpolation in a JavaScript template string. This is potentially vulnerable to
1695
+ cross-site scripting (XSS) attacks because a malicious actor has control over JavaScript but without the need to
1696
+ use escaped characters. Instead, obtain this variable outside of the template string and ensure your template is
1697
+ properly escaped.
1698
+ category: security
1699
+ severity: medium
1700
+ confidence: medium
1701
+ languages:
1702
+ - generic
1703
+ patterns:
1704
+ - pattern: '` ... {{ ... }} ...`'
1705
+ message: >-
1706
+ Detected template variable interpolation in a JavaScript template string. This is potentially vulnerable to
1707
+ cross-site scripting (XSS) attacks because a malicious actor has control over JavaScript but without the need
1708
+ to use escaped characters. Instead, obtain this variable outside of the template string and ensure your
1709
+ template is properly escaped.
1710
+ cwe:
1711
+ - CWE-79
1712
+ owasp:
1713
+ - A07:2017
1714
+ - A03:2021
1715
+ - A05:2025
1716
+ references:
1717
+ - https://github.com/golang/go/issues/9200#issuecomment-66100328
1718
+ - https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/
1719
+ tags:
1720
+ - generic
1721
+ - id: robots-denied
1722
+ name: robots-denied
1723
+ description: This page denies crawlers from indexing the page. Remove the robots 'meta' tag.
1724
+ category: security
1725
+ severity: low
1726
+ confidence: medium
1727
+ languages:
1728
+ - generic
1729
+ patterns:
1730
+ - pattern: <meta name="robots" ...>
1731
+ message: This page denies crawlers from indexing the page. Remove the robots 'meta' tag.
1732
+ - pattern: <META NAME="ROBOTS" ...>
1733
+ message: This page denies crawlers from indexing the page. Remove the robots 'meta' tag.
1734
+ cwe: []
1735
+ owasp: []
1736
+ references: []
1737
+ tags:
1738
+ - html
1739
+ - id: missing-integrity
1740
+ name: missing-integrity
1741
+ description: >-
1742
+ This tag is missing an 'integrity' subresource integrity attribute. The 'integrity' attribute allows for the
1743
+ browser to verify that externally hosted files (for example from a CDN) are delivered without unexpected
1744
+ manipulation. Without this attribute, if an attacker can modify the externally hosted resource, this could lead to
1745
+ XSS and other types of attacks. To prevent this, include the base64-encoded cryptographic hash of the resource
1746
+ (file) you’re telling the browser to fetch in the 'integrity' attribute for all externally hosted files.
1747
+ category: security
1748
+ severity: medium
1749
+ confidence: medium
1750
+ languages:
1751
+ - generic
1752
+ patterns:
1753
+ - regex: .*
1754
+ message: >-
1755
+ This tag is missing an 'integrity' subresource integrity attribute. The 'integrity' attribute allows for the
1756
+ browser to verify that externally hosted files (for example from a CDN) are delivered without unexpected
1757
+ manipulation. Without this attribute, if an attacker can modify the externally hosted resource, this could
1758
+ lead to XSS and other types of attacks. To prevent this, include the base64-encoded cryptographic hash of the
1759
+ resource (file) you’re telling the browser to fetch in the 'integrity' attribute for all externally hosted
1760
+ files.
1761
+ cwe:
1762
+ - CWE-353
1763
+ owasp:
1764
+ - A08:2021
1765
+ - A08:2025
1766
+ references:
1767
+ - https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures
1768
+ tags:
1769
+ - html
1770
+ - id: manifest-usesCleartextTraffic-true
1771
+ name: manifest-usesCleartextTraffic-true
1772
+ description: >-
1773
+ The Android manifest is configured to allow non-encrypted connections. Evaluate if this is necessary for your app,
1774
+ and disable it if appropriate. This flag is ignored on Android 7 (API 24) and above if a Network Security Config
1775
+ is present.
1776
+ category: security
1777
+ severity: low
1778
+ confidence: medium
1779
+ languages:
1780
+ - generic
1781
+ patterns:
1782
+ - pattern: |
1783
+ android:usesCleartextTraffic="true"
1784
+ message: >-
1785
+ The Android manifest is configured to allow non-encrypted connections. Evaluate if this is necessary for your
1786
+ app, and disable it if appropriate. This flag is ignored on Android 7 (API 24) and above if a Network Security
1787
+ Config is present.
1788
+ cwe: []
1789
+ owasp: []
1790
+ references:
1791
+ - https://developer.android.com/guide/topics/manifest/application-element#usesCleartextTraffic
1792
+ - https://developer.android.com/training/articles/security-config
1793
+ tags:
1794
+ - android
1795
+ - id: manifest-usesCleartextTraffic-ignored-by-nsc
1796
+ name: manifest-usesCleartextTraffic-ignored-by-nsc
1797
+ description: >-
1798
+ Manifest uses both `android:usesCleartextTraffic` and Network Security Config. The `usesCleartextTraffic`
1799
+ directive is ignored on Android 7 (API 24) and above if a Network Security Config is present.
1800
+ category: security
1801
+ severity: low
1802
+ confidence: medium
1803
+ languages:
1804
+ - generic
1805
+ patterns:
1806
+ - regex: .*
1807
+ message: >-
1808
+ Manifest uses both `android:usesCleartextTraffic` and Network Security Config. The `usesCleartextTraffic`
1809
+ directive is ignored on Android 7 (API 24) and above if a Network Security Config is present.
1810
+ cwe: []
1811
+ owasp: []
1812
+ references:
1813
+ - https://developer.android.com/guide/topics/manifest/application-element#usesCleartextTraffic
1814
+ - https://developer.android.com/training/articles/security-config
1815
+ tags:
1816
+ - android
1817
+ - id: nsc-allows-plaintext-traffic
1818
+ name: nsc-allows-plaintext-traffic
1819
+ description: >-
1820
+ The Network Security Config is set to allow non-encrypted connections. Evaluate if this is necessary for your app,
1821
+ and disable it if appropriate. (To hide this warning, set `xmlns:tools="http://schemas.android.com/tools"
1822
+ tools:ignore="InsecureBaseConfiguration"` as parameters to your `<network-security-config>`)
1823
+ category: security
1824
+ severity: low
1825
+ confidence: medium
1826
+ languages:
1827
+ - generic
1828
+ patterns:
1829
+ - pattern: |
1830
+ <base-config ... cleartextTrafficPermitted="true" ... >
1831
+ message: >-
1832
+ The Network Security Config is set to allow non-encrypted connections. Evaluate if this is necessary for your
1833
+ app, and disable it if appropriate. (To hide this warning, set `xmlns:tools="http://schemas.android.com/tools"
1834
+ tools:ignore="InsecureBaseConfiguration"` as parameters to your `<network-security-config>`)
1835
+ cwe: []
1836
+ owasp: []
1837
+ references:
1838
+ - https://developer.android.com/training/articles/security-config
1839
+ - >-
1840
+ https://www.nowsecure.com/blog/2018/08/15/a-security-analysts-guide-to-network-security-configuration-in-android-p/
1841
+ tags:
1842
+ - android
1843
+ - id: nsc-pinning-without-backup
1844
+ name: nsc-pinning-without-backup
1845
+ description: >-
1846
+ Your app uses TLS public key pinning without specifying a backup key. If you are forced to change TLS keys or CAs
1847
+ on short notice, not having a backup pin can lead to connectivity issues until you can push out an update. It is
1848
+ considered best practice to add at least one additional pin as a backup.
1849
+ category: security
1850
+ severity: low
1851
+ confidence: medium
1852
+ languages:
1853
+ - generic
1854
+ patterns:
1855
+ - pattern: |
1856
+ <pin ...>...</pin>
1857
+ message: >-
1858
+ Your app uses TLS public key pinning without specifying a backup key. If you are forced to change TLS keys or
1859
+ CAs on short notice, not having a backup pin can lead to connectivity issues until you can push out an update.
1860
+ It is considered best practice to add at least one additional pin as a backup.
1861
+ cwe: []
1862
+ owasp: []
1863
+ references:
1864
+ - https://developer.android.com/training/articles/security-config#CertificatePinning
1865
+ - >-
1866
+ https://www.nowsecure.com/blog/2018/08/15/a-security-analysts-guide-to-network-security-configuration-in-android-p/
1867
+ tags:
1868
+ - android
1869
+ - id: nsc-pinning-without-expiration
1870
+ name: nsc-pinning-without-expiration
1871
+ description: >-
1872
+ Your app uses TLS public key pinning without specifying an expiration date. If your users do not update the app to
1873
+ receive new pins in time, expired or replaced certificates can lead to connectivity issues until they install an
1874
+ update. It is considered best practice to set an expiration time, after which the system will default to trusting
1875
+ system CAs and disregard the pin.
1876
+ category: security
1877
+ severity: low
1878
+ confidence: medium
1879
+ languages:
1880
+ - generic
1881
+ patterns:
1882
+ - pattern: |
1883
+ <pin-set ...>... ... ...</pin-set>
1884
+ message: >-
1885
+ Your app uses TLS public key pinning without specifying an expiration date. If your users do not update the
1886
+ app to receive new pins in time, expired or replaced certificates can lead to connectivity issues until they
1887
+ install an update. It is considered best practice to set an expiration time, after which the system will
1888
+ default to trusting system CAs and disregard the pin.
1889
+ cwe: []
1890
+ owasp: []
1891
+ references:
1892
+ - https://developer.android.com/training/articles/security-config#CertificatePinning
1893
+ - >-
1894
+ https://www.nowsecure.com/blog/2018/08/15/a-security-analysts-guide-to-network-security-configuration-in-android-p/
1895
+ tags:
1896
+ - android
1897
+ - id: nsc-allows-user-ca-certs
1898
+ name: nsc-allows-user-ca-certs
1899
+ description: >-
1900
+ The Network Security Config is set to accept user-installed CAs. Evaluate if this is necessary for your app, and
1901
+ disable it if appropriate. (To hide this warning, set `xmlns:tools="http://schemas.android.com/tools"
1902
+ tools:ignore="AcceptsUserCertificates"` as parameters to your `<network-security-config>`)
1903
+ category: security
1904
+ severity: medium
1905
+ confidence: medium
1906
+ languages:
1907
+ - generic
1908
+ patterns:
1909
+ - pattern: |
1910
+ <certificates ... user ... />
1911
+ message: >-
1912
+ The Network Security Config is set to accept user-installed CAs. Evaluate if this is necessary for your app,
1913
+ and disable it if appropriate. (To hide this warning, set `xmlns:tools="http://schemas.android.com/tools"
1914
+ tools:ignore="AcceptsUserCertificates"` as parameters to your `<network-security-config>`)
1915
+ cwe: []
1916
+ owasp: []
1917
+ references:
1918
+ - https://developer.android.com/training/articles/security-config
1919
+ - >-
1920
+ https://www.nowsecure.com/blog/2018/08/15/a-security-analysts-guide-to-network-security-configuration-in-android-p/
1921
+ tags:
1922
+ - android
1923
+ - id: nsc-allows-user-ca-certs-for-domain
1924
+ name: nsc-allows-user-ca-certs-for-domain
1925
+ description: >-
1926
+ The Network Security Config is set to accept user-installed CAs for the domain `$DOMAIN`. Evaluate if this is
1927
+ necessary for your app, and disable it if appropriate. (To hide this warning, set
1928
+ `xmlns:tools="http://schemas.android.com/tools" tools:ignore="AcceptsUserCertificates"` as parameters to your
1929
+ `<network-security-config>`)
1930
+ category: security
1931
+ severity: medium
1932
+ confidence: medium
1933
+ languages:
1934
+ - generic
1935
+ patterns:
1936
+ - pattern: |
1937
+ <certificates src="user" ... />
1938
+ message: >-
1939
+ The Network Security Config is set to accept user-installed CAs for the domain `$DOMAIN`. Evaluate if this is
1940
+ necessary for your app, and disable it if appropriate. (To hide this warning, set
1941
+ `xmlns:tools="http://schemas.android.com/tools" tools:ignore="AcceptsUserCertificates"` as parameters to your
1942
+ `<network-security-config>`)
1943
+ cwe: []
1944
+ owasp: []
1945
+ references:
1946
+ - https://developer.android.com/training/articles/security-config
1947
+ - >-
1948
+ https://www.nowsecure.com/blog/2018/08/15/a-security-analysts-guide-to-network-security-configuration-in-android-p/
1949
+ tags:
1950
+ - android
1951
+ - id: exported_activity
1952
+ name: exported_activity
1953
+ description: >-
1954
+ The application exports an activity. Any application on the device can launch the exported activity which may
1955
+ compromise the integrity of your application or its data. Ensure that any exported activities do not have
1956
+ privileged access to your application's control plane.
1957
+ category: security
1958
+ severity: medium
1959
+ confidence: medium
1960
+ languages:
1961
+ - generic
1962
+ patterns:
1963
+ - regex: .*
1964
+ message: >-
1965
+ The application exports an activity. Any application on the device can launch the exported activity which may
1966
+ compromise the integrity of your application or its data. Ensure that any exported activities do not have
1967
+ privileged access to your application's control plane.
1968
+ cwe:
1969
+ - CWE-926
1970
+ owasp:
1971
+ - A5:2021
1972
+ references:
1973
+ - https://cwe.mitre.org/data/definitions/926.html
1974
+ tags:
1975
+ - Android
1976
+ - id: spring-actuator-fully-enabled
1977
+ name: spring-actuator-fully-enabled
1978
+ description: >-
1979
+ Spring Boot Actuator is fully enabled. This exposes sensitive endpoints such as /actuator/env, /actuator/logfile,
1980
+ /actuator/heapdump and others. Unless you have Spring Security enabled or another means to protect these
1981
+ endpoints, this functionality is available without authentication, causing a significant security risk.
1982
+ category: security
1983
+ severity: high
1984
+ confidence: medium
1985
+ languages:
1986
+ - generic
1987
+ patterns:
1988
+ - pattern: management.endpoints.web.exposure.include=*
1989
+ message: >-
1990
+ Spring Boot Actuator is fully enabled. This exposes sensitive endpoints such as /actuator/env,
1991
+ /actuator/logfile, /actuator/heapdump and others. Unless you have Spring Security enabled or another means to
1992
+ protect these endpoints, this functionality is available without authentication, causing a significant
1993
+ security risk.
1994
+ cwe:
1995
+ - CWE-200
1996
+ owasp:
1997
+ - A01:2021
1998
+ - A01:2025
1999
+ references:
2000
+ - >-
2001
+ https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints
2002
+ - https://medium.com/walmartglobaltech/perils-of-spring-boot-actuators-misconfiguration-185c43a0f785
2003
+ - https://blog.maass.xyz/spring-actuator-security-part-1-stealing-secrets-using-spring-actuators
2004
+ tags:
2005
+ - spring
2006
+ - id: spring-actuator-dangerous-endpoints-enabled
2007
+ name: spring-actuator-dangerous-endpoints-enabled
2008
+ description: >-
2009
+ Spring Boot Actuators "$...ACTUATORS" are enabled. Depending on the actuators, this can pose a significant
2010
+ security risk. Please double-check if the actuators are needed and properly secured.
2011
+ category: security
2012
+ severity: medium
2013
+ confidence: medium
2014
+ languages:
2015
+ - generic
2016
+ patterns:
2017
+ - pattern: management.endpoints.web.exposure.include=$...ACTUATORS
2018
+ message: >-
2019
+ Spring Boot Actuators "$...ACTUATORS" are enabled. Depending on the actuators, this can pose a significant
2020
+ security risk. Please double-check if the actuators are needed and properly secured.
2021
+ cwe:
2022
+ - CWE-200
2023
+ owasp:
2024
+ - A01:2021
2025
+ - A01:2025
2026
+ references:
2027
+ - >-
2028
+ https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints
2029
+ - https://medium.com/walmartglobaltech/perils-of-spring-boot-actuators-misconfiguration-185c43a0f785
2030
+ - https://blog.maass.xyz/spring-actuator-security-part-1-stealing-secrets-using-spring-actuators
2031
+ tags:
2032
+ - spring
2033
+ - id: spring-jsp-eval
2034
+ name: spring-jsp-eval
2035
+ description: >-
2036
+ A Spring expression is built with a dynamic value. The source of the value(s) should be verified to avoid that
2037
+ unfiltered values fall into this risky code evaluation.
2038
+ category: injection
2039
+ severity: medium
2040
+ confidence: medium
2041
+ languages:
2042
+ - generic
2043
+ patterns:
2044
+ - pattern: |
2045
+ <spring:eval ... expression=...>
2046
+ message: >-
2047
+ A Spring expression is built with a dynamic value. The source of the value(s) should be verified to avoid that
2048
+ unfiltered values fall into this risky code evaluation.
2049
+ cwe:
2050
+ - CWE-95
2051
+ owasp:
2052
+ - A03:2021
2053
+ - A05:2025
2054
+ references:
2055
+ - https://owasp.org/Top10/A03_2021-Injection
2056
+ tags:
2057
+ - spring
2058
+ - id: bun-missing-minimum-release-age
2059
+ name: bun-missing-minimum-release-age
2060
+ description: >-
2061
+ This bunfig.toml does not set a minimum release age or sets it too low. Newly published packages can be malicious
2062
+ or unstable. Add `minimumReleaseAge = 604800` under the `[install]` section to wait 7 days before resolving newly
2063
+ published package versions. Added in: v1.3 Reference: https://bun.sh/docs/runtime/bunfig
2064
+ category: security
2065
+ severity: medium
2066
+ confidence: medium
2067
+ languages:
2068
+ - generic
2069
+ patterns:
2070
+ - regex: .*
2071
+ message: >-
2072
+ This bunfig.toml does not set a minimum release age or sets it too low. Newly published packages can be
2073
+ malicious or unstable. Add `minimumReleaseAge = 604800` under the `[install]` section to wait 7 days before
2074
+ resolving newly published package versions. Added in: v1.3 Reference: https://bun.sh/docs/runtime/bunfig
2075
+ cwe:
2076
+ - CWE-829
2077
+ owasp:
2078
+ - A08:2021
2079
+ references:
2080
+ - https://bun.sh/docs/runtime/bunfig
2081
+ tags:
2082
+ - bun
2083
+ - javascript
2084
+ - id: npm-missing-minimum-release-age
2085
+ name: npm-missing-minimum-release-age
2086
+ description: >-
2087
+ This .npmrc does not set a minimum release age or sets it too low. Newly published packages can be malicious or
2088
+ unstable. Add `min-release-age = 7` to wait 7 days before resolving newly published package versions. Added in:
2089
+ v11.10 Reference:
2090
+ https://github.blog/changelog/2026-02-18-npm-bulk-trusted-publishing-config-and-script-security-now-generally-available/
2091
+ category: security
2092
+ severity: medium
2093
+ confidence: medium
2094
+ languages:
2095
+ - generic
2096
+ patterns:
2097
+ - regex: .*
2098
+ message: >-
2099
+ This .npmrc does not set a minimum release age or sets it too low. Newly published packages can be malicious
2100
+ or unstable. Add `min-release-age = 7` to wait 7 days before resolving newly published package versions. Added
2101
+ in: v11.10 Reference:
2102
+ https://github.blog/changelog/2026-02-18-npm-bulk-trusted-publishing-config-and-script-security-now-generally-available/
2103
+ cwe:
2104
+ - CWE-829
2105
+ owasp:
2106
+ - A08:2021
2107
+ references:
2108
+ - >-
2109
+ https://github.blog/changelog/2026-02-18-npm-bulk-trusted-publishing-config-and-script-security-now-generally-available/
2110
+ - https://github.com/npm/cli/pull/8965
2111
+ tags:
2112
+ - npm
2113
+ - javascript
2114
+ - id: poetry-missing-solver-min-release-age
2115
+ name: poetry-missing-solver-min-release-age
2116
+ description: >-
2117
+ This poetry.toml does not set a dependency cooldown via `solver.min-release-age`. Without a cooldown, Poetry may
2118
+ resolve newly published package versions that have not yet been vetted by the community. Supply chain attacks
2119
+ frequently involve publishing a malicious version of a popular package and waiting for it to be pulled in — most
2120
+ are detected and removed within days. Set `min-release-age = 7` under `[solver]` to require that package versions
2121
+ are at least 7 days old before they are considered during dependency resolution. Added in: v2.4.0
2122
+ category: security
2123
+ severity: medium
2124
+ confidence: medium
2125
+ languages:
2126
+ - generic
2127
+ patterns:
2128
+ - regex: (?m)^\[solver\]\n(?:^(?!min-release-age|\[|---).*\n)*(?=^\[|^---|\z)
2129
+ message: >-
2130
+ This poetry.toml does not set a dependency cooldown via `solver.min-release-age`. Without a cooldown, Poetry
2131
+ may resolve newly published package versions that have not yet been vetted by the community. Supply chain
2132
+ attacks frequently involve publishing a malicious version of a popular package and waiting for it to be pulled
2133
+ in — most are detected and removed within days. Set `min-release-age = 7` under `[solver]` to require that
2134
+ package versions are at least 7 days old before they are considered during dependency resolution. Added in:
2135
+ v2.4.0
2136
+ - regex: (?ms)^\[solver\](?:[^\[]*?)min-release-age\s*=\s*(?P<TARGET>"[^"]*"|[0-6](?:\s|#|$)|false)
2137
+ message: >-
2138
+ This poetry.toml does not set a dependency cooldown via `solver.min-release-age`. Without a cooldown, Poetry
2139
+ may resolve newly published package versions that have not yet been vetted by the community. Supply chain
2140
+ attacks frequently involve publishing a malicious version of a popular package and waiting for it to be pulled
2141
+ in — most are detected and removed within days. Set `min-release-age = 7` under `[solver]` to require that
2142
+ package versions are at least 7 days old before they are considered during dependency resolution. Added in:
2143
+ v2.4.0
2144
+ cwe:
2145
+ - CWE-829
2146
+ owasp:
2147
+ - A08:2021
2148
+ references:
2149
+ - https://python-poetry.org/docs/configuration/#solvermin-release-age
2150
+ tags:
2151
+ - poetry
2152
+ - python
2153
+ - id: uv-missing-dependency-cooldown
2154
+ name: uv-missing-dependency-cooldown
2155
+ description: >-
2156
+ This pyproject.toml configures uv but does not set a dependency cooldown. Newly published packages can be
2157
+ malicious or unstable. Add `exclude-newer = "7 days"` under `[tool.uv]` to wait 7 days before resolving newly
2158
+ published package versions. Added in: 0.9.17 Reference:
2159
+ https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns
2160
+ category: security
2161
+ severity: medium
2162
+ confidence: medium
2163
+ languages:
2164
+ - generic
2165
+ patterns:
2166
+ - regex: .*
2167
+ message: >-
2168
+ This pyproject.toml configures uv but does not set a dependency cooldown. Newly published packages can be
2169
+ malicious or unstable. Add `exclude-newer = "7 days"` under `[tool.uv]` to wait 7 days before resolving newly
2170
+ published package versions. Added in: 0.9.17 Reference:
2171
+ https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns
2172
+ cwe:
2173
+ - CWE-829
2174
+ owasp:
2175
+ - A08:2021
2176
+ references:
2177
+ - https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns
2178
+ tags:
2179
+ - uv
2180
+ - python
2181
+ - id: laravel-blade-form-missing-csrf
2182
+ name: laravel-blade-form-missing-csrf
2183
+ description: >-
2184
+ Detected a form executing a state-changing HTTP method `$METHOD` to route definition `$...ROUTE` without a Laravel
2185
+ CSRF decorator or explicit CSRF token implementation. If this form modifies sensitive state this will open your
2186
+ application to Cross-Site Request Forgery (CSRF) attacks.
2187
+ category: api-security
2188
+ severity: medium
2189
+ confidence: medium
2190
+ languages:
2191
+ - generic
2192
+ patterns:
2193
+ - pattern: |
2194
+ action="$...ROUTE"
2195
+ message: >-
2196
+ Detected a form executing a state-changing HTTP method `$METHOD` to route definition `$...ROUTE` without a
2197
+ Laravel CSRF decorator or explicit CSRF token implementation. If this form modifies sensitive state this will
2198
+ open your application to Cross-Site Request Forgery (CSRF) attacks.
2199
+ cwe:
2200
+ - CWE-352
2201
+ owasp:
2202
+ - A01:2021
2203
+ - A01:2025
2204
+ references:
2205
+ - https://laravel.com/docs/9.x/csrf
2206
+ tags:
2207
+ - php
2208
+ - laravel
2209
+ - blade
2210
+ - id: template-blocktranslate-no-escape
2211
+ name: template-blocktranslate-no-escape
2212
+ description: >-
2213
+ Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where
2214
+ translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly
2215
+ escape a translated text.
2216
+ category: security
2217
+ severity: low
2218
+ confidence: medium
2219
+ languages:
2220
+ - generic
2221
+ patterns:
2222
+ - regex: .*
2223
+ message: >-
2224
+ Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where
2225
+ translators could include malicious script tags in their translations. Consider using `force_escape` to
2226
+ explicitly escape a translated text.
2227
+ cwe:
2228
+ - CWE-79
2229
+ owasp:
2230
+ - A07:2017
2231
+ - A03:2021
2232
+ - A05:2025
2233
+ references:
2234
+ - >-
2235
+ https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates
2236
+ - https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code
2237
+ tags:
2238
+ - django
2239
+ - id: template-translate-as-no-escape
2240
+ name: template-translate-as-no-escape
2241
+ description: >-
2242
+ Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where
2243
+ translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly
2244
+ escape a translated text.
2245
+ category: security
2246
+ severity: low
2247
+ confidence: medium
2248
+ languages:
2249
+ - generic
2250
+ patterns:
2251
+ - regex: .*
2252
+ message: >-
2253
+ Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where
2254
+ translators could include malicious script tags in their translations. Consider using `force_escape` to
2255
+ explicitly escape a translated text.
2256
+ cwe:
2257
+ - CWE-79
2258
+ owasp:
2259
+ - A07:2017
2260
+ - A03:2021
2261
+ - A05:2025
2262
+ references:
2263
+ - >-
2264
+ https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates
2265
+ - https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code
2266
+ tags:
2267
+ - django
2268
+ - id: django-no-csrf-token
2269
+ name: django-no-csrf-token
2270
+ description: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks.
2271
+ category: secrets
2272
+ severity: medium
2273
+ confidence: medium
2274
+ languages:
2275
+ - generic
2276
+ patterns:
2277
+ - pattern: <form...>...</form>
2278
+ message: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks.
2279
+ cwe:
2280
+ - CWE-352
2281
+ owasp: []
2282
+ references:
2283
+ - https://docs.djangoproject.com/en/4.2/howto/csrf/
2284
+ tags:
2285
+ - django
2286
+ - id: template-unquoted-attribute-var
2287
+ name: template-unquoted-attribute-var
2288
+ description: >-
2289
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
2290
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{ $...VAR }}".
2291
+ category: security
2292
+ severity: medium
2293
+ confidence: medium
2294
+ languages:
2295
+ - generic
2296
+ patterns:
2297
+ - pattern: '={{$...VAR}}'
2298
+ message: >-
2299
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
2300
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{ $...VAR }}".
2301
+ cwe:
2302
+ - CWE-79
2303
+ owasp:
2304
+ - A07:2017
2305
+ - A03:2021
2306
+ - A05:2025
2307
+ references:
2308
+ - https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss
2309
+ tags:
2310
+ - flask
2311
+ - id: alias-for-html-safe
2312
+ name: alias-for-html-safe
2313
+ description: >-
2314
+ The syntax `<%== ... %>` is an alias for `html_safe`. This means the content inside these tags will be rendered as
2315
+ raw HTML. This may expose your application to cross-site scripting. If you need raw HTML, prefer using the more
2316
+ explicit `html_safe` and be sure to correctly sanitize variables using a library such as DOMPurify.
2317
+ category: security
2318
+ severity: medium
2319
+ confidence: medium
2320
+ languages:
2321
+ - generic
2322
+ patterns:
2323
+ - pattern: <%== ... %>
2324
+ message: >-
2325
+ The syntax `<%== ... %>` is an alias for `html_safe`. This means the content inside these tags will be
2326
+ rendered as raw HTML. This may expose your application to cross-site scripting. If you need raw HTML, prefer
2327
+ using the more explicit `html_safe` and be sure to correctly sanitize variables using a library such as
2328
+ DOMPurify.
2329
+ cwe:
2330
+ - CWE-79
2331
+ owasp:
2332
+ - A07:2017
2333
+ - A03:2021
2334
+ - A05:2025
2335
+ references:
2336
+ - >-
2337
+ https://medium.com/sumone-technical-blog/a-pretty-way-to-unescape-html-in-a-ruby-on-rails-application-efc22b850027
2338
+ - https://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html#:~:text===
2339
+ tags:
2340
+ - rails
2341
+ - id: avoid-content-tag
2342
+ name: avoid-content-tag
2343
+ description: >-
2344
+ 'content_tag' exhibits unintuitive escaping behavior and may accidentally expose your application to cross-site
2345
+ scripting. If using Rails 2, only attribute values are escaped. If using Rails 3, content and attribute values are
2346
+ escaped. Tag and attribute names are never escaped. Because of this, it is recommended to use 'html_safe' if you
2347
+ must render raw HTML data.
2348
+ category: security
2349
+ severity: medium
2350
+ confidence: medium
2351
+ languages:
2352
+ - generic
2353
+ patterns:
2354
+ - pattern: content_tag
2355
+ message: >-
2356
+ 'content_tag' exhibits unintuitive escaping behavior and may accidentally expose your application to
2357
+ cross-site scripting. If using Rails 2, only attribute values are escaped. If using Rails 3, content and
2358
+ attribute values are escaped. Tag and attribute names are never escaped. Because of this, it is recommended to
2359
+ use 'html_safe' if you must render raw HTML data.
2360
+ cwe:
2361
+ - CWE-79
2362
+ owasp:
2363
+ - A07:2017
2364
+ - A03:2021
2365
+ - A05:2025
2366
+ references:
2367
+ - https://brakemanscanner.org/docs/warning_types/content_tag/
2368
+ tags:
2369
+ - rails
2370
+ - id: avoid-html-safe
2371
+ name: avoid-html-safe
2372
+ description: >-
2373
+ 'html_safe' renders raw HTML. This means that normal HTML escaping is bypassed. If user data can be controlled
2374
+ here, this exposes your application to cross-site scripting (XSS). If you need to do this, be sure to correctly
2375
+ sanitize the data using a library such as DOMPurify.
2376
+ category: security
2377
+ severity: medium
2378
+ confidence: medium
2379
+ languages:
2380
+ - generic
2381
+ patterns:
2382
+ - pattern: $SOMETHING.html_safe
2383
+ message: >-
2384
+ 'html_safe' renders raw HTML. This means that normal HTML escaping is bypassed. If user data can be controlled
2385
+ here, this exposes your application to cross-site scripting (XSS). If you need to do this, be sure to
2386
+ correctly sanitize the data using a library such as DOMPurify.
2387
+ cwe:
2388
+ - CWE-79
2389
+ owasp:
2390
+ - A07:2017
2391
+ - A03:2021
2392
+ - A05:2025
2393
+ references:
2394
+ - https://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html#:~:text===
2395
+ - >-
2396
+ https://medium.com/sumone-technical-blog/a-pretty-way-to-unescape-html-in-a-ruby-on-rails-application-efc22b850027
2397
+ tags:
2398
+ - rails
2399
+ - id: avoid-raw
2400
+ name: avoid-raw
2401
+ description: >-
2402
+ 'raw' renders raw HTML, as the name implies. This means that normal HTML escaping is bypassed. If user data can be
2403
+ controlled here, this exposes your application to cross-site scripting (XSS). If you need to do this, be sure to
2404
+ correctly sanitize the data using a library such as DOMPurify.
2405
+ category: security
2406
+ severity: medium
2407
+ confidence: medium
2408
+ languages:
2409
+ - generic
2410
+ patterns:
2411
+ - pattern: raw
2412
+ message: >-
2413
+ 'raw' renders raw HTML, as the name implies. This means that normal HTML escaping is bypassed. If user data
2414
+ can be controlled here, this exposes your application to cross-site scripting (XSS). If you need to do this,
2415
+ be sure to correctly sanitize the data using a library such as DOMPurify.
2416
+ cwe:
2417
+ - CWE-79
2418
+ owasp:
2419
+ - A07:2017
2420
+ - A03:2021
2421
+ - A05:2025
2422
+ references:
2423
+ - https://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html#:~:text===
2424
+ - >-
2425
+ https://medium.com/sumone-technical-blog/a-pretty-way-to-unescape-html-in-a-ruby-on-rails-application-efc22b850027
2426
+ tags:
2427
+ - rails
2428
+ - id: dangerous-link-to
2429
+ name: dangerous-link-to
2430
+ description: >-
2431
+ Detected a template variable used in 'link_to'. This will generate dynamic data in the 'href' attribute. This
2432
+ allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If
2433
+ using a relative URL, start with a literal forward slash and concatenate the URL, like this: 'link_to "Here",
2434
+ "/"+@link'. You may also consider setting the Content Security Policy (CSP) header.
2435
+ category: security
2436
+ severity: medium
2437
+ confidence: medium
2438
+ languages:
2439
+ - generic
2440
+ patterns:
2441
+ - pattern: link_to ... @$VAR
2442
+ message: >-
2443
+ Detected a template variable used in 'link_to'. This will generate dynamic data in the 'href' attribute. This
2444
+ allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks.
2445
+ If using a relative URL, start with a literal forward slash and concatenate the URL, like this: 'link_to
2446
+ "Here", "/"+@link'. You may also consider setting the Content Security Policy (CSP) header.
2447
+ cwe:
2448
+ - CWE-79
2449
+ owasp:
2450
+ - A07:2017
2451
+ - A03:2021
2452
+ - A05:2025
2453
+ references:
2454
+ - https://cheatsheetseries.owasp.org/cheatsheets/Ruby_on_Rails_Cheat_Sheet.html#cross-site-scripting-xss
2455
+ - https://brakemanscanner.org/docs/warning_types/link_to_href/
2456
+ tags:
2457
+ - rails
2458
+ - id: unquoted-attribute
2459
+ name: unquoted-attribute
2460
+ description: >-
2461
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
2462
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "<%= expr %>".
2463
+ category: security
2464
+ severity: medium
2465
+ confidence: medium
2466
+ languages:
2467
+ - generic
2468
+ patterns:
2469
+ - pattern: <%= ... %>
2470
+ message: >-
2471
+ Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject custom
2472
+ JavaScript handlers. To fix this, add quotes around the template expression, like this: "<%= expr %>".
2473
+ cwe:
2474
+ - CWE-79
2475
+ owasp:
2476
+ - A07:2017
2477
+ - A03:2021
2478
+ - A05:2025
2479
+ references:
2480
+ - https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails#unquoted-attributes
2481
+ - https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss
2482
+ tags:
2483
+ - rails
2484
+ - id: check-dynamic-render-local-file-include
2485
+ name: check-dynamic-render-local-file-include
2486
+ description: >-
2487
+ Found request parameters in a call to `render` in a dynamic context. This can allow end users to request arbitrary
2488
+ local files which may result in leaking sensitive information persisted on disk.
2489
+ category: file-ops
2490
+ severity: medium
2491
+ confidence: medium
2492
+ languages:
2493
+ - generic
2494
+ patterns:
2495
+ - pattern: |
2496
+ params[...]
2497
+ message: >-
2498
+ Found request parameters in a call to `render` in a dynamic context. This can allow end users to request
2499
+ arbitrary local files which may result in leaking sensitive information persisted on disk.
2500
+ cwe:
2501
+ - CWE-22
2502
+ owasp:
2503
+ - A05:2017
2504
+ - A01:2021
2505
+ - A01:2025
2506
+ references:
2507
+ - >-
2508
+ https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion
2509
+ - >-
2510
+ https://github.com/presidentbeef/brakeman/blob/f74cb53ead47f0af821d98b5b41e16d63100c240/test/apps/rails2/app/views/home/test_render.html.erb
2511
+ tags:
2512
+ - ruby
2513
+ - rails
2514
+ - id: check-reverse-tabnabbing
2515
+ name: check-reverse-tabnabbing
2516
+ description: >-
2517
+ Setting an anchor target of `_blank` without the `noopener` or `noreferrer` attribute allows reverse tabnabbing on
2518
+ Internet Explorer, Opera, and Android Webview.
2519
+ category: security
2520
+ severity: medium
2521
+ confidence: medium
2522
+ languages:
2523
+ - generic
2524
+ patterns:
2525
+ - pattern: |
2526
+ _blank
2527
+ message: >-
2528
+ Setting an anchor target of `_blank` without the `noopener` or `noreferrer` attribute allows reverse
2529
+ tabnabbing on Internet Explorer, Opera, and Android Webview.
2530
+ cwe:
2531
+ - CWE-1022
2532
+ owasp: []
2533
+ references:
2534
+ - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#browser_compatibility
2535
+ - https://github.com/presidentbeef/brakeman/blob/3f5d5d5/test/apps/rails5/app/views/users/show.html.erb
2536
+ tags:
2537
+ - ruby
2538
+ - rails
2539
+ - id: scalac-debug
2540
+ name: scalac-debug
2541
+ description: >-
2542
+ Scala applications built with `debug` set to true in production may leak debug information to attackers. Debug
2543
+ mode also affects performance and reliability. Remove it from configuration.
2544
+ category: security
2545
+ severity: medium
2546
+ confidence: medium
2547
+ languages:
2548
+ - generic
2549
+ patterns:
2550
+ - regex: .*
2551
+ message: >-
2552
+ Scala applications built with `debug` set to true in production may leak debug information to attackers. Debug
2553
+ mode also affects performance and reliability. Remove it from configuration.
2554
+ cwe:
2555
+ - CWE-489
2556
+ owasp:
2557
+ - A05:2021
2558
+ references:
2559
+ - https://docs.scala-lang.org/overviews/compiler-options/index.html
2560
+ tags:
2561
+ - scala
2562
+ - sbt
2563
+ - id: conf-csrf-headers-bypass
2564
+ name: conf-csrf-headers-bypass
2565
+ description: >-
2566
+ Possibly bypassable CSRF configuration found. CSRF is an attack that forces an end user to execute unwanted
2567
+ actions on a web application in which they’re currently authenticated. Make sure that Content-Type black list is
2568
+ configured and CORS filter is turned on.
2569
+ category: api-security
2570
+ severity: high
2571
+ confidence: medium
2572
+ languages:
2573
+ - generic
2574
+ patterns:
2575
+ - regex: .*
2576
+ message: >-
2577
+ Possibly bypassable CSRF configuration found. CSRF is an attack that forces an end user to execute unwanted
2578
+ actions on a web application in which they’re currently authenticated. Make sure that Content-Type black list
2579
+ is configured and CORS filter is turned on.
2580
+ cwe:
2581
+ - CWE-352
2582
+ owasp:
2583
+ - A01:2021
2584
+ - A01:2025
2585
+ references:
2586
+ - https://www.playframework.com/documentation/2.8.x/Migration25#CSRF-changes
2587
+ - https://owasp.org/www-community/attacks/csrf
2588
+ tags:
2589
+ - scala
2590
+ - play
2591
+ - id: conf-insecure-cookie-settings
2592
+ name: conf-insecure-cookie-settings
2593
+ description: >-
2594
+ Session cookie `Secure` flag is explicitly disabled. The `secure` flag for cookies prevents the client from
2595
+ transmitting the cookie over insecure channels such as HTTP. Set the `Secure` flag by setting `secure` to `true`
2596
+ in configuration file.
2597
+ category: security
2598
+ severity: medium
2599
+ confidence: medium
2600
+ languages:
2601
+ - generic
2602
+ patterns:
2603
+ - pattern: secure = false
2604
+ message: >-
2605
+ Session cookie `Secure` flag is explicitly disabled. The `secure` flag for cookies prevents the client from
2606
+ transmitting the cookie over insecure channels such as HTTP. Set the `Secure` flag by setting `secure` to
2607
+ `true` in configuration file.
2608
+ cwe:
2609
+ - CWE-614
2610
+ owasp:
2611
+ - A05:2021
2612
+ - A02:2025
2613
+ references:
2614
+ - https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#security
2615
+ - https://www.playframework.com/documentation/2.8.x/SettingsSession#Session-Configuration
2616
+ tags:
2617
+ - play
2618
+ - scala
2619
+ - id: twirl-html-var
2620
+ name: twirl-html-var
2621
+ description: >-
2622
+ Raw html content controlled by a variable detected. You may be accidentally bypassing secure methods of rendering
2623
+ HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let
2624
+ attackers steal sensitive user data. Try to avoid using `Html()` or consider properly sanitizing input data.
2625
+ category: security
2626
+ severity: medium
2627
+ confidence: medium
2628
+ languages:
2629
+ - generic
2630
+ patterns:
2631
+ - regex: .*
2632
+ message: >-
2633
+ Raw html content controlled by a variable detected. You may be accidentally bypassing secure methods of
2634
+ rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which
2635
+ could let attackers steal sensitive user data. Try to avoid using `Html()` or consider properly sanitizing
2636
+ input data.
2637
+ cwe:
2638
+ - CWE-79
2639
+ owasp:
2640
+ - A07:2017
2641
+ - A03:2021
2642
+ - A05:2025
2643
+ references:
2644
+ - https://www.playframework.com/documentation/2.8.x/ScalaTemplates#Escaping
2645
+ tags:
2646
+ - scala
2647
+ - play
2648
+ - twirl
2649
+ - id: unchecked-subprocess-call-1
2650
+ name: unchecked-subprocess-call-1
2651
+ description: No description provided
2652
+ category: security
2653
+ severity: medium
2654
+ confidence: medium
2655
+ languages:
2656
+ - '*'
2657
+ patterns:
2658
+ - regex: .*
2659
+ message: ''
2660
+ cwe: []
2661
+ owasp: []
2662
+ references: []
2663
+ tags: []
2664
+ - id: unchecked-subprocess-call
2665
+ name: unchecked-subprocess-call
2666
+ description: No description provided
2667
+ category: security
2668
+ severity: medium
2669
+ confidence: medium
2670
+ languages:
2671
+ - '*'
2672
+ patterns:
2673
+ - regex: .*
2674
+ message: ''
2675
+ cwe: []
2676
+ owasp: []
2677
+ references: []
2678
+ tags: []
2679
+ - id: unchecked-subprocess-call-2
2680
+ name: unchecked-subprocess-call-2
2681
+ description: No description provided
2682
+ category: security
2683
+ severity: medium
2684
+ confidence: medium
2685
+ languages:
2686
+ - '*'
2687
+ patterns:
2688
+ - regex: .*
2689
+ message: ''
2690
+ cwe: []
2691
+ owasp: []
2692
+ references: []
2693
+ tags: []
2694
+ - id: unchecked-subprocess-call-3
2695
+ name: unchecked-subprocess-call-3
2696
+ description: No description provided
2697
+ category: security
2698
+ severity: medium
2699
+ confidence: medium
2700
+ languages:
2701
+ - '*'
2702
+ patterns:
2703
+ - regex: .*
2704
+ message: ''
2705
+ cwe: []
2706
+ owasp: []
2707
+ references: []
2708
+ tags: []
2709
+ - id: subprocess-run
2710
+ name: subprocess-run
2711
+ description: bad stuff
2712
+ category: security
2713
+ severity: medium
2714
+ confidence: medium
2715
+ languages:
2716
+ - '*'
2717
+ patterns:
2718
+ - regex: .*
2719
+ message: bad stuff
2720
+ cwe: []
2721
+ owasp: []
2722
+ references: []
2723
+ tags: []
2724
+ - id: subprocess-run-2
2725
+ name: subprocess-run-2
2726
+ description: bad stuff
2727
+ category: security
2728
+ severity: medium
2729
+ confidence: medium
2730
+ languages:
2731
+ - '*'
2732
+ patterns:
2733
+ - regex: .*
2734
+ message: bad stuff
2735
+ cwe: []
2736
+ owasp: []
2737
+ references: []
2738
+ tags: []
2739
+ - id: other-rule
2740
+ name: other-rule
2741
+ description: No description provided
2742
+ category: security
2743
+ severity: low
2744
+ confidence: medium
2745
+ languages:
2746
+ - generic
2747
+ patterns:
2748
+ - pattern: <div>hello</div>
2749
+ message: ''
2750
+ cwe: []
2751
+ owasp: []
2752
+ references: []
2753
+ tags: []
2754
+ - id: other-rule-2
2755
+ name: other-rule-2
2756
+ description: No description provided
2757
+ category: security
2758
+ severity: low
2759
+ confidence: medium
2760
+ languages:
2761
+ - generic
2762
+ patterns:
2763
+ - pattern: <div>hello</div>
2764
+ message: ''
2765
+ cwe: []
2766
+ owasp: []
2767
+ references: []
2768
+ tags: []
2769
+ - id: bad-1
2770
+ name: bad-1
2771
+ description: |
2772
+ a
2773
+ b
2774
+ category: security
2775
+ severity: medium
2776
+ confidence: medium
2777
+ languages:
2778
+ - '*'
2779
+ patterns:
2780
+ - pattern: ...
2781
+ message: |
2782
+ a
2783
+ b
2784
+ cwe: []
2785
+ owasp: []
2786
+ references: []
2787
+ tags: []
2788
+ - id: bad-2
2789
+ name: bad-2
2790
+ description: |-
2791
+ a
2792
+ b
2793
+ category: security
2794
+ severity: medium
2795
+ confidence: medium
2796
+ languages:
2797
+ - '*'
2798
+ patterns:
2799
+ - pattern: ...
2800
+ message: |-
2801
+ a
2802
+ b
2803
+ cwe: []
2804
+ owasp: []
2805
+ references: []
2806
+ tags: []
2807
+ - id: good-1
2808
+ name: good-1
2809
+ description: a b
2810
+ category: security
2811
+ severity: medium
2812
+ confidence: medium
2813
+ languages:
2814
+ - '*'
2815
+ patterns:
2816
+ - pattern: ...
2817
+ message: a b
2818
+ cwe: []
2819
+ owasp: []
2820
+ references: []
2821
+ tags: []
2822
+ - id: unchecked-subprocess-call1
2823
+ name: unchecked-subprocess-call1
2824
+ description: test
2825
+ category: security
2826
+ severity: medium
2827
+ confidence: medium
2828
+ languages:
2829
+ - '*'
2830
+ patterns:
2831
+ - regex: .*
2832
+ message: test
2833
+ cwe: []
2834
+ owasp: []
2835
+ references: []
2836
+ tags: []
2837
+ - id: unchecked-subprocess-call2
2838
+ name: unchecked-subprocess-call2
2839
+ description: test
2840
+ category: security
2841
+ severity: medium
2842
+ confidence: medium
2843
+ languages:
2844
+ - '*'
2845
+ patterns:
2846
+ - pattern: subprocess.call3(...)
2847
+ message: test
2848
+ cwe: []
2849
+ owasp: []
2850
+ references: []
2851
+ tags: []
2852
+ - id: unchecked-subprocess-call3
2853
+ name: unchecked-subprocess-call3
2854
+ description: test
2855
+ category: security
2856
+ severity: medium
2857
+ confidence: medium
2858
+ languages:
2859
+ - '*'
2860
+ patterns:
2861
+ - regex: .*
2862
+ message: test
2863
+ cwe: []
2864
+ owasp: []
2865
+ references: []
2866
+ tags: []
2867
+ - id: unchecked-subprocess-call4
2868
+ name: unchecked-subprocess-call4
2869
+ description: test
2870
+ category: security
2871
+ severity: medium
2872
+ confidence: medium
2873
+ languages:
2874
+ - '*'
2875
+ patterns:
2876
+ - pattern: subprocess.call3(...)
2877
+ message: test
2878
+ cwe: []
2879
+ owasp: []
2880
+ references: []
2881
+ tags: []
2882
+ - id: unchecked-subprocess-call5
2883
+ name: unchecked-subprocess-call5
2884
+ description: test
2885
+ category: security
2886
+ severity: medium
2887
+ confidence: medium
2888
+ languages:
2889
+ - '*'
2890
+ patterns:
2891
+ - pattern: subprocess.call1(...)
2892
+ message: test
2893
+ cwe: []
2894
+ owasp: []
2895
+ references: []
2896
+ tags: []
2897
+ - id: unchecked-subprocess-call6
2898
+ name: unchecked-subprocess-call6
2899
+ description: test
2900
+ category: security
2901
+ severity: medium
2902
+ confidence: medium
2903
+ languages:
2904
+ - '*'
2905
+ patterns:
2906
+ - pattern: subprocess.call1(...)
2907
+ message: test
2908
+ - pattern: subprocess.call2(...)
2909
+ message: test
2910
+ cwe: []
2911
+ owasp: []
2912
+ references: []
2913
+ tags: []
2914
+ - id: unchecked-subprocess-call7
2915
+ name: unchecked-subprocess-call7
2916
+ description: test
2917
+ category: security
2918
+ severity: medium
2919
+ confidence: medium
2920
+ languages:
2921
+ - '*'
2922
+ patterns:
2923
+ - pattern: subprocess.call1(...)
2924
+ message: test
2925
+ cwe: []
2926
+ owasp: []
2927
+ references: []
2928
+ tags: []
2929
+ - id: unchecked-subprocess-call8
2930
+ name: unchecked-subprocess-call8
2931
+ description: test
2932
+ category: security
2933
+ severity: medium
2934
+ confidence: medium
2935
+ languages:
2936
+ - '*'
2937
+ patterns:
2938
+ - pattern: subprocess.call1(...)
2939
+ message: test
2940
+ - pattern: subprocess.call2(...)
2941
+ message: test
2942
+ cwe: []
2943
+ owasp: []
2944
+ references: []
2945
+ tags: []