The vendor-code filter recognised only fixed names (CMSIS, Third_Party, vendor, …_HAL_Driver) and the STM32Cube Drivers/ next to Core/. Common embedded layouts slipped through, and SAST reported findings inside ST, Mbed TLS and lwIP code. For example, anon767/STM32F7HTTPS gave about 89 DES/MD5/SHA-1 hits inside Middlewares/mbedTLS.
New rules (compliance-agent/src/pipeline/vendor.rs)
ST's generated layouts, matched with ST's capitalisation. A customer's own lower-case middleware/ stays theirs.
Middlewares/ always. All of it is ST's: USB, FreeRTOS and third-party code alike.
Middleware/ and Drivers/ when they sit together, as in the FreeRTOS/ST reference projects (for example iot-reference-stm32u5).
The HAL without the _Driver suffix:STM32…_HAL, for example Drivers/STM32U5xx_HAL.
A vendored library wherever it sits, recognised by the files it always ships:
Mbed TLS 2.x/3.x;
lwIP;
the FreeRTOS kernel (tasks.c + include/FreeRTOS.h);
wolfSSL;
FatFs, flat or with its source/ folder.
Excluded folders are still listed on the scan run and still go into the SBOM. Only vendor.rs changes. It sits next to #385, which also edits this file (it adds walk_outside); whichever merges second needs a small rebase.
Nightly
fw-c-sensor-node and fw-embedded-libs keep their findings in Core/. embedded-libs only ever had Third_Party inside Middlewares/, so the baselines should not change.
Checked
cargo fmt --all --check.
clippy with the CI flags for compliance-agent.
Agent library tests: 431. New tests cover the FreeRTOS reference layout, Middlewares/ without Third_Party, library markers in lib/ and components/, and a customer's own lower-case middleware/ being kept.
Closes #369.
The vendor-code filter recognised only fixed names (`CMSIS`, `Third_Party`, `vendor`, `…_HAL_Driver`) and the STM32Cube `Drivers/` next to `Core/`. Common embedded layouts slipped through, and SAST reported findings inside ST, Mbed TLS and lwIP code. For example, `anon767/STM32F7HTTPS` gave about 89 DES/MD5/SHA-1 hits inside `Middlewares/mbedTLS`.
## New rules (`compliance-agent/src/pipeline/vendor.rs`)
- **ST's generated layouts, matched with ST's capitalisation.** A customer's own lower-case `middleware/` stays theirs.
- `Middlewares/` always. All of it is ST's: USB, FreeRTOS and third-party code alike.
- `Middleware/` and `Drivers/` when they sit together, as in the FreeRTOS/ST reference projects (for example `iot-reference-stm32u5`).
- **The HAL without the `_Driver` suffix:** `STM32…_HAL`, for example `Drivers/STM32U5xx_HAL`.
- **A vendored library wherever it sits,** recognised by the files it always ships:
- Mbed TLS 2.x/3.x;
- lwIP;
- the FreeRTOS kernel (`tasks.c` + `include/FreeRTOS.h`);
- wolfSSL;
- FatFs, flat or with its `source/` folder.
Excluded folders are still listed on the scan run and still go into the SBOM. Only `vendor.rs` changes. It sits next to #385, which also edits this file (it adds `walk_outside`); whichever merges second needs a small rebase.
## Nightly
`fw-c-sensor-node` and `fw-embedded-libs` keep their findings in `Core/`. `embedded-libs` only ever had `Third_Party` inside `Middlewares/`, so the baselines should not change.
## Checked
- `cargo fmt --all --check`.
- clippy with the CI flags for compliance-agent.
- Agent library tests: 431. New tests cover the FreeRTOS reference layout, `Middlewares/` without `Third_Party`, library markers in `lib/` and `components/`, and a customer's own lower-case `middleware/` being kept.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Middleware/ with Drivers/ (the FreeRTOS/ST reference layout),
Middlewares/ without Third_Party, STM32 HAL folders without the _Driver
suffix, and vendored libraries anywhere by their marker files (Mbed
TLS, lwIP, the FreeRTOS kernel, wolfSSL, FatFs) are now kept out of
SAST. A customer's own lower-case middleware/ is still scanned.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
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 #369.
The vendor-code filter recognised only fixed names (
CMSIS,Third_Party,vendor,…_HAL_Driver) and the STM32CubeDrivers/next toCore/. Common embedded layouts slipped through, and SAST reported findings inside ST, Mbed TLS and lwIP code. For example,anon767/STM32F7HTTPSgave about 89 DES/MD5/SHA-1 hits insideMiddlewares/mbedTLS.New rules (
compliance-agent/src/pipeline/vendor.rs)middleware/stays theirs.Middlewares/always. All of it is ST's: USB, FreeRTOS and third-party code alike.Middleware/andDrivers/when they sit together, as in the FreeRTOS/ST reference projects (for exampleiot-reference-stm32u5)._Driversuffix:STM32…_HAL, for exampleDrivers/STM32U5xx_HAL.tasks.c+include/FreeRTOS.h);source/folder.Excluded folders are still listed on the scan run and still go into the SBOM. Only
vendor.rschanges. It sits next to #385, which also edits this file (it addswalk_outside); whichever merges second needs a small rebase.Nightly
fw-c-sensor-nodeandfw-embedded-libskeep their findings inCore/.embedded-libsonly ever hadThird_PartyinsideMiddlewares/, so the baselines should not change.Checked
cargo fmt --all --check.Middlewares/withoutThird_Party, library markers inlib/andcomponents/, and a customer's own lower-casemiddleware/being kept.🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
54f2d09d22to82e85e0592