-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joshua Thayer
committed
Jul 18, 2017
0 parents
commit 9b4c37e
Showing
23 changed files
with
771 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | ||
<mime-type type="application/x-sd-xfer"> | ||
<comment>Archive for transfering files from sd-journalist to disp vm for decryption</comment> | ||
<glob pattern="*.sd-xfer"/> | ||
</mime-type> | ||
</mime-info> |
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,63 @@ | ||
#!/usr/bin/env python | ||
|
||
import sys | ||
import tarfile | ||
import tempfile | ||
import os | ||
import fnmatch | ||
import zipfile | ||
import glob | ||
import subprocess | ||
import shutil | ||
|
||
input = sys.argv[1] | ||
|
||
# a nice place to work... | ||
tmpdir = tempfile.mkdtemp() | ||
|
||
# we get given a tarball of everything the user has downloaded. | ||
# first step, extract that archive | ||
with tarfile.open(input) as tar: | ||
# potentially unsafe, can create arbitrary files on the filesystem | ||
# given a malicious tarball | ||
tar.extractall(tmpdir) | ||
|
||
# everything in the archive should be zips, as created by SD | ||
# let's unzip those here | ||
zips = glob.glob(tmpdir + "/*zip") | ||
for z in zips: | ||
with zipfile.ZipFile(z) as zf: | ||
zf.extractall(tmpdir + "/extracted/") | ||
os.unlink(z) | ||
|
||
# great, we should be left with a directory tree filled with files | ||
# encrypted to our public key. let's find those and decrypt them | ||
for root, dirnames, filenames in os.walk(tmpdir): | ||
for fn in fnmatch.filter(filenames, '*.gpg'): | ||
[fn_no_ext, _] = os.path.splitext(fn) | ||
subprocess.call(["gpg", "--out", os.path.join(root, fn_no_ext), "--decrypt" , os.path.join(root, fn)]) | ||
|
||
os.unlink(os.path.join(root, fn)) | ||
|
||
# almost done. docs are gzipped. let's ungzip them. | ||
for root, dirnames, filenames in os.walk(tmpdir): | ||
for fn in fnmatch.filter(filenames, '*.gz'): | ||
# maybe sorta lazy, could do this using python gzip module. | ||
subprocess.call(["gunzip", os.path.join(root, fn)]) | ||
|
||
# ok. we're going to send all the decrypted stuff to the svs vm. | ||
# let's tar it all up again, so we can `qvm-open-in-vm` it. | ||
fh = tempfile.NamedTemporaryFile(suffix=".sd-xfer-extracted", delete=False) | ||
print "extracted fh name " + fh.name | ||
out_tar = tarfile.open(mode='w', fileobj=fh) | ||
out_tar.add(os.path.join(tmpdir, "extracted"), arcname="extracted") | ||
shutil.rmtree(tmpdir) | ||
|
||
# finally! ship this off to sd-svs | ||
subprocess.call(["qvm-open-in-vm", "sd-svs", fh.name]) | ||
os.unlink(fh.name) | ||
|
||
# work around a qubes open-in-vm bug | ||
# (https://groups.google.com/forum/#!topic/qubes-users/dxFa4ZXmPYc) | ||
# shouldn't be an issue for disp vm's | ||
os.unlink(input) |
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,5 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
MimeType=application/x-sd-xfer | ||
Name=Decrypt SD Submission | ||
Exec=/home/user/bin/decrypt-sd-submission |
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,74 @@ | ||
"stage" SD is running on crabby | ||
|
||
Source url is | ||
|
||
http://zmdxuykqj2ouq4yi.onion/ | ||
|
||
Journalist URL is | ||
|
||
http://avgfxawdn6c3coe3.onion/ | ||
|
||
joshua / allcreationbows , 2FA is on google app on iphone | ||
|
||
Journalist hidden service auth is | ||
|
||
HidServAuth avgfxawdn6c3coe3.onion Il8Xas7uf6rjtc0LxYwhrx # client: journalist | ||
|
||
That line just needs to go in /etc/tor/torrc on the sd-whonix VM | ||
|
||
|
||
Here is a source code: | ||
|
||
flock unfocused dust rebound refinance moonwalk partly | ||
|
||
in the journalist UI, that user is | ||
|
||
distinguishable rumen | ||
|
||
SD encrypts everything using GPG. The keys are in XXX (see slack!). The secure key needs to added to the disp VM, and `gpg --import secure.sec` needs to be run there. For development, do the same to the `work` vm. | ||
|
||
----- | ||
|
||
What happens when file downloaded in journalist workstation? | ||
|
||
User should trigger script which: | ||
|
||
- tar's up downloaded files, names it blah.sd-xfer | ||
- runs this: | ||
|
||
qvm-open-in-dvm blah.sd-xfer | ||
|
||
or for development: | ||
|
||
qvm-open-in-vm work blah.sd-xfer | ||
|
||
That is the move-to-svs script in sd_journalist:~/projects/sd/ | ||
|
||
The disp vm template (and for development the work vm) must be configured to open files of that type with the next script. First, the xml file in this directory should be installed at | ||
|
||
/usr/share/mime/packages/application-x-sd-xfer.xml | ||
|
||
and the .desktop here should be placed in | ||
|
||
/usr/share/applications/ | ||
|
||
(this all from https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Desktop_Migration_and_Administration_Guide/File_Formats.html) | ||
|
||
Then you need to update the mime and application databases: | ||
|
||
sudo update-mime-database /usr/share/mime | ||
sudo update-desktop-database /usr/share/applications | ||
|
||
Those steps configure xdg-open to open `.sd-xfer` files using the `decrypt-sd-submission` script, in this directory. That script should be symlinked in ~/bin/ (and in disp vms, the script should be copied to ~/bin/). | ||
|
||
That script untars the file, unzips each file in the tarball, decrypts each file in each zip, re-tar's the results into a file with a `.sd-xfer-extracted` extension, the opens that file in the sd-svs VM. | ||
|
||
The sd-svs VM is mostly a respository for those decrypted files. It's configured to open `.sd-xfer-extracted` files with a script which simply untars the file into the ~/Sources directory. See sd-svs:~/projects/sd/ - it contains the script, plus .desktop and .xml files for handling those file types. | ||
|
||
That all seems to be working pretty well. | ||
|
||
--- | ||
|
||
Opening files in the SVS VM. | ||
|
||
By default, we want *all* files in the sd-svs VM to be opened in disposable VMs (except .sd-xfer-extracted files). This is sorta hard, but we'll try! Maybe we can remove *all* files in /usr/share/mime/, and have a single "mime type" which is handle by a scrpit which just `qvm-open-in-dvm`s. Of course we'd want to leave the mime type for `.sd-xfer-extractred`, too. |
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,106 @@ | ||
-----BEGIN PGP PRIVATE KEY BLOCK----- | ||
Version: GnuPG v2.0.19 (GNU/Linux) | ||
|
||
lQcYBFJZi2ABEACZJJA53+pEAdkZyD99nxB995ZVTBw60SQ/6E/gws4kInv+YS7t | ||
wSMXGa5bR4SD9voWxzLgyulqbM93jUFKn5GcsSh2O/lxAvEDKsPmXCRP1eBg3pjU | ||
+8DRLm0TEFiywC+w6HF4PsOh+JlBWafUfL3vwrGKTXvrlKBsosvDmoogLjkMWomM | ||
KBF/97OKyQiMQf1BDJqZ88nScJEqwo0xz0PfcB04GAtfR7N6Qa8HpFc0VDQcILFB | ||
0aJx5+p7nw1LyR37LLoK8JbEY6QZd277Y0/U+O4v6WfH/2H5kQ8sC+P8hPwr3rSg | ||
u3SVbNRasB4ZHFpJZR9Kv21zmQb9U3rrCk2yg3Wm0qtZ0S5CECAAwG2LQkKouRw2 | ||
ak+Y8aolHDt6a785eF0AaAtgbPX4THMum/CNMksHO0PBBqxR+C9z7WSHXFHvv+8B | ||
5nRccS4m4klyYTbZOOJ45DuC3xDjTRwzzpkYhqf4pLAhwF3spKZsAczAFPmDyxFf | ||
CyIBiMZSK/j8PMJT1X5tgpL1NXImNdVIP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AY9233fZXwJl0FEFk2S52zrTCY | ||
QVz0jqDU4hQ+zZfI82Z9yOMFAK8wcVk+YbKV+agfHf5PfaDLz56Fg/CJAh8EGAEC | ||
AAkFAlJZi2ACGwwACgkQzEDvEignFEGn9w//eUnH3PnLNkDpS8tBHqkr5XWLLaG9 | ||
n5L4TBhEKJOBhNd6QfMtdbCNYZ9RgNMcx5pL070ExEwY5TeKfJvjsZlKhDQ3RtFV | ||
POtjr/SJ+FRInTQx6Y6h0jVvPikAyTe5HyJbKGVoafskAgAqYKb4rSqR4l3rVL2L | ||
KvHuz1CZo0+e6mbmlz5uk4CRsrKruwQWlYzlDHzafW1Uy2chbY6hE9vPzQmSRAHa | ||
mXpKOyRepnz2NwVYYjogKFgQ0pzrnFp8O3i4W4dT7mPiPZ/jJJhLB+hYL3sw6Aku | ||
oD9aKbF540JgWHKRQNasvmYoFOAxeAf+xiTcYOjt+yxphsqfXFttfgZdCXf6u7jN | ||
Pr8XsLFkSuMtv569KHJ/iK0z7kB1spGJHOitqopuUFrhN8kFKoeKx1zF1l4F7X36 | ||
PJjprxkxwaGtB6SyIrFNGHvKUCTsItWAsQgcvFfMehnSgAXPa6Ub7Mf0pL097wxD | ||
EcKuXJ+hASVC4mhhutgE67byK28Y+DPr7nGC9lE68+ioiQiTwNi32UmpQUF5m4Ul | ||
3lbVO4covG55Vi9Ip4b57dOM5h0kW8Nkiczhw1avw33aZhKKmGWOIcApVNB4h/WZ | ||
rTtBQf+6XdgL6DTsX4EuicghcDq5BV5u/mIvFOA7MhDAdMlW7gw+JA2fWHh2TVGi | ||
d9X9on517X6qMDw= | ||
=E6hg | ||
-----END PGP PRIVATE KEY BLOCK----- |
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,6 @@ | ||
{ | ||
"hidserv": { | ||
"hostname": "avgfxawdn6c3coe3.onion", | ||
"key": "Il8Xas7uf6rjtc0LxYwhrx" | ||
} | ||
} |
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,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
## | ||
# qvm.work | ||
# ======== | ||
# | ||
# Installs 'sd-journlist' AppVM, for hosting the securedrop workstation app | ||
# | ||
## | ||
|
||
include: | ||
- qvm.template-whonix-ws | ||
- sd-whonix | ||
|
||
{%- from "qvm/template.jinja" import load -%} | ||
|
||
{% load_yaml as defaults -%} | ||
name: sd-journalist | ||
present: | ||
- template: whonix-ws | ||
- label: blue | ||
prefs: | ||
- netvm: sd-whonix | ||
require: | ||
- pkg: template-whonix-ws | ||
- qvm: sd-whonix | ||
{%- endload %} | ||
|
||
{{ load(defaults) }} |
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,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
base: | ||
dom0: | ||
- sd-journalist |
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,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
## | ||
# qvm.work | ||
# ======== | ||
# | ||
# Installs 'sd-journlist-pesistent' AppVM, to persistently store SD data | ||
# This VM has no network configured. | ||
## | ||
|
||
{%- from "qvm/template.jinja" import load -%} | ||
|
||
{% load_yaml as defaults -%} | ||
name: sd-svs | ||
present: | ||
- label: yellow | ||
prefs: | ||
- netvm: none | ||
{%- endload %} | ||
|
||
{{ load(defaults) }} |
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,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
base: | ||
dom0: | ||
- sd-svs |
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,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
{% import_json "hidserv.json" as d %} | ||
|
||
# add hidden service auth key to torrc | ||
|
||
sd-whonix-hidserv-key: | ||
require: | ||
- sls: sd-whonix | ||
file.append: | ||
- name: /etc/tor/torrc | ||
- text: HidServAuth {{ d.hidserv.hostname }} {{ d.hidserv.key }} |
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,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
base: | ||
sd-whonix: | ||
- sd-whonix-hidserv-key |
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,34 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
## | ||
# qvm.sd-whonix | ||
# ============== | ||
# | ||
# Installs 'sd-whonix' ProxyVM for securedrop journalist workstation. | ||
# | ||
## | ||
|
||
include: | ||
- qvm.template-whonix-gw | ||
- qvm.sys-firewall | ||
|
||
{%- from "qvm/template.jinja" import load -%} | ||
|
||
{% load_yaml as defaults -%} | ||
name: sd-whonix | ||
present: | ||
- template: whonix-gw | ||
- label: purple | ||
- mem: 500 | ||
- flags: | ||
- proxy | ||
prefs: | ||
- netvm: sys-firewall | ||
- autostart: true | ||
require: | ||
- pkg: template-whonix-gw | ||
- qvm: sys-firewall | ||
{%- endload %} | ||
|
||
{{ load(defaults) }} |
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,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
base: | ||
dom0: | ||
- sd-whonix |
Oops, something went wrong.