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
- A program does something: starts a shell, opens a file, connects out.
- Falco sees the system call: through its eBPF driver.
- A rule matches: the host rules here plus Falco's defaults.
- The alert goes to syslog as JSON: and on through the host log template.
| Platform | Uses | The part that catches people |
|---|---|---|
| Linux | Falco with the modern eBPF driver, rules in /etc/falco/rules.d | A rule that does not compile stops Falco from starting, which ends detection on that host. |
Run the quick start
| Reach the Linux machines | ansible all -i inventory.ini -m ping |
| Preview | ansible-playbook -i inventory.ini playbook.yml --check --diff |
| Run | ansible-playbook -i inventory.ini playbook.yml |
| Run again, expect changed=0 | ansible-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.