stride-threat-model

stride-threat-model is a skill for Codex from Eliyce/paqad-ai. It costs 25 tokens per session (656 once invoked), scanned A, original, MIT.

A STRIDE-based threat-modeling guide for listing how a project could be attacked before detailed security checks begin. STRIDE is a framework covering threats such as impersonation, data tampering, information leaks, and denial of service.

In plain words
What is it for?
Use it to inventory data, tokens, sessions, user actions, background jobs, and integrations, then map possible threats across project modules.
Why use it?
It gives security findings a complete structure and connects individual issues to the assets and threats they affect.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inventory data, tokens, sessions, user actions, background jobs, and integrations, then map possible threats across project modules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliyce/paqad-ai/stride-threat-model
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 Eliyce/paqad-ai --skill stride-threat-model
Clone the repo
git clone --depth 1 https://github.com/Eliyce/paqad-ai

Made for: 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 stride-threat-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliyce/paqad-ai/stride-threat-model/github.svg)](https://agentmods.dev/skills/eliyce/paqad-ai/stride-threat-model)
Your own site
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/stride-threat-model"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/stride-threat-model/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 stride-threat-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/stride-threat-model"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/stride-threat-model.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 656 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.00656
Opus 5 $0.00013 $0.00328
Sonnet 5 $0.00005 $0.00131
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade A, and why

stride-threat-model 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/list-modules.sh, scripts/validate-threats.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

runtime/capabilities/security/skills/stride-threat-model/SKILL.md · 63 lines

How it starts

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

What It Does

Runs STRIDE threat enumeration across all project modules before any scripted checks execute. Every downstream finding produced in Steps 2–4 must map back to a STRIDE category from this inventory, giving the final report a coherent threat narrative instead of a list of isolated issues.

Use This When

Use this as the first skill in Step 1 so all subsequent skills have a threat inventory to reference. Always run it — even for small projects.

Inputs

  • Read all module docs to identify assets (data stores, tokens, sessions, API keys, user actions, background jobs, external integrations).
  • Read references/stride-checklist.md before starting enumeration.

Procedure

  1. Run scripts/list-modules.sh to enumerate canonical module slugs.
  2. For each module, identify assets (data entities, user-facing actions, background jobs, external integrations, tokens/sessions).
  3. Walk every STRIDE category in assets/stride-prompts.txt against each asset; never skip a category silently.
  4. Build the inventory per assets/output.template.json and write it to .paqad/pentest/runs/<run_id>/artifacts/stride-threats.json.
  5. Validate with scripts/validate-threats.sh — enforces required fields, allowed STRIDE category, severity vocabulary, ≤50 entries, and rejects generic/boilerplate threat descriptions.
  6. Downstream skills (input-validation-review, auth-mechanism-review, permission-boundary-review, finding-normalizer) consume this inventory.

Output Contract

  • Match assets/output.template.json: JSON array of { module, asset, stride_category, threat_description, severity_hint } entries.
  • stride_categoryspoofing | tampering | repudiation | information-disclosure | denial-of-service | elevation-of-privilege.
  • severity_hintcritical | high | medium | low.
  • Cap at 50 entries ordered critical → high → medium.
  • Output must pass scripts/validate-threats.sh (exit 0).

Escalate / Stop Conditions

  • Ask when module docs do not describe any assets or workflows — cannot enumerate threats without context.
  • Warn when no module docs exist at all — fall back to enumerating threats from route inventory alone.
  • Do not produce generic STRIDE boilerplate; every threat entry must name a specific module, asset, or route.

Read the full file on GitHub · 63 lines

Files

What ships with it

6 files 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. 9d ago First seen · 63 lines · 25 tokens per session scan A bd4bebb47daf

Subscribe to this mod's changes

stride-threat-model is a skill published in the GitHub repository Eliyce/paqad-ai (8 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 656 once invoked, about $0.0001 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-09-03.