pwn-plugins-yubikey-otp

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

A Ruby interface for the one-time-password functions of a YubiKey. It works with the device's OTP slots, which store settings for codes or challenge-and-response authentication.

In plain words
What is it for?
Use it to inspect slots, configure or delete OTP credentials, provision Yubico OTP, static-password, HOTP, and challenge-response settings, and calculate responses.
Why use it?
It provides explicit device commands and requires the caller to select the intended hardware, reducing accidental changes to the wrong key.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect slots, configure or delete OTP credentials, provision Yubico OTP, static-password, HOTP, and challenge-response settings, and calculate responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0dayinc/pwn/otp
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 otp
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-otp

README.md
[![agentmods](https://agentmods.dev/badge/skills/0dayinc/pwn/otp/github.svg)](https://agentmods.dev/skills/0dayinc/pwn/otp)
Your own site
<a href="https://agentmods.dev/skills/0dayinc/pwn/otp"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/otp/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-otp

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/otp"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/otp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00021 $0.01303
Opus 5.5 $0.00008 $0.00521
Sonnet 5.5 $0.00004 $0.00261
Haiku 4.5 $0.00002 $0.00130

Measured yesterday against content hash eb1339af4dc6, 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-otp scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

etc/default_skills/pwn/auth/yubikey/otp/SKILL.md · 98 lines

How it starts

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

PWN::Auth::YubiKey::OTP

Native Ruby OTP application commands over the selected Connection.exchange boundary. No executable, subprocess, interpreter or network backend. HID framing and CRC validation belong to Transport; APDU status handling belongs to Protocol. The caller owns its transport connection.

Operations

execute(args: [...], connection: ...) accepts argv after otp. operations lists ten leaves: info, swap, ndef, delete, yubiotp, static, chalresp, calculate, hotp, settings. Empty args return local metadata, not a device query. Unknown flags/commands and credential argv raise.

Typed methods: info, swap, delete_slot, configure_ndef, settings, provision_yubiotp, provision_static, provision_hotp, provision_challenge_response, challenge_response, calculate, help, authors. Read runtime help for the full option contract.

Safe workflow

  1. Select the exact intended device using root transport selectors. Do not scan or open real hardware in default tests. A model name does not establish its supported/enabled applications.
  2. Read info without authentication. Firmware/status observations, not guessed credentials, gate slot operations. NDEF additionally checks actual NFC support.
  3. Require literal confirm: true for every write or calculation. --force is syntactic compatibility, not consent. Never provision to repair a vault-open failure, stale response, wrong slot or missing device.
  4. Supply secrets as raw in-memory key:, password:, private_id:, access_code: and new_access_code:. An explicit secret_provider receives a missing secret's Symbol. No implicit terminal reads or factory secrets. Generated material requires secret_sink.call(field, raw_secret). The sink is caller-controlled and must not log or publish secrets.
  5. challenge_response(connection:, challenge:, slot: 2, confirm: true) accepts 1–64 raw bytes and returns 20 raw HMAC-SHA1 bytes. It never hex-encodes, truncates to a TOTP or caches a response. Trailing zero challenges use distinct padding. USB calculation requires OTP HID; smartcard calculation is NFC-only.
  6. provision_challenge_response defaults to touch-required and performs a fresh native OpenSSL HMAC comparison against device output after programming and separate status readback. Its default return is :verified; details: true returns scoped verification metadata. execute ['chalresp', '2'] returns the metadata and follows prior CLI default of no touch unless --touch. --totp explicitly decodes supplied Base32 key text in memory; otherwise key_encoding defaults to raw. Keys 21–64 bytes cannot fit this application; longer HMAC keys are SHA1-shortened per HMAC.
  7. Check verification, not only verified. Other OTP credentials/settings have no secret/config export command: their verification is programming sequence and slot-state readback, not proof of keyboard output or secret equality. Known 5.0–5.4.2 smartcard zero-sequence responses are labeled firmware_quirk_slot_state; HMAC provisioning must still pass the cryptographic challenge comparison. Never claim that state metadata proves an NFC URI's emitted value. Failed or stale readback raises an uncertainty error; no write is automatically replayed.

Read the full file on GitHub · 98 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 · 98 lines · 21 tokens per session scan A eb1339af4dc6

Subscribe to this mod's changes

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

Related

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

pwn-plugins-yubikey-otp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-plugins-yubikey-otp0dayInc/pwnSkill102todayMITA21Claude 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