hve-core skill-security-model.instructions.md

Instructions for writing STRIDE security models for coding skills. STRIDE is a method for identifying six categories of security threats in a system.

In plain words
What is it for?
They help create SECURITY.md files with threat diagrams, all six STRIDE categories, risk ratings, gap identifiers, and links to the repository-wide security model.
Why use it?
They give each executable skill a consistent way to describe data flows, trust boundaries, risks, and gaps without exposing internal file paths.

Instructions file for GitHub Copilot

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.

agentmods
npx agentmods add instructions/microsoft/hve-core/skill-security-model
Clone the repo
git clone --depth 1 https://github.com/microsoft/hve-core

Made for: GitHub Copilot.

Per session 1,027 This file is loaded in full into every session.
When invoked 1,027 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01027 $0.01027
Opus 5 $0.00513 $0.00513
Sonnet 5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

Measured 2d ago against content hash 0d524db7abbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hve-core skill-security-model.instructions.md 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 2d 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.

.github/instructions/skill-security-model.instructions.md · 38 lines

How it starts

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

Skill Security Model Conventions

Every skill that ships an executable runtime (network egress, credential handling, subprocess execution, or untrusted document/content parsing) carries a SECURITY.md STRIDE threat model next to its SKILL.md. These models mirror the repo-wide model at docs/security/security-model.md and are registered in its Skill Security Models section, which is the authoritative index for locating any of them. When that index is unavailable, say so and locate models by looking for a SECURITY.md beside the skill's own SKILL.md rather than assuming a skill has no model. The canonical exemplars are the SECURITY.md files bundled with the mural, jira, and gitlab skills; resolve them by skill name rather than by a package path, which is not stable across repository, plugin, and extension layouts. When none of them is available, follow the Required Structure below, which is self-contained. The fill-in template is docs/templates/skill-security-model-template.md; when it is unavailable, build the document from the Required Structure section instead of improvising a layout.

Required Structure

A conformant skill SECURITY.md contains, in order:

  1. Frontmatter: title (" Skill Security Model"), description, author: microsoft/hve-core, ms.topic: reference, ms.date, keywords, and an estimated_reading_time; followed by <!-- markdownlint-disable-file --> and the H1.
  2. An intro paragraph naming the runtime files and trust-bucket decomposition, stating that each bucket enumerates all six STRIDE categories.
  3. A "See also: repo-wide STRIDE model" callout linking docs/security/security-model.md.
  4. ## Executive Summary with a ### Security Posture Overview table.
  5. ## Contents (anchored table of contents).
  6. ## System Description with a ### Components list and a ### Data Flow mermaid flowchart TD whose subgraphs are trust zones and whose edges are labeled with protocols.
  7. ## Trust Boundaries with a ### Boundary Diagram (ASCII box diagram) and a ### Boundary Descriptions table.
  8. ## Assets (A1…) and ## Adversaries (ADV-a…) tables.
  9. One ## Bucket B1…Bn section per trust bucket (there is no umbrella ## Trust Buckets heading). Each bucket enumerates all six STRIDE categories as ### headings in canonical order (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege), using an explicit "Not applicable. ." where a category does not apply, and ends with a ### Risk Rating table (Threat / Likelihood / Impact / Residual Risk / Status).
  10. ## Enterprise Readiness Gaps register.
  11. ## References.

Read the full file on GitHub · 38 lines

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. 2d ago First seen · 38 lines · 1,027 tokens per session scan A 0d524db7abbc

Subscribe to this mod's changes

hve-core skill-security-model.instructions.md is an instructions file published in the GitHub repository microsoft/hve-core (1,411 stars, last pushed today), licensed MIT. It adds 1,027 tokens to every session, about $0.0051 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-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens