feat(lab9): falco custom rules + conftest hardening policies#1446
Open
JoraXD wants to merge 7 commits into
Open
feat(lab9): falco custom rules + conftest hardening policies#1446JoraXD wants to merge 7 commits into
JoraXD wants to merge 7 commits into
Conversation
add pre-commit config
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
Complete Lab 9 runtime detection and Policy-as-Code work with Falco custom rules, Conftest hardening policies, and submission evidence.
Changes
Write to /tmp by containerPossible Cryptominer Activitybonus ruleallowPrivilegeEscalation: falsecapabilities.drop: ["ALL"]submissions/lab9.mdwith Falco alerts, Conftest outputs, tuning notes, and bonus reflection.Testing
Falco:
syscallsource with modern BPF probeTerminal shell in containerRead sensitive file untrustedWrite to /tmp by containerPossible Cryptominer Activityconftest test labs/lab9/manifests/k8s/juice-hardened.yaml --policy labs/lab9/policies/extra/10 tests, 10 passed, 0 warnings, 0 failures, 0 exceptions
conftest test labs/lab9/manifests/k8s/juice-unhardened.yaml --policy labs/lab9/policies/extra/10 tests, 5 passed, 0 warnings, 5 failures, 0 exceptions
conftest test labs/lab9/manifests/compose/juice-compose.yml --policy labs/lab9/policies/compose-security.rego --namespace compose.security4 tests, 4 passed, 0 warnings, 0 failures, 0 exceptions
conftest test /tmp/bad-compose.yml --policy labs/lab9/policies/compose-security.rego --namespace compose.security4 tests, 2 passed, 0 warnings, 2 failures, 0 exceptions
pre-commit run --files labs/lab9/falco/rules/custom-rules.yaml labs/lab9/policies/extra/hardening.rego submissions/lab9.mdPassed
Note:
pre-commit run --all-filesstill fails on existing Lab 6 fixturelabs/lab6/vulnerable-iac/ansible/configure.yml, unrelated to this PR.Artifacts & Screenshots
labs/lab9/falco/rules/custom-rules.yamllabs/lab9/policies/extra/hardening.regosubmissions/lab9.mdfeat(lab9): falco runtime detection + conftest policies)submissions/lab9.mdexists