Actions

whonixcheck Hardening

From Whonix

Rationale[edit]

Although whonixcheck already has apparmor and systemd hardening, some marginal security and anonymity benefits are gained by reducing: the number of network connections, the amount of code running, and unnecessary functionality. This is not the default configuration, since that would come at the cost of decreased usability for the entire Whonix ™ population.

Hardening Steps[edit]

Prevent Autostart[edit]

To prevent whonixcheck from automatically starting, run.

sudo systemctl mask whonixcheck

Prevent Downloading Whonix ™ News and Whonix ™ User Census Counting[edit]

Info Complete these steps on both Whonix-Gateway ™ and Whonix-Workstation ™.

This will prevent downloading of Whonix ™ News and the anonymous, daily Whonix ™ census. [1] [2] [3]

Open /etc/whonix.d/50_user.conf in an editor with root rights.

This box uses lxsudo for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please press on Expand on the right side.

The easiest would be to install these example tools lxsudo mousepad so you can keep copying and pasting these instructions.

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the --no-install-recommends lxsudo mousepad package.

sudo apt-get install --no-install-recommends lxsudo mousepad

The procedure is complete.

Alternatively you could also use other tools which may already be installed by default.

gksudo gedit /etc/whonix.d/50_user.conf

sudoedit /etc/whonix.d/50_user.conf

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsudo mousepad /etc/whonix.d/50_user.conf

If you are using a terminal-only Whonix, run.

sudo nano /etc/whonix.d/50_user.conf

Add the following content.

whonixcheck_skip_functions+=" download_whonix_news "

Prevent Polluting TransPort[edit]

Info Whonix-Workstation ™ only.

Deactivate the TransPort Test for better Stream Isolation.

Open /etc/whonix.d/50_user.conf in an editor with root rights.

This box uses lxsudo for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please press on Expand on the right side.

The easiest would be to install these example tools lxsudo mousepad so you can keep copying and pasting these instructions.

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the --no-install-recommends lxsudo mousepad package.

sudo apt-get install --no-install-recommends lxsudo mousepad

The procedure is complete.

Alternatively you could also use other tools which may already be installed by default.

gksudo gedit /etc/whonix.d/50_user.conf

sudoedit /etc/whonix.d/50_user.conf

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsudo mousepad /etc/whonix.d/50_user.conf

If you are using a terminal-only Whonix, run.

sudo nano /etc/whonix.d/50_user.conf

Add the following content.

WHONIXCHECK_DISABLE_TRANS_PORT_TEST="1"

Save.

Prevent Running apt-get[edit]

Info Complete these steps on both Whonix-Gateway ™ and Whonix-Workstation ™.

This prevents the running of apt-get by whonixcheck.

Open /etc/whonix.d/50_user.conf in an editor with root rights.

This box uses lxsudo for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please press on Expand on the right side.

The easiest would be to install these example tools lxsudo mousepad so you can keep copying and pasting these instructions.

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the --no-install-recommends lxsudo mousepad package.

sudo apt-get install --no-install-recommends lxsudo mousepad

The procedure is complete.

Alternatively you could also use other tools which may already be installed by default.

gksudo gedit /etc/whonix.d/50_user.conf

sudoedit /etc/whonix.d/50_user.conf

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsudo mousepad /etc/whonix.d/50_user.conf

If you are using a terminal-only Whonix, run.

sudo nano /etc/whonix.d/50_user.conf

Add the following content.

whonixcheck_skip_functions+=" check_operating_system "

Prevent torproject.org Connections[edit]

Info Complete these steps on both Whonix-Gateway ™ and Whonix-Workstation ™.

Deactivate SocksPort Test, TransPort Test and Tor Browser Update check.

Open /etc/whonix.d/50_user.conf in an editor with root rights.

This box uses lxsudo for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please press on Expand on the right side.

The easiest would be to install these example tools lxsudo mousepad so you can keep copying and pasting these instructions.

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the --no-install-recommends lxsudo mousepad package.

sudo apt-get install --no-install-recommends lxsudo mousepad

The procedure is complete.

Alternatively you could also use other tools which may already be installed by default.

gksudo gedit /etc/whonix.d/50_user.conf

sudoedit /etc/whonix.d/50_user.conf

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsudo mousepad /etc/whonix.d/50_user.conf

If you are using a terminal-only Whonix, run.

sudo nano /etc/whonix.d/50_user.conf

Add the following content.

WHONIXCHECK_DISABLE_SOCKS_PORT_TEST="1"
WHONIXCHECK_DISABLE_TRANS_PORT_TEST="1"
whonixcheck_skip_functions+=" check_torbrowser "

Save.

Footnotes[edit]

  1. https://phabricator.whonix.org/T689
  2. There are strict requirements for the Whonix ™ user count:

    - no private info transferred at all

    - adds no additional risk other than that of apt-get communicating with Whonix ™ servers which users are doing anyway to their systems updated
    - only on Whonix-Gateway ™
    - no unique identifiers of any kind
    - all transmissions go through Tor
    - all transmissions are using Whonix ™ Tor onion v3 service
    - so we will never collect any IP addresses
    - submissions happen at randomized times
    - only one submission within 24 hours
    - can be easily disabled

  3. https://forums.whonix.org/t/whonix-census-counter-the-number-of-whonix-users/7620

No comments for now due to spam. Use Whonix forums instead.


Random News:

Join us in testing our new AppArmor profiles for improved security! (forum discussion)


https | (forcing) onion

Follow: Twitter | Facebook | gab.ai | Stay Tuned | Whonix News

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian. Debian is a registered trademark owned by Software in the Public Interest, Inc.

Whonix ™ is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.