Managing clipboard access
Every qube in Qubes has its own clipboard, similar to the clipboard of a Mac, Windows or Linux computer. For example, if you used the default work qube to browse the web and wanted to copy text from one browser window to another, you would use the Ctrl+C and Ctrl+V keyboard shortcuts to copy and paste. This type of clipboard usage – copy and paste in the same qube – also works in all qubes that are part of a SecureDrop Workstation.
In addition, Qubes supports copying information between qubes. This is done by using special keyboard shortcuts, Ctrl+Shift+C and Ctrl+Shift+V, in a four-step process. By default, this is disabled for all qubes that are part of a SecureDrop Workstation, consistent with the principle of least privilege.
As an Administrator, you should be aware of the following risks related to clipboard access before changing the default configuration:
It is dangerous to copy untrusted, unsanitized content into a secure environment. What looks like plain text may contain character sequences that exploit security vulnerabilities in the target environment.
The four-step process described above can be difficult to follow, and it is easy to make an operational mistake, such as pasting a password into a message to a Source, or into a window belonging to a qube with network access.
Like any other part of the operating system, the implementation of Qubes clipboard itself may contain undiscovered security vulnerabilities that an adversary could exploit in an attempt to exfiltrate information.
With these considerations in mind, there are use cases where clipboard access may be an important part of your regular use of SecureDrop Workstation. For example:
You may want to copy passwords from a password manager to log into SecureDrop Inbox;
You may want to copy a message you received via SecureDrop into a secure messaging app like Signal, to share it with another Journalist.
To support these use cases, Qubes OS allows you to grant granular access to the sd-app clipboard (via the inter-qube clipboard) to selected qubes.
Configuring clipboard access to sd-app
The process for permitting the one-directional copying of passwords from a password manager in vault to SecureDrop Inbox is outlined in the installation docs. In general, clipboard access to SecureDrop Workstation qubes is governed by tags that can be applied in dom0 to selected qubes:
the tag
sd-send-app-clipboardcan be used to tag a qube that should be able to send its clipboard contents tosd-appvia the inter-qube clipboard;the tag
sd-receive-app-clipboardcan be used to tag a qube that should be able to receive its clipboard contents fromsd-appvia the inter-qube clipboard.
You can configure these tags for a given qube from the dom0 terminal. Changes to tags take effect immediately, and any qube can have multiple tags.
Important
Make sure you fully understand technical and operational security risks before permitting clipboard access to any qube. The “send” and “receive” tags are separate so you can set up only the clipboard direction you need to support a given use case.
We recommend adding a note about any changes to the clipboard configuration to your internal documentation for SecureDrop. If you are unsure how to configure the clipboard to support a specific use case, please do not hesitate to contact us for assistance.
The general syntax for adding a tag is as follows, substituting <qube name> with the name of an existing qube in the system you want to grant access to the clipboard:
qvm-tags <qube name> add <tag name>
Confirm that the command was successfully applied using the ls subcommand:
qvm-tags <qube name> ls
The syntax for revoking a tag is as follows:
qvm-tags <qube name> del <tag name>
As before, confirm the operation via the ls subcommand.
As an example, if you had a custom qube called work-signal that runs the Signal messenger, and you wanted to copy and paste messages from SecureDrop Inbox into Signal (and potentially other applications in that qube) but not out of Signal into SecureDrop Inbox, you would issue the following commands:
qvm-tags work-signal add sd-receive-app-clipboard
qvm-tags work-signal ls
To review current clipboard permissions, you can use qvm-ls to print out a list of qubes that can receive or send clipboard contents:
qvm-ls --tags sd-receive-app-clipboard
qvm-ls --tags sd-send-app-clipboard