Skip to content

hotp-verification fails to detect touch on nk3a-mini with newer musl compiled binary #37

@tlaurion

Description

@tlaurion

This was discovered while testing roms produced by linuxboot/heads#1841 (after musl-cross-make version bump)

tested on x230-hotp-maximized (hotp-verification 1.6, nk3a firmware 1.7.2)

  • OEM Factory reset/Re-ownership works
  • Resetting TPM/sealing TOTP through reverse HOTP fails

Screenshot:
signal-2024-11-07-123429

Test output of that nk3a-mini dongle:

user@heads-tests-deb12-nix:~/heads$ nitropy nk3 test
Command line tool to interact with Nitrokey devices 0.4.47
Found 1 Nitrokey 3 device(s):
- Nitrokey 3 at /dev/hidraw0

Running tests for Nitrokey 3 at /dev/hidraw0

[1/5]	uuid     	UUID query              	SUCCESS  	EF25D848139028D30000000000000000
[2/5]	version  	Firmware version query  	SUCCESS  	v1.7.2
[3/5]	status   	Device status           	SUCCESS  	Status(init_status=<InitStatus: 0>, ifs_blocks=238, efs_blocks=465, variant=<Variant.NRF52: 2>)
Running SE050 test: |                                                                                                                                                                                              
[4/5]	se050    	SE050                   	SUCCESS  	SE050 firmware version: 3.1.1 - 1.11, (persistent: (31432,), transient_deselect: (607,), transient_reset: (592,))
Please press the touch button on the device ...
Please press the touch button on the device ...
[5/5]	fido2    	FIDO2                   	SUCCESS  	

5 tests, 5 successful, 0 skipped, 0 failed

Summary: 1 device(s) tested, 1 successful, 0 failed

EDIT: As recommended:

user@heads-tests-deb12-nix:~/heads$ nitropy nk3 secrets reset
Command line tool to interact with Nitrokey devices 0.4.47
Do you want to continue? [y/N]: y
Please touch the device if it blinks
Done

Redoing Heads TPM reset+reverse HOTP sealing of TPMTOTP secret succeeds after nitropy nk3 secrets reset , but I never got this error before. Success:
signal-2024-11-07-124406


Ideally, this is not-reproducible/fixed before 2024-11-20 under hotp-verification and Heads pour point to newer fixed commit of hotp-verification as part of linuxboot/heads#1821

@jans23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions