/security-tooling-skills:sysdig-secure-runtime-securityfrom security-tooling-skills
Guides deep, tool-specific use of Sysdig Secure for runtime threat detection with Falco rules, container/host image scanning, CIS Benchmark compliance checks, and incident response from alert through forensic capture.
Ships in security-tooling-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.
Sysdig Secure is a runtime security platform whose detection engine is built on Falco, the open-source CNCF runtime security project originated by Sysdig — Falco rules match system-call and Kubernetes audit-log events against a rule syntax describing suspicious behavior (unexpected process execution inside a container, a shell spawned in a production pod, an outbound connection from a process that should never make one), and Sysdig Secure wraps that detection engine with a managed rule feed, a UI/alerting layer, image scanning, CIS Benchmark compliance checks, and an incident-response workflow including forensic capture. The operational distinction that matters most: everything upstream of this skill (SAST, SCA, CSPM, IaC scanning) evaluates code or configuration before or independent of execution; Sysdig evaluates actual behavior of a running system, which is the only layer that can catch a zero-day exploit of an unpatched vulnerability, a supply-chain compromise in a dependency that passed every prior scan, or living-off-the-land techniques that don't correspond to any known CVE or misconfiguration at all.
condition, output, and priority fields) — Sysdig Secure ships a
large managed default ruleset plus the ability to add custom rules in
the same syntax.sysdig-cli-scanner, or the Sysdig Secure GitHub
Action/Jenkins plugin) with a Sysdig API token stored as a CI secret.
See secrets-management.Deploy the Sysdig agent to the cluster, typically via the official Helm chart:
helm repo add sysdig https://charts.sysdig.com
helm install sysdig-agent sysdig/sysdig-deploy \
--namespace sysdig-agent --create-namespace \
--set global.sysdig.accessKey="${SYSDIG_ACCESS_KEY}" \
--set global.clusterConfig.name="prod-cluster-1"
Write custom Falco-syntax runtime rules for behavior specific to the environment, layered on top of Sysdig's managed default set:
# Detect a shell spawned inside a production namespace container —
# rarely legitimate outside of interactive debugging.
- rule: Shell Spawned in Production Container
desc: Detects an interactive shell process started inside a container
running in a namespace tagged "production".
condition: >
spawned_process
and container
and proc.name in (bash, sh, zsh, dash)
and k8s.ns.name = "production"
and not proc.pname in (entrypoint.sh, docker-entrypoint.sh)
output: >
Shell spawned in production container
(user=%user.name container=%container.name image=%container.image.repository
command=%proc.cmdline k8s.ns=%k8s.ns.name k8s.pod=%k8s.pod.name)
priority: WARNING
tags: [container, shell, mitre_execution]
Scope alert routing by priority and namespace/tag, not a single firehose channel — route CRITICAL findings in production namespaces to a paging integration, and lower-priority or non-prod findings to a dashboard/ticket queue reviewed on a normal cadence.
Add image scanning to CI, so vulnerabilities are caught before deploy, not only observed as runtime behavior after the fact:
# GitHub Actions
- name: Sysdig image scan
uses: sysdiglabs/scan-action@v5
with:
image-tag: 'myorg/myapp:${{ github.sha }}'
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
stop-on-failed-policy-eval: true
Run CIS Benchmark compliance checks against hosts/clusters on a schedule, not only at initial setup:
sysdig-cli-scanner --compliance cis-docker-benchmark --host <docker-host>
Sample finding:
[WARN] 5.9 Ensure Kubernetes secrets are not mounted as environment variables
Pod: payments-api-7d9f Namespace: production
Enable drift/anomaly detection to flag a running container whose
process tree, open files, or binaries diverge from its scanned image
baseline — this catches both malicious tampering and unexpected
runtime installs (e.g. a container image being apt-get install'd
into at runtime, a common anti-pattern that also widens attack
surface).
On a triggered alert, follow the incident-response workflow:
kubectl delete pod on the specific
affected pod — not a blanket kubectl delete namespace or
similar broad action) while preserving the forensic capture and
any relevant logs first.Tune noisy rules with scoped exceptions, not blanket rule-disabling — Falco/Sysdig rules support exception lists scoped by field (e.g. exempt a specific known-legitimate process name or image), which preserves detection for everything else the rule covers:
- rule: Shell Spawned in Production Container
exceptions:
- name: known_debug_sidecar
fields: [container.image.repository]
comps: [in]
values:
- [["myorg/debug-sidecar"]]
Symptom: The team disables the "Shell Spawned in Container" rule
entirely within the first week because it fires constantly on
legitimate kubectl exec debugging sessions.
Fix: Scope the rule with a namespace/tag condition (e.g. only
fire in namespaces tagged production, or exclude known debug
sidecar images via a scoped exception, step 8) instead of disabling
the rule outright — the rule is catching a genuinely useful signal in
production even if it's noisy in dev/staging where interactive
debugging is routine.
Symptom: A real incident is missed because the alert fired at INFO/NOTICE priority into a dashboard nobody actively monitors, while the on-call rotation only gets paged on CRITICAL. Fix: Review priority mapping against actual response capability — if a rule represents a genuinely actionable signal (e.g. a known privilege-escalation technique), its priority and routing should reflect that regardless of Falco's default priority level; don't assume default priorities are already calibrated to your environment's risk tolerance.
Symptom: During a live incident, the responder runs kubectl delete pod on every pod in the namespace to "be safe," destroying
forensic evidence and disrupting unrelated healthy workloads.
Fix: Isolate/contain the specific affected pod/container
(targeted deletion, or better, a network policy that cuts its
connectivity while leaving it running for forensic capture) rather
than a blanket namespace-wide action; capture forensic data (step 7)
before destroying the affected workload, and never run a broad
destructive command as a first response reflex.
Symptom: Image scanning in CI shows clean, but a runtime alert
later fires for a vulnerability that should have been caught pre-deploy.
Fix: Check whether the running image actually matches what was
scanned — a :latest tag or a mutable tag re-pushed after the scan
ran means the deployed artifact may differ from the scanned one;
scan and deploy the same immutable, digest-referenced image (see
container-image-hardening
on digest pinning) so "scanned" and "running" are guaranteed to be
identical.
Symptom: CIS Benchmark compliance checks report the same finding every quarter with no progress, and the report becomes a check-the-box exercise nobody acts on. Fix: Assign an owning team and a remediation SLA per finding category (the same discipline as vulnerability management), and track trend/closure rate rather than re-running the same scan and filing the same unaddressed report each cycle.
A platform team deploys Sysdig Secure to a production EKS cluster, adds a custom rule for their specific threat model, and walks through an incident it catches.
Helm values (sysdig-values.yaml, abbreviated):
global:
sysdig:
accessKey: "${SYSDIG_ACCESS_KEY}"
clusterConfig:
name: "prod-eks-1"
nodeAnalyzer:
secure:
vulnerabilityManagement:
enabled: true
Custom rule detecting unexpected outbound connections from a payments service that should only ever talk to its known database and internal API dependencies:
- rule: Unexpected Outbound Connection from Payments Service
desc: Payments service pods should only connect to known internal
endpoints; any other outbound connection is suspicious.
condition: >
outbound
and container
and k8s.pod.label.app = "payments-api"
and not fd.sip in (known_payments_dependency_ips)
output: >
Unexpected outbound connection from payments-api
(pod=%k8s.pod.name dest_ip=%fd.sip dest_port=%fd.sport proc=%proc.cmdline)
priority: CRITICAL
tags: [network, payments, mitre_exfiltration]
Incident walkthrough:
payments-api pod opens a connection to
an IP outside the known-dependency list, at 02:14 UTC.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/certificate-lifecycle-management-at-scaleGuides managing TLS/mTLS certificate lifecycle across many services and environments beyond a single Kubernetes cluster — enterprise CA integration (ACME private CA, Microsoft AD CS, cloud-managed private CAs), cross-service rotation automation, expiry monitoring/alerting, and CA hierarchy/trust-chain management for a mixed fleet of VMs, on-prem servers, and multiple clusters. Use when the user asks to "automate cert rotation across our whole fleet," "integrate with our enterprise CA," "why do we keep having certificate expiry outages," "design a CA hierarchy for the org," "track every certificate's expiry date across environments," or "cert-manager only covers our Kubernetes clusters, what about everything else." Distinct from cert-manager's Kubernetes-native scope — see `../../../kubernetes-platform/skills/cert-manager-tls-automation/SKILL.md`.
/enterprise-sso-and-idp-federation-configurationGuides configuring enterprise workforce single sign-on — SAML 2.0 and OIDC federation between an identity provider (Okta, Azure AD/Entra ID, Keycloak) and downstream applications, including metadata exchange, attribute/claim mapping, group-to-role provisioning (SCIM), and multi-IdP federation trust. Use when the user asks to "set up SAML SSO with Okta," "configure Azure AD/Entra ID as our OIDC provider," "stand up Keycloak as an internal IdP," "map IdP groups to application roles," "debug a SAML assertion that won't validate," or "federate a second IdP for an acquired company's users." Distinct from cloud-iam-hardening (workload/service IAM in a cloud provider) — this skill is about federating *human workforce* identity into applications for SSO.
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin security-tooling-skillsOther plugins' skills for the same job