我用 docker compose 运行 falco 和 falcosidekick,没有 k8s。
我需要将 aws 实例元数据检索到 falco 规则输出。我找到了 jevt 字段类,但在 falco 容器启动时遇到错误
Invalid output format 'command=%jevt.value[/awsRegion': 'invalid formatting token jevt.value[/awsRegion']
这是我的规则:
- rule: Terminal shell in container
desc: A shell was used as the entrypoint/exec point into a container with an attached terminal.
condition: >
spawned_process and container
and shell_procs and proc.tty != 0
and container_entrypoint
and not user_expected_terminal_shell_in_container_conditions
output: >
command=%jevt.value["/awsRegion"]
priority: NOTICE
tags: [ container, shell, mitre_execution ]
我能怎么做?谢谢