tetragon (Add): runtime malware detection, starting with Forgejo #1685

Open
opened 2026-11-15 15:58:10 +00:00 by ginjiruu · 0 comments
Owner

Goal: detect and stop malicious processes at runtime, instead of relying on egress allowlists.

After the 2026-09-17 Forgejo malware incident (crypto-stealer and XMRig miner on the PVC), Forgejo's egress was locked to an allowlist. Each new legitimate need widens it. github.com was added on 2026-11-15 for pull mirrors (flux-clusters#1683). An allowlist can't tell a mirror fetch from malware using the same host.

Tetragon (Cilium's eBPF runtime enforcement) watches process execution, file access and network calls per pod, and can kill a process when it matches a policy.

Work

  1. Deploy Tetragon on mini, alongside the existing Cilium.
  2. Write TracingPolicies for the Forgejo pod:
    • Alert on any binary run from the data volume.
    • Alert on executables written there.
    • Kill known miner and stealer behaviour.
  3. Send events to VictoriaLogs and alert on them.
  4. Once detection is proven, revisit which egress rules still earn their keep.
Goal: detect and stop malicious processes at runtime, instead of relying on egress allowlists. After the 2026-09-17 Forgejo malware incident (crypto-stealer and XMRig miner on the PVC), Forgejo's egress was locked to an allowlist. Each new legitimate need widens it. github.com was added on 2026-11-15 for pull mirrors (flux-clusters#1683). An allowlist can't tell a mirror fetch from malware using the same host. Tetragon (Cilium's eBPF runtime enforcement) watches process execution, file access and network calls per pod, and can kill a process when it matches a policy. ## Work 1. Deploy Tetragon on mini, alongside the existing Cilium. 2. Write TracingPolicies for the Forgejo pod: - Alert on any binary run from the data volume. - Alert on executables written there. - Kill known miner and stealer behaviour. 3. Send events to VictoriaLogs and alert on them. 4. Once detection is proven, revisit which egress rules still earn their keep.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1685
No description provided.