docs: add lab9 — falco runtime + conftest policies#12
Open
Conversation
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
Implement runtime security monitoring with Falco and enforce policy-as-code compliance using Conftest/OPA to harden container deployments across Kubernetes and Docker environments.
Changes
Task 1 - Falco Runtime Detection:
Binary W Under UsrLocalBinto detect file writes in/usr/local/bindirectoryTask 2 - Policy-as-Code Hardening:
Kubernetes Manifests:
juice-unhardened.yamltojuice-hardened.yamlwith security improvementsrunAsNonRoot: true,allowPrivilegeEscalation: false,readOnlyRootFilesystem: true,capabilities.drop: ["ALL"]:latesttov19.0.0Docker Compose:
Testing
Falco Testing:
/usr/local/bin/drift.txtand/usr/local/bin/custom-rule.txtConftest Policy Validation:
Artifacts & Screenshots
Task 1 Artifacts:
labs/lab9/falco/rules/custom-rules.yaml- Custom Falco rule definitionlabs/lab9/falco/logs/falco.log- Falco runtime alerts and evidenceTask 2 Artifacts:
labs/lab9/conftest/juice-unhardened.yaml- Original vulnerable manifestlabs/lab9/conftest/juice-hardened.yaml- Security-hardened manifestlabs/lab9/conftest/juice-compose.yml- Docker Compose manifestlabs/lab9/conftest/conftest-unhardened.txt- Policy violation reportlabs/lab9/conftest/conftest-hardened.txt- Compliance verificationlabs/lab9/conftest/conftest-compose.txt- Docker Compose compliance reportChecklist