@zhuma4/cli 4.0.0-alpha.1 → 4.3.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 (1128) hide show
  1. package/package.json +10 -3
  2. package/rules/common/zm-go-cwe1336-template-injection.yaml +38 -0
  3. package/rules/common/zm-go-cwe200-grpc-metadata.yaml +40 -0
  4. package/rules/common/zm-go-cwe319-grpc-notls.yaml +118 -0
  5. package/rules/common/zm-go-cwe338-weak-prng.yaml +117 -0
  6. package/rules/common/zm-go-cwe347-jwt.yaml +147 -0
  7. package/rules/common/zm-go-cwe693-gin-middleware.yaml +48 -0
  8. package/rules/common/zm-go-cwe693-security-headers.yaml +120 -0
  9. package/rules/common/zm-java-crypto-cwe327-001.yaml +103 -0
  10. package/rules/common/zm-java-deserial-cwe502-001.yaml +72 -0
  11. package/rules/common/zm-java-expression-cwe94-001.yaml +110 -0
  12. package/rules/common/zm-java-file-cwe22-001.yaml +73 -0
  13. package/rules/common/zm-java-hql-cwe89-001.yaml +72 -0
  14. package/rules/common/zm-java-jndi-cwe502-001.yaml +107 -0
  15. package/rules/common/zm-java-oauth-cwe287-001.yaml +136 -0
  16. package/rules/common/zm-java-rce-cwe78-001.yaml +98 -0
  17. package/rules/common/zm-java-springsec-cwe284-001.yaml +109 -0
  18. package/rules/common/zm-java-xstream-cwe502-001.yaml +73 -0
  19. package/rules/common/zm-java-xxe-cwe611-003.yaml +105 -0
  20. package/rules/common/zm-js-cwe20-nextjs-api-routes.yaml +141 -0
  21. package/rules/common/zm-js-cwe287-aws-lambda-config.yaml +107 -0
  22. package/rules/common/zm-js-cwe345-websocket-security.yaml +90 -0
  23. package/rules/common/zm-js-cwe501-graphql-injection.yaml +52 -0
  24. package/rules/common/zm-js-cwe502-deserialization-extended.yaml +107 -0
  25. package/rules/common/zm-js-cwe506-npm-supply-chain.yaml +19 -0
  26. package/rules/common/zm-js-cwe79-electron-security.yaml +35 -0
  27. package/rules/common/zm-js-cwe79-react-xss-deep.yaml +34 -0
  28. package/rules/common/zm-js-cwe89-prisma-typeorm.yaml +139 -0
  29. package/rules/common/zm-py-aiohttp-cwe295-cwe770-01.yaml +60 -0
  30. package/rules/common/zm-py-crypto-cwe327-01.yaml +33 -0
  31. package/rules/common/zm-py-deser-cwe502-01.yaml +66 -0
  32. package/rules/common/zm-py-django-cwe200-cwe798-cwe352-01.yaml +80 -0
  33. package/rules/common/zm-py-fastapi-cwe265-cwe284-01.yaml +48 -0
  34. package/rules/common/zm-py-flask-cwe200-cwe326-01.yaml +57 -0
  35. package/rules/common/zm-py-sqlalchemy-cwe89-01.yaml +65 -0
  36. package/rules/community-merged/cwe-1004/authtkt-cookie-httponly-unsafe-default.yaml +38 -0
  37. package/rules/community-merged/cwe-1004/authtkt-cookie-httponly-unsafe-value.yaml +41 -0
  38. package/rules/community-merged/cwe-1004/cookie-missing-httponly.yaml +42 -0
  39. package/rules/community-merged/cwe-1004/session-cookie-missing-httponly.yaml +41 -0
  40. package/rules/community-merged/cwe-1104/express-detect-notevil-usage.yaml +56 -0
  41. package/rules/community-merged/cwe-113/http-response-splitting.yaml +45 -0
  42. package/rules/community-merged/cwe-115/reverseproxy-director.yaml +34 -0
  43. package/rules/community-merged/cwe-116/autoescape-disabled-false.yaml +35 -0
  44. package/rules/community-merged/cwe-116/detect-disable-mustache-escape.yaml +28 -0
  45. package/rules/community-merged/cwe-116/incomplete-sanitization.yaml +33 -0
  46. package/rules/community-merged/cwe-116/missing-autoescape-disabled.yaml +34 -0
  47. package/rules/community-merged/cwe-116/no-scriptlets.yaml +32 -0
  48. package/rules/community-merged/cwe-116/use-escapexml.yaml +34 -0
  49. package/rules/community-merged/cwe-119/detect-buffer-noassert.yaml +33 -0
  50. package/rules/community-merged/cwe-1204/create-de-cipher-no-iv.yaml +32 -0
  51. package/rules/community-merged/cwe-1236/csv-writer-injection.yaml +56 -0
  52. package/rules/community-merged/cwe-1236/use-defusedcsv.yaml +38 -0
  53. package/rules/community-merged/cwe-1275/authtkt-cookie-samesite.yaml +36 -0
  54. package/rules/community-merged/cwe-1275/session-cookie-samesitenone.yaml +38 -0
  55. package/rules/community-merged/cwe-1275/set-cookie-samesite-unsafe-default.yaml +45 -0
  56. package/rules/community-merged/cwe-1333/detect-non-literal-regexp.yaml +46 -0
  57. package/rules/community-merged/cwe-1333/detect-redos.yaml +44 -0
  58. package/rules/community-merged/cwe-1333/java-pattern-from-string-parameter.yaml +38 -0
  59. package/rules/community-merged/cwe-1333/regex-dos.yaml +35 -0
  60. package/rules/community-merged/cwe-134/flask-api-method-string-format.yaml +37 -0
  61. package/rules/community-merged/cwe-134/unsafe-formatstring.yaml +52 -0
  62. package/rules/community-merged/cwe-150/autoescape-disabled.yaml +30 -0
  63. package/rules/community-merged/cwe-155/system-wildcard-detected.yaml +38 -0
  64. package/rules/community-merged/cwe-183/permissive-cors.yaml +78 -0
  65. package/rules/community-merged/cwe-20/django-using-request-post-after-is-valid.yaml +28 -0
  66. package/rules/community-merged/cwe-20/host-header-injection-python.yaml +46 -0
  67. package/rules/community-merged/cwe-200/bind.yaml +40 -0
  68. package/rules/community-merged/cwe-200/bind_all.yaml +32 -0
  69. package/rules/community-merged/cwe-200/spring-actuator-fully-enabled.yaml +33 -0
  70. package/rules/community-merged/cwe-200/url-rewriting.yaml +83 -0
  71. package/rules/community-merged/cwe-23/tainted-file-path.yaml +78 -0
  72. package/rules/community-merged/cwe-242/unsafe.yaml +25 -0
  73. package/rules/community-merged/cwe-250/docker-arbitrary-container-run.yaml +39 -0
  74. package/rules/community-merged/cwe-269/do-privileged-use.yaml +36 -0
  75. package/rules/community-merged/cwe-276/file_permission.yaml +32 -0
  76. package/rules/community-merged/cwe-276/insecure-file-permissions.yaml +64 -0
  77. package/rules/community-merged/cwe-276/overly-permissive-file-permission.yaml +50 -0
  78. package/rules/community-merged/cwe-287/unverified-jwt-decode.yaml +51 -0
  79. package/rules/community-merged/cwe-289/handler-assignment-from-multiple-sources.yaml +49 -0
  80. package/rules/community-merged/cwe-295/disabled-cert-validation.yaml +36 -0
  81. package/rules/community-merged/cwe-295/unverified-ssl-context.yaml +35 -0
  82. package/rules/community-merged/cwe-297/insecure-smtp-connection.yaml +35 -0
  83. package/rules/community-merged/cwe-300/grpc-client-insecure-connection.yaml +35 -0
  84. package/rules/community-merged/cwe-300/grpc-server-insecure-connection.yaml +45 -0
  85. package/rules/community-merged/cwe-310/aead-no-final.yaml +39 -0
  86. package/rules/community-merged/cwe-310/gcm-no-tag-length.yaml +35 -0
  87. package/rules/community-merged/cwe-319/cookie-issecure-false.yaml +38 -0
  88. package/rules/community-merged/cwe-319/detect-insecure-websocket.yaml +33 -0
  89. package/rules/community-merged/cwe-319/http-not-https-connection.yaml +29 -0
  90. package/rules/community-merged/cwe-319/security.yaml +36 -0
  91. package/rules/community-merged/cwe-319/sequelize-enforce-tls.yaml +61 -0
  92. package/rules/community-merged/cwe-319/unencrypted-socket.yaml +38 -0
  93. package/rules/community-merged/cwe-322/insecure_ssh.yaml +31 -0
  94. package/rules/community-merged/cwe-322/paramiko-implicit-trust-host-key.yaml +35 -0
  95. package/rules/community-merged/cwe-323/gcm-detection.yaml +39 -0
  96. package/rules/community-merged/cwe-323/gcm-nonce-reuse.yaml +30 -0
  97. package/rules/community-merged/cwe-326/insufficient-dsa-key-size.yaml +41 -0
  98. package/rules/community-merged/cwe-326/insufficient-ec-key-size.yaml +41 -0
  99. package/rules/community-merged/cwe-328/sha224-hash.yaml +46 -0
  100. package/rules/community-merged/cwe-328/use_of_weak_crypto.yaml +133 -0
  101. package/rules/community-merged/cwe-330/insecure-uuid-version.yaml +35 -0
  102. package/rules/community-merged/cwe-330/weak-random.yaml +32 -0
  103. package/rules/community-merged/cwe-338/detect-pseudoRandomBytes.yaml +33 -0
  104. package/rules/community-merged/cwe-345/jwt-decode-without-verify.yaml +39 -0
  105. package/rules/community-merged/cwe-345/jwt-parse-unverified.yaml +34 -0
  106. package/rules/community-merged/cwe-352/websocket-missing-origin-check.yaml +41 -0
  107. package/rules/community-merged/cwe-377/bad_tmp.yaml +30 -0
  108. package/rules/community-merged/cwe-400/ajv-allerrors-true.yaml +34 -0
  109. package/rules/community-merged/cwe-400/decompression_bomb.yaml +63 -0
  110. package/rules/community-merged/cwe-436/shared-url-struct-mutation.yaml +53 -0
  111. package/rules/community-merged/cwe-451/x-frame-options-misconfiguration.yaml +74 -0
  112. package/rules/community-merged/cwe-454/tainted-env-from-http-request.yaml +47 -0
  113. package/rules/community-merged/cwe-470/unsafe-reflect-by-name.yaml +44 -0
  114. package/rules/community-merged/cwe-470/unsafe-reflection.yaml +40 -0
  115. package/rules/community-merged/cwe-477/mongodb.yaml +27 -0
  116. package/rules/community-merged/cwe-489/debug-enabled.yaml +29 -0
  117. package/rules/community-merged/cwe-489/debug-template-tag.yaml +31 -0
  118. package/rules/community-merged/cwe-489/pprof.yaml +41 -0
  119. package/rules/community-merged/cwe-521/password-empty-string.yaml +40 -0
  120. package/rules/community-merged/cwe-521/use-none-for-password-default.yaml +43 -0
  121. package/rules/community-merged/cwe-522/express-cookie-settings.yaml +364 -0
  122. package/rules/community-merged/cwe-522/jwt-exposed-credentials.yaml +35 -0
  123. package/rules/community-merged/cwe-522/jwt-hardcode.yaml +31 -0
  124. package/rules/community-merged/cwe-522/remote-property-injection.yaml +76 -0
  125. package/rules/community-merged/cwe-523/no-auth-over-http.yaml +39 -0
  126. package/rules/community-merged/cwe-532/logger-credential-leak.yaml +38 -0
  127. package/rules/community-merged/cwe-548/express-check-directory-listing.yaml +55 -0
  128. package/rules/community-merged/cwe-548/fs-directory-listing.yaml +50 -0
  129. package/rules/community-merged/cwe-553/python-reverse-shell.yaml +33 -0
  130. package/rules/community-merged/cwe-601/express-open-redirect.yaml +115 -0
  131. package/rules/community-merged/cwe-601/open-redirect.yaml +96 -0
  132. package/rules/community-merged/cwe-614/cookie-missing-secure-flag.yaml +39 -0
  133. package/rules/community-merged/cwe-614/cookie-missing-secure.yaml +41 -0
  134. package/rules/community-merged/cwe-614/secure-cookies.yaml +60 -0
  135. package/rules/community-merged/cwe-614/secure-set-cookie.yaml +44 -0
  136. package/rules/community-merged/cwe-614/session-cookie-missing-secure.yaml +40 -0
  137. package/rules/community-merged/cwe-643/tainted-xpath-from-http-request.yaml +39 -0
  138. package/rules/community-merged/cwe-668/app-run-param-config.yaml +25 -0
  139. package/rules/community-merged/cwe-668/app-run-security-config.yaml +31 -0
  140. package/rules/community-merged/cwe-673/flask-url-for-external-true.yaml +35 -0
  141. package/rules/community-merged/cwe-704/bad-hexa-conversion.yaml +33 -0
  142. package/rules/community-merged/cwe-704/nan-injection.yaml +46 -0
  143. package/rules/community-merged/cwe-706/non-literal-import.yaml +31 -0
  144. package/rules/community-merged/cwe-706/require-request.yaml +67 -0
  145. package/rules/community-merged/cwe-706/res-render-injection.yaml +70 -0
  146. package/rules/community-merged/cwe-73/express-res-sendfile.yaml +77 -0
  147. package/rules/community-merged/cwe-73/secure-static-file-serve.yaml +30 -0
  148. package/rules/community-merged/cwe-74/xss-html-email-body.yaml +204 -0
  149. package/rules/community-merged/cwe-74/xss-send-mail-html-message.yaml +242 -0
  150. package/rules/community-merged/cwe-770/missing-throttle-config.yaml +38 -0
  151. package/rules/community-merged/cwe-776/use-defused-xmlrpc.yaml +32 -0
  152. package/rules/community-merged/cwe-798/express-jwt-hardcoded-secret.yaml +57 -0
  153. package/rules/community-merged/cwe-798/express-session-hardcoded-secret.yaml +58 -0
  154. package/rules/community-merged/cwe-798/jwt-hardcode.yaml +55 -0
  155. package/rules/community-merged/cwe-80/unsafe-serialize-javascript.yaml +33 -0
  156. package/rules/community-merged/cwe-863/security-constraint-http-method.yaml +32 -0
  157. package/rules/community-merged/cwe-90/ldap-entry-poisoning.yaml +42 -0
  158. package/rules/community-merged/cwe-90/ldap-injection.yaml +83 -0
  159. package/rules/community-merged/cwe-91/twiml-injection.yaml +51 -0
  160. package/rules/community-merged/cwe-913/dynamic-httptrace-clienttrace.yaml +40 -0
  161. package/rules/community-merged/cwe-913/reflect-makefunc.yaml +28 -0
  162. package/rules/community-merged/cwe-915/mass-assignment.yaml +33 -0
  163. package/rules/community-merged/cwe-915/tainted-sql-string.yaml +48 -0
  164. package/rules/community-merged/cwe-916/unsafe-argon2-config.yaml +48 -0
  165. package/rules/community-merged/cwe-926/exported_activity.yaml +39 -0
  166. package/rules/community-merged/cwe-93/crlf-injection-logs.yaml +87 -0
  167. package/rules/community-merged/cwe-93/request-data-write.yaml +200 -0
  168. package/rules/community-merged/cwe-939/dynamic-urllib-use-detected.yaml +58 -0
  169. package/rules/community-merged/cwe-94/dangerous-exec-cmd.yaml +87 -0
  170. package/rules/community-merged/cwe-94/dangerous-exec-command.yaml +63 -0
  171. package/rules/community-merged/cwe-942/wildcard-cors.yaml +39 -0
  172. package/rules/community-merged/cwe-95/seam-log-injection.yaml +41 -0
  173. package/rules/community-merged/cwe-95/spring-jsp-eval.yaml +30 -0
  174. package/rules/community-merged/cwe-95/user-eval.yaml +67 -0
  175. package/rules/community-merged/cwe-95/user-exec.yaml +67 -0
  176. package/rules/community-merged/cwe-96/globals-as-template-context.yaml +41 -0
  177. package/rules/community-merged/cwe-96/locals-as-template-context.yaml +41 -0
  178. package/rules/iac/ansible/zm-ansible-cwe269-privilege-escalation.yaml +12 -0
  179. package/rules/iac/ansible/zm-ansible-cwe532-no-log.yaml +42 -0
  180. package/rules/iac/ansible/zm-ansible-cwe78-unsafe-module.yaml +75 -0
  181. package/rules/iac/ansible/zm-ansible-cwe798-mysql-lineinfile.yaml +86 -0
  182. package/rules/iac/terraform/zm-tf-cwe284-gcp-firewall-eks.yaml +78 -0
  183. package/rules/iac/terraform/zm-tf-cwe284-sg-world-ingress.yaml +70 -0
  184. package/rules/iac/terraform/zm-tf-cwe285-iam-wildcard.yaml +46 -0
  185. package/rules/iac/terraform/zm-tf-cwe312-state-secrets.yaml +46 -0
  186. package/rules/iac/terraform/zm-tf-cwe319-azure-storage-mysql.yaml +69 -0
  187. package/rules/iac/terraform/zm-tf-cwe798-ecs-lambda-secrets.yaml +85 -0
  188. package/rules/iac/zm-docker-cwe1104-add-instead-of-copy.yaml +37 -0
  189. package/rules/iac/zm-docker-cwe1104-base-image.yaml +61 -0
  190. package/rules/iac/zm-docker-cwe1104-cleanup-dockerignore.yaml +67 -0
  191. package/rules/iac/zm-docker-cwe1104-multistage.yaml +33 -0
  192. package/rules/iac/zm-docker-cwe1104-package-cache.yaml +72 -0
  193. package/rules/iac/zm-docker-cwe250-docker-sock.yaml +31 -0
  194. package/rules/iac/zm-docker-cwe250-suid.yaml +33 -0
  195. package/rules/iac/zm-docker-cwe311-secrets-in-build-arg.yaml +64 -0
  196. package/rules/iac/zm-docker-cwe400-resource-limit.yaml +18 -6
  197. package/rules/iac/zm-docker-cwe668-workdir.yaml +36 -0
  198. package/rules/iac/zm-docker-cwe754-healthcheck.yaml +38 -0
  199. package/rules/iac/zm-docker-cwe78-curl-pipe.yaml +42 -0
  200. package/rules/iac/zm-docker-cwe798-arg-defaults.yaml +43 -0
  201. package/rules/iac/zm-docker-cwe798-env-secrets.yaml +48 -0
  202. package/rules/iac/zm-k8s-cwe200-configmap-creds.yaml +31 -0
  203. package/rules/iac/zm-k8s-cwe200-networkpolicy.yaml +62 -0
  204. package/rules/iac/zm-k8s-cwe200-sa-automount.yaml +38 -0
  205. package/rules/iac/zm-k8s-cwe200-service-exposure.yaml +50 -0
  206. package/rules/iac/zm-k8s-cwe200-verbosity-high.yaml +80 -0
  207. package/rules/iac/zm-k8s-cwe250-capabilities.yaml +84 -0
  208. package/rules/iac/zm-k8s-cwe250-hostpath.yaml +66 -0
  209. package/rules/iac/zm-k8s-cwe285-rbac.yaml +130 -0
  210. package/rules/iac/zm-k8s-cwe312-secret.yaml +60 -0
  211. package/rules/iac/zm-k8s-cwe319-ingress-tls.yaml +75 -0
  212. package/rules/iac/zm-k8s-cwe400-replicas.yaml +38 -0
  213. package/rules/iac/zm-k8s-psp-missing.yaml +59 -0
  214. package/rules/iac/zm-k8s-securitycontext-hardening.yaml +116 -0
  215. package/rules/iac/zm-tf-cwe200-ecr-public.yaml +18 -0
  216. package/rules/iac/zm-tf-cwe284-sg-egress-any.yaml +32 -0
  217. package/rules/iac/zm-tf-cwe319-rds-public-snapshot.yaml +46 -0
  218. package/rules/nvd-generated/cwe_1336/cl-1336-go-207.yaml +43 -0
  219. package/rules/nvd-generated/cwe_1336/cl-1336-java-194.yaml +43 -0
  220. package/rules/nvd-generated/cwe_1336/cl-1336-java-195.yaml +43 -0
  221. package/rules/nvd-generated/cwe_1336/cl-1336-java-196.yaml +43 -0
  222. package/rules/nvd-generated/cwe_1336/cl-1336-java-197.yaml +43 -0
  223. package/rules/nvd-generated/cwe_1336/cl-1336-java-198.yaml +43 -0
  224. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-199.yaml +43 -0
  225. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-200.yaml +43 -0
  226. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-201.yaml +43 -0
  227. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-202.yaml +43 -0
  228. package/rules/nvd-generated/cwe_1336/cl-1336-javascript-203.yaml +43 -0
  229. package/rules/nvd-generated/cwe_1336/cl-1336-php-208.yaml +43 -0
  230. package/rules/nvd-generated/cwe_1336/cl-1336-php-209.yaml +43 -0
  231. package/rules/nvd-generated/cwe_1336/cl-1336-python-204.yaml +43 -0
  232. package/rules/nvd-generated/cwe_1336/cl-1336-python-205.yaml +43 -0
  233. package/rules/nvd-generated/cwe_1336/cl-1336-python-206.yaml +43 -0
  234. package/rules/nvd-generated/cwe_20/cl-20-all-233.yaml +43 -0
  235. package/rules/nvd-generated/cwe_20/cl-20-java-227.yaml +43 -0
  236. package/rules/nvd-generated/cwe_20/cl-20-java-228.yaml +43 -0
  237. package/rules/nvd-generated/cwe_20/cl-20-javascript-229.yaml +43 -0
  238. package/rules/nvd-generated/cwe_20/cl-20-python-231.yaml +44 -0
  239. package/rules/nvd-generated/cwe_20/cl-20-python-232.yaml +43 -0
  240. package/rules/nvd-generated/cwe_200/cl-200-all-189.yaml +46 -0
  241. package/rules/nvd-generated/cwe_200/cl-200-all-190.yaml +45 -0
  242. package/rules/nvd-generated/cwe_200/cl-200-all-191.yaml +43 -0
  243. package/rules/nvd-generated/cwe_200/cl-200-all-192.yaml +43 -0
  244. package/rules/nvd-generated/cwe_200/cl-200-all-193.yaml +43 -0
  245. package/rules/nvd-generated/cwe_22/cl-22-go-074.yaml +43 -0
  246. package/rules/nvd-generated/cwe_22/cl-22-go-075.yaml +43 -0
  247. package/rules/nvd-generated/cwe_22/cl-22-go-076.yaml +43 -0
  248. package/rules/nvd-generated/cwe_22/cl-22-java-060.yaml +43 -0
  249. package/rules/nvd-generated/cwe_22/cl-22-java-061.yaml +43 -0
  250. package/rules/nvd-generated/cwe_22/cl-22-java-062.yaml +43 -0
  251. package/rules/nvd-generated/cwe_22/cl-22-java-063.yaml +43 -0
  252. package/rules/nvd-generated/cwe_22/cl-22-javascript-067.yaml +43 -0
  253. package/rules/nvd-generated/cwe_22/cl-22-javascript-068.yaml +43 -0
  254. package/rules/nvd-generated/cwe_22/cl-22-javascript-069.yaml +43 -0
  255. package/rules/nvd-generated/cwe_22/cl-22-php-064.yaml +43 -0
  256. package/rules/nvd-generated/cwe_22/cl-22-php-065.yaml +43 -0
  257. package/rules/nvd-generated/cwe_22/cl-22-php-066.yaml +44 -0
  258. package/rules/nvd-generated/cwe_22/cl-22-python-071.yaml +43 -0
  259. package/rules/nvd-generated/cwe_22/cl-22-python-072.yaml +43 -0
  260. package/rules/nvd-generated/cwe_22/cl-22-python-073.yaml +43 -0
  261. package/rules/nvd-generated/cwe_287/cl-287-go-187.yaml +43 -0
  262. package/rules/nvd-generated/cwe_287/cl-287-go-188.yaml +43 -0
  263. package/rules/nvd-generated/cwe_287/cl-287-java-180.yaml +43 -0
  264. package/rules/nvd-generated/cwe_287/cl-287-java-181.yaml +43 -0
  265. package/rules/nvd-generated/cwe_287/cl-287-java-182.yaml +43 -0
  266. package/rules/nvd-generated/cwe_287/cl-287-javascript-183.yaml +43 -0
  267. package/rules/nvd-generated/cwe_287/cl-287-javascript-184.yaml +43 -0
  268. package/rules/nvd-generated/cwe_287/cl-287-python-185.yaml +44 -0
  269. package/rules/nvd-generated/cwe_287/cl-287-python-186.yaml +43 -0
  270. package/rules/nvd-generated/cwe_327/cl-327-go-169.yaml +43 -0
  271. package/rules/nvd-generated/cwe_327/cl-327-go-170.yaml +43 -0
  272. package/rules/nvd-generated/cwe_327/cl-327-java-161.yaml +43 -0
  273. package/rules/nvd-generated/cwe_327/cl-327-java-162.yaml +43 -0
  274. package/rules/nvd-generated/cwe_327/cl-327-java-163.yaml +43 -0
  275. package/rules/nvd-generated/cwe_327/cl-327-java-164.yaml +43 -0
  276. package/rules/nvd-generated/cwe_327/cl-327-javascript-165.yaml +43 -0
  277. package/rules/nvd-generated/cwe_327/cl-327-javascript-166.yaml +43 -0
  278. package/rules/nvd-generated/cwe_327/cl-327-php-171.yaml +43 -0
  279. package/rules/nvd-generated/cwe_327/cl-327-php-172.yaml +43 -0
  280. package/rules/nvd-generated/cwe_327/cl-327-python-167.yaml +43 -0
  281. package/rules/nvd-generated/cwe_327/cl-327-python-168.yaml +43 -0
  282. package/rules/nvd-generated/cwe_346/cl-346-all-213.yaml +43 -0
  283. package/rules/nvd-generated/cwe_346/cl-346-all-214.yaml +43 -0
  284. package/rules/nvd-generated/cwe_346/cl-346-all-215.yaml +43 -0
  285. package/rules/nvd-generated/cwe_352/cl-352-java-153.yaml +43 -0
  286. package/rules/nvd-generated/cwe_352/cl-352-java-154.yaml +43 -0
  287. package/rules/nvd-generated/cwe_352/cl-352-javascript-156.yaml +44 -0
  288. package/rules/nvd-generated/cwe_352/cl-352-php-155.yaml +44 -0
  289. package/rules/nvd-generated/cwe_352/cl-352-python-157.yaml +43 -0
  290. package/rules/nvd-generated/cwe_434/cl-434-go-140.yaml +43 -0
  291. package/rules/nvd-generated/cwe_434/cl-434-java-130.yaml +43 -0
  292. package/rules/nvd-generated/cwe_434/cl-434-java-131.yaml +43 -0
  293. package/rules/nvd-generated/cwe_434/cl-434-java-132.yaml +43 -0
  294. package/rules/nvd-generated/cwe_434/cl-434-javascript-138.yaml +43 -0
  295. package/rules/nvd-generated/cwe_434/cl-434-javascript-139.yaml +43 -0
  296. package/rules/nvd-generated/cwe_434/cl-434-php-133.yaml +43 -0
  297. package/rules/nvd-generated/cwe_434/cl-434-php-134.yaml +44 -0
  298. package/rules/nvd-generated/cwe_434/cl-434-php-135.yaml +43 -0
  299. package/rules/nvd-generated/cwe_434/cl-434-python-136.yaml +43 -0
  300. package/rules/nvd-generated/cwe_434/cl-434-python-137.yaml +43 -0
  301. package/rules/nvd-generated/cwe_501/cl-501-all-239.yaml +43 -0
  302. package/rules/nvd-generated/cwe_501/cl-501-all-240.yaml +43 -0
  303. package/rules/nvd-generated/cwe_501/cl-501-all-241.yaml +43 -0
  304. package/rules/nvd-generated/cwe_502/cl-502-go-109.yaml +44 -0
  305. package/rules/nvd-generated/cwe_502/cl-502-go-110.yaml +44 -0
  306. package/rules/nvd-generated/cwe_502/cl-502-java-092.yaml +43 -0
  307. package/rules/nvd-generated/cwe_502/cl-502-java-093.yaml +43 -0
  308. package/rules/nvd-generated/cwe_502/cl-502-java-094.yaml +43 -0
  309. package/rules/nvd-generated/cwe_502/cl-502-java-095.yaml +43 -0
  310. package/rules/nvd-generated/cwe_502/cl-502-java-096.yaml +43 -0
  311. package/rules/nvd-generated/cwe_502/cl-502-java-097.yaml +43 -0
  312. package/rules/nvd-generated/cwe_502/cl-502-java-098.yaml +43 -0
  313. package/rules/nvd-generated/cwe_502/cl-502-java-099.yaml +43 -0
  314. package/rules/nvd-generated/cwe_502/cl-502-javascript-106.yaml +43 -0
  315. package/rules/nvd-generated/cwe_502/cl-502-javascript-107.yaml +43 -0
  316. package/rules/nvd-generated/cwe_502/cl-502-javascript-108.yaml +43 -0
  317. package/rules/nvd-generated/cwe_502/cl-502-php-100.yaml +43 -0
  318. package/rules/nvd-generated/cwe_502/cl-502-php-101.yaml +43 -0
  319. package/rules/nvd-generated/cwe_502/cl-502-php-102.yaml +44 -0
  320. package/rules/nvd-generated/cwe_502/cl-502-python-103.yaml +43 -0
  321. package/rules/nvd-generated/cwe_502/cl-502-python-104.yaml +43 -0
  322. package/rules/nvd-generated/cwe_502/cl-502-python-105.yaml +43 -0
  323. package/rules/nvd-generated/cwe_532/cl-532-all-158.yaml +46 -0
  324. package/rules/nvd-generated/cwe_532/cl-532-all-159.yaml +45 -0
  325. package/rules/nvd-generated/cwe_532/cl-532-all-160.yaml +45 -0
  326. package/rules/nvd-generated/cwe_601/cl-601-go-178.yaml +43 -0
  327. package/rules/nvd-generated/cwe_601/cl-601-java-173.yaml +43 -0
  328. package/rules/nvd-generated/cwe_601/cl-601-javascript-174.yaml +43 -0
  329. package/rules/nvd-generated/cwe_601/cl-601-javascript-175.yaml +43 -0
  330. package/rules/nvd-generated/cwe_601/cl-601-php-179.yaml +43 -0
  331. package/rules/nvd-generated/cwe_601/cl-601-python-176.yaml +43 -0
  332. package/rules/nvd-generated/cwe_601/cl-601-python-177.yaml +43 -0
  333. package/rules/nvd-generated/cwe_611/cl-611-go-123.yaml +43 -0
  334. package/rules/nvd-generated/cwe_611/cl-611-java-111.yaml +43 -0
  335. package/rules/nvd-generated/cwe_611/cl-611-java-112.yaml +43 -0
  336. package/rules/nvd-generated/cwe_611/cl-611-java-113.yaml +43 -0
  337. package/rules/nvd-generated/cwe_611/cl-611-java-114.yaml +43 -0
  338. package/rules/nvd-generated/cwe_611/cl-611-java-115.yaml +43 -0
  339. package/rules/nvd-generated/cwe_611/cl-611-javascript-121.yaml +43 -0
  340. package/rules/nvd-generated/cwe_611/cl-611-javascript-122.yaml +43 -0
  341. package/rules/nvd-generated/cwe_611/cl-611-php-116.yaml +43 -0
  342. package/rules/nvd-generated/cwe_611/cl-611-php-117.yaml +43 -0
  343. package/rules/nvd-generated/cwe_611/cl-611-python-118.yaml +43 -0
  344. package/rules/nvd-generated/cwe_611/cl-611-python-119.yaml +43 -0
  345. package/rules/nvd-generated/cwe_611/cl-611-python-120.yaml +43 -0
  346. package/rules/nvd-generated/cwe_78/cl-78-go-040.yaml +43 -0
  347. package/rules/nvd-generated/cwe_78/cl-78-go-041.yaml +43 -0
  348. package/rules/nvd-generated/cwe_78/cl-78-java-026.yaml +43 -0
  349. package/rules/nvd-generated/cwe_78/cl-78-java-027.yaml +43 -0
  350. package/rules/nvd-generated/cwe_78/cl-78-java-028.yaml +43 -0
  351. package/rules/nvd-generated/cwe_78/cl-78-java-029.yaml +43 -0
  352. package/rules/nvd-generated/cwe_78/cl-78-javascript-037.yaml +43 -0
  353. package/rules/nvd-generated/cwe_78/cl-78-javascript-038.yaml +44 -0
  354. package/rules/nvd-generated/cwe_78/cl-78-javascript-039.yaml +43 -0
  355. package/rules/nvd-generated/cwe_78/cl-78-php-030.yaml +43 -0
  356. package/rules/nvd-generated/cwe_78/cl-78-php-031.yaml +43 -0
  357. package/rules/nvd-generated/cwe_78/cl-78-php-032.yaml +43 -0
  358. package/rules/nvd-generated/cwe_78/cl-78-php-033.yaml +44 -0
  359. package/rules/nvd-generated/cwe_78/cl-78-python-034.yaml +43 -0
  360. package/rules/nvd-generated/cwe_78/cl-78-python-035.yaml +43 -0
  361. package/rules/nvd-generated/cwe_78/cl-78-python-036.yaml +46 -0
  362. package/rules/nvd-generated/cwe_79/cl-79-go-058.yaml +44 -0
  363. package/rules/nvd-generated/cwe_79/cl-79-go-059.yaml +44 -0
  364. package/rules/nvd-generated/cwe_79/cl-79-java-042.yaml +43 -0
  365. package/rules/nvd-generated/cwe_79/cl-79-java-043.yaml +43 -0
  366. package/rules/nvd-generated/cwe_79/cl-79-java-044.yaml +44 -0
  367. package/rules/nvd-generated/cwe_79/cl-79-java-045.yaml +43 -0
  368. package/rules/nvd-generated/cwe_79/cl-79-javascript-049.yaml +45 -0
  369. package/rules/nvd-generated/cwe_79/cl-79-javascript-050.yaml +45 -0
  370. package/rules/nvd-generated/cwe_79/cl-79-javascript-051.yaml +44 -0
  371. package/rules/nvd-generated/cwe_79/cl-79-javascript-052.yaml +44 -0
  372. package/rules/nvd-generated/cwe_79/cl-79-javascript-053.yaml +44 -0
  373. package/rules/nvd-generated/cwe_79/cl-79-javascript-054.yaml +44 -0
  374. package/rules/nvd-generated/cwe_79/cl-79-javascript-055.yaml +44 -0
  375. package/rules/nvd-generated/cwe_79/cl-79-php-046.yaml +43 -0
  376. package/rules/nvd-generated/cwe_79/cl-79-php-047.yaml +44 -0
  377. package/rules/nvd-generated/cwe_79/cl-79-php-048.yaml +44 -0
  378. package/rules/nvd-generated/cwe_79/cl-79-python-056.yaml +44 -0
  379. package/rules/nvd-generated/cwe_79/cl-79-python-057.yaml +44 -0
  380. package/rules/nvd-generated/cwe_798/cl-798-all-124.yaml +45 -0
  381. package/rules/nvd-generated/cwe_798/cl-798-all-125.yaml +43 -0
  382. package/rules/nvd-generated/cwe_798/cl-798-all-126.yaml +43 -0
  383. package/rules/nvd-generated/cwe_798/cl-798-all-127.yaml +43 -0
  384. package/rules/nvd-generated/cwe_798/cl-798-all-128.yaml +43 -0
  385. package/rules/nvd-generated/cwe_798/cl-798-all-129.yaml +43 -0
  386. package/rules/nvd-generated/cwe_862/cl-862-go-150.yaml +44 -0
  387. package/rules/nvd-generated/cwe_862/cl-862-go-151.yaml +43 -0
  388. package/rules/nvd-generated/cwe_862/cl-862-java-141.yaml +44 -0
  389. package/rules/nvd-generated/cwe_862/cl-862-java-142.yaml +44 -0
  390. package/rules/nvd-generated/cwe_862/cl-862-java-143.yaml +43 -0
  391. package/rules/nvd-generated/cwe_862/cl-862-javascript-144.yaml +44 -0
  392. package/rules/nvd-generated/cwe_862/cl-862-javascript-145.yaml +44 -0
  393. package/rules/nvd-generated/cwe_862/cl-862-javascript-146.yaml +44 -0
  394. package/rules/nvd-generated/cwe_862/cl-862-php-152.yaml +44 -0
  395. package/rules/nvd-generated/cwe_862/cl-862-python-148.yaml +44 -0
  396. package/rules/nvd-generated/cwe_862/cl-862-python-149.yaml +43 -0
  397. package/rules/nvd-generated/cwe_89/cl-89-go-023.yaml +43 -0
  398. package/rules/nvd-generated/cwe_89/cl-89-go-024.yaml +43 -0
  399. package/rules/nvd-generated/cwe_89/cl-89-go-025.yaml +43 -0
  400. package/rules/nvd-generated/cwe_89/cl-89-java-001.yaml +43 -0
  401. package/rules/nvd-generated/cwe_89/cl-89-java-002.yaml +43 -0
  402. package/rules/nvd-generated/cwe_89/cl-89-java-003.yaml +43 -0
  403. package/rules/nvd-generated/cwe_89/cl-89-java-004.yaml +43 -0
  404. package/rules/nvd-generated/cwe_89/cl-89-java-005.yaml +43 -0
  405. package/rules/nvd-generated/cwe_89/cl-89-java-006.yaml +43 -0
  406. package/rules/nvd-generated/cwe_89/cl-89-java-007.yaml +43 -0
  407. package/rules/nvd-generated/cwe_89/cl-89-java-008.yaml +43 -0
  408. package/rules/nvd-generated/cwe_89/cl-89-javascript-018.yaml +43 -0
  409. package/rules/nvd-generated/cwe_89/cl-89-javascript-019.yaml +43 -0
  410. package/rules/nvd-generated/cwe_89/cl-89-javascript-020.yaml +43 -0
  411. package/rules/nvd-generated/cwe_89/cl-89-javascript-021.yaml +43 -0
  412. package/rules/nvd-generated/cwe_89/cl-89-javascript-022.yaml +43 -0
  413. package/rules/nvd-generated/cwe_89/cl-89-php-009.yaml +44 -0
  414. package/rules/nvd-generated/cwe_89/cl-89-php-010.yaml +44 -0
  415. package/rules/nvd-generated/cwe_89/cl-89-php-011.yaml +44 -0
  416. package/rules/nvd-generated/cwe_89/cl-89-php-012.yaml +44 -0
  417. package/rules/nvd-generated/cwe_89/cl-89-php-013.yaml +44 -0
  418. package/rules/nvd-generated/cwe_89/cl-89-python-014.yaml +43 -0
  419. package/rules/nvd-generated/cwe_89/cl-89-python-015.yaml +43 -0
  420. package/rules/nvd-generated/cwe_89/cl-89-python-016.yaml +43 -0
  421. package/rules/nvd-generated/cwe_89/cl-89-python-017.yaml +43 -0
  422. package/rules/nvd-generated/cwe_915/cl-915-javascript-216.yaml +43 -0
  423. package/rules/nvd-generated/cwe_915/cl-915-javascript-217.yaml +43 -0
  424. package/rules/nvd-generated/cwe_915/cl-915-javascript-218.yaml +43 -0
  425. package/rules/nvd-generated/cwe_915/cl-915-javascript-219.yaml +43 -0
  426. package/rules/nvd-generated/cwe_918/cl-918-go-088.yaml +43 -0
  427. package/rules/nvd-generated/cwe_918/cl-918-go-089.yaml +43 -0
  428. package/rules/nvd-generated/cwe_918/cl-918-java-077.yaml +43 -0
  429. package/rules/nvd-generated/cwe_918/cl-918-java-078.yaml +43 -0
  430. package/rules/nvd-generated/cwe_918/cl-918-java-079.yaml +43 -0
  431. package/rules/nvd-generated/cwe_918/cl-918-java-080.yaml +44 -0
  432. package/rules/nvd-generated/cwe_918/cl-918-javascript-081.yaml +43 -0
  433. package/rules/nvd-generated/cwe_918/cl-918-javascript-082.yaml +43 -0
  434. package/rules/nvd-generated/cwe_918/cl-918-javascript-083.yaml +43 -0
  435. package/rules/nvd-generated/cwe_918/cl-918-php-090.yaml +43 -0
  436. package/rules/nvd-generated/cwe_918/cl-918-php-091.yaml +43 -0
  437. package/rules/nvd-generated/cwe_918/cl-918-python-084.yaml +43 -0
  438. package/rules/nvd-generated/cwe_918/cl-918-python-085.yaml +43 -0
  439. package/rules/nvd-generated/cwe_918/cl-918-python-086.yaml +43 -0
  440. package/rules/nvd-generated/cwe_918/cl-918-python-087.yaml +43 -0
  441. package/rules/nvd-generated/cwe_943/cl-943-java-238.yaml +36 -0
  442. package/rules/nvd-generated/cwe_943/cl-943-javascript-234.yaml +36 -0
  443. package/rules/nvd-generated/cwe_943/cl-943-javascript-235.yaml +36 -0
  444. package/rules/nvd-generated/cwe_943/cl-943-javascript-236.yaml +36 -0
  445. package/rules/nvd-generated/cwe_943/cl-943-python-237.yaml +36 -0
  446. package/rules/quarantined/cwe-20/cl-20-all-233.yaml +43 -0
  447. package/rules/quarantined/cwe-20/cl-20-java-227.yaml +43 -0
  448. package/rules/quarantined/cwe-20/cl-20-java-228.yaml +43 -0
  449. package/rules/quarantined/cwe-20/cl-20-javascript-229.yaml +43 -0
  450. package/rules/quarantined/cwe-20/cl-20-python-231.yaml +44 -0
  451. package/rules/quarantined/cwe-20/cl-20-python-232.yaml +43 -0
  452. package/rules/quarantined/cwe-20/zm-js-cwe20-nextjs-api-routes.yaml +142 -0
  453. package/rules/quarantined/cwe-200/cl-200-all-189.yaml +46 -0
  454. package/rules/quarantined/cwe-200/cl-200-all-190.yaml +45 -0
  455. package/rules/quarantined/cwe-200/cl-200-all-191.yaml +43 -0
  456. package/rules/quarantined/cwe-200/cl-200-all-192.yaml +43 -0
  457. package/rules/quarantined/cwe-200/cl-200-all-193.yaml +43 -0
  458. package/rules/quarantined/cwe-200/cwe-200-sensitive-data-exposure.yaml +62 -0
  459. package/rules/quarantined/cwe-200/zm-go-cwe200-grpc-metadata.yaml +41 -0
  460. package/rules/quarantined/cwe-200/zm-java-cwe200-actuator-exposure.yaml +9 -0
  461. package/rules/quarantined/cwe-200/zm-java-cwe200-info-disclosure.yaml +92 -0
  462. package/rules/quarantined/cwe-200/zm-js-cwe200-info-disclosure.yaml +96 -0
  463. package/rules/quarantined/cwe-200/zm-k8s-cwe200-service-account.yaml +84 -0
  464. package/rules/quarantined/cwe-200/zm-k8s-cwe200-verbosity-high.yaml +81 -0
  465. package/rules/quarantined/cwe-200/zm-py-django-cwe200-cwe798-cwe352-01.yaml +81 -0
  466. package/rules/quarantined/cwe-200/zm-py-flask-cwe200-cwe326-01.yaml +58 -0
  467. package/rules/quarantined/cwe-200/zm-tf-cwe200-ecr-public.yaml +19 -0
  468. package/rules/quarantined/cwe-200/zm-tf-cwe200-s3-bucket-public.yaml +101 -0
  469. package/rules/quarantined/cwe-532/cl-532-all-158.yaml +46 -0
  470. package/rules/quarantined/cwe-532/cl-532-all-159.yaml +45 -0
  471. package/rules/quarantined/cwe-532/cl-532-all-160.yaml +45 -0
  472. package/rules/quarantined/cwe-862/cl-862-go-150.yaml +44 -0
  473. package/rules/quarantined/cwe-862/cl-862-go-151.yaml +43 -0
  474. package/rules/quarantined/cwe-862/cl-862-java-141.yaml +44 -0
  475. package/rules/quarantined/cwe-862/cl-862-java-142.yaml +44 -0
  476. package/rules/quarantined/cwe-862/cl-862-java-143.yaml +43 -0
  477. package/rules/quarantined/cwe-862/cl-862-javascript-144.yaml +44 -0
  478. package/rules/quarantined/cwe-862/cl-862-javascript-145.yaml +44 -0
  479. package/rules/quarantined/cwe-862/cl-862-javascript-146.yaml +44 -0
  480. package/rules/quarantined/cwe-862/cl-862-php-152.yaml +44 -0
  481. package/rules/quarantined/cwe-862/cl-862-python-148.yaml +44 -0
  482. package/rules/quarantined/cwe-862/cl-862-python-149.yaml +43 -0
  483. package/rules/quarantined/cwe-862/cwe-862-missing-authorization.yaml +41 -0
  484. package/rules/quarantined/cwe-862/zm-java-cwe862-authz-depth.yaml +128 -0
  485. package/rules/quarantined/high-fp/cwe-22/zm-js-cwe22-path-traversal-fs.yaml +114 -0
  486. package/rules/quarantined/high-fp/cwe-22/zm-js-cwe22-pathtraversal.yaml +112 -0
  487. package/rules/quarantined/high-fp/cwe-287/zm-js-cwe287-aws-lambda-config.yaml +105 -0
  488. package/rules/quarantined/high-fp/cwe-501/zm-js-cwe501-graphql-injection.yaml +53 -0
  489. package/rules/quarantined/high-fp/cwe-502/zm-js-cwe502-deserialization-extended.yaml +98 -0
  490. package/rules/quarantined/high-fp/cwe-798/zm-ansible-cwe798-hardcoded-creds.yaml +94 -0
  491. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-go-207.yaml +50 -0
  492. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-194.yaml +50 -0
  493. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-195.yaml +50 -0
  494. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-196.yaml +50 -0
  495. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-197.yaml +50 -0
  496. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-java-198.yaml +50 -0
  497. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-199.yaml +50 -0
  498. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-200.yaml +50 -0
  499. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-201.yaml +50 -0
  500. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-202.yaml +50 -0
  501. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-javascript-203.yaml +50 -0
  502. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-php-208.yaml +50 -0
  503. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-php-209.yaml +50 -0
  504. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-204.yaml +50 -0
  505. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-205.yaml +50 -0
  506. package/rules/quarantined/nvd-generated/cwe-1336/cl-1336-python-206.yaml +50 -0
  507. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-074.yaml +50 -0
  508. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-075.yaml +50 -0
  509. package/rules/quarantined/nvd-generated/cwe-22/cl-22-go-076.yaml +50 -0
  510. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-060.yaml +50 -0
  511. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-061.yaml +50 -0
  512. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-062.yaml +50 -0
  513. package/rules/quarantined/nvd-generated/cwe-22/cl-22-java-063.yaml +50 -0
  514. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-067.yaml +50 -0
  515. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-068.yaml +50 -0
  516. package/rules/quarantined/nvd-generated/cwe-22/cl-22-javascript-069.yaml +50 -0
  517. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-064.yaml +50 -0
  518. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-065.yaml +50 -0
  519. package/rules/quarantined/nvd-generated/cwe-22/cl-22-php-066.yaml +51 -0
  520. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-071.yaml +50 -0
  521. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-072.yaml +50 -0
  522. package/rules/quarantined/nvd-generated/cwe-22/cl-22-python-073.yaml +50 -0
  523. package/rules/quarantined/nvd-generated/cwe-287/cl-287-go-187.yaml +50 -0
  524. package/rules/quarantined/nvd-generated/cwe-287/cl-287-go-188.yaml +50 -0
  525. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-180.yaml +50 -0
  526. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-181.yaml +50 -0
  527. package/rules/quarantined/nvd-generated/cwe-287/cl-287-java-182.yaml +50 -0
  528. package/rules/quarantined/nvd-generated/cwe-287/cl-287-javascript-183.yaml +50 -0
  529. package/rules/quarantined/nvd-generated/cwe-287/cl-287-javascript-184.yaml +50 -0
  530. package/rules/quarantined/nvd-generated/cwe-287/cl-287-python-185.yaml +51 -0
  531. package/rules/quarantined/nvd-generated/cwe-287/cl-287-python-186.yaml +50 -0
  532. package/rules/quarantined/nvd-generated/cwe-327/cl-327-go-169.yaml +50 -0
  533. package/rules/quarantined/nvd-generated/cwe-327/cl-327-go-170.yaml +50 -0
  534. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-161.yaml +50 -0
  535. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-162.yaml +50 -0
  536. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-163.yaml +50 -0
  537. package/rules/quarantined/nvd-generated/cwe-327/cl-327-java-164.yaml +50 -0
  538. package/rules/quarantined/nvd-generated/cwe-327/cl-327-javascript-165.yaml +50 -0
  539. package/rules/quarantined/nvd-generated/cwe-327/cl-327-javascript-166.yaml +50 -0
  540. package/rules/quarantined/nvd-generated/cwe-327/cl-327-php-171.yaml +50 -0
  541. package/rules/quarantined/nvd-generated/cwe-327/cl-327-php-172.yaml +50 -0
  542. package/rules/quarantined/nvd-generated/cwe-327/cl-327-python-167.yaml +50 -0
  543. package/rules/quarantined/nvd-generated/cwe-327/cl-327-python-168.yaml +50 -0
  544. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-213.yaml +50 -0
  545. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-214.yaml +50 -0
  546. package/rules/quarantined/nvd-generated/cwe-346/cl-346-all-215.yaml +50 -0
  547. package/rules/quarantined/nvd-generated/cwe-352/cl-352-java-153.yaml +50 -0
  548. package/rules/quarantined/nvd-generated/cwe-352/cl-352-java-154.yaml +50 -0
  549. package/rules/quarantined/nvd-generated/cwe-352/cl-352-javascript-156.yaml +51 -0
  550. package/rules/quarantined/nvd-generated/cwe-352/cl-352-php-155.yaml +51 -0
  551. package/rules/quarantined/nvd-generated/cwe-352/cl-352-python-157.yaml +50 -0
  552. package/rules/quarantined/nvd-generated/cwe-434/cl-434-go-140.yaml +50 -0
  553. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-130.yaml +50 -0
  554. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-131.yaml +50 -0
  555. package/rules/quarantined/nvd-generated/cwe-434/cl-434-java-132.yaml +50 -0
  556. package/rules/quarantined/nvd-generated/cwe-434/cl-434-javascript-138.yaml +50 -0
  557. package/rules/quarantined/nvd-generated/cwe-434/cl-434-javascript-139.yaml +50 -0
  558. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-133.yaml +50 -0
  559. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-134.yaml +51 -0
  560. package/rules/quarantined/nvd-generated/cwe-434/cl-434-php-135.yaml +50 -0
  561. package/rules/quarantined/nvd-generated/cwe-434/cl-434-python-136.yaml +50 -0
  562. package/rules/quarantined/nvd-generated/cwe-434/cl-434-python-137.yaml +50 -0
  563. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-239.yaml +50 -0
  564. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-240.yaml +50 -0
  565. package/rules/quarantined/nvd-generated/cwe-501/cl-501-all-241.yaml +50 -0
  566. package/rules/quarantined/nvd-generated/cwe-502/cl-502-go-109.yaml +51 -0
  567. package/rules/quarantined/nvd-generated/cwe-502/cl-502-go-110.yaml +51 -0
  568. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-092.yaml +50 -0
  569. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-093.yaml +50 -0
  570. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-094.yaml +50 -0
  571. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-095.yaml +50 -0
  572. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-096.yaml +50 -0
  573. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-097.yaml +50 -0
  574. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-098.yaml +50 -0
  575. package/rules/quarantined/nvd-generated/cwe-502/cl-502-java-099.yaml +50 -0
  576. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-106.yaml +50 -0
  577. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-107.yaml +50 -0
  578. package/rules/quarantined/nvd-generated/cwe-502/cl-502-javascript-108.yaml +50 -0
  579. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-100.yaml +50 -0
  580. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-101.yaml +50 -0
  581. package/rules/quarantined/nvd-generated/cwe-502/cl-502-php-102.yaml +51 -0
  582. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-103.yaml +50 -0
  583. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-104.yaml +50 -0
  584. package/rules/quarantined/nvd-generated/cwe-502/cl-502-python-105.yaml +50 -0
  585. package/rules/quarantined/nvd-generated/cwe-601/cl-601-go-178.yaml +50 -0
  586. package/rules/quarantined/nvd-generated/cwe-601/cl-601-java-173.yaml +50 -0
  587. package/rules/quarantined/nvd-generated/cwe-601/cl-601-javascript-174.yaml +50 -0
  588. package/rules/quarantined/nvd-generated/cwe-601/cl-601-javascript-175.yaml +50 -0
  589. package/rules/quarantined/nvd-generated/cwe-601/cl-601-php-179.yaml +50 -0
  590. package/rules/quarantined/nvd-generated/cwe-601/cl-601-python-176.yaml +50 -0
  591. package/rules/quarantined/nvd-generated/cwe-601/cl-601-python-177.yaml +50 -0
  592. package/rules/quarantined/nvd-generated/cwe-611/cl-611-go-123.yaml +50 -0
  593. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-111.yaml +50 -0
  594. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-112.yaml +50 -0
  595. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-113.yaml +50 -0
  596. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-114.yaml +50 -0
  597. package/rules/quarantined/nvd-generated/cwe-611/cl-611-java-115.yaml +50 -0
  598. package/rules/quarantined/nvd-generated/cwe-611/cl-611-javascript-121.yaml +50 -0
  599. package/rules/quarantined/nvd-generated/cwe-611/cl-611-javascript-122.yaml +50 -0
  600. package/rules/quarantined/nvd-generated/cwe-611/cl-611-php-116.yaml +50 -0
  601. package/rules/quarantined/nvd-generated/cwe-611/cl-611-php-117.yaml +50 -0
  602. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-118.yaml +50 -0
  603. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-119.yaml +50 -0
  604. package/rules/quarantined/nvd-generated/cwe-611/cl-611-python-120.yaml +50 -0
  605. package/rules/quarantined/nvd-generated/cwe-78/cl-78-go-040.yaml +50 -0
  606. package/rules/quarantined/nvd-generated/cwe-78/cl-78-go-041.yaml +50 -0
  607. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-026.yaml +50 -0
  608. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-027.yaml +50 -0
  609. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-028.yaml +50 -0
  610. package/rules/quarantined/nvd-generated/cwe-78/cl-78-java-029.yaml +50 -0
  611. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-037.yaml +50 -0
  612. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-038.yaml +51 -0
  613. package/rules/quarantined/nvd-generated/cwe-78/cl-78-javascript-039.yaml +50 -0
  614. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-030.yaml +50 -0
  615. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-031.yaml +50 -0
  616. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-032.yaml +50 -0
  617. package/rules/quarantined/nvd-generated/cwe-78/cl-78-php-033.yaml +51 -0
  618. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-034.yaml +50 -0
  619. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-035.yaml +50 -0
  620. package/rules/quarantined/nvd-generated/cwe-78/cl-78-python-036.yaml +53 -0
  621. package/rules/quarantined/nvd-generated/cwe-79/cl-79-go-058.yaml +51 -0
  622. package/rules/quarantined/nvd-generated/cwe-79/cl-79-go-059.yaml +51 -0
  623. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-042.yaml +50 -0
  624. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-043.yaml +50 -0
  625. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-044.yaml +51 -0
  626. package/rules/quarantined/nvd-generated/cwe-79/cl-79-java-045.yaml +50 -0
  627. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-049.yaml +52 -0
  628. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-050.yaml +52 -0
  629. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-051.yaml +51 -0
  630. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-052.yaml +51 -0
  631. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-053.yaml +51 -0
  632. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-054.yaml +51 -0
  633. package/rules/quarantined/nvd-generated/cwe-79/cl-79-javascript-055.yaml +51 -0
  634. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-046.yaml +50 -0
  635. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-047.yaml +51 -0
  636. package/rules/quarantined/nvd-generated/cwe-79/cl-79-php-048.yaml +51 -0
  637. package/rules/quarantined/nvd-generated/cwe-79/cl-79-python-056.yaml +51 -0
  638. package/rules/quarantined/nvd-generated/cwe-79/cl-79-python-057.yaml +51 -0
  639. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-124.yaml +52 -0
  640. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-125.yaml +50 -0
  641. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-126.yaml +50 -0
  642. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-127.yaml +50 -0
  643. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-128.yaml +50 -0
  644. package/rules/quarantined/nvd-generated/cwe-798/cl-798-all-129.yaml +50 -0
  645. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-023.yaml +50 -0
  646. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-024.yaml +50 -0
  647. package/rules/quarantined/nvd-generated/cwe-89/cl-89-go-025.yaml +50 -0
  648. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-001.yaml +50 -0
  649. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-002.yaml +50 -0
  650. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-003.yaml +50 -0
  651. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-004.yaml +50 -0
  652. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-005.yaml +50 -0
  653. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-006.yaml +50 -0
  654. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-007.yaml +50 -0
  655. package/rules/quarantined/nvd-generated/cwe-89/cl-89-java-008.yaml +50 -0
  656. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-018.yaml +50 -0
  657. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-019.yaml +50 -0
  658. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-020.yaml +50 -0
  659. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-021.yaml +50 -0
  660. package/rules/quarantined/nvd-generated/cwe-89/cl-89-javascript-022.yaml +50 -0
  661. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-009.yaml +51 -0
  662. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-010.yaml +51 -0
  663. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-011.yaml +51 -0
  664. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-012.yaml +51 -0
  665. package/rules/quarantined/nvd-generated/cwe-89/cl-89-php-013.yaml +51 -0
  666. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-014.yaml +50 -0
  667. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-015.yaml +50 -0
  668. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-016.yaml +50 -0
  669. package/rules/quarantined/nvd-generated/cwe-89/cl-89-python-017.yaml +50 -0
  670. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-216.yaml +50 -0
  671. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-217.yaml +50 -0
  672. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-218.yaml +50 -0
  673. package/rules/quarantined/nvd-generated/cwe-915/cl-915-javascript-219.yaml +50 -0
  674. package/rules/quarantined/nvd-generated/cwe-918/cl-918-go-088.yaml +50 -0
  675. package/rules/quarantined/nvd-generated/cwe-918/cl-918-go-089.yaml +50 -0
  676. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-077.yaml +50 -0
  677. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-078.yaml +50 -0
  678. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-079.yaml +50 -0
  679. package/rules/quarantined/nvd-generated/cwe-918/cl-918-java-080.yaml +51 -0
  680. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-081.yaml +50 -0
  681. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-082.yaml +50 -0
  682. package/rules/quarantined/nvd-generated/cwe-918/cl-918-javascript-083.yaml +50 -0
  683. package/rules/quarantined/nvd-generated/cwe-918/cl-918-php-090.yaml +50 -0
  684. package/rules/quarantined/nvd-generated/cwe-918/cl-918-php-091.yaml +50 -0
  685. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-084.yaml +50 -0
  686. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-085.yaml +50 -0
  687. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-086.yaml +50 -0
  688. package/rules/quarantined/nvd-generated/cwe-918/cl-918-python-087.yaml +50 -0
  689. package/rules/quarantined/nvd-generated/cwe-943/cl-943-java-238.yaml +43 -0
  690. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-234.yaml +43 -0
  691. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-235.yaml +43 -0
  692. package/rules/quarantined/nvd-generated/cwe-943/cl-943-javascript-236.yaml +43 -0
  693. package/rules/quarantined/nvd-generated/cwe-943/cl-943-python-237.yaml +43 -0
  694. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-java-196.yaml +35 -0
  695. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-java-197.yaml +35 -0
  696. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-201.yaml +34 -0
  697. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-202.yaml +34 -0
  698. package/rules/taint-upgraded/cwe-1336/zm-taint-1336-1336-javascript-203.yaml +34 -0
  699. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-go-076.yaml +36 -0
  700. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-java-061.yaml +40 -0
  701. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-javascript-068.yaml +38 -0
  702. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-javascript-069.yaml +38 -0
  703. package/rules/taint-upgraded/cwe-22/zm-taint-22-22-python-073.yaml +38 -0
  704. package/rules/taint-upgraded/cwe-287/zm-taint-287-287-go-188.yaml +30 -0
  705. package/rules/taint-upgraded/cwe-287/zm-taint-287-287-javascript-184.yaml +31 -0
  706. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-go-169.yaml +30 -0
  707. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-go-170.yaml +31 -0
  708. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-161.yaml +45 -0
  709. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-162.yaml +45 -0
  710. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-163.yaml +39 -0
  711. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-java-164.yaml +31 -0
  712. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-javascript-165.yaml +34 -0
  713. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-javascript-166.yaml +32 -0
  714. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-php-171.yaml +31 -0
  715. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-php-172.yaml +31 -0
  716. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-python-167.yaml +32 -0
  717. package/rules/taint-upgraded/cwe-327/zm-taint-327-327-python-168.yaml +34 -0
  718. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-java-130.yaml +37 -0
  719. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-java-131.yaml +37 -0
  720. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-javascript-139.yaml +38 -0
  721. package/rules/taint-upgraded/cwe-434/zm-taint-434-434-python-136.yaml +35 -0
  722. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-go-109.yaml +32 -0
  723. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-go-110.yaml +32 -0
  724. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-092.yaml +33 -0
  725. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-093.yaml +33 -0
  726. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-094.yaml +33 -0
  727. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-095.yaml +33 -0
  728. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-097.yaml +33 -0
  729. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-098.yaml +33 -0
  730. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-java-099.yaml +33 -0
  731. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-javascript-107.yaml +33 -0
  732. package/rules/taint-upgraded/cwe-502/zm-taint-502-502-python-105.yaml +40 -0
  733. package/rules/taint-upgraded/cwe-601/zm-taint-601-601-go-178.yaml +34 -0
  734. package/rules/taint-upgraded/cwe-601/zm-taint-601-601-python-177.yaml +35 -0
  735. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-go-123.yaml +31 -0
  736. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-111.yaml +38 -0
  737. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-112.yaml +38 -0
  738. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-113.yaml +38 -0
  739. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-114.yaml +38 -0
  740. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-java-115.yaml +38 -0
  741. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-javascript-121.yaml +32 -0
  742. package/rules/taint-upgraded/cwe-611/zm-taint-611-611-javascript-122.yaml +32 -0
  743. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-go-040.yaml +31 -0
  744. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-go-041.yaml +31 -0
  745. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-027.yaml +37 -0
  746. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-028.yaml +37 -0
  747. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-java-029.yaml +37 -0
  748. package/rules/taint-upgraded/cwe-78/zm-taint-78-78-python-034.yaml +40 -0
  749. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-javascript-050.yaml +38 -0
  750. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-javascript-054.yaml +38 -0
  751. package/rules/taint-upgraded/cwe-79/zm-taint-79-79-python-056.yaml +37 -0
  752. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-023.yaml +33 -0
  753. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-024.yaml +33 -0
  754. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-go-025.yaml +33 -0
  755. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-001.yaml +41 -0
  756. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-006.yaml +41 -0
  757. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-java-008.yaml +41 -0
  758. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-018.yaml +41 -0
  759. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-019.yaml +41 -0
  760. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-javascript-022.yaml +41 -0
  761. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-014.yaml +41 -0
  762. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-015.yaml +41 -0
  763. package/rules/taint-upgraded/cwe-89/zm-taint-89-89-python-017.yaml +41 -0
  764. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-216.yaml +32 -0
  765. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-217.yaml +33 -0
  766. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-218.yaml +32 -0
  767. package/rules/taint-upgraded/cwe-915/zm-taint-915-915-javascript-219.yaml +35 -0
  768. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-java-078.yaml +38 -0
  769. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-java-079.yaml +38 -0
  770. package/rules/taint-upgraded/cwe-918/zm-taint-918-918-python-085.yaml +39 -0
  771. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-java-238.yaml +31 -0
  772. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-234.yaml +34 -0
  773. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-235.yaml +34 -0
  774. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-javascript-236.yaml +33 -0
  775. package/rules/taint-upgraded/cwe-943/zm-taint-943-943-python-237.yaml +32 -0
  776. package/rules/unified/cwe-117/zm-go-cwe117-log-injection.yaml +76 -0
  777. package/rules/unified/cwe-117/zm-java-cwe117-log-injection.yaml +84 -0
  778. package/rules/unified/cwe-117/zm-java-cwe117-logforging.yaml +154 -0
  779. package/rules/unified/cwe-117/zm-java-cwe117-smtp-header-injection.yaml +59 -0
  780. package/rules/unified/cwe-121/zm-cpp-cwe121-buffer-overflow.yaml +137 -0
  781. package/rules/unified/cwe-1321/zm-js-cwe1321-prototype-pollution.yaml +62 -0
  782. package/rules/unified/cwe-1336/zm-go-cwe1336-template-injection.yaml +39 -0
  783. package/rules/unified/cwe-1336/zm-taint-1336-1336-java-196.yaml +42 -0
  784. package/rules/unified/cwe-1336/zm-taint-1336-1336-java-197.yaml +42 -0
  785. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-201.yaml +41 -0
  786. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-202.yaml +41 -0
  787. package/rules/unified/cwe-1336/zm-taint-1336-1336-javascript-203.yaml +41 -0
  788. package/rules/unified/cwe-134/zm-cpp-cwe134-format-string.yaml +106 -0
  789. package/rules/unified/cwe-190/zm-cpp-cwe190-integer-overflow.yaml +93 -0
  790. package/rules/unified/cwe-20/zm-cpp-cwe20-input-validation.yaml +92 -0
  791. package/rules/unified/cwe-20/zm-js-cwe20-websocket-validation.yaml +25 -0
  792. package/rules/unified/cwe-20/zm-rust-cwe20-input-validation.yaml +124 -0
  793. package/rules/unified/cwe-200/zm-js-cwe200-nestjs-env.yaml +22 -0
  794. package/rules/unified/cwe-200/zm-py-cwe200-info-leak-redirect.yaml +77 -0
  795. package/rules/unified/cwe-22/cwe-22-path-traversal.yaml +48 -0
  796. package/rules/unified/cwe-22/zm-cs-cwe22-path-traversal.yaml +92 -0
  797. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal-framework.yaml +48 -0
  798. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal-fs.yaml +118 -0
  799. package/rules/unified/cwe-22/zm-go-cwe22-path-traversal.yaml +104 -0
  800. package/rules/unified/cwe-22/zm-java-cwe22-file-depth.yaml +136 -0
  801. package/rules/unified/cwe-22/zm-java-cwe22-file-unnormalized.yaml +58 -0
  802. package/rules/unified/cwe-22/zm-java-cwe22-path-traversal-spring.yaml +82 -0
  803. package/rules/unified/cwe-22/zm-java-file-cwe22-001.yaml +74 -0
  804. package/rules/unified/cwe-22/zm-js-cwe22-express-path-traversal.yaml +26 -0
  805. package/rules/unified/cwe-22/zm-js-cwe22-fs-path-traversal.yaml +28 -0
  806. package/rules/unified/cwe-22/zm-py-cwe22-flask-sendfile.yaml +45 -0
  807. package/rules/unified/cwe-22/zm-py-cwe22-path-traversal.yaml +87 -0
  808. package/rules/unified/cwe-22/zm-rust-cwe22-path-traversal.yaml +134 -0
  809. package/rules/unified/cwe-22/zm-taint-22-22-go-076.yaml +43 -0
  810. package/rules/unified/cwe-22/zm-taint-22-22-java-061.yaml +47 -0
  811. package/rules/unified/cwe-22/zm-taint-22-22-javascript-068.yaml +45 -0
  812. package/rules/unified/cwe-22/zm-taint-22-22-javascript-069.yaml +45 -0
  813. package/rules/unified/cwe-22/zm-taint-22-22-python-073.yaml +45 -0
  814. package/rules/unified/cwe-250/zm-docker-cwe250-root-user.yaml +51 -0
  815. package/rules/unified/cwe-250/zm-java-cwe250-preauth-missing.yaml +69 -0
  816. package/rules/unified/cwe-250/zm-k8s-cwe250-privileged.yaml +57 -0
  817. package/rules/unified/cwe-265/zm-py-fastapi-cwe265-cwe284-01.yaml +49 -0
  818. package/rules/unified/cwe-269/zm-ansible-cwe269-privilege-escalation.yaml +76 -0
  819. package/rules/unified/cwe-269/zm-java-cwe269-requestdumper-valve.yaml +55 -0
  820. package/rules/unified/cwe-284/zm-java-cwe284-missing-auth-spring.yaml +132 -0
  821. package/rules/unified/cwe-284/zm-java-cwe284-permitall-overauth.yaml +57 -0
  822. package/rules/unified/cwe-284/zm-java-cwe284-tomcat-ajp.yaml +57 -0
  823. package/rules/unified/cwe-284/zm-java-springsec-cwe284-001.yaml +110 -0
  824. package/rules/unified/cwe-284/zm-tf-cwe284-sg-egress-any.yaml +33 -0
  825. package/rules/unified/cwe-284/zm-tf-cwe284-sg-wide-open.yaml +89 -0
  826. package/rules/unified/cwe-287/zm-java-oauth-cwe287-001.yaml +137 -0
  827. package/rules/unified/cwe-287/zm-js-cwe287-jwt-no-algorithms.yaml +26 -0
  828. package/rules/unified/cwe-287/zm-taint-287-287-go-188.yaml +37 -0
  829. package/rules/unified/cwe-287/zm-taint-287-287-javascript-184.yaml +38 -0
  830. package/rules/unified/cwe-295/cwe-295-ssl-bypass.yaml +218 -0
  831. package/rules/unified/cwe-295/cwe-295-ssl-verification-disabled.yaml +65 -0
  832. package/rules/unified/cwe-295/zm-cs-cwe295-cert-validation.yaml +67 -0
  833. package/rules/unified/cwe-295/zm-py-aiohttp-cwe295-cwe770-01.yaml +61 -0
  834. package/rules/unified/cwe-306/cwe-306-missing-authentication.yaml +45 -0
  835. package/rules/unified/cwe-306/zm-java-cwe306-actuator-exposure.yaml +53 -0
  836. package/rules/unified/cwe-306/zm-java-cwe306-cloud-config-server.yaml +56 -0
  837. package/rules/unified/cwe-306/zm-java-cwe306-rabbitmq-no-auth.yaml +58 -0
  838. package/rules/unified/cwe-306/zm-py-cwe306-flask-login.yaml +38 -0
  839. package/rules/unified/cwe-307/zm-go-cwe307-brute-force.yaml +130 -0
  840. package/rules/unified/cwe-307/zm-js-cwe307-brute-force.yaml +137 -0
  841. package/rules/unified/cwe-311/zm-docker-cwe311-secrets-in-build-arg.yaml +65 -0
  842. package/rules/unified/cwe-311/zm-java-cwe311-cookie-flags.yaml +94 -0
  843. package/rules/unified/cwe-311/zm-tf-cwe311-iam-wildcard.yaml +84 -0
  844. package/rules/unified/cwe-312/zm-js-cwe312-localstorage-jwt.yaml +32 -0
  845. package/rules/unified/cwe-319/zm-go-cwe319-grpc-notls.yaml +119 -0
  846. package/rules/unified/cwe-319/zm-tf-cwe319-rds-public-snapshot.yaml +47 -0
  847. package/rules/unified/cwe-319/zm-tf-cwe319-rds-public.yaml +73 -0
  848. package/rules/unified/cwe-326/cwe-326-weak-key-size.yaml +108 -0
  849. package/rules/unified/cwe-326/zm-go-cwe326-hmac-iv-nonce.yaml +73 -0
  850. package/rules/unified/cwe-326/zm-go-cwe326-weak-crypto.yaml +125 -0
  851. package/rules/unified/cwe-327/cwe-327-weak-crypto.yaml +178 -0
  852. package/rules/unified/cwe-327/zm-cpp-cwe327-weak-crypto.yaml +106 -0
  853. package/rules/unified/cwe-327/zm-cs-cwe327-weak-crypto.yaml +89 -0
  854. package/rules/unified/cwe-327/zm-go-cwe327-weak-cipher.yaml +153 -0
  855. package/rules/unified/cwe-327/zm-java-crypto-cwe327-001.yaml +104 -0
  856. package/rules/unified/cwe-327/zm-java-cwe327-ecb-weak-key-iv.yaml +87 -0
  857. package/rules/unified/cwe-327/zm-java-cwe327-weakcrypto.yaml +198 -0
  858. package/rules/unified/cwe-327/zm-js-cwe327-weak-cipher-des.yaml +30 -0
  859. package/rules/unified/cwe-327/zm-js-cwe327-weak-hash-md5.yaml +23 -0
  860. package/rules/unified/cwe-327/zm-php-cwe327-weak-hash.yaml +89 -0
  861. package/rules/unified/cwe-327/zm-py-crypto-cwe327-01.yaml +34 -0
  862. package/rules/unified/cwe-327/zm-py-cwe327-weak-crypto.yaml +104 -0
  863. package/rules/unified/cwe-327/zm-rust-cwe327-weak-crypto.yaml +124 -0
  864. package/rules/unified/cwe-327/zm-taint-327-327-go-169.yaml +37 -0
  865. package/rules/unified/cwe-327/zm-taint-327-327-go-170.yaml +38 -0
  866. package/rules/unified/cwe-327/zm-taint-327-327-java-161.yaml +52 -0
  867. package/rules/unified/cwe-327/zm-taint-327-327-java-162.yaml +52 -0
  868. package/rules/unified/cwe-327/zm-taint-327-327-java-163.yaml +46 -0
  869. package/rules/unified/cwe-327/zm-taint-327-327-java-164.yaml +38 -0
  870. package/rules/unified/cwe-327/zm-taint-327-327-javascript-165.yaml +41 -0
  871. package/rules/unified/cwe-327/zm-taint-327-327-javascript-166.yaml +39 -0
  872. package/rules/unified/cwe-327/zm-taint-327-327-php-171.yaml +38 -0
  873. package/rules/unified/cwe-327/zm-taint-327-327-php-172.yaml +38 -0
  874. package/rules/unified/cwe-327/zm-taint-327-327-python-167.yaml +39 -0
  875. package/rules/unified/cwe-327/zm-taint-327-327-python-168.yaml +41 -0
  876. package/rules/unified/cwe-328/cwe-328-weak-hash.yaml +97 -0
  877. package/rules/unified/cwe-329/cwe-329-cbc-mode.yaml +27 -0
  878. package/rules/unified/cwe-338/zm-go-cwe338-weak-prng.yaml +118 -0
  879. package/rules/unified/cwe-338/zm-java-cwe338-weakrandom.yaml +60 -0
  880. package/rules/unified/cwe-345/zm-js-cwe345-postmessage.yaml +76 -0
  881. package/rules/unified/cwe-345/zm-js-cwe345-websocket-security.yaml +91 -0
  882. package/rules/unified/cwe-347/zm-go-cwe347-jwt.yaml +148 -0
  883. package/rules/unified/cwe-347/zm-java-cwe347-jwt-deep.yaml +83 -0
  884. package/rules/unified/cwe-347/zm-java-cwe347-jwt.yaml +31 -0
  885. package/rules/unified/cwe-347/zm-js-cwe347-jwt-weak.yaml +101 -0
  886. package/rules/unified/cwe-352/cwe-352-csrf.yaml +27 -0
  887. package/rules/unified/cwe-352/zm-cs-cwe352-csrf.yaml +86 -0
  888. package/rules/unified/cwe-352/zm-java-cwe352-csrf-deep.yaml +52 -0
  889. package/rules/unified/cwe-352/zm-java-cwe352-csrf-depth.yaml +122 -0
  890. package/rules/unified/cwe-352/zm-java-cwe352-csrf-disabled.yaml +24 -0
  891. package/rules/unified/cwe-352/zm-js-cwe352-csrf.yaml +56 -0
  892. package/rules/unified/cwe-352/zm-py-cwe352-django-csrf.yaml +74 -0
  893. package/rules/unified/cwe-362/zm-java-cwe362-simpledateformat.yaml +57 -0
  894. package/rules/unified/cwe-377/zm-py-cwe377-race-condition.yaml +58 -0
  895. package/rules/unified/cwe-384/zm-go-cwe384-session-fixation.yaml +129 -0
  896. package/rules/unified/cwe-384/zm-java-cwe384-session-fixation.yaml +88 -0
  897. package/rules/unified/cwe-384/zm-js-cwe384-session-fixation.yaml +133 -0
  898. package/rules/unified/cwe-400/zm-docker-cwe400-resource-limit.yaml +105 -0
  899. package/rules/unified/cwe-400/zm-py-cwe400-multipart-dos.yaml +65 -0
  900. package/rules/unified/cwe-415/zm-cpp-cwe415-double-free.yaml +92 -0
  901. package/rules/unified/cwe-416/zm-cpp-cwe416-use-after-free.yaml +81 -0
  902. package/rules/unified/cwe-416/zm-rust-cwe416-unsafe.yaml +150 -0
  903. package/rules/unified/cwe-434/cwe-434-unrestricted-file-upload.yaml +42 -0
  904. package/rules/unified/cwe-434/zm-php-cwe434-file-upload.yaml +99 -0
  905. package/rules/unified/cwe-434/zm-py-cwe434-django-fileupload.yaml +100 -0
  906. package/rules/unified/cwe-434/zm-taint-434-434-java-130.yaml +44 -0
  907. package/rules/unified/cwe-434/zm-taint-434-434-java-131.yaml +44 -0
  908. package/rules/unified/cwe-434/zm-taint-434-434-javascript-139.yaml +45 -0
  909. package/rules/unified/cwe-434/zm-taint-434-434-python-136.yaml +42 -0
  910. package/rules/unified/cwe-470/zm-java-cwe470-reflection.yaml +79 -0
  911. package/rules/unified/cwe-476/zm-cpp-cwe476-null-dereference.yaml +89 -0
  912. package/rules/unified/cwe-501/zm-java-cwe501-trust-boundary.yaml +125 -0
  913. package/rules/unified/cwe-502/cwe-502-insecure-deserialization.yaml +45 -0
  914. package/rules/unified/cwe-502/zm-cs-cwe502-deserialization.yaml +92 -0
  915. package/rules/unified/cwe-502/zm-go-cwe502-deserialization.yaml +121 -0
  916. package/rules/unified/cwe-502/zm-java-cwe502-deserial-depth.yaml +129 -0
  917. package/rules/unified/cwe-502/zm-java-cwe502-dubbo-deserial.yaml +59 -0
  918. package/rules/unified/cwe-502/zm-java-cwe502-fastjson.yaml +138 -0
  919. package/rules/unified/cwe-502/zm-java-cwe502-gadget.yaml +159 -0
  920. package/rules/unified/cwe-502/zm-java-cwe502-hessian-deep.yaml +68 -0
  921. package/rules/unified/cwe-502/zm-java-cwe502-jackson-defaulttyping.yaml +60 -0
  922. package/rules/unified/cwe-502/zm-java-cwe502-jndi-injection.yaml +92 -0
  923. package/rules/unified/cwe-502/zm-java-cwe502-kryo-deep.yaml +65 -0
  924. package/rules/unified/cwe-502/zm-java-cwe502-log4j-jndi.yaml +67 -0
  925. package/rules/unified/cwe-502/zm-java-cwe502-shiro.yaml +109 -0
  926. package/rules/unified/cwe-502/zm-java-cwe502-snakeyaml-load.yaml +56 -0
  927. package/rules/unified/cwe-502/zm-java-cwe502-xstream-nosecurity.yaml +65 -0
  928. package/rules/unified/cwe-502/zm-java-deserial-cwe502-001.yaml +73 -0
  929. package/rules/unified/cwe-502/zm-java-jndi-cwe502-001.yaml +108 -0
  930. package/rules/unified/cwe-502/zm-java-xstream-cwe502-001.yaml +74 -0
  931. package/rules/unified/cwe-502/zm-js-cwe502-deserialization.yaml +120 -0
  932. package/rules/unified/cwe-502/zm-php-cwe502-unserialize.yaml +94 -0
  933. package/rules/unified/cwe-502/zm-py-cwe502-deser-advanced.yaml +130 -0
  934. package/rules/unified/cwe-502/zm-py-cwe502-pickle.yaml +93 -0
  935. package/rules/unified/cwe-502/zm-py-deser-cwe502-01.yaml +67 -0
  936. package/rules/unified/cwe-502/zm-taint-502-502-go-109.yaml +39 -0
  937. package/rules/unified/cwe-502/zm-taint-502-502-go-110.yaml +39 -0
  938. package/rules/unified/cwe-502/zm-taint-502-502-java-092.yaml +40 -0
  939. package/rules/unified/cwe-502/zm-taint-502-502-java-093.yaml +40 -0
  940. package/rules/unified/cwe-502/zm-taint-502-502-java-094.yaml +40 -0
  941. package/rules/unified/cwe-502/zm-taint-502-502-java-095.yaml +40 -0
  942. package/rules/unified/cwe-502/zm-taint-502-502-java-097.yaml +40 -0
  943. package/rules/unified/cwe-502/zm-taint-502-502-java-098.yaml +40 -0
  944. package/rules/unified/cwe-502/zm-taint-502-502-java-099.yaml +40 -0
  945. package/rules/unified/cwe-502/zm-taint-502-502-javascript-107.yaml +40 -0
  946. package/rules/unified/cwe-502/zm-taint-502-502-python-105.yaml +47 -0
  947. package/rules/unified/cwe-506/zm-js-cwe506-npm-supply-chain.yaml +20 -0
  948. package/rules/unified/cwe-532/zm-java-cwe532-printstack-info-leak.yaml +56 -0
  949. package/rules/unified/cwe-601/cwe-601-url-redirect.yaml +111 -0
  950. package/rules/unified/cwe-601/zm-cs-cwe601-url-redirect.yaml +61 -0
  951. package/rules/unified/cwe-601/zm-go-cwe601-open-redirect.yaml +40 -0
  952. package/rules/unified/cwe-601/zm-java-cwe601-modelandview-redirect.yaml +70 -0
  953. package/rules/unified/cwe-601/zm-js-cwe601-express-redirect.yaml +28 -0
  954. package/rules/unified/cwe-601/zm-js-cwe601-fastify-redirect.yaml +25 -0
  955. package/rules/unified/cwe-601/zm-php-cwe601-open-redirect.yaml +107 -0
  956. package/rules/unified/cwe-601/zm-taint-601-601-go-178.yaml +41 -0
  957. package/rules/unified/cwe-601/zm-taint-601-601-python-177.yaml +42 -0
  958. package/rules/unified/cwe-611/cwe-611-xxe.yaml +71 -0
  959. package/rules/unified/cwe-611/zm-cs-cwe611-xxe.yaml +87 -0
  960. package/rules/unified/cwe-611/zm-java-cwe611-xxe-enhanced.yaml +81 -0
  961. package/rules/unified/cwe-611/zm-java-cwe611-xxe-transformer.yaml +86 -0
  962. package/rules/unified/cwe-611/zm-java-xxe-cwe611-003.yaml +106 -0
  963. package/rules/unified/cwe-611/zm-js-cwe611-xxe.yaml +109 -0
  964. package/rules/unified/cwe-611/zm-py-cwe611-xxe-advanced.yaml +70 -0
  965. package/rules/unified/cwe-611/zm-py-cwe611-xxe.yaml +101 -0
  966. package/rules/unified/cwe-611/zm-taint-611-611-go-123.yaml +38 -0
  967. package/rules/unified/cwe-611/zm-taint-611-611-java-111.yaml +45 -0
  968. package/rules/unified/cwe-611/zm-taint-611-611-java-112.yaml +45 -0
  969. package/rules/unified/cwe-611/zm-taint-611-611-java-113.yaml +45 -0
  970. package/rules/unified/cwe-611/zm-taint-611-611-java-114.yaml +45 -0
  971. package/rules/unified/cwe-611/zm-taint-611-611-java-115.yaml +45 -0
  972. package/rules/unified/cwe-611/zm-taint-611-611-javascript-121.yaml +39 -0
  973. package/rules/unified/cwe-611/zm-taint-611-611-javascript-122.yaml +39 -0
  974. package/rules/unified/cwe-639/zm-java-cwe639-idor.yaml +124 -0
  975. package/rules/unified/cwe-639/zm-js-cwe639-idor.yaml +123 -0
  976. package/rules/unified/cwe-643/zm-java-cwe643-xpath-injection.yaml +56 -0
  977. package/rules/unified/cwe-676/zm-cpp-cwe676-dangerous-function.yaml +86 -0
  978. package/rules/unified/cwe-693/zm-go-cwe693-gin-middleware.yaml +49 -0
  979. package/rules/unified/cwe-693/zm-go-cwe693-security-headers.yaml +133 -0
  980. package/rules/unified/cwe-693/zm-js-cwe693-helmet-missing.yaml +57 -0
  981. package/rules/unified/cwe-732/cwe-732-incorrect-permission.yaml +50 -0
  982. package/rules/unified/cwe-74/zm-java-cwe74-host-header-injection.yaml +64 -0
  983. package/rules/unified/cwe-770/cwe-770-resource-exhaustion.yaml +45 -0
  984. package/rules/unified/cwe-770/zm-go-cwe770-redos.yaml +79 -0
  985. package/rules/unified/cwe-770/zm-js-cwe770-nestjs-validator.yaml +27 -0
  986. package/rules/unified/cwe-78/cwe-78-os-command-injection.yaml +44 -0
  987. package/rules/unified/cwe-78/zm-ansible-cwe78-command-injection.yaml +68 -0
  988. package/rules/unified/cwe-78/zm-cpp-cwe78-command-injection.yaml +86 -0
  989. package/rules/unified/cwe-78/zm-cs-cwe78-command-injection.yaml +94 -0
  990. package/rules/unified/cwe-78/zm-go-cwe78-command-injection.yaml +96 -0
  991. package/rules/unified/cwe-78/zm-go-cwe78-osci-advanced.yaml +39 -0
  992. package/rules/unified/cwe-78/zm-java-rce-cwe78-001.yaml +99 -0
  993. package/rules/unified/cwe-78/zm-js-cwe78-exec.yaml +38 -0
  994. package/rules/unified/cwe-78/zm-js-cwe78-execsync-injection.yaml +26 -0
  995. package/rules/unified/cwe-78/zm-js-cwe78-spawn.yaml +38 -0
  996. package/rules/unified/cwe-78/zm-php-cwe78-cmdinj.yaml +222 -0
  997. package/rules/unified/cwe-78/zm-py-cwe78-command-injection.yaml +122 -0
  998. package/rules/unified/cwe-78/zm-py-cwe78-osci-advanced.yaml +77 -0
  999. package/rules/unified/cwe-78/zm-rust-cwe78-cmdinj.yaml +103 -0
  1000. package/rules/unified/cwe-78/zm-taint-78-78-go-040.yaml +38 -0
  1001. package/rules/unified/cwe-78/zm-taint-78-78-go-041.yaml +38 -0
  1002. package/rules/unified/cwe-78/zm-taint-78-78-java-027.yaml +44 -0
  1003. package/rules/unified/cwe-78/zm-taint-78-78-java-028.yaml +44 -0
  1004. package/rules/unified/cwe-78/zm-taint-78-78-java-029.yaml +44 -0
  1005. package/rules/unified/cwe-78/zm-taint-78-78-python-034.yaml +47 -0
  1006. package/rules/unified/cwe-787/cwe-787-out-of-bounds-write.yaml +38 -0
  1007. package/rules/unified/cwe-79/cwe-79-xss.yaml +52 -0
  1008. package/rules/unified/cwe-79/zm-cs-cwe79-xss.yaml +84 -0
  1009. package/rules/unified/cwe-79/zm-go-cwe79-framework-xss.yaml +134 -0
  1010. package/rules/unified/cwe-79/zm-go-cwe79-mail-injection.yaml +68 -0
  1011. package/rules/unified/cwe-79/zm-go-cwe79-xss.yaml +105 -0
  1012. package/rules/unified/cwe-79/zm-java-cwe79-xss-depth.yaml +99 -0
  1013. package/rules/unified/cwe-79/zm-js-cwe79-angular-bypass.yaml +24 -0
  1014. package/rules/unified/cwe-79/zm-js-cwe79-domxss.yaml +85 -0
  1015. package/rules/unified/cwe-79/zm-js-cwe79-electron-security.yaml +36 -0
  1016. package/rules/unified/cwe-79/zm-js-cwe79-react-dangerously.yaml +23 -0
  1017. package/rules/unified/cwe-79/zm-js-cwe79-react-xss-deep.yaml +35 -0
  1018. package/rules/unified/cwe-79/zm-js-cwe79-react-xss.yaml +19 -0
  1019. package/rules/unified/cwe-79/zm-js-cwe79-vue-vhtml.yaml +25 -0
  1020. package/rules/unified/cwe-79/zm-js-cwe79-xss-ejs.yaml +71 -0
  1021. package/rules/unified/cwe-79/zm-php-cwe79-xss.yaml +222 -0
  1022. package/rules/unified/cwe-79/zm-py-cwe79-django-flask-xss.yaml +97 -0
  1023. package/rules/unified/cwe-79/zm-py-cwe79-host-header-injection.yaml +43 -0
  1024. package/rules/unified/cwe-79/zm-py-cwe79-xss.yaml +124 -0
  1025. package/rules/unified/cwe-79/zm-taint-79-79-javascript-050.yaml +45 -0
  1026. package/rules/unified/cwe-79/zm-taint-79-79-javascript-054.yaml +45 -0
  1027. package/rules/unified/cwe-79/zm-taint-79-79-python-056.yaml +44 -0
  1028. package/rules/unified/cwe-798/zm-cs-cwe798-hardcoded-creds.yaml +107 -0
  1029. package/rules/unified/cwe-798/zm-go-cwe798-hardcoded-creds.yaml +154 -0
  1030. package/rules/unified/cwe-798/zm-py-cwe798-framework-creds.yaml +160 -0
  1031. package/rules/unified/cwe-798/zm-py-cwe798-hardcoded-creds.yaml +87 -0
  1032. package/rules/unified/cwe-798/zm-rust-cwe798-hardcoded-creds.yaml +128 -0
  1033. package/rules/unified/cwe-798/zm-tf-cwe798-hardcoded-creds.yaml +103 -0
  1034. package/rules/unified/cwe-862/zm-js-cwe862-nestjs-skip-auth.yaml +24 -0
  1035. package/rules/unified/cwe-89/cwe-89-sqli.yaml +90 -0
  1036. package/rules/unified/cwe-89/zm-cs-cwe89-sql-injection.yaml +95 -0
  1037. package/rules/unified/cwe-89/zm-go-cwe89-framework-sqli.yaml +154 -0
  1038. package/rules/unified/cwe-89/zm-go-cwe89-gorm-sqli.yaml +105 -0
  1039. package/rules/unified/cwe-89/zm-go-cwe89-sqli.yaml +90 -0
  1040. package/rules/unified/cwe-89/zm-java-cwe89-jpa-query-concat.yaml +56 -0
  1041. package/rules/unified/cwe-89/zm-java-hql-cwe89-001.yaml +73 -0
  1042. package/rules/unified/cwe-89/zm-js-cwe89-koa-sqli.yaml +29 -0
  1043. package/rules/unified/cwe-89/zm-js-cwe89-nestjs-typeorm.yaml +34 -0
  1044. package/rules/unified/cwe-89/zm-js-cwe89-prisma-typeorm.yaml +140 -0
  1045. package/rules/unified/cwe-89/zm-js-cwe89-prisma-unsafe.yaml +24 -0
  1046. package/rules/unified/cwe-89/zm-js-cwe89-sequelize-literal.yaml +26 -0
  1047. package/rules/unified/cwe-89/zm-js-cwe89-sqli.yaml +154 -0
  1048. package/rules/unified/cwe-89/zm-php-cwe89-sqli.yaml +185 -0
  1049. package/rules/unified/cwe-89/zm-py-cwe89-django-sqli.yaml +75 -0
  1050. package/rules/unified/cwe-89/zm-py-cwe89-injection-misc.yaml +94 -0
  1051. package/rules/unified/cwe-89/zm-py-cwe89-sqli.yaml +60 -0
  1052. package/rules/unified/cwe-89/zm-py-sqlalchemy-cwe89-01.yaml +66 -0
  1053. package/rules/unified/cwe-89/zm-rust-cwe89-sqli.yaml +149 -0
  1054. package/rules/unified/cwe-89/zm-taint-89-89-go-023.yaml +40 -0
  1055. package/rules/unified/cwe-89/zm-taint-89-89-go-024.yaml +40 -0
  1056. package/rules/unified/cwe-89/zm-taint-89-89-go-025.yaml +40 -0
  1057. package/rules/unified/cwe-89/zm-taint-89-89-java-001.yaml +48 -0
  1058. package/rules/unified/cwe-89/zm-taint-89-89-java-006.yaml +48 -0
  1059. package/rules/unified/cwe-89/zm-taint-89-89-java-008.yaml +48 -0
  1060. package/rules/unified/cwe-89/zm-taint-89-89-javascript-018.yaml +48 -0
  1061. package/rules/unified/cwe-89/zm-taint-89-89-javascript-019.yaml +48 -0
  1062. package/rules/unified/cwe-89/zm-taint-89-89-javascript-022.yaml +48 -0
  1063. package/rules/unified/cwe-89/zm-taint-89-89-python-014.yaml +48 -0
  1064. package/rules/unified/cwe-89/zm-taint-89-89-python-015.yaml +48 -0
  1065. package/rules/unified/cwe-89/zm-taint-89-89-python-017.yaml +48 -0
  1066. package/rules/unified/cwe-90/zm-java-cwe90-ldap-injection.yaml +54 -0
  1067. package/rules/unified/cwe-915/zm-go-cwe915-reflect-injection.yaml +70 -0
  1068. package/rules/unified/cwe-915/zm-java-cwe915-mass-assignment.yaml +17 -0
  1069. package/rules/unified/cwe-915/zm-js-cwe915-mass-assignment.yaml +112 -0
  1070. package/rules/unified/cwe-915/zm-js-cwe915-prototype-pollution.yaml +31 -0
  1071. package/rules/unified/cwe-915/zm-php-cwe915-mass-assignment.yaml +127 -0
  1072. package/rules/unified/cwe-915/zm-taint-915-915-javascript-216.yaml +39 -0
  1073. package/rules/unified/cwe-915/zm-taint-915-915-javascript-217.yaml +40 -0
  1074. package/rules/unified/cwe-915/zm-taint-915-915-javascript-218.yaml +39 -0
  1075. package/rules/unified/cwe-915/zm-taint-915-915-javascript-219.yaml +42 -0
  1076. package/rules/unified/cwe-917/zm-java-cwe917-expression-injection.yaml +121 -0
  1077. package/rules/unified/cwe-918/cwe-918-ssrf.yaml +46 -0
  1078. package/rules/unified/cwe-918/zm-cs-cwe918-ssrf.yaml +96 -0
  1079. package/rules/unified/cwe-918/zm-go-cwe918-ssrf.yaml +118 -0
  1080. package/rules/unified/cwe-918/zm-java-cwe918-jsoup-ssrf.yaml +56 -0
  1081. package/rules/unified/cwe-918/zm-java-cwe918-okhttp-full.yaml +63 -0
  1082. package/rules/unified/cwe-918/zm-java-cwe918-resttemplate.yaml +68 -0
  1083. package/rules/unified/cwe-918/zm-java-cwe918-rt-getforentity.yaml +49 -0
  1084. package/rules/unified/cwe-918/zm-java-cwe918-ssrf-depth.yaml +104 -0
  1085. package/rules/unified/cwe-918/zm-java-cwe918-ssrf-resttemplate.yaml +78 -0
  1086. package/rules/unified/cwe-918/zm-java-cwe918-url-openconnection.yaml +58 -0
  1087. package/rules/unified/cwe-918/zm-java-cwe918-webclient-ssrf.yaml +60 -0
  1088. package/rules/unified/cwe-918/zm-java-cwe918-webclient.yaml +45 -0
  1089. package/rules/unified/cwe-918/zm-js-cwe918-http-ssrf-concat.yaml +28 -0
  1090. package/rules/unified/cwe-918/zm-js-cwe918-nextjs-ssrf.yaml +46 -0
  1091. package/rules/unified/cwe-918/zm-js-cwe918-ssrf-fetch.yaml +135 -0
  1092. package/rules/unified/cwe-918/zm-js-cwe918-ssrf.yaml +133 -0
  1093. package/rules/unified/cwe-918/zm-php-cwe918-ssrf.yaml +144 -0
  1094. package/rules/unified/cwe-918/zm-py-cwe918-flask-ssrf.yaml +40 -0
  1095. package/rules/unified/cwe-918/zm-py-cwe918-ssrf-advanced.yaml +105 -0
  1096. package/rules/unified/cwe-918/zm-py-cwe918-ssrf.yaml +124 -0
  1097. package/rules/unified/cwe-918/zm-taint-918-918-java-078.yaml +45 -0
  1098. package/rules/unified/cwe-918/zm-taint-918-918-java-079.yaml +45 -0
  1099. package/rules/unified/cwe-918/zm-taint-918-918-python-085.yaml +46 -0
  1100. package/rules/unified/cwe-94/cwe-94-code-injection.yaml +60 -0
  1101. package/rules/unified/cwe-94/zm-java-cwe94-ognl.yaml +67 -0
  1102. package/rules/unified/cwe-94/zm-java-cwe94-spel-injection.yaml +86 -0
  1103. package/rules/unified/cwe-94/zm-java-cwe94-spel.yaml +113 -0
  1104. package/rules/unified/cwe-94/zm-java-cwe94-ssti.yaml +23 -0
  1105. package/rules/unified/cwe-94/zm-java-cwe94-value-spel.yaml +56 -0
  1106. package/rules/unified/cwe-94/zm-java-expression-cwe94-001.yaml +111 -0
  1107. package/rules/unified/cwe-94/zm-js-cwe94-template-injection.yaml +131 -0
  1108. package/rules/unified/cwe-94/zm-php-cwe94-code-injection.yaml +129 -0
  1109. package/rules/unified/cwe-94/zm-py-cwe94-ssti.yaml +88 -0
  1110. package/rules/unified/cwe-942/zm-java-cwe942-cors-wildcard.yaml +63 -0
  1111. package/rules/unified/cwe-942/zm-java-cwe942-cors.yaml +16 -0
  1112. package/rules/unified/cwe-942/zm-js-cwe942-cors.yaml +50 -0
  1113. package/rules/unified/cwe-942/zm-js-cwe942-express-cors.yaml +25 -0
  1114. package/rules/unified/cwe-943/zm-go-cwe943-nosql-injection.yaml +89 -0
  1115. package/rules/unified/cwe-943/zm-js-cwe943-mongoose-nosqli.yaml +29 -0
  1116. package/rules/unified/cwe-943/zm-js-cwe943-nosql-injection.yaml +53 -0
  1117. package/rules/unified/cwe-943/zm-py-cwe943-nosql-injection.yaml +124 -0
  1118. package/rules/unified/cwe-943/zm-taint-943-943-java-238.yaml +38 -0
  1119. package/rules/unified/cwe-943/zm-taint-943-943-javascript-234.yaml +41 -0
  1120. package/rules/unified/cwe-943/zm-taint-943-943-javascript-235.yaml +41 -0
  1121. package/rules/unified/cwe-943/zm-taint-943-943-javascript-236.yaml +40 -0
  1122. package/rules/unified/cwe-943/zm-taint-943-943-python-237.yaml +39 -0
  1123. package/rules/unified/cwe-95/zm-js-cwe95-eval.yaml +60 -0
  1124. package/rules/unified/cwe-95/zm-js-cwe95-function-ctor.yaml +32 -0
  1125. package/rules/unified/cwe-98/zm-php-cwe98-file-include.yaml +142 -0
  1126. package/rules/unified/cwe-unknown/zm-docker-security.yaml +105 -0
  1127. package/rules/unified/cwe-unknown/zm-go-cwe-unknown-misc.yaml +152 -0
  1128. package/rules/unified/cwe-unknown/zm-k8s-security.yaml +80 -0
@@ -0,0 +1,86 @@
1
+ # 逐码 ZhuMa IaC 规则 — Ansible Playbook 数据库凭证和文件行注入检测
2
+ # V4.3 Sprint — CWE-798: Hardcoded Credentials / 敏感数据暴露
3
+
4
+ rules:
5
+ # ZM-ANSIBLE-CWE798-004: mysql_user password 明文
6
+ - id: zm-ansible-cwe798-mysql-password-001
7
+ severity: CRITICAL
8
+ message: |
9
+ Ansible `mysql_user` 模块中 `password` 参数包含明文密码 — 该值会出现在 Ansible 日志
10
+ 和 playbook 文件中。攻击者获取 playbook 后可直接连接数据库。
11
+
12
+ 修复:
13
+ 1. 使用 `ansible-vault` 加密密码变量:
14
+ ```bash
15
+ ansible-vault encrypt_string 'MySecretPassword' --name 'db_password'
16
+ ```
17
+ ```yaml
18
+ - mysql_user:
19
+ name: app_user
20
+ password: "{{ db_password }}"
21
+ priv: "app_db.*:ALL"
22
+ ```
23
+ 2. 使用 `login_password` 配合 vault 变量:
24
+ ```yaml
25
+ - mysql_user:
26
+ login_user: root
27
+ login_password: "{{ vault_mysql_root_password }}"
28
+ name: app_user
29
+ password: "{{ vault_app_password }}"
30
+ ```
31
+ languages:
32
+ - generic
33
+ pattern-either:
34
+ - pattern: |
35
+ mysql_user:
36
+ ...
37
+ password: "$VAL"
38
+ - pattern: |
39
+ mysql_user:
40
+ ...
41
+ login_password: "$VAL"
42
+ metadata:
43
+ cwe: "CWE-798: Use of Hard-coded Credentials"
44
+ category: iac-ansible
45
+ precision: medium
46
+ confidence: high
47
+ tags: [ansible, mysql, hardcoded-credentials, database]
48
+
49
+ # ZM-ANSIBLE-CWE798-005: lineinfile 含密码插入
50
+ - id: zm-ansible-cwe798-lineinfile-password-001
51
+ severity: MEDIUM
52
+ message: |
53
+ Ansible `lineinfile` 模块可能用于向配置文件写入硬编码密码 —
54
+ 这会将密码明文写入目标主机的配置文件中。
55
+
56
+ 修复:
57
+ 1. 将密码存储在 vault 加密变量中:
58
+ ```yaml
59
+ - lineinfile:
60
+ path: /etc/app/config.properties
61
+ regexp: '^db.password='
62
+ line: "db.password={{ vault_db_password }}"
63
+ ```
64
+ 2. 使用 template 模块生成整个配置文件
65
+ 3. 使用 no_log: true 防止密码值在 Ansible 输出中显示
66
+ languages:
67
+ - generic
68
+ pattern-either:
69
+ - pattern: |
70
+ lineinfile:
71
+ ...
72
+ line: "...password=..."
73
+ - pattern: |
74
+ lineinfile:
75
+ ...
76
+ line: "...passwd=..."
77
+ - pattern: |
78
+ lineinfile:
79
+ ...
80
+ line: "...secret=..."
81
+ metadata:
82
+ cwe: "CWE-798: Use of Hard-coded Credentials"
83
+ category: iac-ansible
84
+ precision: medium
85
+ confidence: medium
86
+ tags: [ansible, lineinfile, hardcoded-credentials, config-files]
@@ -0,0 +1,78 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform GCP/阿里云防火墙和EKS安全检测
2
+ # V4.3 Sprint — 多云IaC安全
3
+
4
+ rules:
5
+ # ZM-TF-CWE284-GCP-001: GCP Compute Firewall 0.0.0.0/0
6
+ - id: zm-tf-cwe284-gcp-firewall-world-001
7
+ severity: CRITICAL
8
+ message: |
9
+ GCP Compute Firewall 允许 `0.0.0.0/0` 来源访问 — 服务端口暴露给整个互联网。
10
+
11
+ 与 AWS Security Group 类似,GCP Firewall source_ranges 设为 0.0.0.0/0
12
+ 允许全球任意 IP 访问该规则覆盖的实例。
13
+
14
+ 修复:
15
+ 1. 将 source_ranges 限制为特定 IP 范围:
16
+ ```hcl
17
+ resource "google_compute_firewall" "web" {
18
+ name = "allow-web-internal"
19
+ network = google_compute_network.vpc.name
20
+ allow {
21
+ protocol = "tcp"
22
+ ports = ["443"]
23
+ }
24
+ source_ranges = ["10.0.0.0/8"]
25
+ }
26
+ ```
27
+ 2. 使用 Identity-Aware Proxy (IAP) 进行身份验证的 HTTPS 访问
28
+ 3. 数据库端口仅对应用子网开放,不应有公网防火墙规则
29
+ languages:
30
+ - terraform
31
+ pattern-either:
32
+ - pattern: |
33
+ source_ranges = ["0.0.0.0/0"]
34
+ - pattern: |
35
+ source_ranges = ["0.0.0.0/0", ...]
36
+ metadata:
37
+ cwe: "CWE-284: Improper Access Control"
38
+ category: iac-terraform
39
+ precision: very-high
40
+ confidence: high
41
+ tags: [terraform, gcp, firewall, public-access, network-exposure]
42
+
43
+ # ZM-TF-CWE200-EKS-001: EKS Public Endpoint
44
+ - id: zm-tf-cwe200-eks-public-endpoint-001
45
+ severity: HIGH
46
+ message: |
47
+ AWS EKS Cluster 启用了公共 API 端点 — `endpoint_public_access = true`。
48
+ Kubernetes API Server 暴露在公网上,即使有 IAM 认证也存在被暴力破解或漏洞利用的风险。
49
+
50
+ 修复:
51
+ 1. 禁用公共端点,仅使用私有端点:
52
+ ```hcl
53
+ resource "aws_eks_cluster" "cluster" {
54
+ name = "my-cluster"
55
+ vpc_config {
56
+ endpoint_public_access = false
57
+ endpoint_private_access = true
58
+ }
59
+ }
60
+ ```
61
+ 2. 如必须保留公共端点,配置 `public_access_cidrs` 限制来源 IP:
62
+ ```hcl
63
+ vpc_config {
64
+ endpoint_public_access = true
65
+ endpoint_private_access = true
66
+ public_access_cidrs = ["203.0.113.0/24"]
67
+ }
68
+ ```
69
+ languages:
70
+ - terraform
71
+ pattern: |
72
+ endpoint_public_access = true
73
+ metadata:
74
+ cwe: "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"
75
+ category: iac-terraform
76
+ precision: very-high
77
+ confidence: high
78
+ tags: [terraform, aws, eks, kubernetes-api, public-access]
@@ -0,0 +1,70 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform AWS Security Group 安全检测
2
+ # V4.3 Sprint — CWE-284: Improper Access Control / 公网暴露
3
+
4
+ rules:
5
+ # ZM-TF-CWE284-SG-001: Security Group ingress 0.0.0.0/0
6
+ - id: zm-tf-cwe284-sg-ingress-world-001
7
+ severity: CRITICAL
8
+ message: |
9
+ AWS Security Group 入站规则允许 `0.0.0.0/0`(整个互联网)访问 —
10
+ 服务端口直接暴露给公网,易被扫描和攻击。
11
+
12
+ 常见高危端口暴露:
13
+ - 22 (SSH): 暴力破解攻击
14
+ - 3389 (RDP): 勒索软件入口
15
+ - 3306 (MySQL)/5432 (PostgreSQL): 数据库直接暴露
16
+ - 6379 (Redis): 未认证访问攻击
17
+
18
+ 修复:
19
+ 1. 将 cidr_blocks 限制为特定 IP 或办公网络 CIDR:
20
+ ```hcl
21
+ ingress {
22
+ from_port = 22
23
+ to_port = 22
24
+ protocol = "tcp"
25
+ cidr_blocks = ["10.0.0.0/8", "172.16.0.0/12"]
26
+ }
27
+ ```
28
+ 2. 使用 SSM Session Manager 替代 SSH 端口暴露
29
+ 3. 数据库仅允许来自应用安全组的流量
30
+ languages:
31
+ - terraform
32
+ pattern-either:
33
+ - pattern: |
34
+ cidr_blocks = ["0.0.0.0/0"]
35
+ - pattern: |
36
+ cidr_blocks = ["0.0.0.0/0", ...]
37
+ metadata:
38
+ cwe: "CWE-284: Improper Access Control"
39
+ category: iac-terraform
40
+ precision: very-high
41
+ confidence: high
42
+ tags: [terraform, aws, security-group, public-access, network-exposure]
43
+
44
+ # ZM-TF-CWE284-SG-002: Security Group 过于宽松 egress
45
+ - id: zm-tf-cwe284-sg-egress-world-001
46
+ severity: MEDIUM
47
+ message: |
48
+ AWS Security Group 出站规则允许 `0.0.0.0/0` 访问所有端口 —
49
+ 这允许被入侵的实例自由连接外部 C2 服务器或进行数据外泄。
50
+
51
+ 修复:
52
+ 1. 限制出站目标为特定的服务 CIDR:
53
+ ```hcl
54
+ egress {
55
+ from_port = 443
56
+ to_port = 443
57
+ protocol = "tcp"
58
+ cidr_blocks = ["${var.api_endpoint_ip}/32"]
59
+ }
60
+ ```
61
+ 2. 使用 VPC Endpoint 访问 AWS 服务,避免通过公网
62
+ 3. 出站流量通过 NAT Gateway + 防火墙检查
63
+ languages:
64
+ - terraform
65
+ metadata:
66
+ cwe: "CWE-284: Improper Access Control"
67
+ category: iac-terraform
68
+ precision: low
69
+ confidence: medium
70
+ tags: [terraform, aws, security-group, egress, data-exfiltration]
@@ -0,0 +1,46 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform AWS IAM 过度授权检测
2
+ # V4.3 Sprint — CWE-285: Improper Authorization
3
+
4
+ rules:
5
+ # ZM-TF-CWE285-IAM-001: IAM Policy Action="*" Resource="*"
6
+ - id: zm-tf-cwe285-iam-wildcard-002
7
+ severity: CRITICAL
8
+ message: |
9
+ AWS IAM Policy 同时使用 `Action = "*"` 和 `Resource = "*"` —
10
+ 授予了对所有 AWS 服务和资源的完全控制权限,相当于 AdministratorAccess 托管策略。
11
+
12
+ 这违反了最小权限原则。攻击者获得这些凭证后可以:
13
+ - 读取所有 S3 Bucket 数据
14
+ - 创建/删除 EC2 实例
15
+ - 修改 IAM 策略实现权限提升
16
+ - 在 CloudTrail 中关闭审计日志
17
+
18
+ 修复:
19
+ 1. 将 Action 限制为实际需要的 API 操作:
20
+ ```hcl
21
+ Action = [
22
+ "s3:GetObject",
23
+ "s3:PutObject"
24
+ ]
25
+ ```
26
+ 2. 将 Resource 限制为特定资源 ARN:
27
+ ```hcl
28
+ Resource = "arn:aws:s3:::my-bucket/*"
29
+ ```
30
+ 3. 添加 Condition 子句限制访问条件(来源IP、MFA状态等)
31
+ 4. 使用 AWS 托管策略而非内联策略时,优先选择细粒度策略
32
+ languages:
33
+ - terraform
34
+ pattern-either:
35
+ - pattern: |
36
+ actions = ["*"]
37
+ - pattern: |
38
+ Action = ["*"]
39
+ - pattern: |
40
+ Action = ["*"]
41
+ metadata:
42
+ cwe: "CWE-285: Improper Authorization"
43
+ category: iac-terraform
44
+ precision: very-high
45
+ confidence: high
46
+ tags: [terraform, aws, iam, wildcard, over-privileged, least-privilege]
@@ -0,0 +1,46 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform State 安全检测
2
+ # V4.3 Sprint — CWE-312: Cleartext Storage of Sensitive Information
3
+
4
+ rules:
5
+ # ZM-TF-CWE312-STATE-001: Terraform State 含敏感信息风险标记
6
+ - id: zm-tf-cwe312-state-secrets-001
7
+ severity: CRITICAL
8
+ message: |
9
+ 检测到 Terraform 配置引用了可能包含敏感信息的本地 state 文件 —
10
+ Terraform state 文件以明文存储所有资源属性,包括数据库密码、API 密钥等。
11
+
12
+ terraform.tfstate 包含完整的资源状态,攻击者获取此文件后可:
13
+ - 读取所有资源的敏感属性 (密码、密钥、证书)
14
+ - 了解完整的云基础设施拓扑
15
+ - 修改 state 文件进行供应链攻击
16
+
17
+ 修复:
18
+ 1. 使用远程 Backend 并启用加密:
19
+ ```hcl
20
+ terraform {
21
+ backend "s3" {
22
+ bucket = "terraform-state-bucket"
23
+ key = "prod/terraform.tfstate"
24
+ region = "us-east-1"
25
+ encrypt = true
26
+ kms_key_id = "alias/terraform-state-key"
27
+ dynamodb_table = "terraform-lock"
28
+ }
29
+ }
30
+ ```
31
+ 2. 不要将 .tfstate 文件提交到 Git
32
+ 3. 使用 terraform_remote_state 时限制数据源暴露面
33
+ languages:
34
+ - terraform
35
+ pattern-either:
36
+ - pattern: |
37
+ backend "local" {
38
+ }
39
+ - pattern: |
40
+ backend "local"
41
+ metadata:
42
+ cwe: "CWE-312: Cleartext Storage of Sensitive Information"
43
+ category: iac-terraform
44
+ precision: medium
45
+ confidence: high
46
+ tags: [terraform, state, secrets, encryption, backend]
@@ -0,0 +1,69 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform Azure 存储和数据库安全检测
2
+ # V4.3 Sprint — CWE-319: Cleartext Transmission / SSL禁用
3
+
4
+ rules:
5
+ # ZM-TF-CWE319-AZURE-001: Azure Storage Account HTTPS 未强制
6
+ - id: zm-tf-cwe319-azure-storage-https-001
7
+ severity: HIGH
8
+ message: |
9
+ Azure Storage Account 未启用 HTTPS 强制 — `enable_https_traffic_only` 默认为 true,
10
+ 但某些配置中可能被设为 false,允许非加密 HTTP 流量访问存储账户。
11
+
12
+ 修复:
13
+ ```hcl
14
+ resource "azurerm_storage_account" "sa" {
15
+ name = "mystorageaccount"
16
+ resource_group_name = azurerm_resource_group.rg.name
17
+ location = azurerm_resource_group.rg.location
18
+ account_tier = "Standard"
19
+ account_replication_type = "LRS"
20
+ enable_https_traffic_only = true
21
+ min_tls_version = "TLS1_2"
22
+ }
23
+ ```
24
+
25
+ 同时建议:
26
+ 1. 设置 `min_tls_version = "TLS1_2"` 禁用旧版本 TLS
27
+ 2. 启用 `shared_access_key_enabled = false` 使用 Azure AD 认证
28
+ 3. 启用存储防火墙限制网络来源
29
+ languages:
30
+ - terraform
31
+ pattern: |
32
+ enable_https_traffic_only = false
33
+ metadata:
34
+ cwe: "CWE-319: Cleartext Transmission of Sensitive Information"
35
+ category: iac-terraform
36
+ precision: very-high
37
+ confidence: high
38
+ tags: [terraform, azure, storage, https, cleartext]
39
+
40
+ # ZM-TF-CWE319-AZURE-002: Azure MySQL SSL 强制禁用
41
+ - id: zm-tf-cwe319-azure-mysql-ssl-001
42
+ severity: HIGH
43
+ message: |
44
+ Azure MySQL Server 禁用了 SSL 强制 — `ssl_enforcement_enabled = false` 或 `ssl_enforcement = "Disabled"`。
45
+ 数据库与客户端之间的通信以明文传输,密码和查询数据可被窃听。
46
+
47
+ 修复:
48
+ ```hcl
49
+ resource "azurerm_mysql_server" "mysql" {
50
+ name = "mysql-server"
51
+ ssl_enforcement_enabled = true
52
+ ssl_minimal_tls_version_enforced = "TLS1_2"
53
+ }
54
+ ```
55
+ languages:
56
+ - terraform
57
+ pattern-either:
58
+ - pattern: |
59
+ ssl_enforcement_enabled = false
60
+ - pattern: |
61
+ ssl_enforcement = "Disabled"
62
+ - pattern: |
63
+ ssl_enforcement = Disabled
64
+ metadata:
65
+ cwe: "CWE-319: Cleartext Transmission of Sensitive Information"
66
+ category: iac-terraform
67
+ precision: very-high
68
+ confidence: high
69
+ tags: [terraform, azure, mysql, ssl, cleartext]
@@ -0,0 +1,85 @@
1
+ # 逐码 ZhuMa IaC 规则 — Terraform AWS ECS / Lambda 环境变量凭证检测
2
+ # V4.3 Sprint — CWE-798: Use of Hard-coded Credentials
3
+
4
+ rules:
5
+ # ZM-TF-CWE798-ECS-001: ECS Task Definition 环境变量含密码
6
+ - id: zm-tf-cwe798-ecs-env-secrets-001
7
+ severity: HIGH
8
+ message: |
9
+ AWS ECS Task Definition 的 `environment` 块可能包含硬编码敏感信息 —
10
+ 这些值在 AWS 控制台、CloudWatch Logs 和 DescribeTaskDefinition API 中可见。
11
+
12
+ 修复:
13
+ 1. 使用 AWS Secrets Manager 存储凭证:
14
+ ```hcl
15
+ secrets = [
16
+ {
17
+ name = "DB_PASSWORD"
18
+ valueFrom = aws_secretsmanager_secret_version.db.arn
19
+ }
20
+ ]
21
+ ```
22
+ 2. 使用 SSM Parameter Store (SecureString):
23
+ ```hcl
24
+ secrets = [
25
+ {
26
+ name = "API_KEY"
27
+ valueFrom = aws_ssm_parameter.api_key.arn
28
+ }
29
+ ]
30
+ ```
31
+ languages:
32
+ - terraform
33
+ pattern: |
34
+ resource "aws_ecs_task_definition" $NAME {
35
+ ...
36
+ environment {
37
+ name = $ENV_NAME
38
+ value = $ENV_VALUE
39
+ }
40
+ ...
41
+ }
42
+ metadata:
43
+ cwe: "CWE-798: Use of Hard-coded Credentials"
44
+ category: iac-terraform
45
+ precision: medium
46
+ confidence: medium
47
+ tags: [terraform, aws, ecs, secrets, hardcoded-credentials]
48
+
49
+ # ZM-TF-CWE798-LAMBDA-001: Lambda 环境变量含密钥
50
+ - id: zm-tf-cwe798-lambda-env-secrets-001
51
+ severity: HIGH
52
+ message: |
53
+ AWS Lambda 的 `environment.variables` 中包含密钥 —
54
+ Lambda 环境变量在 AWS 控制台、CloudWatch Logs 和函数配置中可见。
55
+
56
+ 修复:
57
+ 1. 使用 AWS Secrets Manager + Lambda Extension 动态获取密钥
58
+ 2. 使用 SSM Parameter Store SecureString:
59
+ ```hcl
60
+ environment {
61
+ variables = {
62
+ DB_PASSWORD_PARAM = aws_ssm_parameter.db_password.name
63
+ }
64
+ }
65
+ ```
66
+ 3. 使用 Lambda 环境变量加密助手 (KMS 加密)
67
+ 4. 在 Lambda 代码中运行时从 Secrets Manager 获取凭据
68
+ languages:
69
+ - terraform
70
+ pattern: |
71
+ resource "aws_lambda_function" $NAME {
72
+ ...
73
+ environment {
74
+ variables = {
75
+ $KEY = $VALUE
76
+ }
77
+ }
78
+ ...
79
+ }
80
+ metadata:
81
+ cwe: "CWE-798: Use of Hard-coded Credentials"
82
+ category: iac-terraform
83
+ precision: medium
84
+ confidence: medium
85
+ tags: [terraform, aws, lambda, secrets, hardcoded-credentials]
@@ -0,0 +1,37 @@
1
+ # 逐码 ZhuMa IaC 规则 — Dockerfile ADD 指令安全检查
2
+ # V4.3 Sprint — CWE-1104: Use of Unmaintained Third Party Components
3
+
4
+ rules:
5
+ # ZM-IAC-DOCKER-008: ADD 而非 COPY
6
+ - id: zm-iac-docker-add-vs-copy-001
7
+ severity: MEDIUM
8
+ message: |
9
+ 使用 `ADD` 指令而非 `COPY` — ADD 支持从 URL 获取文件和自动解压 tar 包,
10
+ 这引入了不可控的外部依赖和潜在的安全风险。
11
+
12
+ ADD 的风险:
13
+ 1. ADD <url> — 构建时从互联网下载文件,无签名校验,可能被中间人攻击篡改
14
+ 2. ADD <tar> — 自动解压 tar 包可能覆盖已有文件或导致路径穿越
15
+ 3. ADD 行为不透明,审查困难
16
+
17
+ 修复: 使用 COPY 替代 ADD:
18
+ ```dockerfile
19
+ COPY package.json /app/
20
+ ```
21
+ 如需从 URL 下载,显式使用 curl/wget 并校验哈希:
22
+ ```dockerfile
23
+ RUN curl -fsSL -o /tmp/file.tar.gz https://example.com/file.tar.gz \
24
+ && echo "expected_sha256 /tmp/file.tar.gz" | sha256sum -c \
25
+ && tar -xzf /tmp/file.tar.gz -C /app/ \
26
+ && rm /tmp/file.tar.gz
27
+ ```
28
+ languages:
29
+ - dockerfile
30
+ pattern: |
31
+ ADD $SRC $DEST
32
+ metadata:
33
+ cwe: "CWE-1104: Use of Unmaintained Third Party Components"
34
+ category: iac-docker
35
+ precision: low
36
+ confidence: high
37
+ tags: [docker, add, supply-chain, best-practice]
@@ -0,0 +1,61 @@
1
+ # 逐码 ZhuMa IaC 规则 — Dockerfile FROM 基础镜像安全检查
2
+ # V4.3 Sprint — CWE-1104: Use of Unmaintained Third Party Components
3
+
4
+ rules:
5
+ # ZM-IAC-DOCKER-006: FROM 无具体版本 tag
6
+ - id: zm-iac-docker-from-no-tag-001
7
+ severity: MEDIUM
8
+ message: |
9
+ FROM 指令未指定镜像 tag — Docker 将默认使用 `latest` tag。
10
+ 这意味着每次构建可能拉取不同的基础镜像,导致构建不可重现,并可能引入未知的漏洞。
11
+
12
+ 修复: 始终指定精确的镜像版本 tag:
13
+ ```dockerfile
14
+ FROM node:20.11-alpine3.19
15
+ FROM python:3.12-slim-bookworm
16
+ FROM golang:1.22-alpine
17
+ ```
18
+ 使用 digest 进一步锁定镜像内容:
19
+ ```dockerfile
20
+ FROM node:20.11-alpine3.19@sha256:abc123...
21
+ ```
22
+ languages:
23
+ - dockerfile
24
+ patterns:
25
+ - pattern: FROM $IMAGE
26
+ - pattern-not: FROM $IMAGE:$TAG
27
+ - pattern-not: FROM --platform=$PLATFORM $IMAGE:$TAG
28
+ metadata:
29
+ cwe: "CWE-1104: Use of Unmaintained Third Party Components"
30
+ category: iac-docker
31
+ precision: medium
32
+ confidence: high
33
+ tags: [docker, supply-chain, reproducibility, from]
34
+
35
+ # ZM-IAC-DOCKER-007: debian:latest 或 ubuntu:latest
36
+ - id: zm-iac-docker-unstable-base-001
37
+ severity: LOW
38
+ message: |
39
+ 使用 `debian:latest` 或 `ubuntu:latest` 作为基础镜像 — latest tag 缺乏版本锁定。
40
+ 更好的选择是使用指定版本的 slim 镜像:
41
+ ```dockerfile
42
+ FROM debian:12-slim
43
+ FROM ubuntu:24.04
44
+ ```
45
+ 或使用 Alpine 获得更小的镜像体积:
46
+ ```dockerfile
47
+ FROM alpine:3.19
48
+ ```
49
+ languages:
50
+ - dockerfile
51
+ pattern-either:
52
+ - pattern: FROM debian:latest
53
+ - pattern: FROM ubuntu:latest
54
+ - pattern: FROM debian
55
+ - pattern: FROM ubuntu
56
+ metadata:
57
+ cwe: "CWE-1104: Use of Unmaintained Third Party Components"
58
+ category: iac-docker
59
+ precision: very-high
60
+ confidence: high
61
+ tags: [docker, base-image, latest, reproducibility]
@@ -0,0 +1,67 @@
1
+ # 逐码 ZhuMa IaC 规则 — Dockerfile 多层构建残留和 .dockerignore 检测
2
+ # V4.3 Sprint — 构建安全最佳实践
3
+
4
+ rules:
5
+ # ZM-IAC-DOCKER-019: RUN rm 后未合并清理 (多层镜像残留)
6
+ - id: zm-iac-docker-rm-cleanup-001
7
+ severity: LOW
8
+ message: |
9
+ `RUN rm` 删除文件但未在同一层 RUN 中合并下载和清理 — Docker 分层存储中,
10
+ 前一层添加的文件即使在后续层删除,仍保留在镜像历史中 (可通过 `docker history` 访问)。
11
+ 这增加了镜像体积,并可能导致敏感文件残留在镜像中。
12
+
13
+ 修复: 将下载、使用、删除合并为单个 RUN 指令:
14
+ ```dockerfile
15
+ RUN curl -fsSL -o /tmp/file.tar.gz https://example.com/file.tar.gz \
16
+ && tar -xzf /tmp/file.tar.gz -C /app/ \
17
+ && rm -f /tmp/file.tar.gz
18
+ ```
19
+ 而非:
20
+ ```dockerfile
21
+ RUN curl -fsSL -o /tmp/file.tar.gz https://example.com/file.tar.gz
22
+ RUN tar -xzf /tmp/file.tar.gz -C /app/
23
+ RUN rm -f /tmp/file.tar.gz
24
+ ```
25
+ languages:
26
+ - dockerfile
27
+ metadata:
28
+ cwe: "CWE-1104: Use of Unmaintained Third Party Components"
29
+ category: iac-docker
30
+ precision: low
31
+ confidence: low
32
+ tags: [docker, layers, image-size, cleanup]
33
+
34
+ # ZM-IAC-DOCKER-020: .dockerignore 缺失检测 (workspace级别)
35
+ - id: zm-iac-docker-dockerignore-missing-001
36
+ severity: LOW
37
+ message: |
38
+ 项目中未找到 `.dockerignore` 文件 — 构建时 Docker 上下文会将所有文件发送给守护进程。
39
+ 没有 .dockerignore 可能导致:
40
+ 1. 敏感文件(.env、证书、密钥)被意外复制到镜像中
41
+ 2. node_modules、.git 等大量文件拖慢构建速度
42
+ 3. 构建缓存无效化(无关文件变更导致缓存 miss)
43
+
44
+ 修复: 在项目根目录创建 .dockerignore:
45
+ ```
46
+ .git
47
+ .gitignore
48
+ .env
49
+ .env.*
50
+ node_modules
51
+ npm-debug.log
52
+ Dockerfile
53
+ docker-compose.yml
54
+ .dockerignore
55
+ *.md
56
+ .vscode
57
+ .idea
58
+ coverage
59
+ test
60
+ tests
61
+ ```
62
+ metadata:
63
+ cwe: "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"
64
+ category: iac-docker
65
+ precision: low
66
+ confidence: low
67
+ tags: [docker, dockerignore, build-context, information-disclosure]
@@ -0,0 +1,33 @@
1
+ # 逐码 ZhuMa IaC 规则 — Dockerfile 多阶段构建残留检测
2
+ # V4.3 Sprint — CWE-1104: Use of Unmaintained Third Party Components
3
+
4
+ rules:
5
+ # ZM-IAC-DOCKER-017: 多阶段构建中构建工具残留
6
+ - id: zm-iac-docker-multistage-residue-001
7
+ severity: LOW
8
+ message: |
9
+ 多阶段构建中,最终镜像可能存在构建阶段残留 — 编译器、开发库、构建工具等被复制到
10
+ 最终运行镜像中,增加了攻击面和镜像体积。
11
+
12
+ 修复:
13
+ 1. 使用 `COPY --from=builder` 仅复制构建产物:
14
+ ```dockerfile
15
+ FROM golang:1.22 AS builder
16
+ WORKDIR /app
17
+ COPY . .
18
+ RUN go build -o /app/server
19
+
20
+ FROM alpine:3.19
21
+ COPY --from=builder /app/server /server
22
+ CMD ["/server"]
23
+ ```
24
+ 2. 不要将整个构建上下文 COPY 到最终镜像
25
+ 3. 在同一 RUN 指令中安装、构建、清理,减少层数
26
+ languages:
27
+ - dockerfile
28
+ metadata:
29
+ cwe: "CWE-1104: Use of Unmaintained Third Party Components"
30
+ category: iac-docker
31
+ precision: low
32
+ confidence: low
33
+ tags: [docker, multi-stage, build-residue, image-size]