<<

Using a to manage a cloud

Sysadmin Miniconf at .conf.au Sysadmin Miniconf @ Linux.conf.au 2020 1/24 Slides: https://github.com/orionvm/LCA2020 $ whoami

● Alex Sharp, Andrew Reimers, Anuj Dhavalikar ● Using Qubes for Dev/sysadmin work for ~ 3 years ● Working at OrionVM – ● White-label cloud (IaaS)

Sysadmin Miniconf @ Linux.conf.au 2020 2/24 Agenda

● Why protect sysadmins?

● What is Qubes? ● Isolations provided by Qubes: ● Graphics ● Networks ● Ssh/GPG keys ● USB/PCIe ● Recommended hardware ● Q&A

Sysadmin Miniconf @ Linux.conf.au 2020 3/24 Threat model

● Zero day exploit – 100K USD for RCE ● Cost per exploited user ● Profit per attack ● Political motivation ● Ransomware ● Password stealing

Sysadmin Miniconf @ Linux.conf.au 2020 4/24 What is Qubes?

● “A reasonably secure ” focusing on security through isolation - “You can’t hit what you can’t see” ● Consists of multiple Qubes and an isolated management VM ● A Qube is a VM running an OS (Linux/FreeBSD/etc) ● Has it’s own xserver for graphics ● “Desktop Cloud” ● Tied together via vchan, virtual networking ● Optional USB devices (proxy), PCIe devices (IOMMU) ● Managed by an internal agent (qrexec) via vchan.

Sysadmin Miniconf @ Linux.conf.au 2020 5/24 Is it usable?

● Generally yes.

Sysadmin Miniconf @ Linux.conf.au 2020 6/24 Firefox and a password manager

Sysadmin Miniconf @ Linux.conf.au 2020 7/24 Firefox and a password manager disp3408 vault

dom0 (AdminVM)

Sysadmin Miniconf @ Linux.conf.au 2020 8/24 Firefox and a password manager

Sysadmin Miniconf @ Linux.conf.au 2020 9/24 l

Network isolation l a T w A e r N i cust01-work cust01-vpn F

cust02-work cust02-vpn sys-firewall sys-net

WIFI vault disp1337

Sysadmin Miniconf @ Linux.conf.au 2020 10/24 Vault isolation

Sysadmin Miniconf @ Linux.conf.au 2020 11/24 Vault isolation

4. Work Ssh key agent protocol Vault

DOM0 2. 1. 3. RPC via VChan qubes.SshAgent

Sysadmin Miniconf @ Linux.conf.au 2020 12/24 USB isolation

● USB is a lovecraftian nightmare ● A ‘USB key’ can be a ● Keyboard ● Mouse ● Virtual device ● Storage device ● Pizza oven

Sysadmin Miniconf @ Linux.conf.au 2020 13/24 USB isolation

USB Keyboard

USB

USB HBA PCIe IOMMU

sys-usb VChan DOM0 VChan Qube

Sysadmin Miniconf @ Linux.conf.au 2020 14/24 Hardware isolation

Sysadmin Miniconf @ Linux.conf.au 2020 15/24 Qubes video call

Sysadmin Miniconf @ Linux.conf.au 2020 16/24 Qubes video call

Sysadmin Miniconf @ Linux.conf.au 2020 17/24 Disposable qube

Sysadmin Miniconf @ Linux.conf.au 2020 18/24 Convert to trusted PDF

● Built on top of disposable qubes ● Did you know that printers update via printable documents? Does your printer have an connection?

Sysadmin Miniconf @ Linux.conf.au 2020 19/24 Qube Manager

Sysadmin Miniconf @ Linux.conf.au 2020 20/24 Recommended Hardware

● Intel integrated graphics best ● AMD/Nvidia with good OSS drivers will do ● Intel CPU with ME cleaner best ● Recent AMD cpus - Check kernel support. ● 8gb okay, 16gb good, 32gb overkill for most use cases. ● Coreboot/heads firmware not required but improves security ● Purism Librem 13/15 best, Insurgo PrivacyBeast X230/NitroPad good ● Intel NUC/Dell XPS/Lenovo Thinkpad etc. ok. ● https://www.qubes-os.org/hcl/

Sysadmin Miniconf @ Linux.conf.au 2020 21/24 Help wanted

● Windows drivers! ● Python/Bash help needed! ● Open source project! ● https://github.com/QubesOS/qubes-issues ● https://www.qubes-os.org/donate/

Sysadmin Miniconf @ Linux.conf.au 2020 22/24 More info

● BOF on Thursday at Lunch, room 7 ● “The future of the desktop is on powered containers” talk tomorrow ● https://www.qubes-os.org/ ● https://www.qubes-os.org/support/ ● https://wiki.qubes.rocks

Sysadmin Miniconf @ Linux.conf.au 2020 23/24 Qubes logo is licensed under CC BY-SA 4.0 https://www.qubes-os.org/doc/style-guide/

Both “OrionVM” and the OrionVM logo are trademarks, all rights reserved Thanks!

All included Screenshots and diagrams are CC BY SA 4.0 Any questions?

Slide deck as a whole is CC BY ND 4.0 Sysadmin Miniconf at Linux.conf.au Sysadmin Miniconf @ Linux.conf.au 2020 24/24 Slides: https://github.com/orionvm/LCA2020