# Mantis Threat Model

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-google-mantis-mantis-threat-model`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [google](https://agentstack.voostack.com/s/google)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [google](https://github.com/google)
- **Source:** https://github.com/google/mantis/tree/main/mantis_threat_model
- **Website:** https://cloud.google.com/

## Install

```sh
agentstack add skill-google-mantis-mantis-threat-model
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Threat Modeler (/mantis_threat_model)

## 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.md` using
    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:

1.  **Read the Synthesized KB:**

    -   Read `workspace/kb/architecture.md` to 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.

2.  **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?

3.  **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](https://github.com/google)
- **Source:** [google/mantis](https://github.com/google/mantis)
- **License:** Apache-2.0
- **Homepage:** https://cloud.google.com/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-google-mantis-mantis-threat-model
- Seller: https://agentstack.voostack.com/s/google
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
