-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock down kernel on buster #986
base: master
Are you sure you want to change the base?
Conversation
Errored hosts (0)Changed hosts (8)Unaffected hosts (89)Changed hostsdiff for bedbugs.ocf.berkeley.edu, jaws.ocf.berkeley.edu, pandemic.ocf.berkeley.edu, tornado.ocf.berkeley.edu*******************************************
+ Package[lockdown] =>
parameters =>
"allow_virtual": false
******************************************* diff for flood.ocf.berkeley.edu, quarantine.ocf.berkeley.edu, spectre.ocf.berkeley.edu, trojan.ocf.berkeley.edu*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[lockdown] =>
parameters =>
"allow_virtual": false
******************************************* Unaffected hosts
|
The changes look good to me but I would like to canary this on a VM and physical host first before merging to avoid potential issues. Thanks! |
Why would we want to disable BPF? |
Disable some kernel features: module loading after boot, kexec, Berkeley Packet Filter (BPF). Also install cloud kernel image on VMs which removes some hardware support. Benefits: slightly faster boot and reduced attack surface.
Errored hosts (0)Changed hosts (36)Unaffected hosts (62)Changed hostsdiff for acid.ocf.berkeley.edu, arsenic.ocf.berkeley.edu, asteroid.ocf.berkeley.edu, avalanche.ocf.berkeley.edu, bigbang.ocf.berkeley.edu, blackout.ocf.berkeley.edu, blight.ocf.berkeley.edu, blizzard.ocf.berkeley.edu, cyanide.ocf.berkeley.edu, destruction.ocf.berkeley.edu, drought.ocf.berkeley.edu, eruption.ocf.berkeley.edu, famine.ocf.berkeley.edu, firewhirl.ocf.berkeley.edu, hailstorm.ocf.berkeley.edu, headcrash.ocf.berkeley.edu, heatwave.ocf.berkeley.edu, invasion.ocf.berkeley.edu, madcow.ocf.berkeley.edu, meteorstorm.ocf.berkeley.edu, plague.ocf.berkeley.edu, sinkhole.ocf.berkeley.edu, surge.ocf.berkeley.edu, typhoon.ocf.berkeley.edu, venom.ocf.berkeley.edu, volcano.ocf.berkeley.edu, wildfire.ocf.berkeley.edu*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for flood.ocf.berkeley.edu, maelstrom.ocf.berkeley.edu, quarantine.ocf.berkeley.edu, spectre.ocf.berkeley.edu, trojan.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
******************************************* diff for tornado.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for bedbugs.ocf.berkeley.edu, jaws.ocf.berkeley.edu, pandemic.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
******************************************* Unaffected hosts
|
Most definitely. I also replaced the lockdown package with hardening-runtime. However if the performance impact of the kernel command line options is too great we'll need to revert it.
To clarify, this doesn't disable BPF entirely, it disables unprivileged bpf() that has been a source of privilege escalation vulnerabilities, e.g., CVE-2020-8835, CVE-2017-16995, CVE-2016-4557. netfilter and seccomp-bpf predate it and shouldn't be affected. |
Nvm outdated question it seems |
Errored hosts (1)Changed hosts (36)Unaffected hosts (61)Errored hostserror for anthrax.ocf.berkeley.edu
Changed hostsdiff for flood.ocf.berkeley.edu, maelstrom.ocf.berkeley.edu, quarantine.ocf.berkeley.edu, spectre.ocf.berkeley.edu, trojan.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
******************************************* diff for bedbugs.ocf.berkeley.edu, jaws.ocf.berkeley.edu, pandemic.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
******************************************* diff for acid.ocf.berkeley.edu, arsenic.ocf.berkeley.edu, asteroid.ocf.berkeley.edu, avalanche.ocf.berkeley.edu, bigbang.ocf.berkeley.edu, blackout.ocf.berkeley.edu, blight.ocf.berkeley.edu, blizzard.ocf.berkeley.edu, cyanide.ocf.berkeley.edu, destruction.ocf.berkeley.edu, drought.ocf.berkeley.edu, eruption.ocf.berkeley.edu, famine.ocf.berkeley.edu, firewhirl.ocf.berkeley.edu, hailstorm.ocf.berkeley.edu, headcrash.ocf.berkeley.edu, heatwave.ocf.berkeley.edu, invasion.ocf.berkeley.edu, madcow.ocf.berkeley.edu, meteorstorm.ocf.berkeley.edu, plague.ocf.berkeley.edu, sinkhole.ocf.berkeley.edu, surge.ocf.berkeley.edu, typhoon.ocf.berkeley.edu, venom.ocf.berkeley.edu, volcano.ocf.berkeley.edu, wildfire.ocf.berkeley.edu*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for tornado.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* Unaffected hosts
|
Errored hosts (0)Changed hosts (36)Unaffected hosts (62)Changed hostsdiff for flood.ocf.berkeley.edu, maelstrom.ocf.berkeley.edu, quarantine.ocf.berkeley.edu, spectre.ocf.berkeley.edu, trojan.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
******************************************* diff for tornado.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for bedbugs.ocf.berkeley.edu, jaws.ocf.berkeley.edu, pandemic.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
******************************************* diff for acid.ocf.berkeley.edu, arsenic.ocf.berkeley.edu, asteroid.ocf.berkeley.edu, avalanche.ocf.berkeley.edu, bigbang.ocf.berkeley.edu, blackout.ocf.berkeley.edu, blight.ocf.berkeley.edu, blizzard.ocf.berkeley.edu, cyanide.ocf.berkeley.edu, destruction.ocf.berkeley.edu, drought.ocf.berkeley.edu, eruption.ocf.berkeley.edu, famine.ocf.berkeley.edu, firewhirl.ocf.berkeley.edu, hailstorm.ocf.berkeley.edu, headcrash.ocf.berkeley.edu, heatwave.ocf.berkeley.edu, invasion.ocf.berkeley.edu, madcow.ocf.berkeley.edu, meteorstorm.ocf.berkeley.edu, plague.ocf.berkeley.edu, sinkhole.ocf.berkeley.edu, surge.ocf.berkeley.edu, typhoon.ocf.berkeley.edu, venom.ocf.berkeley.edu, volcano.ocf.berkeley.edu, wildfire.ocf.berkeley.edu*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* Unaffected hosts
|
Can we take another look at this? Would be good to test on a few dev- VMs. |
Errored hosts (6)Changed hosts (60)Unaffected hosts (8)Errored hostserror for chaos.ocf.berkeley.edu
error for cyclone.ocf.berkeley.edu
error for death.ocf.berkeley.edu
error for democracy.ocf.berkeley.edu
error for destruction.ocf.berkeley.edu
error for segfault.ocf.berkeley.edu
Changed hostsdiff for acid.ocf.berkeley.edu, arsenic.ocf.berkeley.edu, asteroid.ocf.berkeley.edu, avalanche.ocf.berkeley.edu, bigbang.ocf.berkeley.edu, blackout.ocf.berkeley.edu, blight.ocf.berkeley.edu, blizzard.ocf.berkeley.edu, cyanide.ocf.berkeley.edu, drought.ocf.berkeley.edu, eruption.ocf.berkeley.edu, famine.ocf.berkeley.edu, firewhirl.ocf.berkeley.edu, hailstorm.ocf.berkeley.edu, headcrash.ocf.berkeley.edu, heatwave.ocf.berkeley.edu, hurricane.ocf.berkeley.edu, invasion.ocf.berkeley.edu, madcow.ocf.berkeley.edu, meteorstorm.ocf.berkeley.edu, outbreak.ocf.berkeley.edu, plague.ocf.berkeley.edu, sinkhole.ocf.berkeley.edu, surge.ocf.berkeley.edu, tornado.ocf.berkeley.edu, typhoon.ocf.berkeley.edu, venom.ocf.berkeley.edu, volcano.ocf.berkeley.edu, wildfire.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for anthrax.ocf.berkeley.edu, autocrat.ocf.berkeley.edu, biohazard.ocf.berkeley.edu, coup.ocf.berkeley.edu, deadlock.ocf.berkeley.edu, dementors.ocf.berkeley.edu, fire.ocf.berkeley.edu, firestorm.ocf.berkeley.edu, flood.ocf.berkeley.edu, fraud.ocf.berkeley.edu, gridlock.ocf.berkeley.edu, hellfire.ocf.berkeley.edu, lethe.ocf.berkeley.edu, lightning.ocf.berkeley.edu, maelstrom.ocf.berkeley.edu, quarantine.ocf.berkeley.edu, radiation-mgmt.ocf.berkeley.edu, thunder.ocf.berkeley.edu, whiteout.ocf.berkeley.edu, windshear.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
******************************************* diff for bedbugs.ocf.berkeley.edu, corruption.ocf.berkeley.edu, dataloss.ocf.berkeley.edu, fallingrocks.ocf.berkeley.edu, hal.ocf.berkeley.edu, riptide.ocf.berkeley.edu, scurvy.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
******************************************* diff for reaper.ocf.berkeley.edu, supernova.ocf.berkeley.edu, tsunami.ocf.berkeley.edu*******************************************
+ Package[hardening-runtime] =>
parameters =>
"allow_virtual": false
*******************************************
+ Package[linux-image-amd64] =>
parameters =>
"allow_virtual": false,
"ensure": "purged"
*******************************************
+ Package[linux-image-cloud-amd64] =>
parameters =>
"allow_virtual": false
*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* diff for vampires.ocf.berkeley.edu*******************************************
Sysctl[kernel.unprivileged_userns_clone] =>
parameters =>
ensure =>
+ absent
value =>
- 1
******************************************* Unaffected hosts
|
Harden kernel using kernel command line options and sysctl settings
recommended by the Kernel Self Protection Project.
Also install cloud kernel image on VMs which removes some hardware
support. Benefits: slightly faster boot and reduced attack surface.