diff --git a/rules/falco_rules.yaml b/rules/falco_rules.yaml index 96e059f4..8b89e5b0 100644 --- a/rules/falco_rules.yaml +++ b/rules/falco_rules.yaml @@ -2647,11 +2647,15 @@ - macro: net_miner_pool condition: (evt.type in (sendto, sendmsg) and evt.dir=< and (fd.net != "127.0.0.0/8" and not fd.snet in (rfc_1918_addresses)) and ((minerpool_http) or (minerpool_https) or (minerpool_other))) +- macro: trusted_images_query_miner_domain_dns + condition: (container.image.repository endswith "sysdig/agent" or container.image.repository endswith "falcosecurity/falco") + append: false + # The rule is disabled by default. # Note: falco will send DNS request to resolve miner pool domain which may trigger alerts in your environment. - rule: Detect outbound connections to common miner pool ports desc: Miners typically connect to miner pools on common ports. - condition: net_miner_pool + condition: net_miner_pool and not trusted_images_query_miner_domain_dns enabled: false output: Outbound connection to IP/Port flagged by cryptoioc.ch (command=%proc.cmdline port=%fd.rport ip=%fd.rip container=%container.info image=%container.image.repository) priority: CRITICAL