feat(lab12): kata vs runc isolation + perf + escape PoC#1554
Open
Troshkins wants to merge 26 commits into
Open
feat(lab12): kata vs runc isolation + perf + escape PoC#1554Troshkins wants to merge 26 commits into
Troshkins wants to merge 26 commits into
Conversation
feat(lab1): juice shop deploy + PR template + triage report
feat(lab2): Threagile threat model secure variant and auth flow
feat(lab3): secure git signing and secret scanning
feat(lab4): juice-shop SBOM and SCA comparison
feat(lab5): ZAP baseline + auth + Semgrep + correlation
feat(lab6): Checkov + KICS scans + custom policy
feat(lab7): trivy + PSS restricted + conftest gate
feat(lab8): cosign sign + SBOM/provenance attestations + blob signing
feat(lab9): runtime detection and policy enforcement
feat(lab10): defectdojo governance report + capstone walkthrough
feat(lab11): hardened nginx + WAF sidecar
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.
Goal
Deliver Lab 12 by installing and evaluating Kata Containers as a VM-backed container runtime, comparing its isolation and performance against runc, and demonstrating privileged host access under runc versus the isolated Kata runtime.
Changes
submissions/lab12.mdwith the complete Lab 12 report./devand Linux capability-set comparisons for both runtimes./dev/sdclimitation.labs/lab12/results/.Testing
Verified the host environment and Kata installation:
uname -a ls -la /dev/kvm containerd --version cat /opt/kata/VERSION grep -A2 "runtimes.kata" /etc/containerd/config.tomlObserved:
7.1.3-arch1-13.32.0/dev/kvmio.containerd.kata.v2Verified separate kernels:
Observed:
7.1.3-arch1-1— same as the host.6.18.35— separate microVM kernel.Measured cold-start performance across five runs:
0.646 s2.307 s3.57xMeasured the provided 100 MB
/dev/zeroto/dev/nullI/O benchmark:6.3 GB/s11.7 GB/sVerified privileged host access under runc:
sudo nerdctl run --rm --net=none \ --privileged \ --pid=host \ alpine:3.20 \ sh -c 'echo "OVERWRITTEN VIA HOST PID NAMESPACE" > /proc/1/root/tmp/lab12-target'Host-side verification confirmed:
The equivalent privileged Kata attempt did not modify the host target. Host-side verification remained:
The Kata attempt was also documented with the environment-specific VM device error:
This limitation is explicitly documented rather than claiming that the attack payload successfully executed inside the Kata microVM.
Final staged-content validation:
Observed no whitespace errors.
Artifacts & Screenshots
submissions/lab12.md— complete Lab 12 submission and analysis.labs/lab12/results/host-kernel.txt— host kernel information.labs/lab12/results/runc-kernel.txt— runc container kernel evidence.labs/lab12/results/kata-kernel.txt— Kata guest kernel evidence.labs/lab12/results/dev-diff.txt—/devisolation comparison.labs/lab12/results/runc-caps.txtandlabs/lab12/results/kata-caps.txt— capability-set comparison.labs/lab12/results/startup-bench.txt— five-run startup benchmark.labs/lab12/results/io-bench.txt— I/O benchmark output.labs/lab12/results/runc-escape-attempt.txt— successful runc host-access demonstration.labs/lab12/results/runc-host-verification.txt— host-side confirmation of the runc write.labs/lab12/results/kata-escape-attempt.txt— equivalent Kata attempt and QEMU device error.labs/lab12/results/kata-host-verification.txt— host-side confirmation that the target remained unchanged.Checklist
feat(lab12): kata vs runc isolation + perf + escape PoC)submissions/lab12.mdexists