pwn-plugins-yubikey-management

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

A Ruby interface for configuring YubiKey hardware and reading its device status. It covers USB, NFC, operating modes, lock codes, reset, and reboot operations.

In plain words
What is it for?
Use it to inspect version and transport information, configure USB or NFC access, change device mode, set a lock code, reset, or reboot a selected YubiKey.
Why use it?
It makes configuration changes explicit and reports observed device capabilities instead of guessing them from a model or firmware version.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect version and transport information, configure USB or NFC access, change device mode, set a lock code, reset, or reboot a selected YubiKey.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/management"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 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.00018 $0.01032
Opus 5.5 $0.00007 $0.00413
Sonnet 5.5 $0.00004 $0.00206
Haiku 4.5 $0.00002 $0.00103

Measured yesterday against content hash 2089eb55afa6, 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-management 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/management/SKILL.md · 81 lines

How it starts

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

PWN::Auth::YubiKey::Management

Native device information/configuration over OTP HID, management smartcard or CTAP vendor commands. No executable, subprocess, interpreter or network backend.

API and routing

execute(args: [...], connection: ...) takes argv after config. operations lists five prior leaves: usb, nfc, mode, set-lock-code, reset. Empty args return local metadata without device I/O. --force is not consent. Typed APIs: info, configure_usb, configure_nfc, set_mode, set_lock_code, reset, reboot, help, authors. See runtime help for exact options.

Procedure

  1. Select the exact device explicitly. info reads version, serial, transport capability masks, lock state, flags/timeouts, NFC restrictions, FIPS masks and reset metadata. Retain unknown raw TLVs; reject malformed/duplicate records and bound pagination. Do not infer all apps from a model or firmware version.
  2. On pre-4.1 firmware, report unavailable capability metadata explicitly and only expose observed USB product/interface information. On 4.x, do not trust the broken USB-enabled tag; 4.2.4 has a documented supported-mask correction.
  3. Application toggles and lock configuration require firmware 5.x plus observed capabilities. --enable/--disable may repeat. Unsupported apps, conflicting options, disabling all USB apps and missing lock metadata fail before a write. --list is read-only and cannot be combined with changes.
  4. Every write/reboot/reset requires literal confirm: true. Lock material is sixteen raw in-memory bytes via lock_code:/new_lock_code: or an explicit secret_provider.call(field). Never guess a credential. Generation requires secret_sink.call(:new_lock_code, bytes); never print the generated value.
  5. Write once, then read actual device information and compare requested fields. Any lost acknowledgment, mismatching readback or identity change raises an uncertainty error; never automatically resend. A lock flag verifies protection state, not export/equality of the lock secret.
  6. USB interface changes normally reboot and need an explicit reconnect callable before writing. It receives nonsecret prior identity metadata and must return a fresh handle to the exact device. The returned handle is closed after readback; the original connection remains caller-owned. Never rediscover or switch to the first available key. Serial-less reconnection must preserve the same observed explicit selector; missing/changed selectors fail uncertain. Use reboot: false only to intentionally defer activation; stored configuration readback is not active-interface proof.
  7. Legacy NEO/4 mode emits the four-byte little-endian mode/timeouts record. Reconnect after physical reinsertion and verify the observed USB product ID maps to exactly the requested interfaces. A CCID reader that provides no USB product ID cannot prove full legacy interface mode; fail uncertain rather than claim success. Legacy timeout values are not readable and are labeled so.
  8. Full-device reset is gated by Bio multi-protocol/PIV or reset-blocked capability metadata and smartcard transport, not assumed available on all YubiKeys. Verify the fresh reset-state field is cleared. data_erasure_verified: false is explicit: configuration metadata does not independently prove forensic erasure of every application credential. Use application-specific resets otherwise.
  9. NFC restriction is available from firmware 5.7 and lasts until USB power. Disabling the currently used NFC path needs a separately usable readback path; absence or lost connectivity is uncertainty, never verified completion.

Read the full file on GitHub · 81 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 · 81 lines · 18 tokens per session scan A 2089eb55afa6

Subscribe to this mod's changes

pwn-plugins-yubikey-management is a skill published in the GitHub repository 0dayInc/pwn (102 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,032 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-management compared with skills from other repositories

pwn-plugins-yubikey-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-plugins-yubikey-management0dayInc/pwnSkill102todayMITA18Claude 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