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
1281 lines
38 KiB
JSON
1281 lines
38 KiB
JSON
{
|
|
"version": "1.0",
|
|
"framework": "cra",
|
|
"controls": [
|
|
{
|
|
"control": "cra-ai-1",
|
|
"title": "Secure-by-Default-Konfiguration",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-1-flask-debug-enabled",
|
|
"cra-ai-1-django-debug-true",
|
|
"cra-ai-1-tls-verify-disabled",
|
|
"cra-ai-1-cors-wildcard"
|
|
]
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin"
|
|
],
|
|
"cwe": [
|
|
"CWE-489",
|
|
"CWE-1104",
|
|
"CWE-276",
|
|
"CWE-1021",
|
|
"CWE-284"
|
|
],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "dotnet-config",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"dotnet-config-debug-compilation",
|
|
"dotnet-config-custom-errors-off"
|
|
],
|
|
"check": "The shipped configuration must be secure by default; ASP.NET debug compilation or detailed errors shown to every client violates it."
|
|
},
|
|
{
|
|
"tool": "binary-inventory",
|
|
"scan_type": "malware",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [
|
|
"binary-no-aslr",
|
|
"binary-no-nx",
|
|
"binary-no-relro"
|
|
],
|
|
"check": "A committed executable or library must be built with the operating system's basic exploit mitigations on (ASLR/PIE, DEP/non-executable stack, RELRO); one without them is not secure by default. Defence-in-depth extras (CFG, SafeSEH, stack protector, FORTIFY, high-entropy ASLR) are reported but not bound here.",
|
|
"attach_only": true
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp",
|
|
"generic",
|
|
"java",
|
|
"python"
|
|
],
|
|
"cwe": [
|
|
"CWE-942",
|
|
"CWE-732",
|
|
"CWE-1104",
|
|
"CWE-1327",
|
|
"CWE-554"
|
|
],
|
|
"rules": [
|
|
"elttam-default-properties-devmode",
|
|
"elttam-struts-xml-devmode",
|
|
"elttam-web-xml-devmode",
|
|
"elttam-struts-xml-action-dmi",
|
|
"elttam-struts-xml-dmi",
|
|
"elttam-taglib-action-dmi",
|
|
"elttam-struts-xml-always-select-full-namespace"
|
|
],
|
|
"check": "Vendored rules (GitLab, elttam): the shipped configuration must be secure by default; a development mode left on (Struts devMode or dynamic method invocation), permissive CORS, world-writable file permissions, a service bound to all interfaces or a missing input-validation framework violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-2",
|
|
"title": "Minimale Angriffsfläche",
|
|
"scans": [],
|
|
"note": "design property (minimal attack surface) — not derivable from local code patterns; architecture/threat-model review",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-3",
|
|
"title": "Sichere Systemarchitektur",
|
|
"scans": [],
|
|
"note": "design property (secure system architecture) — architecture review, not statically code-checkable",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-4",
|
|
"title": "Least-Privilege-Prinzip",
|
|
"scans": [],
|
|
"note": "design property (least-privilege) — deployment/IAM & architecture review, not a local code pattern",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-5",
|
|
"title": "Manipulationsschutz",
|
|
"scans": [],
|
|
"note": "design property (tamper protection) — hardware/runtime & operational control, not statically code-checkable",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-6",
|
|
"title": "Integritätsprüfung",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "binary-inventory",
|
|
"scan_type": "malware",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [
|
|
"binary-hex-invalid"
|
|
],
|
|
"check": "A committed firmware image whose Intel HEX record checksums or structure do not verify cannot be shown to be the image that was built.",
|
|
"attach_only": true
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-7",
|
|
"title": "Starke Authentifizierung",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-7-weak-password-hash"
|
|
],
|
|
"check": "Passwords must be stored with a slow, salted password hash (bcrypt, scrypt, Argon2id, PBKDF2); a fast or unsalted hash (MD5, SHA-1, SHA-256) of a password violates it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-287",
|
|
"CWE-305",
|
|
"CWE-303"
|
|
],
|
|
"rules": [],
|
|
"check": "Passwords must be stored with a slow, salted password hash (bcrypt, scrypt, Argon2id, PBKDF2); a fast or unsalted hash (MD5, SHA-1, SHA-256) of a password violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp",
|
|
"java"
|
|
],
|
|
"cwe": [
|
|
"CWE-287",
|
|
"CWE-306",
|
|
"CWE-521",
|
|
"CWE-1390"
|
|
],
|
|
"rules": [],
|
|
"check": "Vendored rules (GitLab): access must require strong authentication; an anonymous LDAP bind, an empty database password, missing password complexity or SAML comment handling that lets a signature be bypassed violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-8",
|
|
"title": "Keine Default-Passwörter",
|
|
"scans": [
|
|
{
|
|
"tool": "gitleaks",
|
|
"scan_type": "secret_detection",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [],
|
|
"check": "No credential (password, key, token) may be written into the product's source or configuration: every installation would ship the same secret."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [
|
|
"CWE-798",
|
|
"CWE-259"
|
|
],
|
|
"rules": [
|
|
"cra-ai-8-python-hardcoded-credential",
|
|
"cra-ai-8-c-hardcoded-credential"
|
|
],
|
|
"check": "No credential (password, key, token) may be written into the product's source, as a variable or a #define: every device would ship the same secret. A placeholder or an empty value does not violate it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin"
|
|
],
|
|
"cwe": [
|
|
"CWE-798"
|
|
],
|
|
"rules": [],
|
|
"check": "No credential (password, key, token) may be written into the product's source or configuration: every installation would ship the same secret."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-8-csharp-hardcoded-credential"
|
|
],
|
|
"check": "No password, key or secret may be written into the source; a real credential assigned to a password- or key-like name violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java"
|
|
],
|
|
"cwe": [
|
|
"CWE-259",
|
|
"CWE-798"
|
|
],
|
|
"rules": [],
|
|
"check": "Vendored rules (GitLab): no password or key may be written into the source; a real credential assigned in code violates it. A placeholder or an empty value does not."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-9",
|
|
"title": "Sicheres Credential-Management",
|
|
"scans": [
|
|
{
|
|
"tool": "gitleaks",
|
|
"scan_type": "secret_detection",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [],
|
|
"check": "Credentials must not be kept in plain text in the source or configuration; a real secret committed to the repository violates it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-312"
|
|
],
|
|
"rules": [],
|
|
"check": "Credentials must not be kept in plain text in the source or configuration; a real secret committed to the repository violates it."
|
|
},
|
|
{
|
|
"tool": "dotnet-config",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"dotnet-config-cleartext-password"
|
|
],
|
|
"check": "Credentials must not be kept in plain text in the configuration; a real password in a connection string or application setting violates it."
|
|
},
|
|
{
|
|
"tool": "secret-files",
|
|
"scan_type": "secret_detection",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [
|
|
"secret-file-publish-profile"
|
|
],
|
|
"check": "Credentials must not be kept in the repository; a publish profile with deployment credentials (.publishsettings, .pubxml.user, a .pubxml with a password) violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-10",
|
|
"title": "Sitzungsmanagement",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-10-session-cookie-insecure",
|
|
"cra-ai-10-express-cookie-insecure"
|
|
],
|
|
"check": "Session cookies must be protected: set Secure and HttpOnly (and SameSite). A session cookie configured without them violates it."
|
|
},
|
|
{
|
|
"tool": "dotnet-config",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"dotnet-config-insecure-cookies"
|
|
],
|
|
"check": "Session and authentication cookies must be Secure and HttpOnly; httpCookies without requireSSL or httpOnlyCookies violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp",
|
|
"go",
|
|
"java"
|
|
],
|
|
"cwe": [
|
|
"CWE-352",
|
|
"CWE-614",
|
|
"CWE-1004",
|
|
"CWE-1275"
|
|
],
|
|
"rules": [],
|
|
"check": "Vendored rules (GitLab, elttam): session state must be protected; cookies without Secure, HttpOnly or a safe SameSite value, and state-changing handlers without CSRF protection violate it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-11",
|
|
"title": "Brute-Force-Schutz",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-12",
|
|
"title": "Rollenbasierte Autorisierung",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-13",
|
|
"title": "Verschlüsselung sensibler Daten",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [
|
|
"CWE-327",
|
|
"CWE-326"
|
|
],
|
|
"rules": [
|
|
"cra-ai-13-c-broken-hash-or-cipher"
|
|
],
|
|
"check": "Data must not be protected with a broken algorithm: MD5, SHA-1 or DES used for integrity or confidentiality violates it. A non-security use (a cache key, a checksum of public data) does not."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-327",
|
|
"CWE-326",
|
|
"CWE-780",
|
|
"CWE-649",
|
|
"CWE-329",
|
|
"CWE-1204"
|
|
],
|
|
"rules": [],
|
|
"check": "Data must not be protected with a broken algorithm: MD5, SHA-1 or DES used for integrity or confidentiality violates it. A non-security use (a cache key, a checksum of public data) does not."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-13-csharp-broken-hash-or-cipher",
|
|
"cra-ai-13-csharp-ecb-mode"
|
|
],
|
|
"check": "Sensitive data must be protected with current algorithms; MD5, SHA-1, DES, 3DES, RC2 or ECB mode used for it violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp",
|
|
"java",
|
|
"javascript",
|
|
"python"
|
|
],
|
|
"cwe": [
|
|
"CWE-208",
|
|
"CWE-326",
|
|
"CWE-327",
|
|
"CWE-780"
|
|
],
|
|
"rules": [
|
|
"elttam-gcm-static-iv"
|
|
],
|
|
"check": "Vendored rules (GitLab, elttam): sensitive data must be protected with current algorithms; DES, RC4, MD5, SHA-1, ECB, RSA without padding, short keys, a static GCM nonce or a timing-unsafe comparison of secrets violates it. A non-security use (a cache key, a checksum of public data) does not."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-14",
|
|
"title": "Speicher-Schutz (Data at Rest)",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-14-python-weak-cipher",
|
|
"cra-ai-14-node-weak-cipher"
|
|
],
|
|
"check": "Stored data must be encrypted with a current cipher and mode (AES-GCM, ChaCha20-Poly1305); DES, RC4, ECB mode or a hard-coded key violates it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-921",
|
|
"CWE-311",
|
|
"CWE-312",
|
|
"CWE-532"
|
|
],
|
|
"rules": [],
|
|
"check": "Stored data must be encrypted with a current cipher and mode (AES-GCM, ChaCha20-Poly1305); DES, RC4, ECB mode or a hard-coded key violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"swift",
|
|
"objc",
|
|
"regex"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-14-swift-secret-in-userdefaults",
|
|
"cra-ai-14-swift-secret-in-appstorage",
|
|
"cra-ai-14-objc-secret-in-userdefaults"
|
|
],
|
|
"check": "An iOS app must keep passwords, tokens and keys in the Keychain; storing them in UserDefaults (also through @AppStorage), an unencrypted plist in the app container, violates it. The Objective-C rule is a regex pattern (semgrep has no Objective-C parser), hence the regex language."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-15",
|
|
"title": "Transport-Schutz (Data in Transit)",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-15-python-cleartext-http",
|
|
"cra-ai-15-node-cleartext-http"
|
|
],
|
|
"check": "Network traffic must use TLS 1.2 or newer with certificate checking; plain HTTP for sensitive data, disabled verification or old protocol versions violate it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-295",
|
|
"CWE-319",
|
|
"CWE-757"
|
|
],
|
|
"rules": [],
|
|
"check": "Network traffic must use TLS 1.2 or newer with certificate checking; plain HTTP for sensitive data, disabled verification or old protocol versions violate it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-15-csharp-cert-validation-disabled"
|
|
],
|
|
"check": "TLS connections must validate the server certificate; a validation callback that accepts every certificate violates it."
|
|
},
|
|
{
|
|
"tool": "dotnet-config",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"dotnet-config-wcf-insecure-binding"
|
|
],
|
|
"check": "Network traffic must be encrypted; a WCF binding with security mode None or TransportCredentialOnly, or a basicHttpBinding without transport security, violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp",
|
|
"go",
|
|
"java",
|
|
"python"
|
|
],
|
|
"cwe": [
|
|
"CWE-295",
|
|
"CWE-297",
|
|
"CWE-319",
|
|
"CWE-322",
|
|
"CWE-757"
|
|
],
|
|
"rules": [],
|
|
"check": "Vendored rules (GitLab): network traffic must use TLS 1.2 or newer with certificate and host checking; disabled verification, plain-text protocols (HTTP, FTP, SMTP, telnet) for sensitive data or an old protocol version violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-16",
|
|
"title": "Sicheres Schlüsselmanagement",
|
|
"scans": [
|
|
{
|
|
"tool": "gitleaks",
|
|
"scan_type": "secret_detection",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [],
|
|
"check": "Keys must not be committed to the source: a private key or secret key in the repository violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [
|
|
"CWE-798",
|
|
"CWE-321"
|
|
],
|
|
"rules": [
|
|
"cra-ai-16-c-predictable-random"
|
|
],
|
|
"check": "Keys, nonces, tokens and session ids must come from a cryptographically secure random source (the MCU's hardware RNG, a DRBG); rand() used for them violates it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift"
|
|
],
|
|
"cwe": [
|
|
"CWE-330",
|
|
"CWE-321"
|
|
],
|
|
"rules": [],
|
|
"check": "Keys must not be committed to the source: a private key or secret key in the repository violates it."
|
|
},
|
|
{
|
|
"tool": "secret-files",
|
|
"scan_type": "secret_detection",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": [
|
|
"secret-file-private-key",
|
|
"secret-file-signing-key"
|
|
],
|
|
"check": "Keys must not be committed to the source: a private-key store (.pfx, .p12, .jks, .keystore) or strong-name key pair (.snk) in the repository violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"c",
|
|
"cpp",
|
|
"csharp",
|
|
"java",
|
|
"javascript",
|
|
"python",
|
|
"typescript"
|
|
],
|
|
"cwe": [
|
|
"CWE-321",
|
|
"CWE-330",
|
|
"CWE-338"
|
|
],
|
|
"rules": [],
|
|
"check": "Vendored rules (GitLab, 0xdea): keys, tokens and nonces need a cryptographically secure random generator; rand(), java.util.Random, Math.random or the random module for them violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-17",
|
|
"title": "Datenminimierung",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-18",
|
|
"title": "Strukturierter SSDLC",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-19",
|
|
"title": "Systematische Code Reviews",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-20",
|
|
"title": "Automatisierte Sicherheitstests",
|
|
"scans": [
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [
|
|
"CWE-89",
|
|
"CWE-78",
|
|
"CWE-79",
|
|
"CWE-22"
|
|
],
|
|
"rules": [
|
|
"cra-ai-20-python-shell-command",
|
|
"cra-ai-20-python-sql-string",
|
|
"cra-ai-20-python-unsafe-deserialization",
|
|
"cra-ai-20-node-shell-command",
|
|
"cra-ai-20-node-reflected-input",
|
|
"cra-ai-20-c-unbounded-string-function",
|
|
"cra-ai-20-c-scanf-unbounded-string",
|
|
"cra-ai-20-c-non-literal-format-string"
|
|
],
|
|
"check": "Untrusted input must not reach a shell, an SQL statement or an HTML response unencoded, and the code must not write past a buffer or let input control a format string: a command or query built from a variable, request input echoed into a response, strcpy, strcat, sprintf, gets, scanf(\"%s\") or a non-literal format argument violates it."
|
|
},
|
|
{
|
|
"tool": "cppcheck",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [
|
|
"CWE-119",
|
|
"CWE-120",
|
|
"CWE-121",
|
|
"CWE-122",
|
|
"CWE-125",
|
|
"CWE-131",
|
|
"CWE-190",
|
|
"CWE-369",
|
|
"CWE-401",
|
|
"CWE-415",
|
|
"CWE-416",
|
|
"CWE-457",
|
|
"CWE-476",
|
|
"CWE-562",
|
|
"CWE-758",
|
|
"CWE-786",
|
|
"CWE-787",
|
|
"CWE-788"
|
|
],
|
|
"rules": [],
|
|
"check": "The code must be free of memory-safety defects: out-of-bounds access, use of uninitialised memory, leaks, null dereferences and similar defects violate it."
|
|
},
|
|
{
|
|
"tool": "mobsfscan",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [
|
|
"CWE-78",
|
|
"CWE-611",
|
|
"CWE-502",
|
|
"CWE-749",
|
|
"CWE-95",
|
|
"CWE-73",
|
|
"CWE-676"
|
|
],
|
|
"rules": [],
|
|
"check": "Untrusted input must not reach a shell, an SQL statement or an HTML response unencoded, and the code must not write past a buffer or let input control a format string: a command or query built from a variable, request input echoed into a response, strcpy, strcat, sprintf, gets, scanf(\"%s\") or a non-literal format argument violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"cra-ai-20-csharp-sql-string",
|
|
"cra-ai-20-csharp-process-start",
|
|
"cra-ai-20-csharp-unsafe-deserialization",
|
|
"cra-ai-20-csharp-xxe",
|
|
"cra-ai-20-csharp-path-traversal"
|
|
],
|
|
"check": "Input from outside must not reach SQL, the command line, a type-resolving deserializer, an XML parser with external entities, or a file path unchecked; such a flow in C# code violates it."
|
|
},
|
|
{
|
|
"tool": "semgrep",
|
|
"scan_type": "sast",
|
|
"languages": [
|
|
"c",
|
|
"cpp",
|
|
"csharp",
|
|
"generic",
|
|
"go",
|
|
"java",
|
|
"javascript",
|
|
"python",
|
|
"typescript"
|
|
],
|
|
"cwe": [
|
|
"CWE-15",
|
|
"CWE-20",
|
|
"CWE-22",
|
|
"CWE-77",
|
|
"CWE-78",
|
|
"CWE-79",
|
|
"CWE-88",
|
|
"CWE-89",
|
|
"CWE-90",
|
|
"CWE-91",
|
|
"CWE-94",
|
|
"CWE-95",
|
|
"CWE-113",
|
|
"CWE-116",
|
|
"CWE-125",
|
|
"CWE-131",
|
|
"CWE-134",
|
|
"CWE-155",
|
|
"CWE-158",
|
|
"CWE-170",
|
|
"CWE-180",
|
|
"CWE-182",
|
|
"CWE-185",
|
|
"CWE-190",
|
|
"CWE-193",
|
|
"CWE-200",
|
|
"CWE-209",
|
|
"CWE-242",
|
|
"CWE-252",
|
|
"CWE-362",
|
|
"CWE-364",
|
|
"CWE-367",
|
|
"CWE-377",
|
|
"CWE-415",
|
|
"CWE-416",
|
|
"CWE-467",
|
|
"CWE-502",
|
|
"CWE-552",
|
|
"CWE-562",
|
|
"CWE-590",
|
|
"CWE-601",
|
|
"CWE-611",
|
|
"CWE-643",
|
|
"CWE-676",
|
|
"CWE-683",
|
|
"CWE-686",
|
|
"CWE-696",
|
|
"CWE-697",
|
|
"CWE-704",
|
|
"CWE-762",
|
|
"CWE-770",
|
|
"CWE-787",
|
|
"CWE-806",
|
|
"CWE-839",
|
|
"CWE-917",
|
|
"CWE-918",
|
|
"CWE-1260",
|
|
"CWE-1333"
|
|
],
|
|
"rules": [
|
|
"elttam-potential-symlink-takeover-with-os-executable",
|
|
"elttam-sprintf-unescaped-control-characters",
|
|
"elttam-non-atomic-use-of-converted-uintptr",
|
|
"elttam-UnsafeHttpInvokerServiceExporter-XML"
|
|
],
|
|
"check": "Vendored rules (GitLab, 0xdea, elttam): untrusted input must not reach an interpreter, the file system, a deserialiser or a fixed-size buffer unchecked; injection (SQL, OS command, LDAP, XPath, XSS, template), path traversal, unsafe deserialisation, XXE, SSRF, open redirects, and memory errors (unbounded copies, off-by-one, use after free, double free, integer wraparound) violate it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-21",
|
|
"title": "Supply-Chain-Security",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-22",
|
|
"title": "Dependency-Monitoring",
|
|
"scans": [
|
|
{
|
|
"tool": "osv",
|
|
"scan_type": "cve",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "syft",
|
|
"scan_type": "sbom",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "dotnet-lifecycle",
|
|
"scan_type": "sbom",
|
|
"languages": [
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"dotnet-framework-end-of-support"
|
|
],
|
|
"check": "Components must still receive security updates; a project targeting a .NET or .NET Framework version past Microsoft's end of support violates it."
|
|
},
|
|
{
|
|
"tool": "build-lifecycle",
|
|
"scan_type": "sbom",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"csharp",
|
|
"swift",
|
|
"objc"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"android-sdk-end-of-support",
|
|
"unity-editor-end-of-support",
|
|
"ios-deployment-target-end-of-support",
|
|
"swift-version-end-of-support",
|
|
"android-min-sdk-end-of-support"
|
|
],
|
|
"check": "The platform a product is built for, and the tools it is built with, must still receive security updates; an Android API level, a Unity editor release, an iOS deployment target or an Android minimum API level out of support, or a Swift version no supported Xcode builds, violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-23",
|
|
"title": "Software Bill of Materials (SBOM)",
|
|
"scans": [
|
|
{
|
|
"tool": "syft",
|
|
"scan_type": "sbom",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "build-lifecycle",
|
|
"scan_type": "sbom",
|
|
"languages": [
|
|
"java",
|
|
"kotlin",
|
|
"csharp"
|
|
],
|
|
"cwe": [],
|
|
"rules": [
|
|
"legacy-build-system-no-sbom"
|
|
],
|
|
"check": "The product's components must be declared in a machine-readable form an SBOM can be built from; a build system that declares none (Eclipse/ADT, Unity without its package manifest) violates it."
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-24",
|
|
"title": "Security-Logging",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-25",
|
|
"title": "Ereignis-Monitoring",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-26",
|
|
"title": "Anomalie-Erkennung",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-27",
|
|
"title": "Log-Integrität und -Aufbewahrung",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-28",
|
|
"title": "Sichere Update-Mechanismen",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-29",
|
|
"title": "Update-Authentizität",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-30",
|
|
"title": "Update-Integrität",
|
|
"scans": [
|
|
{
|
|
"tool": "grounded-control-check",
|
|
"scan_type": "code_review",
|
|
"languages": [
|
|
"python",
|
|
"javascript",
|
|
"typescript",
|
|
"go",
|
|
"java",
|
|
"ruby",
|
|
"php",
|
|
"rust",
|
|
"csharp",
|
|
"kotlin",
|
|
"c",
|
|
"cpp"
|
|
],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-31",
|
|
"title": "Lifecycle-Support",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-32",
|
|
"title": "Schwachstellen-Identifikation",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-33",
|
|
"title": "SBOM-Pflege und Analyse",
|
|
"scans": [
|
|
{
|
|
"tool": "syft",
|
|
"scan_type": "sbom",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": []
|
|
},
|
|
{
|
|
"tool": "osv",
|
|
"scan_type": "cve",
|
|
"languages": [],
|
|
"cwe": [],
|
|
"rules": []
|
|
}
|
|
],
|
|
"note": null,
|
|
"status": "covered"
|
|
},
|
|
{
|
|
"control": "cra-ai-34",
|
|
"title": "Risikobasierte Priorisierung",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-35",
|
|
"title": "Coordinated Vulnerability Disclosure",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-36",
|
|
"title": "Incident-Response-Prozess",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-37",
|
|
"title": "Frühwarnung (24h)",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-38",
|
|
"title": "Detaillierter Vorfallsbericht (72h)",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-39",
|
|
"title": "Patch-Bereitstellung",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
},
|
|
{
|
|
"control": "cra-ai-40",
|
|
"title": "Dokumentation und Nachbereitung",
|
|
"scans": [],
|
|
"note": "process / document control — outside static-scan scope",
|
|
"status": "not_code_checkable"
|
|
}
|
|
]
|
|
}
|