pwn-plugins-yubikey-oath

pwn-plugins-yubikey-oath is a skill for Claude Code from 0dayInc/pwn. It costs 19 tokens per session (1,446 once invoked), scanned A, original, MIT.

A Ruby interface to the OATH application on a YubiKey. OATH is a standard for generating time-based or counter-based one-time login codes.

In plain words
What is it for?
Use it to list, add, import, rename, delete, and retrieve OATH accounts, or calculate codes and raw HMAC values from a selected YubiKey.
Why use it?
It keeps account selection exact and makes potentially changing actions, such as generating codes or advancing counters, require explicit confirmation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to list, add, import, rename, delete, and retrieve OATH accounts, or calculate codes and raw HMAC values from a selected YubiKey.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0dayinc/pwn/oath
View source ↗ 0dayInc/pwn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0dayInc/pwn --skill oath
Clone the repo
git clone --depth 1 https://github.com/0dayInc/pwn

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwn-plugins-yubikey-oath

README.md
[![agentmods](https://agentmods.dev/badge/skills/0dayinc/pwn/oath/github.svg)](https://agentmods.dev/skills/0dayinc/pwn/oath)
Your own site
<a href="https://agentmods.dev/skills/0dayinc/pwn/oath"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/oath/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwn-plugins-yubikey-oath

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/oath"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/oath.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01446
Opus 5.5 $0.00008 $0.00578
Sonnet 5.5 $0.00004 $0.00289
Haiku 4.5 $0.00002 $0.00145

Measured yesterday against content hash c3baad0da9a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pwn-plugins-yubikey-oath scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

cache.fetch(device_id: id) # raw bytes or nil
etc/default_skills/pwn/auth/yubikey/oath/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Native OATH

When to use

Use PWN::Auth::YubiKey::OATH for OATH application APDUs, not software-only OTP or browser WebAuthn. The root YubiKey router owns transport lifetime.

Public API

  • execute(args:, connection:, ...) implements info, reset, access change, remember, forget, and accounts add, uri, import, list, code, rename, delete. Empty/group args return local metadata.
  • operations, help, authors are local metadata.
  • code(connection:, account:, confirm: true, ...) returns one numeric String.
  • calculate(connection:, account:, challenge:, confirm: true, ...) returns a raw full HMAC, not a formatted OTP.
  • calculate_all(connection:, timestamp:, confirm: true, ...) returns credential records with code value/validity Hashes; HOTP and touch records have nil codes.
  • parse_uri(uri:) validates and parses an in-memory otpauth URI locally.

Procedure

  1. Use a caller-selected APDU connection. Never select the first device implicitly.
  2. Pass the exact complete ID returned by LIST, including period/issuer prefixes, whitespace and UTF-8 bytes. No substring, case folding or Unicode normalization is performed when identifying an account.
  3. Use code for one numeric OTP String; leading zeroes are significant. Optional timestamp: is nonnegative Integer epoch seconds. TOTP periods come from the credential ID, while HOTP uses an empty challenge and increments its counter.
  4. Supply password: or sixteen raw bytes in access_key: in memory, or an explicit secret_provider: callback. Authentication is single-attempt with mutual HMAC-SHA1 verification after SELECT. Missing or wrong credentials never trigger default guesses, repair, cached-key deletion, fallback or retry.
  5. For account creation supply secret: (raw bytes) or strict secret_base32:; --generate returns the generated seed in memory. Metadata options include oath-type, algorithm (SHA1/SHA256/SHA512), digits (6–8), period, issuer, initial HOTP counter and touch. Invalid values fail before authentication. Existing IDs require explicit overwrite: true or --force in addition to consent.
  6. URI input goes in uri:, not argv. Conflicting issuer fields, noncanonical Base32, duplicate URI parameters and invalid periods are rejected, not repaired.
  7. Bulk import accepts credentials: (complete Hash records) or pskc: (in-memory PSKC 1.0 XML). Validate the complete batch before any authentication/write; never silently skip a bad entry. Each successful PUT is checked with LIST. Partial device failure is not rolled back or retried.
  8. Use access change with new_password: / new_access_key:, or --clear. Changes read back protection state only, not secret contents. Reset uses DEAD confirmation bytes and verifies regenerated salt, unlocked state and empty inventory. Rename/delete verify exact IDs and never delete as a repair step.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 116 lines · 19 tokens per session scan A c3baad0da9a5

Subscribe to this mod's changes

pwn-plugins-yubikey-oath is a skill published in the GitHub repository 0dayInc/pwn (102 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,446 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

pwn-plugins-yubikey-oath compared with skills from other repositories

pwn-plugins-yubikey-oath next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-plugins-yubikey-oath0dayInc/pwnSkill102todayMITA19Claude Code
performing-jwt-none-algorithm-attackxalgorix/xalgorixSkill1.6ktodayApache-2.0A34Claude Code, Codex
pentesting-ipmixalgorix/xalgorixSkill1.6ktodayApache-2.0A64Claude Code, Codex
performing-zero-day-vulnerability-discoveryxalgorix/xalgorixSkill1.6ktodayApache-2.0B36Claude Code, Codex
analyzing-compiled-python-malwaremeltedinhex/analyst-ai-packSkill256d agoApache-2.0A76Claude Code, Codex
deserializePentesterFlow/agentSkill1.5k3mo agoApache-2.0B96Claude Code
webvulnPentesterFlow/agentSkill1.5k3mo agoApache-2.0B53Claude Code