solo1/README.md

122 wiersze
5.6 KiB
Markdown
Czysty Zwykły widok Historia

2018-10-22 20:29:50 +00:00
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)
[![Kickstarter](https://img.shields.io/badge/kickstarter-back%20us-red.svg)](https://solokeys.com/kickstarter)
2018-10-22 20:02:26 +00:00
[![Build Status](https://travis-ci.com/SoloKeysSec/solo.svg?branch=master)](https://travis-ci.com/SoloKeysSec/solo)
2018-10-22 20:29:50 +00:00
[![Discourse Status](https://img.shields.io/discourse/https/meta.discourse.org/status.svg)](https://discourse.solokeys.com)
[![Keybase Chat](https://img.shields.io/badge/chat-on%20keybase-brightgreen.svg)](https://keybase.io/team/solokeys.public)
2018-10-22 20:02:26 +00:00
2018-09-04 23:40:43 +00:00
# Solo
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
Solo is an open source security key, and you can get one at [solokeys.com](https://solokeys.com).
2018-09-13 03:35:02 +00:00
2018-12-17 00:05:33 +00:00
Solo supports FIDO2 and U2F standards for strong two-factor authentication and password-less login, and it will protect you against phishing and other online attacks. With colored cases and multilingual guides we want to make secure login more personable and accessible to everyone around the globe.
2018-10-20 00:36:47 +00:00
2018-12-17 00:05:33 +00:00
<img src="https://solokeys.com/images/photos/hero-on-white-cropped.png" width="600">
2018-09-13 03:35:02 +00:00
2018-12-17 00:05:33 +00:00
This repo contains the Solo firmware, including implementations of FIDO2 and U2F (CTAP2 and CTAP) over USB and NFC. The main implementation is for STM32L432, and it's ported to NRF52840 and EFM32J.
For development no hardware is needed, Solo also runs as a standalone application for Windows, Linux, and Mac OSX. If you like (or want to learn) hardware instead, you can run Solo on the NUCLEO-L432KC development board, or we make Solo for Hacker, an unlocked version of Solo that lets you customize its firmware.
2018-09-13 03:35:02 +00:00
# Security
2018-12-17 00:05:33 +00:00
Solo is based on the STM32L432 microcontroller. It offers the following security features.
2018-09-13 03:35:02 +00:00
- True random number generation to guarantee random keys.
2018-12-17 00:05:33 +00:00
- Security isolation so only simple & secure parts of code can handle keys.
- Flash protection from both external use and untrusted code segments.
- 256 KB of memory to support hardened crypto implementations and, later, additional features such as OpenPGP or SSH.
- No NDA needed to develop for.
2018-04-28 18:15:41 +00:00
2018-09-13 03:44:57 +00:00
2018-12-17 00:05:33 +00:00
# Solo for Hackers
2018-09-13 03:44:57 +00:00
2018-12-17 00:05:33 +00:00
Solo for Hacker is a special version of Solo that let you customize its firmware, for example you can change the LED color, and even build advanced applications.
2018-09-13 03:44:57 +00:00
2018-12-17 00:05:33 +00:00
You can only buy Solo for Hacker at [solokeys.com](https://solokeys.com), as we don't sell it on Amazon and other places to avoid confusing customers. If you buy a Hacker, you can permanently lock it into a regular Solo, but viceversa you can NOT take a regular Solo and turn it a Hacker.
2018-09-13 03:44:57 +00:00
2018-12-21 03:24:19 +00:00
If you have a Solo for Hacker, here's how you can load your own code on it. You can find more details, including how to permanently lock it, in our [documentation](https://solo.solokeys.io/building/).
2018-04-28 18:15:41 +00:00
```bash
2018-11-02 15:01:06 +00:00
git clone --recurse-submodules https://github.com/SoloKeysSec/solo
2018-12-17 00:05:33 +00:00
cd solo
cd targets/stm32l442
make cbor
make all-hacker
python ../../tools/programmer.py solo.hex
```
For example, if you want to turn off any blue light emission, you can edit [`led_rgb()`](https://github.com/SoloKeysSec/solo/blob/master/targets/stm32l442/src/led.c#L15) and force:
```
uint32_t b = 0;
2018-09-05 02:11:21 +00:00
```
2018-12-17 00:05:33 +00:00
Then recompile, load your new firmware, and enjoy a blue-light-free version of Solo.
2018-12-17 00:05:33 +00:00
In the Hacker version, hardware is the same and firmware is unlocked, in the sense that you can 1) load an unsigned application, or 2) entirely reflash the key. By contrast, in a regular Solo you can only upgrade to a firmware signed by SoloKeys, and flash is locked and debug disabled permanently.
2018-09-13 03:35:02 +00:00
2018-12-17 00:05:33 +00:00
A frequently asked question is whether Solo for Hacker is less secure than regular Solo. The answer is certainly yes, and therefore we only recommend to use Solo for Hacker for development, experimentation, and fun. An attacker with physical access to a Solo for Hacker can reflash it following the steps above, and even a malware on your computer could possibly reflash it.
2018-09-13 03:35:02 +00:00
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
# Developing Solo (No Hardware Needed)
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
Clone Solo and build it
2018-11-25 13:41:58 +00:00
```bash
2018-12-17 00:05:33 +00:00
git clone --recurse-submodules https://github.com/SoloKeysSec/solo
cd solo
make all
2018-11-25 13:41:58 +00:00
```
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
This builds Solo as a standalone application. Solo application is set up to send and recv USB HID messages over UDP to ease development and reduce need for hardware.
Testing can be done using our fork of Yubico's client software, python-fido2. Our fork of python-fido2 has small changes to make it send USB HID over UDP to the authenticator application. You can install our fork by running the following:
2018-04-28 18:15:41 +00:00
```bash
2018-12-17 00:05:33 +00:00
cd python-fido2 && python setup.py install
2018-04-28 18:15:41 +00:00
```
2018-12-17 00:05:33 +00:00
Run the Solo application:
```bash
./main
2018-04-28 18:15:41 +00:00
```
2018-12-17 00:05:33 +00:00
In another shell, you can run client software, for example our tests:
```bash
2018-11-23 16:51:38 +00:00
python tools/ctap_test.py
2018-09-13 03:35:02 +00:00
```
2018-12-17 00:05:33 +00:00
Or any client example such as:
```bash
python python-fido2/examples/credential.py
```
2018-09-13 03:35:02 +00:00
2018-12-17 00:05:33 +00:00
You can find more details in our [documentation](https://solo.solokeys.io), including how to build on the the NUCLEO-L432KC development board.
2018-09-13 13:56:36 +00:00
2018-12-17 00:05:33 +00:00
# Documentation
2018-09-13 13:56:36 +00:00
2018-12-17 00:05:33 +00:00
Check out our [official documentation](https://solo.solokeys.io).
2018-09-13 03:35:02 +00:00
2018-09-13 13:56:36 +00:00
2018-12-17 00:05:33 +00:00
# Contributors
2018-09-13 13:56:36 +00:00
2018-12-17 00:05:33 +00:00
Solo is an upgrade to [U2F Zero](https://github.com/conorpp/u2f-zero). It was born from Conor's passion for making secure hardware, and from our shared belief that security should be open to be trustworthy, in hardware like in software.
2018-09-13 03:35:02 +00:00
2018-12-17 00:05:33 +00:00
Contributors are welcome. The ultimate goal is to have a FIDO2 security key supporting USB, NFC, and BLE interfaces, that can run on a variety of MCUs.
2018-10-15 02:56:30 +00:00
2018-12-17 00:05:33 +00:00
Look at the issues to see what is currently being worked on. Feel free to add issues as well.
2018-10-15 02:56:30 +00:00
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
# License
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
Solo is fully open source.
All software is licensed under GPLv3, and hardware under CC BY-SA 4.0.
Software and hardware are available under licenses for commercial use. Please contact SoloKeys for more information.
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
# Where To Buy Solo
2018-04-28 18:15:41 +00:00
2018-12-17 00:05:33 +00:00
You can buy Solo, Solo Tap, and Solo for Hackers at [solokeys.com](https://solokeys.com).