feat(yocto): recipes are checked with oelint-adv and our own secure-by-default rules (#552)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Successful in 1m32s
CI / Deploy MCP (push) Successful in 5m11s
CI / Deploy Agent (push) Successful in 13m11s
CI / Deploy Dashboard (push) Successful in 16m16s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Successful in 1m32s
CI / Deploy MCP (push) Successful in 5m11s
CI / Deploy Agent (push) Successful in 13m11s
CI / Deploy Dashboard (push) Successful in 16m16s
This commit was merged in pull request #552.
This commit is contained in:
1 parent
750f1d7308
commit
7e3856db31
25 files changed
+2017
-28
No files matched your search
@@ -103,6 +103,40 @@
|
||||
],
|
||||
"rules": [],
|
||||
"check": "The shipped configuration must be secure by default; ASP.NET tracing switched on in Web.config violates it."
|
||||
},
|
||||
{
|
||||
"tool": "oelint-adv",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"oelint.var.badimagefeature.debug-tweaks",
|
||||
"oelint.var.badimagefeature.allow-empty-password",
|
||||
"oelint.var.badimagefeature.empty-root-password",
|
||||
"oelint.var.badimagefeature.serial-autologin-root",
|
||||
"oelint.var.badimagefeature.allow-root-login",
|
||||
"oelint.var.badimagefeature.tools-debug",
|
||||
"oelint.var.badimagefeature.dbg-pkgs",
|
||||
"oelint.var.badimagefeature.dev-pkgs"
|
||||
],
|
||||
"check": "The product image must be secure by default: an image feature that opens root or password-less logins (debug-tweaks, allow-empty-password, empty-root-password, serial-autologin-root, allow-root-login) or ships debugging tools, debug symbols or development files violates it."
|
||||
},
|
||||
{
|
||||
"tool": "yocto-config",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"yocto-sshd-root-login",
|
||||
"yocto-sshd-password-auth",
|
||||
"yocto-distro-no-security-flags",
|
||||
"yocto-local-conf-no-security-flags"
|
||||
],
|
||||
"check": "The image's shipped configuration must be secure by default: an sshd_config that permits root or password logins, or a distro built without security_flags.inc (stack protector, FORTIFY_SOURCE, PIE, RELRO), violates it."
|
||||
}
|
||||
],
|
||||
"note": null,
|
||||
@@ -170,6 +204,33 @@
|
||||
],
|
||||
"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
|
||||
},
|
||||
{
|
||||
"tool": "oelint-adv",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"oelint.vars.srcurichecksum",
|
||||
"oelint.vars.autorev",
|
||||
"oelint.vars.srcurigittag",
|
||||
"oelint.task.network"
|
||||
],
|
||||
"check": "What the image is built from must be verifiable: a download without a checksum, a source that follows a branch head (AUTOREV) or a movable tag, or a build task that fetches over the network outside the checksummed fetcher violates it."
|
||||
},
|
||||
{
|
||||
"tool": "yocto-config",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"yocto-src-uri-http"
|
||||
],
|
||||
"check": "What the image is built from must be fetched over an authenticated channel: a source fetched over plain http violates it."
|
||||
}
|
||||
],
|
||||
"note": "covered by the grounded surface check (retrieve code surface + grounded LLM judge decides presence/absence); validated live",
|
||||
@@ -308,6 +369,33 @@
|
||||
],
|
||||
"rules": [],
|
||||
"check": "No credential (password, key, token) may be written into the product's source or configuration: every installation would ship the same secret. A placeholder does not violate it."
|
||||
},
|
||||
{
|
||||
"tool": "oelint-adv",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"oelint.var.badimagefeature.debug-tweaks",
|
||||
"oelint.var.badimagefeature.allow-empty-password",
|
||||
"oelint.var.badimagefeature.empty-root-password",
|
||||
"oelint.var.badimagefeature.serial-autologin-root"
|
||||
],
|
||||
"check": "The image must not ship default or empty passwords: an image feature that leaves root or other accounts without a password, or logs root in on the serial console, violates it."
|
||||
},
|
||||
{
|
||||
"tool": "yocto-config",
|
||||
"scan_type": "recipe_lint",
|
||||
"languages": [
|
||||
"bitbake"
|
||||
],
|
||||
"cwe": [],
|
||||
"rules": [
|
||||
"yocto-extrausers-password"
|
||||
],
|
||||
"check": "The image must not ship default passwords: a password or password hash set for an account in EXTRA_USERS_PARAMS is the same on every device and violates it."
|
||||
}
|
||||
],
|
||||
"note": null,
|
||||
|
||||
Reference in new issue
Block a user