Compare commits

..

No commits in common. "4c0521473f2641fff0cfe836803872542a0179d0" and "1112fe0870af9fe62d3033ab11fde73d1676bb6b" have entirely different histories.

3 changed files with 1 additions and 99 deletions

View File

@ -1,20 +1,4 @@
## Dependencies # Installing Keyfork
Keyfork has different dependencies depending on the feature set used for
installation, but the default build dependencies may be installed on a Debian
system by running:
```sh
sudo apt install pkg-config nettle-dev libpcsclite-dev clang llvm
```
The runtime dependencies are:
```sh
sudo apt install libnettle8 libpcsclite1 pcscd
```
## Installing Keyfork
Keyfork is hosted using the Distrust Cargo repository. For the fastest Keyfork is hosted using the Distrust Cargo repository. For the fastest
installation path (this is not recommended), crates may be installed directly installation path (this is not recommended), crates may be installed directly

View File

@ -4,7 +4,6 @@
# User Guide # User Guide
- [Installing Keyfork](./INSTALL.md) - [Installing Keyfork](./INSTALL.md)
- [Security Considerations](./security.md)
- [Shard Commands](./shard.md) - [Shard Commands](./shard.md)
- [Common Usage](./usage.md) - [Common Usage](./usage.md)
- [Configuration File](./config-file.md) - [Configuration File](./config-file.md)

View File

@ -1,81 +0,0 @@
# Security Considerations
Keyfork handles data that is considered sensitive. As such, there are a few
base considerations we'd like to make about the environment Keyfork is run in.
This ensures that the amount of mitigations needed to run Keyfork are reduced.
## Build Process
Keyfork should be built using a secure toolchain, such as through Guix or the
Distrust Packages system. Using something such as `rustup` means Rust can't
properly be verified from source. Ideally, Keyfork should be built by multiple
developers and verified between them to ensure the results are deterministic.
## Hardware
Keyfork is expected to run on hardware detached from the Internet and from any
other computers. This helps ensure the Keyfork seed is never exposed to any
online system. Exposing the Keyfork seed may result in a compromise of data
derived from Keyfork. The hardware is expected to be stored in a safe location
along with the removable storage containing the operating system and (if using
Keyfork Shard) the shard file, where adversaries are not able to tamper with
the hardware, OS, or shard file.
## Software
Keyfork is intended to be one of few programs running on a given system. The
ideal system to run Keyfork under is an OS whose only dependencies are Keyfork
and Keyfork's runtime dependencies. Because of these restrictions, Keyfork does
not necessarily need to include memory-locking or memory-hardening
functionality, although such functionality may be included upon further
releases.
## Keys in Memory
As Keyfork is expected to be the only program running on a given system, it is
not expected for Keyfork to defend against malicious software on a system
scanning the memory of Keyfork and extracting the keys. As such, at this time,
Keyfork does not zero out previously-used memory. Additionally, if such
software did exist, because Keyfork is intended to run on hardware detached
from the Internet and from any other computers, the risk of practical covert
channels is reduced. Tempest and side channel attacks may be mitigated by
running Keyfork on hardware located in a Faraday cage.
## Security of Local Shards
The threat model of Keyfork in a "local shard" configuration is that an
adversary can, without leaking the seed:
* Compromise `M-1` shard holders or shards
The threat model of Keyfork in a "local shard" configuration does not include:
* Compromise of the system running Keyfork
Keyfork does not provide a mechanism by itself to ensure the operating system
or the Keyfork binary has not been tampered with. Users of Keyfork on a shared
system should verify the system has not been tampered with before starting
Keyfork.
## Security of Remote Shards
The threat model of Keyfork in a "remote shard" configuration is that an
adversary can, without leaking the seed:
* Compromise `M-1` shard holders, shard holder devices, or shards
* Eavesdrop upon (but not intercept or tamper with) secure communications
The threat model of Keyfork in a "remote shard" configuration does not include:
* The compromise of the system initiating the "remote shard" requests.
Keyfork has a "remote shard" mode, where shards may be transport-encrypted to
an ephemeral key and combined on a system run by a user we will call the
"administrator". In this design, it is expected that a secure communications
channel is established that can be spied upon but can't be tampered with. The
administrator can then begin distributing encoded (not encrypted!) public keys
to remote shardholders, who then decrypt and re-encrypt the shards to an ECDH
AES-256-GCM key. Because the shard is re-encrypted, it can't be intercepted by
anyone intercepting the communication. However, it is possible for the
administrator to leak either the Keyfork seed or any number of shards if they
are the only user operating the system combining the shares.