Tetragon Runtime Security Signature
Matches Tetragon process and kprobe events for shells in containers, sensitive file reads and privilege changes that warrant a read-only runtime brief.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:02f93e2a
Contract facts
- Sources
- 1
- tetragon
- Log patterns
- 5
- RE2, replayed in CI
- Kubernetes matchers
- 0
- CEL on live objects
- Samples
- 5 and 3
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/tetragon-runtime \ --source oci://ghcr.io/faberops/catalog:v2How it works
- Sources:
tetragon - Log patterns: 5 RE2 expressions, each proven by the
samples.matchandsamples.noMatchlines that catalog CI replays - Ready queries:
tetragon
Use from a Playbook
Reference the pack by name from a connector trigger:
YAML7 lines
triggers:
- name: signature-hit
connector:
connectorType: tetragon
signaturePack: tetragon-runtime
window: 10m
minMatches: 3Signatures only describe what to look for. They never grant a Playbook any permission or action.
What it matches
Must match
- {"process_exec":{"process":{"binary":"/bin/sh","pod":{"namespace":"shop"}}}}
- {"process_exec":{"process":{"binary":"/usr/bin/ncat"}}}
- {"process_kprobe":{"function_name":"security_file_permission","args":[{"file_arg":{"path":"/etc/shadow"}}]}}
- {"process_kprobe":{"function_name":"__x64_sys_setuid"}}
- {"process_kprobe":{"policy_name":"privilege-escalation"}}
Must not match
- {"process_exec":{"process":{"binary":"/app/server"}}}
- {"process_exit":{"process":{"binary":"/usr/local/bin/envoy"}}}
- {"process_kprobe":{"function_name":"tcp_connect"}}
Signature source
signature.yamlFailureSignature27 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: tetragon-runtime
spec:
description: Matches Tetragon process and kprobe events for shells in containers, sensitive file reads and privilege changes that warrant a read-only runtime brief.
sources:
- tetragon
logPatterns:
- '\"binary\":\"[^\"]*/(sh|bash|dash|ash|zsh)\"'
- '\"binary\":\"[^\"]*/(nc|ncat|socat|nmap)\"'
- '/etc/(shadow|sudoers)\b'
- '(?i)\b(__x64_sys_setuid|__arm64_sys_setuid|commit_creds)\b'
- '(?i)\"policy_name\":\"[^\"]*(privilege|escalation|sensitive)[^\"]*\"'
queries:
tetragon: '--event-types PROCESS_EXEC,PROCESS_KPROBE --namespaces-exclude kube-system'
samples:
match:
- '{"process_exec":{"process":{"binary":"/bin/sh","pod":{"namespace":"shop"}}}}'
- '{"process_exec":{"process":{"binary":"/usr/bin/ncat"}}}'
- '{"process_kprobe":{"function_name":"security_file_permission","args":[{"file_arg":{"path":"/etc/shadow"}}]}}'
- '{"process_kprobe":{"function_name":"__x64_sys_setuid"}}'
- '{"process_kprobe":{"policy_name":"privilege-escalation"}}'
noMatch:
- '{"process_exec":{"process":{"binary":"/app/server"}}}'
- '{"process_exit":{"process":{"binary":"/usr/local/bin/envoy"}}}'
- '{"process_kprobe":{"function_name":"tcp_connect"}}'
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/tetragon-runtime. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: tetragon-runtime
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:02f93e2a633af6e1b03d9f4d5fd3859396b28d16d08989811fd79a5a93a3f628
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsCilium Tetragon
connectors/tetragonStreams kernel runtime security events from Tetragon over gRPC for read-only runtime triage.Can read, triggerCilium Hubble Packet Drop Signature
signatures/cilium-hubble-dropsMatches Hubble flows with a DROPPED verdict caused by policy denials, missing routes or conntrack pressure, plus the matching Cilium drop metrics.Log patterns 5Sources 2Falco and Tetragon Container Escape Syscall Alert
signatures/falco-container-escape-syscallMatches Falco and Tetragon kernel runtime alerts for container namespace escapes, privileged mount attempts, and unexpected host binary execution.Log patterns 3Sources 3