cat << EOF > patch.yaml
cluster:
proxy:
disabled: true
network:
cni:
name: none
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
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
{ | |
"hostname": "falco-6vmwl", | |
"output": "15:26:08.771336620: Notice Ingress remote file copy tool launched in container (user=sonarqube user_loginuid=-1 command=wget --no-proxy --quiet -O /dev/null --timeout=1 --header=X-Sonar-Passcode: define_it http://10.X.Y.Z:9000/api/system/liveness pid=73098 parent_process=sh container_id=e5824e25f127 container_name=sonarqube image=docker.io/library/sonarqube:10.1.0-community exe_flags=0) k8s.ns=sonarqube k8s.pod=sonarqube-sonarqube-0 container=e5824e25f127", | |
"priority": "Notice", | |
"rule": "Launch Ingress Remote File Copy Tools in Container", | |
"source": "syscall", | |
"tags": [ | |
"TA0011", | |
"container", | |
"mitre_command_and_control", |
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
- rule: Launch Ingress Remote File Copy Tools in Container | |
desc: > | |
Detect ingress remote file copy tools (such as curl or wget) launched inside containers. This rule can be | |
considered a valuable auditing tool, but it has the potential to generate notable noise and requires careful | |
profiling before full operationalization. | |
condition: > | |
spawned_process | |
and container | |
and (ingress_remote_file_copy_procs or curl_download) | |
and not user_known_ingress_remote_file_copy_activities |
- Install Falco Talon
git clone https://github.com/falco-talon/falco-talon.git``
cd falco-talon/deployment/helm
cat <<EOF > rules.yaml
- action: Terminate Pod
actionner: kubernetes:terminate
helm install falco falcosecurity/falco -n falco \
--set falcosidekick.enabled=true \
--set falcosidekick.customfields="cluster.name:A" \
--set falcosidekick.config.webhook.address="http://<falcosidekick.cluster-c>" \
--create-namespace
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
package main | |
import ( | |
"fmt" | |
"log" | |
"sync" | |
"time" | |
"github.com/nats-io/nats.go" |
- Create the
audit-policy.yaml
.
cat << EOF > audit-policy.yaml
apiVersion: audit.k8s.io/v1 # This is required.
kind: Policy
# Don't generate audit events for all requests in RequestReceived stage.
omitStages:
- "RequestReceived"
rules:
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
customRules: | |
override-k8saudit.yaml: |- | |
- list: allowed_k8s_users | |
append: true | |
items: [eks:cloud-controller-manager, eks:vpc-resource-controller, eks:az-poller] | |
- macro: live_endpoint | |
append: true | |
condition: or ka.uri="/readyz?exclude=kms-provider-0" or ka.uri="/livez?exclude=kms-provider-0" | |
falco: |
NewerOlder