The grounded surface check (5d) covers the eight absence-based CRA controls:
integrity checks;
brute-force protection;
authorisation;
security logging;
log integrity;
secure updates;
update authenticity;
update integrity.
It only read py js ts tsx jsx go java rb php rs cs kt, so on C/C++ firmware those controls were never checked. It now reads C/C++ too.
Changes
File types:surface.rs reads c h cc cpp hpp.
Vendor code is left out. Without this, the eight-region cap per control would fill with HAL, CMSIS and middleware code (HAL_FLASH_Program, verify, …).
The walk uses vendor::walk_outside with the directories from vendor::vendor_dirs, the same detection SAST uses.
grounded_surface_findings works them out once per scan, on a blocking thread.
Embedded terms in the keyword lists:
crc32 for integrity;
syslog for logging;
bootloader, ota_ and hal_flash for updates;
ecdsa and secure_boot for update authenticity.
ota_ is written with the underscore so it doesn't match "rotate" or "iota".
Control map: the eight grounded bindings list c and cpp. The CRA status therefore counts C/C++ code as checked for them, and "no violation found" there now rests on an actual check.
Nightly
Grounded findings are codereview (LLM output), which the nightly reports but never compares, so the baselines are unaffected.
Checked
cargo fmt --all --check.
clippy with the CI flags for compliance-agent.
Tests: agent 448, control-map 12. A new test has STM32 update code in Core/Src/ota.c retrieved while the HAL's HAL_FLASH_Program under Drivers/ is not.
Closes #376.
The grounded surface check (5d) covers the eight absence-based CRA controls:
- integrity checks;
- brute-force protection;
- authorisation;
- security logging;
- log integrity;
- secure updates;
- update authenticity;
- update integrity.
It only read `py js ts tsx jsx go java rb php rs cs kt`, so on C/C++ firmware those controls were never checked. It now reads C/C++ too.
## Changes
- **File types:** `surface.rs` reads `c h cc cpp hpp`.
- **Vendor code is left out.** Without this, the eight-region cap per control would fill with HAL, CMSIS and middleware code (`HAL_FLASH_Program`, `verify`, …).
- The walk uses `vendor::walk_outside` with the directories from `vendor::vendor_dirs`, the same detection SAST uses.
- `grounded_surface_findings` works them out once per scan, on a blocking thread.
- **Embedded terms** in the keyword lists:
- `crc32` for integrity;
- `syslog` for logging;
- `bootloader`, `ota_` and `hal_flash` for updates;
- `ecdsa` and `secure_boot` for update authenticity.
- `ota_` is written with the underscore so it doesn't match "rotate" or "iota".
- **Control map:** the eight grounded bindings list `c` and `cpp`. The CRA status therefore counts C/C++ code as checked for them, and "no violation found" there now rests on an actual check.
## Nightly
Grounded findings are `codereview` (LLM output), which the nightly reports but never compares, so the baselines are unaffected.
## Checked
- `cargo fmt --all --check`.
- clippy with the CI flags for compliance-agent.
- Tests: agent 448, control-map 12. A new test has STM32 update code in `Core/Src/ota.c` retrieved while the HAL's `HAL_FLASH_Program` under `Drivers/` is not.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
The absence-based controls (integrity, updates, logging, access) were
never checked on firmware: the surface check read no C/C++. It now
does, without the vendor SDK, with embedded terms (crc32, ota_,
bootloader, hal_flash, secure_boot, ecdsa, syslog); the control map
counts C/C++ as checked for these controls.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang
merged commit a3e0618283 into main2026-09-25 11:09:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #376.
The grounded surface check (5d) covers the eight absence-based CRA controls:
It only read
py js ts tsx jsx go java rb php rs cs kt, so on C/C++ firmware those controls were never checked. It now reads C/C++ too.Changes
surface.rsreadsc h cc cpp hpp.HAL_FLASH_Program,verify, …).vendor::walk_outsidewith the directories fromvendor::vendor_dirs, the same detection SAST uses.grounded_surface_findingsworks them out once per scan, on a blocking thread.crc32for integrity;syslogfor logging;bootloader,ota_andhal_flashfor updates;ecdsaandsecure_bootfor update authenticity.ota_is written with the underscore so it doesn't match "rotate" or "iota".candcpp. The CRA status therefore counts C/C++ code as checked for them, and "no violation found" there now rests on an actual check.Nightly
Grounded findings are
codereview(LLM output), which the nightly reports but never compares, so the baselines are unaffected.Checked
cargo fmt --all --check.Core/Src/ota.cretrieved while the HAL'sHAL_FLASH_ProgramunderDrivers/is not.🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p