determine-threat-model

Builds a threat model artifact mapping entry points, trust boundaries, and sensitive data paths.

2|Updated Mar 7, 2025
One-click install
npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill determine-threat-model-abdelrhmanuzaki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: determine-threat-model
Source: https://github.com/AbdelrhmanUZaki/KnowledgeNuggets/tree/main/2-setup/shared/gemini/antigravity-ide/plugins/Google.securecoder.securecoder/skills/determine_threat_model
Command: npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill determine-threat-model-abdelrhmanuzaki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Security scanner results lack context, making it hard to tell real vulnerabilities from false positives. This Skill produces a structured threat model of a repository or component so findings can be evaluated against actual entry points, trust boundaries, and deployment context. ## Core Features & Use Cases - Entry Point Mapping: Identifies HTTP endpoints, CLI arguments, file inputs, environment variables, and other untrusted input sources with their validation status. - Trust Boundary Analysis: Documents authentication, authorization, and implicit trust assumptions across the component. - Finding Disposition: Classifies scanner findings as True Positive, False Positive, or Needs Manual Review with a one-line rationale. - Use Case: Before triaging a SAST report on an unfamiliar microservice, generate a threat model that gets written into the ## Security Threat Model section of implementation_plan.md, which downstream security skills use for prioritization. ## Quick Start Ask the assistant to build a threat model for this repository and write it into the implementation plan.

Frequently Asked Questions about determine-threat-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a threat model for a code repository?▼

Threat modeling a repository involves identifying the component's purpose, mapping untrusted entry points like HTTP endpoints and CLI arguments, documenting trust boundaries and auth assumptions, and tracing sensitive data flows. The result is written as a structured Security Threat Model section in implementation_plan.md.

How to tell if a scanner finding is a false positive?▼

Evaluate each finding against the threat model: check whether the flagged code is reachable from an untrusted entry point, whether existing auth or trust boundaries mitigate the risk, and whether it is exploitable in the actual deployment context. Classify it as True Positive, False Positive, or Needs Manual Review.

What should a threat model document include?▼

A threat model should include a component overview, a table of entry points with trust and validation status, authentication and authorization assumptions, sensitive data paths, privileged actions with their guards, priority review areas, and dispositions for scanner findings.

When should I not use threat modeling for a task?▼

Threat modeling is not appropriate for general code modifications or non-security tasks. It is intended for security reviews, scanner finding triage, and producing security overviews of new or unfamiliar components.

How does a threat model help prioritize security fixes?▼

It ranks review areas by risk: untrusted input with insufficient validation first, then privileged actions like shell execution and file I/O, then trust boundary crossings without auth checks, and finally sensitive data handling. Downstream skills read this context to prioritize fixes and audit reports.