2014-04-15 10:56:00 +00:00
|
|
|
# TOMB INSTALLATION INSTRUCTIONS
|
|
|
|
|
|
|
|
## Install required tools
|
|
|
|
|
|
|
|
Tomb needs a few programs to be installed on a system in order to work:
|
|
|
|
|
|
|
|
* zsh
|
2014-11-16 14:18:11 +00:00
|
|
|
* sudo
|
2014-04-15 10:56:00 +00:00
|
|
|
* gnupg
|
|
|
|
* cryptsetup
|
2014-11-26 19:28:06 +00:00
|
|
|
* pinentry-curses (and/or -gtk-2, -x11, -qt)
|
2014-04-15 10:56:00 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
Most systems provide these tools in their package collection, for
|
|
|
|
instance on Debian/Ubuntu one can use `apt-get install` on Fedora and
|
|
|
|
CentOS one can use `yum install` and `pacman` on Arch.
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
## Install Tomb
|
|
|
|
|
|
|
|
To install Tomb simply download the source distribution (the tar.gz file)
|
2014-11-26 19:28:06 +00:00
|
|
|
from https://files.dyne.org/tomb and decompress it. From a terminal:
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
cd Downloads
|
2017-01-02 11:02:23 +00:00
|
|
|
tar xvfz Tomb-2.3.tar.gz (correct with actual file name)
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
Then enter its directory and run 'make install' as root, this will install
|
|
|
|
Tomb into /usr/local:
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
cd Tomb-2.3 (correct with actual directory name)
|
2014-04-15 10:56:00 +00:00
|
|
|
sudo make install
|
|
|
|
|
|
|
|
After installation one can read the commandline help or read the manual:
|
|
|
|
|
|
|
|
tomb -h (print a short help on the commandline)
|
|
|
|
man tomb (show the full usage manual)
|
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
# Basic usage
|
2014-04-15 10:56:00 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
Once installed one can proceed creating a tomb, for instance:
|
|
|
|
|
2015-07-06 11:03:32 +00:00
|
|
|
tomb dig -s 10 secrets.tomb (dig a 10MB Tomb)
|
|
|
|
tomb forge -k secrets.tomb.key (create a new key and set its password)
|
|
|
|
tomb lock -k secrets.tomb.key secrets.tomb (format the tomb, lock it with key)
|
2014-04-15 10:56:00 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
When this is done, the tomb can be opened with:
|
|
|
|
|
2015-07-06 11:03:32 +00:00
|
|
|
tomb open -k secrets.tomb.key secrets.tomb (will ask for password)
|
2014-11-26 19:28:06 +00:00
|
|
|
|
|
|
|
The key can also be hidden in an image, to be used as key later
|
|
|
|
|
2015-07-06 11:03:32 +00:00
|
|
|
tomb bury -k secrets.tomb.key nosferatu.jpg (hide the key in a jpeg image)
|
|
|
|
tomb open -k nosferatu.jpg secrets.tomb (use the jpeg image to open the tomb)
|
2014-11-26 19:28:06 +00:00
|
|
|
|
|
|
|
Or backupped to a QRCode that can be printed on paper and hidden in
|
|
|
|
books. QRCodes can be scanned with any mobile application, resulting
|
|
|
|
into a block of text that can be used with `-k` just as a normal key.
|
|
|
|
|
|
|
|
tomb engrave -k secrets.tomb.key (also an image will work)
|
|
|
|
|
|
|
|
There are some more things that tomb can do for you, make sure you
|
|
|
|
have a look at the manpage and at the commandline help to find out
|
|
|
|
more.
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
# Optional tools
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
Tomb can use some optional tools to extend its functionalities:
|
|
|
|
|
|
|
|
executable | function
|
|
|
|
---------- | ---------------------------------------------------
|
2017-02-05 19:03:29 +00:00
|
|
|
lsof | slam a tomb (close even if open programs)
|
2014-08-29 21:23:08 +00:00
|
|
|
dcfldd | show progress while digging tombs and keys
|
2014-04-15 10:56:00 +00:00
|
|
|
steghide | bury and exhume keys inside images
|
|
|
|
resizefs | extend the size of existing tomb volumes
|
2014-08-29 21:23:08 +00:00
|
|
|
qrencode | engrave keys into printable qrcode sheets
|
2015-07-06 11:03:32 +00:00
|
|
|
mlocate | fast search of file names inside tombs
|
|
|
|
swish++ | fast search of file contents inside tombs
|
|
|
|
unoconv | fast search of contents in PDF and DOC files
|
|
|
|
lesspipe | fast search of contents in compressed archives
|
|
|
|
haveged | fast entropy generation for key forging
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
As for requirements, also optional tools may be easy to install using
|
|
|
|
the packages provided by each distribution.
|
|
|
|
|
|
|
|
Once any of the above is installed Tomb will find the tool automatically.
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
# Extras
|
2014-04-15 10:56:00 +00:00
|
|
|
|
|
|
|
Tomb comes with a bunch of extra tools that contribute to enhance its
|
|
|
|
functionality or integrate it into particular system environments.
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
## extras/gtk-tray
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
The Gtk tray adds a nifty tomb skull into the desktop toolbar: one can
|
|
|
|
use it to close, slam and explore the open tomb represented by it.
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
When using pinentry-gtk-2 it also adds a little skull on the password
|
|
|
|
input, useful to not confuse it with other password inputs.
|
|
|
|
|
|
|
|
To have it change directory `extras/gtk-tray` then
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2015-07-26 15:26:49 +00:00
|
|
|
1. make sure libnotify and gtk+-2.0 dev packages are available
|
2014-11-22 00:50:08 +00:00
|
|
|
2. run `make` inside the directory to build `tomb-gtk-tray`
|
2014-11-26 19:28:06 +00:00
|
|
|
3. run `sudo make install` (default PREFIX is `/usr/local`)
|
|
|
|
4. start `tomb-gtk-tray tombname` after the tomb is open
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
Of cource one can include the launch of tomb-gtk-tray scripts.
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
## extras/qt-tray
|
2015-09-08 09:12:45 +00:00
|
|
|
|
|
|
|
The QT tray adds a tomb tray in a QT desktop toolbar. It requires at
|
|
|
|
least QT libraries of version 5.4 or above.
|
|
|
|
Build with 'qmake' and then 'make'.
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
## extras/kdf-keys
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
The KDF wrapper programs allows one to use KDF rounds on passwords in
|
|
|
|
order to obstruct dictionary based and similar brute-forcing attacks.
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
In case an attacker comes in possession of both a tomb and its key,
|
|
|
|
the easy to memorize password can be guessed by rapidly trying
|
|
|
|
different combinations. With KDF every try will require a significant
|
|
|
|
amount of computation that will slow down the process avoiding tight
|
|
|
|
loops and in fact making such attacks very onerous and almost
|
|
|
|
impossible.
|
2014-08-29 21:23:08 +00:00
|
|
|
|
|
|
|
To have it enter `extras/kdf-keys` then
|
|
|
|
|
2014-11-22 00:50:08 +00:00
|
|
|
1. make sure libgcrypt dev packages are available
|
|
|
|
2. run `make` inside the directory to build tomb-kdb-* executables
|
2014-11-26 19:28:06 +00:00
|
|
|
3. run `sudo make install` (default PREFIX is `/usr/local`)
|
|
|
|
4. use `--kdf 100` when forging a key (tune the number to your cpu)
|
|
|
|
|
|
|
|
KDF keys are recognized automatically by Tomb, which will always need
|
|
|
|
the `extras/kdf-keys` program to be installed on a machine in order to
|
|
|
|
open the Tomb.
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
Please note that it doesn't makes much sense to use KDF keys and
|
|
|
|
steganography, since the latter will invalidate the brute-forcing
|
|
|
|
protection. For details on the issue see [KNOWN_BUGS.md](KNOWN_BUGS).
|
2014-08-29 21:23:08 +00:00
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
## extras/translations/
|
2014-08-17 20:06:40 +00:00
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
There are translations available for Tomb and they are installed by
|
|
|
|
default. If you wish to update them manually navigate to extras/po
|
|
|
|
and run 'make install' as root:
|
2014-08-17 20:06:40 +00:00
|
|
|
|
2015-12-13 00:12:44 +00:00
|
|
|
cd extras/translations
|
2014-08-17 20:06:40 +00:00
|
|
|
sudo make install
|
2014-11-26 19:28:06 +00:00
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
## extras/gtomb/
|
2015-12-30 16:50:36 +00:00
|
|
|
|
|
|
|
This is a minimalistic graphical user interface scripted in ZSh
|
|
|
|
depending from Zenity to display dialog boxes. It covers all basic
|
|
|
|
operations in Tomb and facilitates the setup of hooks.
|
|
|
|
|
|
|
|
cd extras/gtomb
|
|
|
|
./gtomb
|
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
# Tomb support in other applications
|
|
|
|
|
|
|
|
Can Tomb be used by other applications?
|
|
|
|
|
|
|
|
Sure as Hell it can! Licensing issues aside ([GNU GPLv3+](COPYING)
|
|
|
|
terms) Tomb provides machine-readable output and interaction via some
|
|
|
|
flags:
|
|
|
|
|
|
|
|
flag | function
|
|
|
|
--------------- | ------------------------------------------------
|
|
|
|
--no-color | avoids coloring output to allow parsing
|
|
|
|
--unsafe | allows passwords options and cleartext key from stdin
|
|
|
|
--tomb-pwd | specify the key password as argument
|
|
|
|
--tomb-old-pwd | specify the old key password as argument
|
|
|
|
-k cleartext | reads the unencrypted key from stdin
|
|
|
|
|
|
|
|
Yet please consider that these flags may introduce vulnerabilities and
|
|
|
|
other people logged on the same system can easily log your passwords
|
|
|
|
while such commands are executing.
|
|
|
|
We only recommend using the pinentry to input your passwords.
|
|
|
|
|
2017-01-02 11:02:23 +00:00
|
|
|
At the time of writing another free software graphical application
|
|
|
|
supports opening and closing Tombs via a plugin installed by
|
|
|
|
default: [zuluCrypt](https://mhogomchungu.github.io/zuluCrypt/). One
|
|
|
|
needs to activate the Tomb plugin included in the zuluCrypt source to
|
|
|
|
be able to create, open and close tombs. Beware zuluCrypt may miss
|
|
|
|
advanced Tomb functionalities that are only available from the
|
|
|
|
command-line.
|
|
|
|
|
2014-11-26 19:28:06 +00:00
|
|
|
## Python
|
|
|
|
|
|
|
|
![](extras/images/python_for_tomb.png)
|
|
|
|
|
|
|
|
A Python wrapper is under development and already usable, but it
|
|
|
|
introduces some vulnerabilities mentioned above. Find it in
|
|
|
|
`extras/tomber`. For more information see [PYTHON](extras/PYTHON.md).
|
|
|
|
|
|
|
|
## Let us know!
|
|
|
|
|
|
|
|
If you plan to develop any kind of wrapper for Tomb you are welcome to
|
|
|
|
let us know. Tomb is really meant to be maintained as a minimal tool
|
|
|
|
for long-term compatibility when handling something so delicate as our
|
|
|
|
secrets. For anything else we rely on your own initiative.
|
|
|
|
|
2015-07-06 11:03:32 +00:00
|
|
|
Happy hacking! ;^)
|