pwn-auth-yubikey-piv

pwn-auth-yubikey-piv is a skill for Claude Code from 0dayInc/pwn. It costs 26 tokens per session (376 once invoked), scanned A, original, MIT.

A Ruby interface to the PIV application on a YubiKey. PIV is a smart-card standard used for identity credentials, signing, and encryption.

In plain words
What is it for?
Use it to authenticate, verify PINs, sign, decrypt, calculate secrets, and inspect available PIV operations.
Why use it?
It provides direct access to PIV operations without using a separate executable, while exposing authentication and PIN checks explicitly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to authenticate, verify PINs, sign, decrypt, calculate secrets, and inspect available PIV operations.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/piv"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/piv.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 376 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.00026 $0.00376
Opus 5.5 $0.00010 $0.00150
Sonnet 5.5 $0.00005 $0.00075
Haiku 4.5 $0.00003 $0.00038

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

Security

Grade A, and why

pwn-auth-yubikey-piv 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/piv/SKILL.md · 56 lines

What it actually says

PWN::Auth::YubiKey::PIV

Native PIV application. Wire reference: NIST SP 800-73 and Yubico yubikey-manager 5.9.1, yubikit/piv.py and ykman/{piv,_cli/piv}.py. Those sources are specifications only; no executable backend is used.

When to use

Call PWN::Auth::YubiKey::PIV from pwn_eval when the task needs this module. Do not reimplement it in shell.

Methodologies

Generated from pwn/auth/yubikey/piv.rb. Prefer the public class methods below. Class methods take (opts = {}) and read opts.

How to call

PWN::Auth::YubiKey::PIV.help
PWN::Auth::YubiKey::PIV.execute(opts)

Public methods

  • execute
  • authenticate
  • verify_pin
  • sign
  • decrypt
  • calculate_secret
  • verify_uv
  • verify_temporary_pin
  • operations
  • authors
  • help

Source

pwn/auth/yubikey/piv.rb

Verification

PWN::Auth::YubiKey::PIV.respond_to?(:execute) after the module is loaded. Read the source for parameter names.

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 · 56 lines · 26 tokens per session scan A 130fd59414d3

Subscribe to this mod's changes

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

pwn-auth-yubikey-piv next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-auth-yubikey-piv0dayInc/pwnSkill102todayMITA26Claude 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