Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cli-tools/nddev_mimocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -5586,7 +5586,14 @@ def software_status(target: Path, *, include_cleanup: bool = True) -> dict[str,
drift.append("asset_sha256")
if info.get("asset_size") != expected_size:
drift.append("asset_size")
# The extracted-binary identity is the only check that survives an attacker
# who rewrites the manifest, because the manifest sits beside the binary and
# is equally writable. A baseline that omits it therefore cannot answer
# "is this the software we installed" at all -- so say so instead of
# skipping the check and still reporting current.
executable_baseline = asset.get("executable")
if not isinstance(executable_baseline, dict):
drift.append("baseline_executable_unavailable")
if isinstance(executable_baseline, dict):
for key in (
"archive_member_path",
Expand Down
Loading