threat-report

threat-report is a cursor rule for Cursor from davidmatousek/tachi. It costs 39 tokens per session (9,999 once invoked), scanned B, original, Apache-2.0.

A report generator that turns structured threat-model findings into a written security report. It also creates attack-tree documents for severe findings and a prioritized plan for fixing risks.

In plain words
What is it for?
It is for producing threat reports from a threats.md file, including summaries, attack trees, risk themes, remediation priorities, effort estimates, and finding traceability.
Why use it?
It helps turn technical security findings into material that executives, security engineers, and project managers can use. It also connects reported risks to their attack paths and proposed remediation work.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is input_schema: ../../../schemas/output.yaml.

Good fit It is for producing threat reports from a threats.md file, including summaries, attack trees, risk themes, remediation priorities, effort estimates, and finding traceability.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/davidmatousek/tachi
agentmods
npx agentmods add rules/davidmatousek/tachi/threat-report

Made for: Cursor.

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 threat-report

README.md
[![agentmods](https://agentmods.dev/badge/rules/davidmatousek/tachi/threat-report.svg)](https://agentmods.dev/rules/davidmatousek/tachi/threat-report)
Your own site
<a href="https://agentmods.dev/rules/davidmatousek/tachi/threat-report"><img src="https://agentmods.dev/badge/rules/davidmatousek/tachi/threat-report.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,999 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00039 $0.09999
Opus 5 $0.00019 $0.04999
Sonnet 5 $0.00008 $0.02000
Haiku 4.5 $0.00004 $0.01000

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

Security

Grade B, and why

threat-report scanned grade B with 1 finding 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 3d 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.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

LLM2_leaf2["Craft document with adversarial instructions that override system prompt"]

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

adapters/cursor/rules/threat-report.mdc · 803 lines

How it starts

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

Metadata

category: report
input_schema: ../../../schemas/output.yaml
output_schema: ../../../schemas/report.yaml
output_files:
  - threat-report.md
  - attack-trees/{finding-id}-attack-tree.md
references:
  schemas:
    input: ../../../schemas/output.yaml
    output: ../../../schemas/report.yaml
    finding: ../../../schemas/finding.yaml
  templates:
    report: ../../../templates/tachi/output-schemas/threat-report.md

Threat Report Agent

Core Mission

You are the tachi threat report agent. Your mission is to transform the structured threat model output (threats.md) into a comprehensive narrative threat report that communicates risk posture, threat analysis, attack paths, and remediation priorities to diverse stakeholders — from CISOs presenting to boards, to security engineers planning remediation, to project managers converting findings into development tasks.

Your input is a single file: threats.md, produced by the orchestrator's Phase 4 (Assess). This file contains 7 sections plus Section 4a (Correlated Findings), conforming to ../../../schemas/output.yaml. You must not require any other input — you run in a fresh context with only threats.md.

Your output is:

  1. threat-report.md — A narrative report with 7 sections conforming to ../../../schemas/report.yaml and ../../../templates/tachi/output-schemas/threat-report.md
  2. attack-trees/{finding-id}-attack-tree.md — Standalone Mermaid attack tree files for every Critical and High finding

You are platform-neutral. You do not reference any specific agentic coding tool, IDE, or invocation framework. Your instructions work with any LLM capable of following structured markdown prompts.


Input Contract

You consume the complete threats.md file produced by the orchestrator. The structure is defined by ../../../schemas/output.yaml (v1.1). You must parse and use all sections.

Required Input Sections

Section Content Report Agent Usage
Section 1: System Overview Components, data flows, technologies Architecture Overview (Section 2 of report)
Section 2: Trust Boundaries Trust zones, boundary crossings, controls Architecture Overview (Section 2 of report)
Section 3: STRIDE Tables 6 category tables with findings Threat Analysis narrative (Section 3), Attack Trees (Section 5), Remediation Roadmap (Section 6), Appendix (Section 7)
Section 4: AI Threat Tables 2 category tables (AG, LLM) with findings Threat Analysis narrative (Section 3), Attack Trees (Section 5), Remediation Roadmap (Section 6), Appendix (Section 7)
Section 4a: Correlated Findings Cross-agent correlation groups Cross-Cutting Themes (Section 4), correlation handling in narrative, attack trees, and roadmap
Section 5: Coverage Matrix Component x category analysis coverage Executive Summary risk posture context
Section 6: Risk Summary Aggregate counts by risk level Executive Summary risk posture, Remediation Roadmap priority ordering
Section 7: Recommended Actions Prioritized finding list with mitigations Remediation Roadmap items (mitigation text preserved verbatim)

Read the full file on GitHub · 803 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. 3d ago First seen · 803 lines · 39 tokens per session scan B b52df10a87ba

Subscribe to this mod's changes

threat-report is a cursor rule published in the GitHub repository davidmatousek/tachi (90 stars, last pushed 25d ago), licensed Apache-2.0. It adds 39 tokens to every session and 9,999 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.