> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Threat Model

> Generate and maintain a shared model of your environment, attack surface, and visibility gaps.

Open **Knowledge > Threat Model** to see the versioned model of your organization's environment. Use it to document what you run, where the trust boundaries are, and where you have telemetry or detections. It is based on the data Cotool can access, not a complete inventory.

## Generate or update the model

**1. Connect your sources**

Connect relevant sources in [Integrations](https://docs.cotool.ai/integrations/overview.md) and
verify that their data is available. If you use Cotool's first-run
setup, Cotool queues the initial model after you connect cloud,
identity, and code sources and gives initial logs time to arrive.

**2. Generate the model**

In **Threat Model**, users with permission to create agents can select
**Generate** or **Regenerate**. Generation runs in the background.
Cotool also checks periodically whether the model needs refreshing.

**3. Review each section**

Review **Environment**, **Attack Surface**, and **Visibility & Gaps**
against your sources. A gap can mean a source was unavailable or not
connected; it does not prove a system or control is absent.

**4. Correct and add information**

Select **Edit** to correct or add information in Markdown, then
**Save**. Manual edits and regeneration create new versions. Review what
changed after regeneration, especially if you previously edited the
model.

Use **Version history** to inspect an earlier version and **Back to current** to return. **Download** exports the displayed version as PDF or Markdown.

> [!WARNING]
>
> Treat exports as sensitive: they can describe architecture, security
> controls, and visibility gaps.

## Use the model in agents

Cotool keeps a read-only `threat-model` [skill](https://docs.cotool.ai/agents/skills.md) in sync with the current version. It is available to chats and automatically linked to your default response agent. For another saved agent, check its **Skills** setting and attach `threat-model` if needed.

> [!NOTE]
>
> Edit the document in **Threat Model**, not in the skill.

Ask the agent to consult the model for relevant trust boundaries and known telemetry gaps, then verify findings against live evidence. The model supplies context; it does not grant tool access.

## Related

> [card] [Skills](https://docs.cotool.ai/agents/skills.md)
>
> Package reusable instructions, supporting resources, and tool
> requirements.

> [card] [Integrations](https://docs.cotool.ai/integrations/overview.md)
>
> Find, connect, and manage integrations and log sources in Cotool.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.