Repository navigation
Never read a damaged or blind lifecycle capture as contained - #183
Merged
Merged
Conversation
O02 of the leak-testing plan, for the lifecycle VM's capture reader. run.sh passes a contained scenario when egress.py --hits prints 0, and egress.py printed 0 for an empty pcap, a short header, and silently dropped truncated records, VLAN frames and unknown EtherTypes. It also read ports from the payload of non-first IPv4 fragments and stopped at the first IPv6 extension header. egress.py now raises Inconclusive (stderr INCONCLUSIVE: <reason>, exit 2) for any damage, for a frame snapped below its addresses and for layouts it does not parse; QEMU's intentional 128-byte snap still gives a verdict. --require-control demands the guest's own SSH packets in the window, so a capture of replies only or of nothing is blind, not clean. run.sh records an inconclusive capture as a failed scenario with the reason, and sends a control beacon (an SSH round trip) inside the c0-control and s1-session windows; the other windows already carry SSH traffic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR covers O02 from
docs/security/leak-testing-plan.md(slice 3), for the lifecycle VM's capture reader.The defect
scripts/vm/lifecycle/run.shpasses a contained scenario whenegress.py --hitsprints0. Before this PR,egress.pyproduced that0, or a wrong verdict, without having seen anything:0.The fix
egress.pynow raisesInconclusivein each of these cases, printingINCONCLUSIVE: <reason>on stderr and exiting2:--require-controloption requires guest-originated SSH packets in the window.run.shrecords an inconclusive capture as a failed scenario and quotes the reason.run.shnow sends an SSH beacon inside thec0-controlands1-sessionwindows. The other windows already carry SSH traffic.Tests
tests/test_lifecycle_egress.pybuilds the pcaps byte by byte (27 cases):26 of the 27 cases fail against the old reader.
The lifecycle VM workflow runs on this PR because of its path filter. That run is what shows the control beacons are actually seen.
🤖 Generated with Claude Code