Repository navigation
Feature/lab9 - #1848
Open
sedimentt wants to merge 17 commits into
Open
Feature/lab9#1848sedimentt wants to merge 17 commits into
sedimentt wants to merge 17 commits into
Conversation
feat(lab1): juice shop deploy + PR template + triage report
feat(lab2): threat model, secure variant, auth flow
test: first signed commit
feat(lab4): juice shop SBOM + grype and trivy comparison
feat(lab5): zap baseline and authenticated, semgrep, correlation
feat(lab6): checkov and kics findings, custom policy
feat(lab7): trivy scans + PSS restricted deployment
feat(lab8): cosign signing, tamper demo, sbom attestation
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
Detect container runtime behaviour with Falco, including two custom rules (a write under
/tmpand likely cryptominer traffic), and enforce the same class of controls before deployment with a Conftest/Rego policy.Changes
labs/lab9/falco/rules/custom-rules.yaml— two custom Falco rules:Write below tmp in container(WARNING, tagscontainer,drift)Possible cryptominer outbound connection(CRITICAL, tagsmitre_command_and_c96)labs/lab9/policies/extra/hardening.rego— packagek8s.hardechecks bothcontainsubmissions/lab9.md— report for Task 1, Task 2 and the BonuTesting
docker exec -t n containercat /etc/shadow→Read sensitive file untrustedecho test > /tmp/tmp in containerfired oncenc -w 2 127.0.0.1Possiblecryptominer outbound connection` (Critical)Write below tmpand the built-inDrop and execute new binary in containerjuice-unhardened.yaml→ 20 passed, 2 warnings, 8 failures - `juice-compose.yextra/hardening.regoadded: - `juice-hardened.juice-unhardened.yaml→ 9 failures - Found a bug in theL capabilities" rule(Kubernetes and Compose) stays silent when thedropfield is missing entirely, because ofo. Documented in the report.Artifacts & Screenshots
submissions/lab9.mdlabss.yamllabs/lab9/policies/extra/hardening.regolabs/lsonl(kept locallyfor Lab 10, not committed per.gitignore)Checklist
feat(lab9): falco custom rules + conftest policy)