modeling-threats

modeling-threats is a skill for Claude Code from wahidyankf/ose-public. It costs 45 tokens per session (854 once invoked), scanned A, original, MIT.

A short design review for identifying what must be protected, where trust changes, and how design choices could create or prevent attacks.

In plain words
What is it for?
Use it to list assets, mark trust boundaries between users, services, processes, and stores, and record threats beside architecture decisions.
Why use it?
It helps teams consider security before code is written, rather than discovering unsafe data flows or entry points later.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to list assets, mark trust boundaries between users, services, processes, and stores, and record threats beside architecture decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wahidyankf/ose-public/modeling-threats
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 wahidyankf/ose-public --skill modeling-threats
Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

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 modeling-threats

README.md
[![agentmods](https://agentmods.dev/badge/skills/wahidyankf/ose-public/modeling-threats/github.svg)](https://agentmods.dev/skills/wahidyankf/ose-public/modeling-threats)
Your own site
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/modeling-threats"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/modeling-threats/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 modeling-threats

Your own site · 80×15
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/modeling-threats"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/modeling-threats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 854 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.00045 $0.00854
Opus 5.5 $0.00018 $0.00342
Sonnet 5.5 $0.00009 $0.00171
Haiku 4.5 $0.00005 $0.00085

Measured 1mo ago against content hash c42cfb52d59c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modeling-threats 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 1mo 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.

.agents/skills/modeling-threats/SKILL.md · 70 lines

How it starts

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

Modeling Threats

The standards own the rules. Developing Applications places validation where trust ends, No Secrets in Tracked Files keeps credentials out of the repository, and Architecture Decision Records records a decision and its consequences. This skill covers the judgement a design needs before those apply: what an attacker could do with the shape being chosen.

Name What Is Worth Protecting

List the assets the design touches: stored data, credentials and tokens, the ability to act as a user, money or quota, and the availability of the service itself. An asset nobody named is one no later choice protects. Keep the list to what this change adds or reaches; a model of the whole system is a different, larger piece of work.

Draw the Trust Boundaries

A trust boundary is wherever data or control passes between parties that trust each other differently: a user and the service, the service and a third party, one tenant and another, a process and the store it writes. Mark each boundary the design crosses, and the direction data moves across it. A boundary drawn after the code exists is usually drawn where the code happens to be, not where trust actually changes.

Walk Each Entry Point

For every entry point the design adds or changes — a request handler, a message consumer, a file it reads, a command it accepts — ask the six questions in turn:

Question The threat it names
Can a caller claim to be someone else? spoofing
Can input or stored data be altered en route? tampering
Can an action be denied after the fact? repudiation
Can data reach someone it should not? information disclosure
Can a caller exhaust or stall the service? denial of service
Can a caller gain rights it was not given? elevation of privilege

Read the full file on GitHub · 70 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. 1mo ago First seen · 70 lines · 45 tokens per session scan A c42cfb52d59c

Subscribe to this mod's changes

modeling-threats is a skill published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 854 once invoked, about $0.0002 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-10-14.

Related

modeling-threats compared with skills from other repositories

modeling-threats next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modeling-threatswahidyankf/ose-publicSkill12todayMITA45Claude Code
addvercel/turborepoSkill31ktodayMITA48Claude Code, Codex
nx-plugin-for-awsawslabs/nx-plugin-for-awsSkill155todayApache-2.0A46Claude Code
frontmcp-setupagentfront/frontmcpSkill154todayApache-2.0A176Claude Code, Codex
investigate-cloudflarebrandhaug/b2b-saas-starterSkill56todayMITA45Claude Code, Codex
implementbrandhaug/b2b-saas-starterSkill56todayMITA22Claude Code, Codex
configure-cloudflare-monitoringbrandhaug/b2b-saas-starterSkill56todayMITA52Claude Code, Codex