THE FOLLOWING IS A DRAFT FOR THE DESIGN OF ‘Can’t annonymise this traffic’s Input and Output’ Live Operating System
CattIO OS
An amnesic operating system for the user, by the user
Mostly intended for more knowledgable linux users who want both anonymity and a cool system
Notice: as with the PELD(described as Tails OS), the key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119
Note: We will do custom/from source for most everything since the author has that kind of time, we will however, not describe this as better in any objective way than the PELD however, as that Live OS is fairly secure regardless
1 Introduction
The ‘Can’t annonymise this traffic’s Input and Output’(CattIO) Live operating system
In this document the following will be described:
- The possible attackers as known by Flarepool
- The methods by which this operating system aims to mitigate any security flaws
- The methods by which this operating system may lean on others, such as for musl patches
- The general design of any programs needed to be created as a supplement to this project
This document is subject to change as this is the first draft, along with this any users looking to see how things are implemented, please refer instead to USAGE.md or SECURITY.md in which those will be described better and with more thought put as to the user’s understanding
2 Attack surface and Mitigations
2.1 Networking and usage of The Onion Router
As used in other live distributions for security, the CattIO live operating system will make use of The Onion Router(tor) as a method by which to make user traffic more opaque to outside viewers. It should be known that tor is not perfect, and as such its mitigations of internet security will be backed by the usage of nftables, a separation between the end-user and any high level usage of tor control, along with the usage of Security Enforced Linux(SElinux see 2.2 for details).
While these will not be perfect by any means, the usage of tor will provide:
- less visibility as to where traffic is being transmitted to and from
- increased fingerprinting resitance(Tor browser see 2.4 for details)
- Other various features as described in the draft for the design of tor browser The usage of nftables will provide:
- Increased security regarding possibly malicious or compromised programs interaction with networks And the usage of SElinux will provide:
- Additional security between programs and the linux kernel should any programs be compromised
2.2 Security Enforced linux
As provided by Red Hat enterprises, we will use this Linux Security Module(LSM) to provide
extra mitigations between the kernel and any malicious or otherwise compromised programs
Hopefully this module will be largely unnecessary but the implementations of SElinux ‘profiles’
will be such that the ‘profile’ will:
- ensure no capabilities are available to the program which are not necessary to its function
- restrict capabilities as simply as possible, such that extra surface(or removed features) can be avoided
- be tested by at least (one) maintainer and provided on the testing channel for at least one week(once testing channels are usable)
2.3 Linux hardening
Linux is a fairly insecure kernel as its large binaries can often lead to things such as:
- Escalation vulnerabilities
- Malicious code executions
- Malicious Inter-program communications, such as the reading of another programs memory
To fix these issues, CattIO will be using a hardened kernel built using Gentoo linux, with modules needed to support various systems being kept as minimal as possible. Along with this every hardening feature that can be verified as stable on most modern(mass manufactured 2015+) devices will be used to enforce proper security on all systems at a kernel level
References used for this will include madaidan’s hardening guide, KSPP recommended settings, and some more as found later
2.4 The Onion Router Browser
Tor’s browser is a fairly secure and private one, which makes it particularly good for the purpose of a live linux distribution, as such it will be the main browser supported and recommended by CattIO OS.
The reasons Tor’s browser is so secure is mainly due to their custom implementations for things such as:
- Enhanced letterboxing support
- Cross site scripting(XSS) mitigations via extensions such as NoScript
- WebGL restrictions, which help in restisting fingerprinting
- The integration of The Onion Router for dns lookup, which makes ISP filtering harder
- A user friendly interface for all of these features, as to make the user easily capable of their use
2.5 User data
User data is very vulnerable to the host device, and as such to mitigate possible viewing(or editing) of user data, CattIO will zero all memory that is unused(even during session if possible) along with zeroing cache and ram as well as possible, for current sessions, wayland will be preferred and support for X11 (both applications and environments) will either be minimal or not exist as X11 is very hard to lock down and provides little room for compositors to secure any windows from simply providing injected input to another, which is a unacceptable attack surface for this project
3 Possible attackers
3.1 ISP and other local network devices
As the user needs networking for a large majority of work in the modern age, many attackers will look for users who are in suboptimal environments, such as a unencrypted session with a http server, or a clearnet connection to a site that itself is a alert to certain activity. as such the usage of The Onion Router should not be taken as an absolute protection for the purposes of protecting a user’s activity from bad actors, nor should a user take any protections provided as absolute, as CattIO can attempt to hide things such as typing speed, mouse movement, and even the MAC address and other various items, but CattIO cannot hide what a user types, what sites a user logs into, or where a user clicks, as such these things will have warnings in USAGE.md for any user needing to understand what no operating system can provide.
3.2 Surveilers or those with physical access to the device during runtime
In any case which involves access during the execution of this live distribution, safety cannot be guarenteed, which makes this a very hard area to cover, CattIO will attempt to mitigate any security flaws by attempting to detect hardware from bad actors during boot, this cannot however, be a absolute protection and as such through the rest of this it will be assumed that the user can either ensure the security of the device, or use the device with the knowledge that it will see what they do and act accordingly
3.3 Surveilers or those with physical access to the device outside of runtime
In any case where the user can verify the device to only be capable of malicious activity outside of runtime, it can be then assumed within reason that CattIO will handle these cases by zeroing all memory(both ram and cache) during any possible stages in runtime along with during shutdown, these mitigations should be enough for when post access security is in question
3.4 Install media with malicious firmware or hardware
Sadly no attempt can be made to properly test for this as any malicious firmware is unlikely to advertise itself, especially on a USB drive, it should instead be assumed the user will verify the source they receive their devices from, along with this the mitigations for other untrusted devices should protect users from if their install media is spying on them with too obvious of methods.
3.5 State or larger adversaries
In some cases, a user will be targetted by organizations with large enough resources to actively circumvent most of the systems CattIO will implement, in such a case, while CattIO is secure, it will have to be second to the user ensuring their own security, in such cases as journalists who need to avoid a state entity, users should read the sources provided in USAGE.md and act accordingly to ensure that with the assistance of this live operating system, they may securely do as they need.
4 User programs as recommended by CattIO
4.1 Messaging programs
Pidgin is a fairly extensible messaging program, and as such will be recommended as the main method for instant messaging in CattIO, it is also used by other amnesic operating systems, though this program is not without flaws, to see them, please see the NIST site for CVEs
Claws mail is recommended for emailing as it is simple, stable, and extensible incase a user desires HTML viewing, though it is not recommened to use HTML in any email client as described by the ACM
Any other messaging program may be recommended in USAGE.md for specific purposes, such as halloy for use in exclusively irc, but for most users the two listed here will suffice and will be provided by default
4.2 Web browsing
Tor browser will be provided and should be used if possible as it is a well known, secure, and otherwise very private browser in which fingerprinting is made far harder for websites.
Along with Tor, a minimal build of firefox will be provided for the case that a user needs to do unsafe browsing, such as to login to a network, though unsafe browsing is not recommended.
4.3 Image and video viewing
For images, Ristretto will be provided as it is a minimal and reasonably secure image viewer.
For videos, Celluloid will be provided as it is fairly easy to lock down in gentoo, the base OS for this project
If the user wishes to use other programs, they should understand that in no case should a image/video viewing program
- allow the execution of code, even by accident
- use the network for any interactions, this is largely unnecessary and its safety cannot be guarenteed
- allow too much extensibility, such as support for CSS or other markup languages
And for video viewing programs, as codecs and other various features may be proprietary, ensure the developer(s) has made sure to protect any such features and does not have any breaking issues because of such proprietary features, see the NIST CVE search site for possible vulnerabilities relating to such features/programs.
4.4 Editing documents
For the purposes of editing documents, libreoffice suite will be provided, these programs are fairly secure and reasonably easy to lock down and keep from causing harm, the user should not use other editing suites for documents as they may be insecure or less proven
4.5 File sharing
Users may need to share videos for various purposes, in such case onionshare is provided as a secure and anonymous file sharing program, if Torrents are needed, one of two programs can be used, with various considerations:
- Bittorrent, while the user can use their tor circuit to hide their ip, downloads are public and seeding is also public, as such torrenting should be avoided
- Tribly, this is a immature torrent client making use of onion services and tor circuits to attempt to make torrenting anonymous, but it is not mature, and only semi secure at the time of writing this document
4.6 Misc applications
4.6a Audio editing
Audacity will be provided for editing and recording audio, it is extensible and secure as it fills a fairly simple purpose, users should avoid accidentally using any insecure or malicious plugins however as they may bypass certain systems
4.6b Video editing
No program for video editing will be provided as default, the user should ensure the security of any such software themselves, and understand that these software are often complex enough to have a fairly large attack surface that may harm their privacy. Similarly no video recording software will be provided by default as they are similarly complex and hard to work with, with the exception of camera recording software, though they will also be in optional software
4.6c Metadata scrubbing
For the purposes of removing unnecessary metadata, ExifTool will be provided, along with a proprietary tool (to be determined) which will automatically do so when enabled, as to allow the user to have an extra barrier in which they can prevent metadata leaking.
5 What CattIO, and other similar operating systems cannot provide
CattIO will be a secure operating system, but only for the user who can understand what is described to them, and who can act accordingly to ensure their own security where the operating system cannot. As with any linux distribution, some things such as metadata, torrent seeding/downloading, website logins, time based attacks, along with other user based surfaces cannot be secured unless the user makes certain to not allow such things to be leaked. As such the user should read USAGE.md along with the documents displayed during first boot in order to understand what security is provided versus what security the user must afford themselves.