Scanner: semgrep Severity: high Rule: cra-ai-8-c-hardcoded-credential CWE: CWE-798 CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
A credential (MQTT_PASSWORD) is written into the firmware source — every device ships the same secret, and it can be read out of the image (CWE-798). Provision it per device at production or first boot.
## high Finding
**Scanner:** semgrep
**Severity:** high
**Rule:** cra-ai-8-c-hardcoded-credential
**CWE:** CWE-798
**CRA:** cra-ai-8 — Keine Default-Passwörter (Annex I)
### Description
A credential (MQTT_PASSWORD) is written into the firmware source — every device ships the same secret, and it can be read out of the image (CWE-798). Provision it per device at production or first boot.
### Location
**File:** `fixtures/nightly/firmware/c-sensor-node/Core/Inc/net_config.h` (line 7)
### Code
```
#define MQTT_PASSWORD "sensor-Mq77!"
```
### Remediation
Exclude fixtures/nightly from security scanning or mark it as test code.
---
*Fingerprint:* `8b3e0d4247969dafdd45a947d6594967365ba1c69c08c5a4f1c06592c7c57196`
*Generated by compliance-scanner*
[Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
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.
high Finding
Scanner: semgrep
Severity: high
Rule: cra-ai-8-c-hardcoded-credential
CWE: CWE-798
CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
A credential (MQTT_PASSWORD) is written into the firmware source — every device ships the same secret, and it can be read out of the image (CWE-798). Provision it per device at production or first boot.
Location
File:
fixtures/nightly/firmware/c-sensor-node/Core/Inc/net_config.h(line 7)Code
Remediation
Exclude fixtures/nightly from security scanning or mark it as test code.
Fingerprint:
8b3e0d4247969dafdd45a947d6594967365ba1c69c08c5a4f1c06592c7c57196Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.