fix(system_baseline): refuse ICMP redirects on every interface #511

Open
opened 2026-12-03 16:45:30 +00:00 by Claude · 0 comments
Owner

What to build

A host hardened by system_baseline does not accept ICMP redirects on any interface, over IPv4 or IPv6.

Today the profiles set net.ipv4.conf.all.accept_redirects=0 only. With forwarding off, the kernel accepts redirects on an interface when either all or the interface's own value is 1. Interfaces inherit their value from default, which is 1 on a stock host, so they still accept redirects.

Setting default to 0 only affects interfaces created afterwards. Interfaces that already exist need their own value changed too.

Acceptance criteria

  • Every profile covers accept_redirects for all and default, over IPv4 and IPv6, and secure_redirects for all and default over IPv4.
  • Interfaces that exist when the role runs end up with redirects off, without a reboot.
  • After a reboot, interfaces that come up before and after the sysctl files are applied have redirects off.
  • A host with IPv6 disabled does not fail.
  • A second run reports no change.
  • Molecule checks the persisted keys; the README lists what is covered.
  • A changelog fragment describes the behaviour change.

Blocked by

## What to build A host hardened by `system_baseline` does not accept ICMP redirects on any interface, over IPv4 or IPv6. Today the profiles set `net.ipv4.conf.all.accept_redirects=0` only. With forwarding off, the kernel accepts redirects on an interface when either `all` or the interface's own value is 1. Interfaces inherit their value from `default`, which is 1 on a stock host, so they still accept redirects. Setting `default` to 0 only affects interfaces created afterwards. Interfaces that already exist need their own value changed too. ## Acceptance criteria - [ ] Every profile covers `accept_redirects` for `all` and `default`, over IPv4 and IPv6, and `secure_redirects` for `all` and `default` over IPv4. - [ ] Interfaces that exist when the role runs end up with redirects off, without a reboot. - [ ] After a reboot, interfaces that come up before and after the sysctl files are applied have redirects off. - [ ] A host with IPv6 disabled does not fail. - [ ] A second run reports no change. - [ ] Molecule checks the persisted keys; the README lists what is covered. - [ ] A changelog fragment describes the behaviour change. ## Blocked by - #510
Claude added the Kind/Security
Status
Ready for Agent
labels 2026-12-03 16:45:30 +00:00
Claude added a new dependency 2026-12-03 16:45:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#511