Event type
Falco terminal shell in container
Published Critical terminal-shell profile with registry sensor/workload identities and exact integer nanosecond timestamps.
Overview
What this event covers
Published JSON output-channel example profile; fixed rule, command, priority and tags. Requires source-specific entities: entities/falco/falco/runtime-alert.yaml; example configuration: configs/falco/falco/runtime-alert.yaml. Tested with MELTr rc3 commit 1e14e5defb66f6ac24decbe59c1c4f4e64877618. Entity fixtures must be selected per source; generic registry preview entities are not sufficient.
When generated
- ›A shell is spawned in a container with an attached terminal.
Security relevance
InformationalFrequency notes
One event/second local test rate; five-event burst. Independent alerts, no container lifecycle simulation.
Resources
Docs and tools
Generation
Configuration
- Base frequency
- 3600 events/hour
- Business hours
- 1.0x
- Night hours
- 1.0x
- Weekend
- 1.0x
Schema
Field definitions
Field reference for this event type — types, requirements, examples, and allowed values.
hostname
Hostname of `registry.get_random_device()`, selected once.
Source: Hostname of `registry.get_random_device()`, selected once.
falco-sensor-02output
Exact published message structure, rebuilt from the same structured field dictionary, UTC clock and priority. Pod, command, identity, tty and both container-ID appearances agree.
Source: Exact published message structure, rebuilt from the same structured field dictionary, UTC clock and priority. Pod, command, identity, tty and both container-ID appearances agree.
22:48:02.761855503: Critical A shell was spawned in a container with an attached terminal (user=root user_loginuid=-1 k8s.ns=default k8s.pod=example-shell-02 container=454e61a0dab0 shell=sh parent=runc cmdline=sh -c clear; (bash || ash || sh) terminal=34816 container_id=454e61a0dab0 image=docker.io/library/alpine)priority
Fixed `Critical`.
Source: Fixed `Critical`.
Criticalrule
Fixed `Terminal shell in container`.
Source: Fixed `Terminal shell in container`.
Terminal shell in containersource
Fixed `syscall`.
Source: Fixed `syscall`.
syscalltags
Fixed ordered list: `container`, `mitre_execution`, `shell`.
Source: Fixed ordered list: `container`, `mitre_execution`, `shell`.
["container","mitre_execution","shell"]time
UTC ISO timestamp with nine fractional digits from the single event clock and synthetic submicrosecond fraction.
Source: UTC ISO timestamp with nine fractional digits from the single event clock and synthetic submicrosecond fraction.
2026-10-01T22:48:02.761855503Zoutput_fields
Contains exactly the fields below; no additional properties.
Source: Contains exactly the fields below; no additional properties.
{"container.id":"454e61a0dab0","container.image.repository":"docker.io/library/alpine","evt.time":1790894882761855503,"k8s.ns.name":"default","k8s.pod.name":"example-shell-02","proc.cmdline":"sh -c clear; (bash || ash || sh)","proc.name":"sh","proc.pname":"runc","proc.tty":34816,"user.loginuid":-1,"user.name":"root"}output_fields.container.id
Stable mapped service `falco_container_id`; twelve lowercase hex characters in this local profile.
Source: Stable mapped service `falco_container_id`; twelve lowercase hex characters in this local profile.
454e61a0dab0output_fields.container.image.repository
Fixed `docker.io/library/alpine`.
Source: Fixed `docker.io/library/alpine`.
docker.io/library/alpineoutput_fields.evt.time
Exact Unix nanoseconds derived using integer day/second arithmetic plus the same fraction as `time` and `output`.
Source: Exact Unix nanoseconds derived using integer day/second arithmetic plus the same fraction as `time` and `output`.
1790894882761855503output_fields.k8s.ns.name
Fixed `default`.
Source: Fixed `default`.
defaultoutput_fields.k8s.pod.name
Same mapped service's `falco_pod_name`.
Source: Same mapped service's `falco_pod_name`.
example-shell-02output_fields.proc.cmdline
Fixed `sh -c clear; (bash || ash || sh)`.
Source: Fixed `sh -c clear; (bash || ash || sh)`.
sh -c clear; (bash || ash || sh)output_fields.proc.name
Fixed `sh`.
Source: Fixed `sh`.
shoutput_fields.proc.pname
Fixed `runc`.
Source: Fixed `runc`.
runcoutput_fields.proc.tty
Fixed `34816`.
Source: Fixed `34816`.
34816output_fields.user.loginuid
Fixed `-1` sentinel; never replaced with an unrelated registry user ID.
Source: Fixed `-1` sentinel; never replaced with an unrelated registry user ID.
-1output_fields.user.name
Fixed `root`.
Source: Fixed `root`.
roottags[0]
Fixed ordered list: `container`, `mitre_execution`, `shell`. This field is the tags[0] member.
Source: Fixed ordered list: `container`, `mitre_execution`, `shell`.
containertags[1]
Fixed ordered list: `container`, `mitre_execution`, `shell`. This field is the tags[1] member.
Source: Fixed ordered list: `container`, `mitre_execution`, `shell`.
mitre_executiontags[2]
Fixed ordered list: `container`, `mitre_execution`, `shell`. This field is the tags[2] member.
Source: Fixed ordered list: `container`, `mitre_execution`, `shell`.
shell