The YubiKey NEO

The YubiKey line of hardware one-time-password (OTP) generators has been on the market for a few years now—in 2010,

we looked at the earlier generation of devices when support for them came to Fedora.

But since that time, several updates to both the hardware and the software side of YubiKey products have been rolled out,

offering users some additional choices for affordable security tokens.

For those unfamiliar with the product line in question, the YubiKey is a diminutive USB-A key-fob

that houses a secure cryptographic module on the inside and a simple touch button on the outside.

The basic model is flat enough that it does resemble a key more than a traditional USB thumb drive,

and the company even makes a compact version (the "Nano") that barely sticks out beyond the USB port.

Storage space on the key is read-protected and physically tamper-proof;

the user loads a secret key into one of the available storage slots,

and although the slot can be overwritten, the stored secret cannot be extracted.

When the key is plugged into a USB port and the button pressed,

the key computes a hash (or other relevant function) based on the secret

and emits the result for use as a OTP.

What makes the YubiKey popular is its flexibility.

Despite the special circuitry under the hood, when it is plugged in,

the key presents itself to the host computer as a standard USB keyboard—

the passwords it emits are sent as character strings,

so they can be fed just as easily into an application,

a system login screen, or a web site, regardless of the operating system.

In addition, the storage slots can be configured in several different ways.

One of the most popular options (based on blog entries and reviews) is RFC 4226,

better known as the HMAC-based One-time Password (HOTP) algorithm from the OATH open authentication standard.

HOTP is a popular choice for multi-factor authentication schemes for web services,

although the more popular services seem to support the Time-based One-Time Password (TOTP) variant,

which adds another smidge of security by computing the HMAC hash of the current timestamp rather than a simple counter.

The YubiKey itself does not do TOTP (it does not have an onboard clock),

but many users will be familiar with TOTP as the algorithm used by Google AuthenticatorFreeOTP, and the like.

The YubiKey's limitation to HOTP is not a trivial matter;

users wishing to secure their accounts on public web services usually have no choice as

to whether the service supports HOTP or TOTP.

Since most of the big-name services seem to prefer TOTP,

users of those services may feel frustrated that their key is less useful than they had hoped.

But, fortunately, there are configuration options available other than HOTP.

Some of them, in combination with other utilities, promise to extend the YubiKey's functionality in interesting ways.

Updates

In addition to the aforementioned YubiKey Nano, the company has introduced another model

with different characteristics than the original YubiKey:

the YubiKey NEO, which adds a Near-Field Communication (NFC) interface and a Common Criteria–certified JavaCard secure element.

The NFC mode can serve as a generic MIFARE Classic RFID token,

and the JavaCard element can be loaded with any of several security applets and used like a smartcard.

These additions greatly expand the number and type of services with which the key can be used.

The older YubiKey models supported two configuration slots that could be loaded with separate credentials—

one slot being triggered by a quick tap on the device's button,

the second being triggered by a long tap.

But two sets of credentials is not that many in the SaaS era;

with several accounts to protect, does one choose favorite services,

or buy multiple YubiKeys?

On the company's discussion forum, buyers have periodically asked

whether it would be possible to support more than two slots on the key,

and the company's response suggests that there is sufficient storage space on the keys,

but that the UI challenge is considerable.

A short press and a long press can be reasonably distinguished,

but 10 or 12 different button-press lengths would no doubt be difficult.

The NEO, perhaps, is an answer to this longstanding customer wish,

making use of more of the device's storage capacity.

The other changes rolled out since our previous look at the YubiKey occurred on the software front.

The company is now hosting an array of free-software tools,

from a pair of key-configuration utilities (one command-line tool and one Qt-powered graphical offering)

to an assortment of libraries for adding YubiKey authentication to popular web frameworks.

The graphical configuration tool lets the user load either of the two programmable storage slots on a key,

erase the existing configuration(s), and set a few important options

(such as the character rate at which the device emits password key codes and protecting the key's configuration by setting a passcode).

Currently there are four configuration options for the data slots:

the HOTP mode mentioned earlier,

a static password,

a challenge-response mode,

and a special OTP option that works only with Yubico's own cloud-based web service.

Static password mode emits the same string every time, of course.

Challenge-response mode is designed to interface with an application running on the computer into which the key is plugged.

It computes the hash of a challenge string passed to the key by the application.

Currently two different challenge-response schemes are supported:

HMAC-SHA1, and a custom algorithm supported only by Yubico software.

The HMAC-SHA1 option is the more interesting of the challenge-response schemes,

because it provides a stepping stone toward using the key as a TOTP token—

which would make it usable with far more public web services than HOTP,

including Google, Dropbox, GitHub, and many more.

This approach requires downloading and installing a helper application (which is free software) called YubiTOTP.

With the key inserted, YubiTOTP can send a timestamp to the key as the "challenge,"

so that the hash value subsequently emitted as the response is a fully compliant TOTP password.

As for the NFC support, the NEO's basic functionality uses the NFC Data Exchange Format (NDEF) message format,

sending a pre-determined string (such as a base URL) with the generated OTP password appended

to it whenever the device is touched to an NFC reader.

Officially only a few NFC-capable host devices are supported—

mainly name-brand Android phones—

but users on the forums seem to have found success with more than just the approved list.

The NDEF message string can be customized with the configuration tool,

and the NFC function must be linked to one of the two existing YubiKey configuration slots.

Thus, it allows contactless operation (which is handy for authenticating through a device like a phone that has no USB port),

but it does not add support for a third configuration.

Yubico also makes an NFC-capable version of YubiTOTP for Android,

which allows the NEO to serve as a TOTP token through an NFC-capable phone.

The company also makes a pair of applications (one for Android, one for the desktop)

that implement the same two-piece TOTP dance as YubiTOTP,

but with the significant added bonus of storing multiple TOTP secret credentials.

This feature is designed for the NEO, but it requires loading the corresponding JavaCard applet

into the NEO's smartcard secure element—a process that, currently,

is a real headache-inducer that many users on the discussion forum seem unable to get working.

In my own tests, I have not even been able to get the first step working correctly:

switching on the smartcard option via the command-line configuration tool.

The documentation says that setting this option by running ykpersonalize -m82

will make a smartcard reader and the normal YubiKey faux-keyboard

both appear as connected USB devices when the key is plugged in.

I have not gotten the smartcard-enabling command to work on any of my machines,

there appears to be no troubleshooting process,

and I have not received replies from Yubico to my support emails on the subject.

The smartcard functionality is new and the company has only recently started working

on a smartcard-specific configuration tool, so perhaps improved support is on its way,

but the current situation is a disappointment nonetheless.

Compounding said disappointment is that the JavaCard secure element feature is reported

to support several different applets of interest that would extend the key's functionality—

such as OpenPGP or OpenSSH authentication.

It does not help matters that Yubico's documentation, discussion forum,

and Android apps often do not agree on the terminology of the various pieces involved

or the steps needed to set up smartcard functionality,

nor that they have a habit of pointing to dead links on the wiki.

Hopefully, with a bit more time invested, such problems will all prove to be solvable,

in which case a look at the NEO's smartcard functions will be forthcoming.

State of the art

With the basic configuration tool, then, the user can load two separate configurations into the two available slots on the NEO.

If one is confident that the desktop helper application is secure (and one should, obviously, do due diligence in such matters),

then the YubiKey can be used to authenticate to one or two TOTP-speaking services as a multi-factor authentication aid.

In TOTP mode, the YubiKey's primary competitor is applications like Google Authenticator or FreeOTP.

The trouble is that these applications can store an unlimited number of HOTP/TOTP secret credentials,

and until Yubico gets the kinks worked out of the smartcard functionality, even the YubiKey NEO can only store two.

On the plus side, there are people who either do not possess or cannot

use an Android device as the second factor in their multi-factor authentication setup,

and when one gets right down to it, a mobile app is not really a "thing you have" in the truest sense of the word.

An app can be compromised or corrupted; the YubiKey is,

at least, a piece of hardware that is more difficult to break into than a smartphone,

and never runs out of battery power at just the wrong moment.

The value of the non-HOTP/TOTP configuration options is more of a personal opinion question than anything else.

Yubico's cloud service offering might look interesting to some system administrators,

but it is probably less interesting to the average consumer,

who simply wants to add two-factor authentication to an existing online account.

The static password option's real security value is that it allows the user to save a password

that is too long and complicated to be memorized—but,

with the abundance of encrypted password-storage applications out there today,

the value of saving such a password on a hardware token is mostly that it can travel with the user in the field.

That scenario has its limits; on an untrusted system, the YubiKey could be subject to keystroke-logging

or other attacks that would completely undermine a static password, but which OTP is designed to foil.

Without the smartcard features, the NEO is a bit more interesting than the standard YubiKey

because it can be used both via USB and via NFC—although it comes at twice the price ($50 versus $25).

But the clincher remains that HOTP is far less widely deployed than TOTP,

and adoption among service providers appears likely to continue in the same vein.

That puts far more pressure on Yubico's software offerings to provide a painless experience for configuration and use.

The configuration tools are not quite as simple to use as the photograph-a-QR-code method available for Google Authenticator,

but they have made the device's array of options easy to understand and (importantly) easy to test.

With any luck, the smartcard functionality will catch up in fairly short order.

The YubiKey NEO的更多相关文章

  1. The YubiKey NEO -- Smartcard features

    Smartcard features on the YubiKey NEO YubiKeys are a line of small and low-cost hardware security to ...

  2. The YubiKey -- COMPARISON OF VERSIONS

    COMPARISON OF YUBIKEY VERSIONS   BASICSTANDARD & NANO BASICEDGE & EDGE-N PREMIUMNEO & NE ...

  3. The YubiKey -- HOW IT WORKS

    A single YubiKey has multiple functions for protecting access to your email, your apps and your phys ...

  4. 采访Philipp Crocoll:安卓平台上整合Java和C#

    在这个采访中,我们跟开源开发者Philipp Crocoll讨论了关于Keepass2Android的相关话题.Keepass2Android不仅具有强大的密码存储的功能,还是在一个单独的安卓应用同时 ...

  5. FIDO 标准简介

    FIDO 联盟(Fast IDentity Online Alliance)简介 网站:http://fidoalliance.org FIDO Alliance,成立于2012年7月. FIDO的目 ...

  6. Linux 工作站安全加固规范

    目标受众 这是一套 Linux 基金会为其系统管理员提供的推荐规范. 这个文档用于帮助那些使用 Linux 工作站来访问和管理项目的 IT 设施的系统管理员团队. 如果你的系统管理员是远程员工,你也许 ...

  7. Atitit. 常用街机系统and 模拟器总结 snk neo geo cps mame sfc smc

    Atitit. 常用街机系统and 模拟器总结 snk neo geo cps mame sfc smc 1. #-------常用 游戏类型 1 2. 街机的历史 2 3. #=========== ...

  8. NEO从入门到开窗(2) - 智能合约的面相

    一.啰嗦两句 昨天讲了智能合约的一生,那丫长啥样啊?今儿我就跟各位唠叨唠叨. 二.一个简单的智能合约 下面这段就是NEO实例源码里的一个,干撒用的?聪明的你一眼儿就看出来了吧,就是一个所谓域名合约的增 ...

  9. NEO从入门到开窗(1) - 一个智能合约的诞生

    一.啰嗦两句 最近一直都在研究区块链,BitCoin,Etherenum, Hyper Ledger Fabric还有今天的主角小蚂蚁,当然出名以后改了一个艺名叫NEO.区块链大部分都是用Golang ...

随机推荐

  1. UVA 10891 Game of Sum(区间DP(记忆化搜索))

    题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem ...

  2. **汇总CodeIgniter(CI)的数据库操作函数

    //查询: $query = $this->db_query("SELECT * FROM table"); ================================ ...

  3. .NetCore读取配置Json文件到类中并在程序使用

    ConfigurationBuilder 这个类提供了配置绑定,在dnc中 Program中WebHost提供了默认的绑定(appsettings文件) 如果我们需要加载我们自己的json配置文件怎么 ...

  4. hdu 5475 模拟计算器乘除 (2015上海网赛H题 线段树)

    给出有多少次操作 和MOD 初始值为1 操作1 y 表示乘上y操作2 y 表示除以第 y次操作乘的那个数 线段树的叶子结点i 表示 第i次操作乘的数 将1替换成y遇到操作2 就把第i个结点的值 替换成 ...

  5. hdu 4559 涂色游戏(SG)

    在一个2*N的格子上,Alice和Bob又开始了新游戏之旅. 这些格子中的一些已经被涂过色,Alice和Bob轮流在这些格子里进行涂色操作,使用两种涂色工具,第一种可以涂色任意一个格子,第二种可以涂色 ...

  6. JavaScript工程师都应懂的33个概念

    最近福利发的有点多啊,各种硬干货,小伙伴们是不是觉得很爽啊.Github真的蕴含着各种各样的宝藏,难怪各个大厂也都纷纷贡献自己的代码到Github上. 所以各种干货还是会源源不断的po给大家,觉得有帮 ...

  7. glBlendFunc的几种常用情况

    先Mark一下,后面有时间补上DEMO 1.画航母大灯,手电筒(效果为:透过黑色半透明层可看到下面的背景图,仅圆圈部分) 1)先画圆圈 2)再画背景图(大背景) 大背景设置  glBlendFunc ...

  8. 【洛谷】P4643 【模板】动态dp

    题解 在冬令营上听到冬眠的东西,现在都是板子了猫锟真的是好毒瘤啊(雾) (立个flag,我去thusc之前要把WC2018T1乱搞过去= =) 好的,我们可以参考猫锟的动态动态dp的课件,然后你发现你 ...

  9. 《Android源码设计模式》--享元模式

    No1: 享元模式是对象池的一种实现.享元模式用来尽可能减少内存使用量,它适合用于可能存在大量重复对象的场景,来缓存可共享的对象,达到对象共享.避免创建过多对象的效果,这样一来就可以提升性能.避免内存 ...

  10. Chrome谷歌浏览器拓展组件的2种快速安装方法(.crx)

    谷歌浏览器拓展有至少2种安装方法,现在简单的介绍下. 第一种.当然是进入谷歌官方的应用商店直接安装 这种方法简单快捷,而且官方支持度够高,唯一的缺点是大陆用户需要“FQ”. 谷歌拓展组件应用商店地址: ...