pwn-plugins-yubikey-security-domain

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

A Ruby interface for managing YubiKey Security Domain keys and secure channels. These channels protect smart-card commands using shared keys or certificates and reject failed or uncertain exchanges.

In plain words
What is it for?
It helps establish SCP03 or SCP11 secure connections, exchange APDU commands with a YubiKey, and close the channel after authentication or communication failures.
Why use it?
It keeps key and certificate material out of command lines, environment variables, logs, and subprocesses, while requiring explicit trust and confirmation before authentication.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps establish SCP03 or SCP11 secure connections, exchange APDU commands with a YubiKey, and close the channel after authentication or communication failures.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/security_domain"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/security_domain.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,021 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.01021
Opus 5.5 $0.00008 $0.00408
Sonnet 5.5 $0.00004 $0.00204
Haiku 4.5 $0.00002 $0.00102

Measured yesterday against content hash 8360e2e3f25b, 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-security-domain 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/security_domain/SKILL.md · 76 lines

How it starts

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

Native Security Domain

Use operations, help, execute(args: ..., connection: ...) and secure_connection(connection: ..., scp: ..., kvn: ..., confirm: true). Key and certificate values stay in Ruby/OpenSSL memory, never command-line arguments, environment variables, logs or subprocesses. No factory keys are assumed. Never print key objects, raw APDUs, or key-bearing options.

Secure connection

  • SCP03: explicit 16-byte key_enc, key_mac, optional key_dek binary Strings.
  • SCP11a/b/c: explicit card_public_key EC pin, or trusted ca_certificates Array of X509 objects/PEM/DER; card_certificates is optional leaf-last chain. With only CA anchors, fetch the card bundle and verify it before authentication.
  • SCP11a/c additionally require oce_private_key and leaf-last oce_certificates; optional oce_kid and oce_kvn identify the card's OCE CA key.
  • Every handshake requires literal confirm: true. The returned connection provides exchange(protocol: :apdu, data:, timeout:), descriptor, close.
  • Receipt/card cryptogram failure, malformed response, bad R-MAC, uncertain I/O, or exhausted counter closes the channel. No plaintext retry or fallback.
  • SCP11b authenticates the card only. SCP11c does not grant SD administrative privilege. Use SCP03 or SCP11a for SD writes.

Administrative operations

execute implements info, reset, keys generate, keys import, keys export, keys delete, keys set-allowlist, keys set-certificate, and keys set-ca-issuer. Group paths only return local help metadata.

Pass KID/KVN as exact unsigned decimal or 0x hexadecimal argv tokens. Imports and generation require KVN 1..127. KID 1 imports the complete SCP03 keyset from key_enc, key_mac, key_dek; KID 0x11/0x13/0x15 imports an EC key; KID 0x10/0x20..0x2f imports an EC public key or CA certificate. All key wrapping uses the authenticated session DEK. KCV verification is mandatory. Private-key imports may include a matching leaf-last certificates bundle; ski sets an explicit CA issuer identifier, and CA certificate SKI is extracted when available. These are multiple card writes, not an atomic transaction; do not retry automatically after any failure.

Read the full file on GitHub · 76 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 76 lines · 21 tokens per session scan A 8360e2e3f25b

Subscribe to this mod's changes

pwn-plugins-yubikey-security-domain 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,021 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-security-domain compared with skills from other repositories

pwn-plugins-yubikey-security-domain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-plugins-yubikey-security-domain0dayInc/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