feat(binaries): hardening, signatures, .NET references and Intel HEX checks of committed binaries (#495) (#501)
On top of the committed-binary inventory (#465), natively in Rust: - PE: ASLR (DYNAMICBASE, relocations), high-entropy ASLR, DEP, CFG, SafeSEH, /GS, Authenticode present; IL-only .NET assemblies skip the native-only checks - ELF (dynamically linked only): RELRO, NX stack, PIE, stack protector, FORTIFY; static and bare-metal ELF are not assessed - .NET: AssemblyRefs from the CLI metadata tables (own ECMA-335 reader) - native PE: CPE/purl candidates from the version resource, low confidence - Intel HEX: record checksums, address ranges, size, start address Evidence goes on the inventory finding; each gap is its own Low/Info finding per rule (grouped by #477). ASLR/NX/RELRO gaps bind to cra-ai-1 and a damaged HEX image to cra-ai-6 through attach-only control-map bindings, which never make a control count as checked. PE/ELF headers are read with the object crate, already in the build via firmwerk-sbom: no new crate, no Python helper, no image change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit was merged in pull request #501.
This commit is contained in:
1 parent
9d1f8b6883
commit
b7dbd8f196
14 files changed
+2129
-11
No files matched your search
@@ -50,6 +50,19 @@
|
||||
"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
|
||||
}
|
||||
],
|
||||
"note": null,
|
||||
@@ -106,6 +119,17 @@
|
||||
],
|
||||
"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",
|
||||
|
||||
Reference in new issue
Block a user