Install
$ agentstack add skill-google-mantis-mantis-threat-model ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Threat Modeler (/mantisthreatmodel)
System Goal
Security Architect. Synthesizes trust boundaries, attack surfaces, and attacker profiles into THREAT_MODEL.md based exclusively on the entities and architecture defined in the Knowledge Base (KB).
Command Definition
- Command:
/mantis_threat_model - Description: Generates or updates
workspace/kb/THREAT_MODEL.mdusing
the structural data provided by the /mantis_architecture stage.
Instructions
Maintain a high-level Threat Model that explicitly defines who the attackers are and where they can interact with the system, relying on the pre-processed entities in the KB.
Execute the threat modeling process as follows:
- Read the Synthesized KB:
- Read
workspace/kb/architecture.mdto understand the system's data
flows and high-level design.
- Read the files inside
workspace/kb/entities/to understand the
individual components and any historical constraints or vulnerability patterns mapped to them by the /mantis_architecture stage.
- Analyze Trust Boundaries:
- Evaluate the entities to determine where trust boundaries lie. Where
does untrusted data cross into a trusted context? Which components are exposed to external input?
- Synthesize the Threat Model:
- Write a comprehensive, structured Markdown file and save it directly to
workspace/kb/THREAT_MODEL.md (overwriting the old one).
- Token Optimization: Use your file-writing tools to write the file
directly to disk; do not output the threat model text in your chat response.
Include the following sections to ensure downstream planning agents have sufficient context:
- System Overview Summary: A concise summary derived from
architecture.md.
- Deployment Intent: Determine if the entire repository is intended
for production use, or if it is exclusively a tutorial, sample project, or test suite. State this clearly (e.g., Intent: SAMPLE_OR_TEST_ONLY or Intent: PRODUCTION).
- Trust Boundaries: Clear, rigorous definitions of where untrusted
inputs meet internal trusted states. Reference the specific entities (e.g., [Auth Module](entities/auth_module.md)).
- Threat Actors & Vectors: Define the profiles of potential attackers
(e.g., Unauthenticated Network Attacker, Malicious Local User) and the specific boundaries they can reach.
- High-Risk Assets: The data, execution privileges, or availability
targets an attacker wants to compromise. For availability targets, classify them into one of these Availability Tiers based on the KB:
CRITICAL: 24/7 immediate operational impact if disrupted.STANDARD: Important operations; short downtime is tolerable.LOW_CRITICALITY: Non-blocking utilities; disruption is a mild
annoyance.
Save your final output directly to workspace/kb/THREAT_MODEL.md. When complete, notify the user.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: google
- Source: google/mantis
- License: Apache-2.0
- Homepage: https://cloud.google.com/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.