pwn-plugins-yubikey-security-domain-scp

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

A Ruby wrapper for SCP03 and SCP11 secure APDU channels used with YubiKeys. APDU is the command-and-response format used by smart cards and similar security devices.

In plain words
What is it for?
It helps establish verified SCP03 or SCP11 connections and exchange protected APDU commands, while invalidating the channel after authentication failure or uncertain communication.
Why use it?
It handles authenticated encryption, certificate or key trust, counters, and message checks without requiring callers to implement the secure channel themselves.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps establish verified SCP03 or SCP11 connections and exchange protected APDU commands, while invalidating the channel after authentication failure or uncertain communication.

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

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

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

Measured yesterday against content hash 377e61f5bbb5, 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-scp 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/scp/SKILL.md · 47 lines

What it actually says

SCP channel implementation

Prefer SecurityDomain.secure_connection to direct SCP.open. Both require explicit keys and literal confirmation; see the parent SecurityDomain skill for in-memory key and certificate options. Public-key pins and certificates are explicit trust decisions: do not discover a card key and silently pin it. Pass unencrypted PEM/DER or already-decrypted OpenSSL key objects; this module never prompts a terminal for encrypted-PEM passwords. This module never discovers devices or spawns executables. Returned APDU wrappers retain verified status words, serialize counter/MAC updates and invalidate themselves after any uncertain exchange or authentication failure. Do not reuse an underlying connection after handshake failure, and never replace a failed channel with plaintext I/O.

SCP03 supports YubiKey S8/AES128: derives S-ENC/S-MAC/S-RMAC, verifies the full card cryptogram, authenticates the host at security level 0x33, uses CBC with counter-derived IVs and ISO7816 padding, and verifies R-MAC before decryption. SCP11a/b/c use native OpenSSL EC agreement, SHA256 X9.63 KDF and receipt CMAC; certificate trust is explicit, not silently bypassed. CA validation is offline and does not retrieve CRLs/OCSP. No guaranteed memory erasure is claimed.

The descriptor advertises extended_apdu: true. The shared Protocol layer must honor this before command chaining: upstream SCP wraps the whole command before transport fragmentation, not each plaintext chunk. The wrapper accepts short and extended input and upgrades encrypted payloads over 255 bytes to extended frames. Transport 61xx fragments are collected with raw GET RESPONSE before one R-MAC verification, preserving the counter/MAC chain. This is continuation retrieval, never authentication failure fallback. Fragment count, total response size and elapsed time are bounded. Noncanonical receipt encodings and padding longer than one AES block fail closed.

References: GlobalPlatform Card Specification 2.3 Amendments D/F; official Yubico yubikit 5.9.1 core/smartcard/scp.py and smartcard/init.py. Tests use RFC 4493 known vectors and independent synthetic card-side cryptographic transcripts, not implementation-produced fixture outputs or real secrets.

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 · 47 lines · 25 tokens per session scan A 377e61f5bbb5

Subscribe to this mod's changes

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

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