[high] yocto-config: Password set in EXTRA_USERS_PARAMS #866

Closed
opened 2026-11-05 02:27:07 +00:00 by pruefwerk · 1 comment
Member

high Finding

Scanner: yocto-config
Severity: high
Rule: yocto-extrausers-password
CWE: CWE-798
CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)

Description

The image sets a fixed password for the account.

CRA Annex I Part I (2)(b): products are made available with a secure by default configuration.

Location

File: fixtures/nightly/firmware/yocto-layer/recipes-core/images/pump-image.bb (line 13)

Code

usermod -p <hidden>

Remediation

Do not bake a password or password hash into the image: every device ships with the same credential. Lock the account (usermod -p '*'), use key authentication, or set a per-device password at provisioning.


Fingerprint: 423e4081f1b380337fcbd35964a253c7257fad4df881f6b24ff5c5fb830f3a81
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## high Finding **Scanner:** yocto-config **Severity:** high **Rule:** yocto-extrausers-password **CWE:** CWE-798 **CRA:** cra-ai-8 — Keine Default-Passwörter (Annex I) ### Description The image sets a fixed password for the account. CRA Annex I Part I (2)(b): products are made available with a secure by default configuration. ### Location **File:** `fixtures/nightly/firmware/yocto-layer/recipes-core/images/pump-image.bb` (line 13) ### Code ``` usermod -p <hidden> ``` ### Remediation Do not bake a password or password hash into the image: every device ships with the same credential. Lock the account (usermod -p '*'), use key authentication, or set a per-device password at provisioning. --- *Fingerprint:* `423e4081f1b380337fcbd35964a253c7257fad4df881f6b24ff5c5fb830f3a81` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the cra:annex-ipruefwerkseverity:high labels 2026-11-05 02:27:07 +00:00
Author
Member

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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#866