/platform-skills:runtime-security [install|rules|alerts|debug|harden] [description or symptom]from platform-skills
Deploys Falco on EKS/GKE with eBPF driver, writes custom rules to detect in-container threats, routes alerts via Falcosidekick, debugs non-firing rules, and bridges runtime signals to Kyverno admission enforcement.
Ships in platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Detect and respond to threats inside running containers using Falco.
When invoked with no arguments, ask before proceeding:
Q1 — Mode?
What do you need?
1. install — deploy Falco on Kubernetes (EKS or GKE) with eBPF driver
2. rules — write and test a custom Falco rule
3. alerts — configure Falcosidekick to route alerts (Slack, webhook, etc.)
4. debug — diagnose why a Falco rule is not firing
5. harden — map runtime Falco alerts to Kyverno admission policies
Enter 1–5 or mode name:
Q2 — Context (after mode selected, one at a time):
Which cloud platform? EKS / GKE / other (specify node OS if known):Describe the behaviour to detect (e.g. "shell spawned in a container", "unexpected outbound connection"):Which output destination? Slack / webhook / PagerDuty / other:Describe the symptom — which rule is not firing, and what event should trigger it?Which Falco alert or rule output should block re-admission? (paste the alert or rule name):Then proceed into the relevant mode below.
Deploy Falco on Kubernetes (EKS or GKE) using the eBPF driver via Helm.
Prerequisites:
kubectl access to the target clusterSteps:
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm repo update
helm install falco falcosecurity/falco \
--namespace falco \
--create-namespace \
-f examples/runtime-security/falco-values.yaml
kubectl rollout status daemonset/falco -n falco
kubectl get pods -n falco -o wide
kubectl logs -n falco -l app.kubernetes.io/name=falco --tail=20
Expected: lines like Notice A shell was spawned... (from the default ruleset test events)EKS-specific note: if using Bottlerocket nodes, set driver.kind: modern_ebpf in Helm values — Bottlerocket does not ship kernel headers for the classic eBPF probe.
GKE-specific note: COS nodes require driver.kind: modern_ebpf. GKE Autopilot does not support Falco (no DaemonSet scheduling).
Write and test custom Falco rules.
Steps:
- rule: Shell spawned in container
desc: A shell was spawned inside a container — potential interactive intrusion
condition: >
spawned_process
and container
and shell_procs
and not container.image.repository in (allowed_shell_images)
output: >
Shell spawned in container
(user=%user.name user_id=%user.uid
container=%container.name image=%container.image.repository
shell=%proc.name parent=%proc.pname cmdline=%proc.cmdline)
priority: WARNING
tags: [container, shell, mitre_execution]
spawned_process — a new process was exec'dcontainer — event is inside a container (not on the host)proc.name — process namecontainer.image.repository — image name without tagfd.net — network file descriptor (for connection events)kubectl run event-generator \
--image=falcosecurity/event-generator \
--restart=Never \
--rm -it -- run syscall
Then check logs: kubectl logs -n falco -l app.kubernetes.io/name=falco | grep WARNINGcustomRules:
custom-rules.yaml: |-
- rule: Shell spawned in container
...
Configure Falcosidekick to route Falco alerts to Slack, webhooks, or other outputs.
Steps:
helm upgrade --install falco falcosecurity/falco \
--namespace falco \
--create-namespace \
--set falcosidekick.enabled=true \
--set falcosidekick.webui.enabled=true \
-f examples/runtime-security/falcosidekick-values.yaml
falcosidekick:
config:
slack:
webhookurl: "https://hooks.slack.com/services/<token>"
minimumpriority: warning
messageformat: >
Alert: *{{ .Rule }}* (Priority: {{ .Priority }})
Container: `{{ index .OutputFields "container.name" }}`
Image: `{{ index .OutputFields "container.image.repository" }}`
kubectl port-forward -n falco svc/falco-falcosidekick-ui 2802:2802
# Open http://localhost:2802 — events appear in the UI
slack.minimumpriority: warning to suppress DEBUG/INFO noiseIf you need deeper context on any Falco component, load references/runtime-security.md.
Diagnose why a Falco rule is not firing.
Checklist (work through in order):
kubectl get pods -n falco -o wide
kubectl logs -n falco -l app.kubernetes.io/name=falco | tail -20
kubectl logs -n falco -l app.kubernetes.io/name=falco | grep -i "Loading rules"
kubectl exec -n falco daemonset/falco -- cat /etc/falco/rules.d/custom-rules.yaml 2>/dev/null \
|| kubectl exec -n falco daemonset/falco -- ls /etc/falco/
kubectl exec -n falco daemonset/falco -- falco --validate /etc/falco/rules.d/custom-rules.yaml
kubectl run test --image=falcosecurity/event-generator --rm -it -- run syscall
falcosidekick.config.slack.minimumpriority: error, rules with priority: WARNING are silently dropped. Adjust priority or threshold.never_true is shadowing your condition:
kubectl exec -n falco daemonset/falco -- cat /etc/falco/falco_rules.yaml | grep -A3 "macro: <macro name>"
kubectl exec -n falco daemonset/falco -- ls /etc/falco/rules.d/
Map Falco runtime alerts to Kyverno admission policies to prevent redeployment of flagged workloads.
Steps:
kubectl label deployment <name> -n <namespace> \
security.platform/falco-alert=critical
apiVersion: policies.kyverno.io/v1
kind: ValidatingPolicy
metadata:
name: block-falco-flagged-workloads
spec:
validationActions: [Deny]
matchConstraints:
resourceRules:
- apiGroups: ["apps"]
apiVersions: ["v1"]
operations: ["CREATE", "UPDATE"]
resources: ["deployments"]
validations:
- expression: >
!has(object.metadata.labels) ||
!('security.platform/falco-alert' in object.metadata.labels) ||
object.metadata.labels['security.platform/falco-alert'] != 'critical'
message: "Deployment is flagged by a Falco critical alert and cannot be re-admitted. Remove the flag after remediation."
Important: Kyverno blocks new pod admissions only — it does not terminate existing running pods that violate the policy. After applying the policy, manually identify and terminate flagged pods:
# Find pods matching the label that triggered the alert kubectl get pods -n <namespace> -l <label-key>=<label-value> # Terminate with grace period to allow in-flight requests to drain kubectl delete pod <name> -n <namespace> --grace-period=30
Recovery: If a Kyverno policy blocks a legitimate workload, remove the triggering label immediately:
kubectl label deployment <name> -n <namespace> security.platform/falco-alert-
The workload will be re-admitted on next rollout. Fix the underlying security issue, then re-apply the label to re-admit under policy enforcement.
After completing this task, log errors and learnings via /platform-skills:self-improve log.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fal.ai, AWS, GCP, Kubernetes, Slack
Generated from the plugin's indexed repository (nitinjain999/platform-skills) — no native marketplace selected
npx claudepluginhub p/nitinjain999-platform-skills50 skills in this plugin
/ai-governanceGenerate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands, plus a merge-time backstop for anything that bypasses them. Use when asked to "govern AI agents", "block AI from touching secrets", "add an AI policy gate", or "why did the AI agent hook not fire"./awesome-docsGenerate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle loop, field carousel, timeline phases), guided interview for any doc type (README, architecture guide, runbook, API reference, tutorial, RFC, post-mortem, how-it-works, or custom), converting existing plain Markdown, diffing for stale diagrams, quality auditing, local preview, and multi-platform export. Use when asked to "create a README for X", "write an architecture doc", "animate this guide", "convert my doc to animated", "check if my diagrams are stale", or "export my doc for Confluence"./awsStructured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA patterns. Covers OAC, cache policies, security headers, managed rule groups, rate limiting, FMS FIRST/MIDDLE/LAST ownership model, and production-ready Terraform generation./aws-profileAWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code and Claude Code MCP configs, and scan AWS Organization accounts./azureAzure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform generation./backup-drBack up and restore Kubernetes workloads with Velero, and prove recovery works. Covers Velero on EKS via Flux (IRSA, S3 backup location, EBS snapshots), schedules and retention, what a backup does not contain, restore drills that restore a namespace into an isolated copy and measure recovery time, cross-cluster disaster recovery with a read-only backup location, and GameDay pairing with chaos experiments. Use when asked to "set up cluster backups", "test our restore", "what's our recovery time", "restore a deleted namespace", or "plan DR to another cluster". Breaking things on purpose → /platform-skills:chaos. Upgrade rollback by blue/green → /platform-skills:cluster-upgrade.Other plugins' skills for the same job