security-privacy-threat-modeling

security-privacy-threat-modeling is a skill for Claude Code, Codex from KyaniteLabs/checkyourself. It costs 64 tokens per session (1,845 once invoked), scanned A, original, Apache-2.0.

A guide for finding security and privacy risks in applications, APIs, infrastructure, and AI systems. It covers threat modeling, which maps assets, users, trust boundaries, and ways an attacker could cause harm.

In plain words
What is it for?
Use it for secure code reviews, OWASP checks, API validation, XSS, CSRF, SSRF, encryption, security headers, audit logging, and security release gates.
Why use it?
It helps identify dangerous data flows, exposed secrets, injection flaws, abuse cases, and privacy problems before release.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for secure code reviews, OWASP checks, API validation, XSS, CSRF, SSRF, encryption, security headers, audit logging, and security release gates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling
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 KyaniteLabs/checkyourself --skill 07-security-privacy-threat-modeling
Clone the repo
git clone --depth 1 https://github.com/KyaniteLabs/checkyourself

Made for: Claude Code, Codex.

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 security-privacy-threat-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling/github.svg)](https://agentmods.dev/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling"><img src="https://agentmods.dev/badge/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling/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 security-privacy-threat-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling"><img src="https://agentmods.dev/badge/skills/kyanitelabs/checkyourself/07-security-privacy-threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,845 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.00064 $0.01845
Opus 5 $0.00032 $0.00923
Sonnet 5 $0.00013 $0.00369
Haiku 4.5 $0.00006 $0.00185

Measured 11d ago against content hash 8a8ff69744d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

security-privacy-threat-modeling 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 11d ago.

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.

90_ADVANCED/capabilities/07-security-privacy-threat-modeling/SKILL.md · 131 lines

How it starts

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

security-privacy-threat-modeling

Find and reduce application, API, infrastructure, privacy, and AI security risks before release.

Operating contract

Act as a production hardening specialist for 07 Security & Privacy. Use model-agnostic reasoning: no instruction, output, or workflow in this capability depends on a particular model vendor or agent runtime. Prefer deterministic evidence over persuasive prose. When evidence is missing, name the assumption and make it visible in the output.

When to activate

Use this capability for threat modeling, secure code review, OWASP risk review, API abuse, input/output validation, injection, XSS, CSRF, SSRF, deserialization, security headers, encryption, secrets exposure, audit logging, privacy-by-design, or security acceptance gates.

Inputs to request or inspect

  • architecture
  • data flows
  • code diff
  • API contracts
  • identity model
  • deployment topology
  • data classification

Work protocol

  1. Identify assets, actors, trust boundaries, data flows, high-value actions, and abuse cases before listing controls.
  2. Map risks to application, API, data, infrastructure, supply-chain, privacy, and AI-specific categories as applicable.
  3. Trace untrusted input to dangerous sinks: database, shell, template, file, network, browser, model prompt, logs, and external APIs.
  4. Design controls in layers: validation, output encoding, authorization, isolation, rate limits, secure defaults, logging, and recovery.
  5. Prefer deterministic controls and tests over prompt-only or policy-only promises.
  6. Translate findings into owner, severity, exploit path, fix, verification, and release decision.

Required output format

Return a concise report with these sections unless the user requested a concrete file or code diff:

  1. Scope interpreted — what is in and out.
  2. Findings / decisions — ordered by production risk, not by discovery order.
  3. Recommended actions — owner-ready tasks with priority and rationale.
  4. Verification evidence — tests, scans, contracts, telemetry, commands, or review steps required.
  5. Residual risk / assumptions — what remains uncertain and how to resolve it.
  6. Hand-offs — other capabilities that should review the work.

Read the full file on GitHub · 131 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. 11d ago First seen · 131 lines · 64 tokens per session scan A 8a8ff69744d1

Subscribe to this mod's changes

security-privacy-threat-modeling is a skill published in the GitHub repository KyaniteLabs/checkyourself (5 stars, last pushed 4d ago), licensed Apache-2.0. It adds 64 tokens to every session and 1,845 once invoked, about $0.0003 per session on Opus 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-08-31.