Whonix KVM dnsmasq - listen port on host operating system - attack surface reduction

Could you try please creating the dummy binary?

File content:

#!/bin/bash
sleep infinity

Place in /usr/sbin/dnsmasq and make executable.

sudo chmod +x /usr/sbin/dnsmasq

It will mess up KVM itself, commands wont run like “virsh” nor VMs gonna show up when you open “Virtual Machine Manager”, it will show instead “QEMU/KVM - Connecting…” and it will be stuck like this for indefinite.

1 Like

Thank you!

We now have maxed out what we can do wrt Whonix KVM dnsmasq hardening until Debian addresses this bug.

  • No more listen port on the host operating system.
  • No DNS server inside the libvirt network.

dnsmasq-base package on the host operating system (the program only) is not a big deal since no dnsmasq daemon (dnsmasq package) is installed. It’s just 1 extraneous package.

2 Likes

@Patrick Any news on this?
It has been several months, will they fix this ? What is timeframe for such bugs to get fixed ?

No.

I doubt it. Doesn’t look like it.

Doesn’t exist.

For some reason, this seems to break IPv6 support in KVM. Whonix-Gateway is able to send router solicitation packets just fine, but libvirt never responds with a router advertisement, which breaks SLAAC and thus the gateway never gets a usable IPv6 address on the external interface. As a result, IPv6 basically works out of the box on VirtualBox, but does not work on KVM without removing this line from the external network configuration.

Will document this, we can research it later.

1 Like