Our ~35 own rules left whole languages without SAST findings. Three permissively licensed community packs now run next to them, on the same semgrep invocation (--metrics=off, local files only): - GitLab sast-rules v2.10.1 (53bf5cf6): 148 rules for C#, Java, JavaScript/TypeScript, Python and one Go rule; only files whose header says "License: MIT (c) GitLab Inc.". Not vendored: c/ (every file GPL-2.0, generated from flawfinder), go/ apart from one file (Apache-2.0 gosec ports), scala/, rules/lgpl, rules/lgpl-cc (Commons Clause), rules/gitlab (EE). - 0xdea semgrep-rules (dae50da6, MIT): 35 C/C++ rules. - elttam semgrep-rules (24426856, MIT; its LICENSE carries the Semgrep template's copyright line): 34 rules for Java, Go and Struts/Spring XML. Each pack lives in compliance-agent/rules/vendor/<source>/ with LICENSE, NOTICE (provenance, what was left out and why) and UPSTREAM (pinned commit): upstream/ holds the selected files unchanged with their tests, pack.yaml the rules the agent runs, ids prefixed per source (gitlab-, 0xdea-, elttam-), rules.json an index for the tests. scripts/vendor-semgrep-rules.py regenerates all of it deterministically. Provenance: every candidate rule was compared with the Semgrep registry (semgrep/semgrep-rules, read only for the comparison). Eight GitLab Python/JS rules with the same message or the same patterns are not vendored, nor are elttam's Kubernetes rules (registry-derived). Also left out: elttam's entrypoint enumerators, its ORM-leak hints, three files whose upstream tests fail on semgrep 1.177 and a join-mode rule. Noise budget: run over the nightly fixtures, the public samples and FreeRTOS-Kernel, lwIP, OpenRA, eShopOnWeb, requests, express and spring-petclinic. 15 rules that flood real code (0xdea missing-return 1514 hits, typos 989, interesting-api-calls 718, signed-unsigned-conversion 221, suspicious-assert 176, format-string-bugs 61 ...; GitLab assert-used) are dropped from the pack, each listed with its reason in NOTICE. CPU time of the semgrep run roughly doubles on C-heavy trees (FreeRTOS-Kernel 70 s -> 136 s, lwIP 18 s -> 68 s), well inside the 10-minute stage timeout. Ids stay bare (#473 logic covers the vendored ids, fingerprint() unchanged). The control map gets one vendored semgrep binding per control, by CWE (by rule id for the few elttam rules without one), with exactly the languages of the rules behind it; a test checks every vendored rule maps to a control that claims its languages. Guard: semgrep_args() builds the one invocation; a test fails if any --config is not a staged local pack, or is auto, p/, r/ or a URL, and another scans the agent source, scripts, docker/, CI and Dockerfile.agent for a registry config. Nightly baselines with C, Python, C# or JS code change and need a bless run after the image is deployed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
1046 lines
17 KiB
JSON
1046 lines
17 KiB
JSON
[
|
|
{
|
|
"id": "gitlab-csharp_cookies_rule-CookieWithoutHttpOnlyFlag",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-1004"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_cookies_rule-CookieWithoutSSLFlag",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-614"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_crypto_rule-CertificateValidationDisabled",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_crypto_rule-WeakCipherAlgorithm",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_crypto_rule-WeakCipherMode",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_crypto_rule-WeakHashingFunction",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_crypto_rule-WeakRNG",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-338"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_csrf_rule-Csrf",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-352"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_deserialization_rule-InsecureDeserialization",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_endpoint_rule-UnvalidatedRedirect",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-601"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-CommandInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-LdapInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-90"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-SQLInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-89"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-XPathInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-643"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-XmlDocumentXXEInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_injection_rule-XmlReaderXXEInjection",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_other_rule-UnsafeXSLTSettingUsed",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-91"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_password_rule-PasswordComplexity",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-521"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_path_rule-PathTraversal",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_validation_rule-InputValidation",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-554"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_xss_rule-HtmlElementXss",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-csharp_xss_rule-ScriptXss",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-go_crypto_rule-tlsversion",
|
|
"languages": [
|
|
"go"
|
|
],
|
|
"cwe": "CWE-757"
|
|
},
|
|
{
|
|
"id": "gitlab-java_cookie_rule-CookieInsecure",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-614"
|
|
},
|
|
{
|
|
"id": "gitlab-java_cookie_rule-HttpResponseSplitting",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-113"
|
|
},
|
|
{
|
|
"id": "gitlab-java_cookie_rule-RequestParamToHeader",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-113"
|
|
},
|
|
{
|
|
"id": "gitlab-java_cors_rule-PermissiveCORSInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-942"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-BlowfishKeySize",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CipherDESInsecure",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CipherDESedeInsecure",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CipherECBMode",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CipherIntegrity",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CipherPaddingOracle",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-CustomMessageDigest",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-HazelcastSymmetricEncryption",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-InsufficientKeySizeRsa",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-NullCipher",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-RsaNoPadding",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-780"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-WeakMessageDigest",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-WeakTLSProtocol-DefaultHttpClient",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-WeakTLSProtocol-SSLContext",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_crypto_rule-WeakTLSProtocolVersion",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-java_endpoint_rule-HostnameVerifier",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-java_endpoint_rule-UnvalidatedRedirect",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-601"
|
|
},
|
|
{
|
|
"id": "gitlab-java_endpoint_rule-X509TrustManager",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-java_file_rule-FileUploadFileName",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-java_file_rule-FilenameUtils",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-CommandInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-ELInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-917"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-FileDisclosureRequestDispatcher",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-552"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-FileDisclosureSpringFramework",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-552"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-HttpParameterPollution",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-88"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-LDAPInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-90"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-OgnlInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-917"
|
|
},
|
|
{
|
|
"id": "gitlab-java_inject_rule-SpotbugsPathTraversalAbsolute",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-java_ldap_rule-AnonymousLDAP",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-306"
|
|
},
|
|
{
|
|
"id": "gitlab-java_password_rule-ConstantDBPassword",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-259"
|
|
},
|
|
{
|
|
"id": "gitlab-java_password_rule-EmptyDBPassword",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-306"
|
|
},
|
|
{
|
|
"id": "gitlab-java_password_rule-HardcodePassword",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-259"
|
|
},
|
|
{
|
|
"id": "gitlab-java_perm_rule-DangerousPermissions",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-732"
|
|
},
|
|
{
|
|
"id": "gitlab-java_perm_rule-OverlyPermissiveFilePermissionInline",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-732"
|
|
},
|
|
{
|
|
"id": "gitlab-java_script_rule-ScriptInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-94"
|
|
},
|
|
{
|
|
"id": "gitlab-java_script_rule-SpringSpelExpressionParser",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-917"
|
|
},
|
|
{
|
|
"id": "gitlab-java_smtp_rule-InsecureSmtp",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-297"
|
|
},
|
|
{
|
|
"id": "gitlab-java_smtp_rule-SmtpClient",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-77"
|
|
},
|
|
{
|
|
"id": "gitlab-java_ssrf_rule-SSRF",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-918"
|
|
},
|
|
{
|
|
"id": "gitlab-java_strings_rule-BadHexConversion",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-704"
|
|
},
|
|
{
|
|
"id": "gitlab-java_strings_rule-FormatStringManipulation",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-134"
|
|
},
|
|
{
|
|
"id": "gitlab-java_strings_rule-ModifyAfterValidation",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-182"
|
|
},
|
|
{
|
|
"id": "gitlab-java_strings_rule-NormalizeAfterValidation",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-180"
|
|
},
|
|
{
|
|
"id": "gitlab-java_templateinjection_rule-TemplateInjection",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-94"
|
|
},
|
|
{
|
|
"id": "gitlab-java_unsafe_rule-ExternalConfigControl",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-15"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xml_rule-SAMLIgnoreComments",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-1390"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xml_rule-XmlDecoder",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xml_rule-XsltTransform",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-91"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xss_rule-WicketXSS",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xss_rule-XSSReqParamToServletWriter",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-java_xxe_rule-XMLRdr",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_buf_rule-buffer-noassert-read",
|
|
"languages": [
|
|
"javascript"
|
|
],
|
|
"cwe": "CWE-125"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_buf_rule-buffer-noassert-write",
|
|
"languages": [
|
|
"javascript"
|
|
],
|
|
"cwe": "CWE-787"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_buf_rule-detect-new-buffer",
|
|
"languages": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": "CWE-770"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_dos_rule-non-literal-regexp",
|
|
"languages": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": "CWE-185"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_eval_rule-eval-with-expression",
|
|
"languages": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": "CWE-95"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_pathtraversal_rule-non-literal-fs-filename",
|
|
"languages": [
|
|
"typescript",
|
|
"javascript"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_random_rule-pseudo-random-bytes",
|
|
"languages": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": "CWE-338"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_react_rule-dangerouslysetinnerhtml",
|
|
"languages": [
|
|
"typescript",
|
|
"javascript"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_require_rule-non-literal-require",
|
|
"languages": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": "CWE-95"
|
|
},
|
|
{
|
|
"id": "gitlab-javascript_timing_rule-possible-timing-attacks",
|
|
"languages": [
|
|
"javascript"
|
|
],
|
|
"cwe": "CWE-208"
|
|
},
|
|
{
|
|
"id": "gitlab-python_bind-all-interfaces_rule-general-bindall-interfaces",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-1327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-cipher-modes",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-cipher-blowfish",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-cipher-des",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-cipher-rc2",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-cipher-rc4",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-cipher-xor",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-encrypt-dsa-rsa",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hash-md5",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hash-sha1",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hazmat-cipher-arc4",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hazmat-cipher-blowfish",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hazmat-cipher-idea",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hazmat-hash-md5",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-crypto-hazmat-hash-sha1",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-hash-md2",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-hash-md4",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-hash-md5",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-hash-sha1",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-hashlib-new-insecure-functions",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-327"
|
|
},
|
|
{
|
|
"id": "gitlab-python_crypto_rule-import-pycrypto",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-1104"
|
|
},
|
|
{
|
|
"id": "gitlab-python_deserialization_rule-cpickle",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-python_deserialization_rule-pickle",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-python_deserialization_rule-shelve",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-python_deserialization_rule-yaml-load",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-502"
|
|
},
|
|
{
|
|
"id": "gitlab-python_django_rule-django-extra-used",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-89"
|
|
},
|
|
{
|
|
"id": "gitlab-python_escaping_rule-jinja2-autoescape-false",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-116"
|
|
},
|
|
{
|
|
"id": "gitlab-python_escaping_rule-use-of-mako-templates",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-79"
|
|
},
|
|
{
|
|
"id": "gitlab-python_eval_rule-eval",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-95"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-exec-used",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-95"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-linux-command-wildcard-injection",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-155"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-os-path",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-os-popen2",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-subprocess-call",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-python_exec_rule-subprocess-shell-TRUE",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-78"
|
|
},
|
|
{
|
|
"id": "gitlab-python_file-permissions_rule-general-bad-permission",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-732"
|
|
},
|
|
{
|
|
"id": "gitlab-python_files_rule-tarfile-unsafe-members",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-22"
|
|
},
|
|
{
|
|
"id": "gitlab-python_ftp_rule-ftplib",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-319"
|
|
},
|
|
{
|
|
"id": "gitlab-python_log_rule-logging-config-insecure-listen",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-94"
|
|
},
|
|
{
|
|
"id": "gitlab-python_random_rule-random",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-338"
|
|
},
|
|
{
|
|
"id": "gitlab-python_requests_rule-request-without-timeout",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-770"
|
|
},
|
|
{
|
|
"id": "gitlab-python_snmp_rule-insecure-snmp-version",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-319"
|
|
},
|
|
{
|
|
"id": "gitlab-python_snmp_rule-snmp-weak-cryptography",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-319"
|
|
},
|
|
{
|
|
"id": "gitlab-python_sql_rule-hardcoded-sql-expression",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-89"
|
|
},
|
|
{
|
|
"id": "gitlab-python_ssl_rule-req-no-certvalid",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-python_ssl_rule-ssl-no-version",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-python_ssl_rule-ssl-with-bad-version",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-326"
|
|
},
|
|
{
|
|
"id": "gitlab-python_ssl_rule-unverified-context",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-295"
|
|
},
|
|
{
|
|
"id": "gitlab-python_telnet_rule-import-telnib",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-319"
|
|
},
|
|
{
|
|
"id": "gitlab-python_tmpdir_rule-hardcodedtmp",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-377"
|
|
},
|
|
{
|
|
"id": "gitlab-python_tmpdir_rule-mktemp-q",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-377"
|
|
},
|
|
{
|
|
"id": "gitlab-python_urlopen_rule-urllib-urlopen",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-918"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-celement",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-element",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-etree",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-expatbuilder",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-expatreader",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-minidom",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-pulldom",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
},
|
|
{
|
|
"id": "gitlab-python_xml_rule-sax",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": "CWE-611"
|
|
}
|
|
]
|