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,94 @@
1
+ rules:
2
+ - id: https-equiv
3
+ name: https-equiv
4
+ description: The correct attribute name for this meta tag is `http-equiv`, not `https-equiv`.
5
+ category: security
6
+ severity: high
7
+ confidence: medium
8
+ languages:
9
+ - html
10
+ patterns:
11
+ - pattern: <meta ... https-equiv=...>
12
+ message: The correct attribute name for this meta tag is `http-equiv`, not `https-equiv`.
13
+ cwe: []
14
+ owasp: []
15
+ references:
16
+ - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv
17
+ tags:
18
+ - html
19
+ - id: eval-detected
20
+ name: eval-detected
21
+ description: >-
22
+ Detected the use of eval(...). This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from
23
+ user-provided input. Follow OWASP best practices to ensure you handle XSS within a JavaScript context correct,
24
+ and consider using safer APIs to evaluate user-input such as JSON.parse(...).
25
+ category: injection
26
+ severity: medium
27
+ confidence: medium
28
+ languages:
29
+ - html
30
+ patterns:
31
+ - regex: .*
32
+ message: >-
33
+ Detected the use of eval(...). This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes
34
+ from user-provided input. Follow OWASP best practices to ensure you handle XSS within a JavaScript context
35
+ correct, and consider using safer APIs to evaluate user-input such as JSON.parse(...).
36
+ cwe:
37
+ - CWE-79
38
+ owasp:
39
+ - A07:2017
40
+ - A03:2021
41
+ - A05:2025
42
+ references:
43
+ - https://owasp.org/Top10/A03_2021-Injection
44
+ - https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
45
+ tags:
46
+ - browser
47
+ - id: insecure-document-method
48
+ name: insecure-document-method
49
+ description: >-
50
+ Detected the use of an inner/outerHTML assignment. This can introduce a Cross-Site-Scripting (XSS) vulnerability
51
+ if this comes from user-provided input. If you have to use a dangerous web API, consider using a sanitization
52
+ library such as DOMPurify to sanitize the HTML before it is assigned.
53
+ category: security
54
+ severity: medium
55
+ confidence: medium
56
+ languages:
57
+ - html
58
+ patterns:
59
+ - regex: .*
60
+ message: >-
61
+ Detected the use of an inner/outerHTML assignment. This can introduce a Cross-Site-Scripting (XSS)
62
+ vulnerability if this comes from user-provided input. If you have to use a dangerous web API, consider using
63
+ a sanitization library such as DOMPurify to sanitize the HTML before it is assigned.
64
+ cwe:
65
+ - CWE-79
66
+ owasp:
67
+ - A07:2017
68
+ - A03:2021
69
+ - A05:2025
70
+ references:
71
+ - https://owasp.org/Top10/A03_2021-Injection
72
+ tags:
73
+ - browser
74
+ - id: plaintext-http-link
75
+ name: plaintext-http-link
76
+ description: This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
77
+ category: security
78
+ severity: medium
79
+ confidence: medium
80
+ languages:
81
+ - html
82
+ patterns:
83
+ - pattern: <a href="$URL">...</a>
84
+ message: This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
85
+ cwe:
86
+ - CWE-319
87
+ owasp:
88
+ - A03:2017
89
+ - A02:2021
90
+ - A04:2025
91
+ references:
92
+ - https://cwe.mitre.org/data/definitions/319.html
93
+ tags:
94
+ - html