iac.htora.dev · security templates

Home/Refreshers/Catch attackers at work on a server: refresher

Catch attackers at work on a server

Falco on plain Linux hosts, alerting on web shells, credential theft, and new programs in system folders.

Remember

  1. A program does something: starts a shell, opens a file, connects out.
  2. Falco sees the system call: through its eBPF driver.
  3. A rule matches: the host rules here plus Falco's defaults.
  4. The alert goes to syslog as JSON: and on through the host log template.
PlatformUsesThe part that catches people
LinuxFalco with the modern eBPF driver, rules in /etc/falco/rules.dA rule that does not compile stops Falco from starting, which ends detection on that host.

Run the quick start

Reach the Linux machinesansible all -i inventory.ini -m ping
Previewansible-playbook -i inventory.ini playbook.yml --check --diff
Runansible-playbook -i inventory.ini playbook.yml
Run again, expect changed=0ansible-playbook -i inventory.ini playbook.yml

Watch out

  • These are the Kubernetes template's ideas for servers outside a cluster.
  • Automatic rules updates are off, so the rules running are the ones reviewed.
Check it worked

On a test cloud host, curl the metadata service address. The instance credentials alert reaches syslog within seconds.

Read the full pageDownload PDF

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.