This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
2 changed files
with
27 additions
and
3 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,21 @@ | ||
## Security | ||
|
||
In the future, we will be looking to integrate with [TUF](https://theupdateframework.github.io/) | ||
in order to make updates more secure. In the meantime, this document describes | ||
what the updater (in the context of the Keybase application) protects against. | ||
|
||
The updater may not protect against certain attacks. | ||
|
||
- Rollback attacks: The updater doesn't prevent an earlier update from being applied | ||
- Indefinite freeze attacks: An attacker could reply with old metadata | ||
- Endless data attacks: An attacker could cause the client to download endless data | ||
- Slow retrieval attacks: An attacker could prevent an update by being slow | ||
- Extraneous dependencies attacks: The updater doesn't know about dependencies and will only download and apply a single asset | ||
- Mix-and-match attacks: An attacker could mix metadata (use an old asset with new update) | ||
|
||
The Keybase updater does do the following (to prevent basic attacks): | ||
|
||
- Uses TLS with a pinned certificate for api.keybase.io (update source) for metadata | ||
- Uses TLS to download asset | ||
- Verifies asset digest (SHA256) | ||
- Verifies asset saltpack signature (key IDs are pinned) |