-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs for post-install configuration, clipboard access, logs
Explains in detail how to set up a password manager, and how to configure tags for clipboard usage and logs. Depends on changes introduced in freedomofpress/securedrop-workstation#533
- Loading branch information
Showing
5 changed files
with
182 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Managing Clipboard Access | ||
========================= | ||
|
||
.. include:: ../includes/top-warning.rst | ||
|
||
Every VM in Qubes has its own clipboard, similar to the clipboard of a Mac, Windows or Linux computer. For example, if you wanted to create a boilerplate "Thank you" message for replies to sources, you could create a textfile in the ``sd-app`` VM and copy its contents to the SecureDrop Client using ``Ctrl+C`` (copy) and ``Ctrl+V`` (paste) keyboard shortcuts. | ||
|
||
Qubes also supports copying information *between* VMs. This is done by using `special keyboard shortcuts <https://www.qubes-os.org/doc/copy-paste/>`_, ``Ctrl+Shift+C`` and ``Ctrl+Shift+V``, in a four-step process. By default, this is disabled for all VMs that are part of SecureDrop Workstation, consistent with the `principle of least privilege <https://en.wikipedia.org/wiki/Principle_of_least_privilege>`__. | ||
|
||
As an administrator, you should be aware of the following risks related to clipboard access before changing the default configuration: | ||
|
||
1. 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. | ||
2. 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 VM with network access. | ||
3. 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 the SecureDrop Client; | ||
- 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, SecureDrop Workstation allows you to grant granular access to the ``sd-app`` clipboard (via the cross-VM clipboard) to selected VMs. | ||
|
||
Configuring clipboard access to ``sd-app`` | ||
------------------------------------------ | ||
|
||
The process for setting up a password manager and permitting the one-directional copying of passwords to the SecureDrop Client is :ref:`outlined in the installation docs <Password Management Section>`. In general, clipboard access to SecureDrop Workstation VMs is governed by *tags* that can be applied in ``dom0`` to selected VMs: | ||
|
||
- the tag ``sd-send-app-clipboard`` can be used to tag a VM that should be able to send its clipboard contents *to* ``sd-app`` via the cross-VM clipboard; | ||
- the tag ``sd-receive-app-clipboard`` can be used to tag a VM that should be able to receive is clipboard contents *from* ``sd-app`` via the cross-VM clipboard. | ||
|
||
You can configure these tags for a given VM from the ``dom0`` terminal. Changes to tags take effect immediately, and any VM can have multiple tags. | ||
|
||
.. important:: | ||
|
||
Make sure you fully understand technical and operational security risks before permitting clipboard access to any VM. 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 ``<VM name>`` with the name of an existing VM in the system you want to grant access to the clipboard: | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> add <tag name> | ||
We recommend confirming that the command was successfully applied using the ``ls`` subcommand: | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> ls | ||
The syntax for revoking a tag is as follows: | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> del <tag name> | ||
As before, we recommend confirming the operation via the ``ls`` subcommand. | ||
|
||
As an example, if you had a custom VM called ``work-signal`` that runs the Signal messenger, and you wanted to copy and paste messages from the SecureDrop Client *into* Signal (and potentially other applications in that VM) but not *out* of Signal into the SecureDrop Client, you would issue the following commands: | ||
|
||
.. code-block:: sh | ||
qvm-tags work-signal add sd-receive-clipboard | ||
qvm-tags work-signal ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Reviewing and exporting logs | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
SecureDrop Workstation aggregates system logs from all its VMs in the ``sd-log`` VM, in the folder ``~/QubesIncomingLogs``, with one subfolder for each VM. Please note that while the logs do not include original filenames or message contents, they do contain sensitive information, e.g.: | ||
|
||
- timing and usage information related to SecureDrop access | ||
- the two-word designation for a given source | ||
- metadata about submissions and replies | ||
- error messages that disclose further details | ||
|
||
For this reason, the ``sd-log`` VM is networkless, and you cannot copy files from ``sd-log`` to other VMs by default. | ||
|
||
If you want to selectively enable copying logs to a single VM, you can use tags, similar to the method used for :doc:`managing clipboard access <managing_clipboard>`. You can add and remove the permission just before each copying operation; the change will take effect immediately. | ||
|
||
.. important:: | ||
|
||
Before copying logs to a networked VM, we recommend carefully inspecting them for sensitive information, and potentially redacting them | ||
|
||
To enable copying logs to a target VM, you can use a command like the following in ``dom0``, substituting ``<VM name>`` with the name of the target VM (e.g., ``work``): | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> add sd-receive-logs | ||
We recommend verifying that the tag was successfully applied using the ``ls`` subcommand: | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> ls | ||
To remove the permission, use this command in ``dom0``: | ||
|
||
.. code-block:: sh | ||
qvm-tags <VM name> del sd-receive-logs | ||
With the permission in effect, you can use the command ``qvm-copy`` in a terminal in ``sd-log`` to copy individual files to the target VM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters