matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Insufficient Yubikey PIN retry lockout protection

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug: Yubikey PIN attempts not rate-limited. Attacker with physical access can brute-force PIN through matcha interface faster than Yubikey hardware limits.

To reproduce:

  1. Wrong PIN entered repeatedly
  2. No delay between attempts
  3. Can script rapid PIN guessing
  4. Bypasses Yubikey lockout if fast enough

Expected behavior:

  • Implement exponential backoff on PIN failures
  • Respect Yubikey retry counter
  • Lock out after N failures locally
  • Clear lockout only after delay or restart

Additional context:

  • File: pgp/yubikey.go
  • Security issue but not critical (requires physical access)
  • Need retry counter tracking
  • Must coordinate with Yubikey hardware limits
  • Severity: Medium - physical attack vector
  • Complexity: Medium-High - security-sensitive code

andrinoff avatar Apr 16 '26 20:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 17 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 31 '26 06:05 floatpanebot