Audit a disposable Chasm guest with Lynis
Use this diagnostic on a dedicated qualification site provisioned from the candidate you are testing. Lynis inventories the guest OS and its configuration. The score alone cannot establish whether host isolation or network policy works.
As the Chasm operator, create a fresh guest and start it. Pick a name that chasm list does not show, and stop if creation fails or its output does not report "created": true (an existing sandbox with the same name is reused, not recreated). The commands below assume the name lynis-audit.
chasm create lynis-audit && chasm start lynis-audit
On that same site, run the following from the trusted checkout as an administrator with sudo access. Use the local Incus daemon and the default project used by the release. Verify the source revision against the candidate deployed on this site. The package installation changes only the selected guest. Use its configured Debian repositories. Before installing packages, confirm sudo incus --force-local --project default list sandbox-lynis-audit -c nst shows a RUNNING VIRTUAL-MACHINE.
sudo incus --force-local --project default exec sandbox-lynis-audit -- apt-get update
sudo incus --force-local --project default exec sandbox-lynis-audit -- apt-get install -y lynis
scripts/diagnostics/audit-sandbox.sh lynis-audit
The harness verifies this host’s site identity pin and the VM’s managed and logical-name metadata, records and compares the VM UUID and boot ID before and after the scan, and confirms /workspace and /shared are mountpoints. It does not verify their backing volumes. It prints the completed report path and keeps evidence in a private directory under the current directory. Record the deployed release revision alongside the harness revision. Review warning[], suggestion[], and vulnerable_package[] entries in report.dat. Compare runs using the same template, package state, Lynis version, and options. Keep the report and console log private because they can identify services, packages and network configuration. After preserving the evidence, stop the disposable guest with chasm stop lynis-audit and remove it with chasm delete lynis-audit.