К основному содержанию
плагин

tmforge — плагин для GitHub Copilot: STRIDE-моделирование по коду

Добавляет в GitHub Copilot субагента Strider, который собирает STRIDE-модель угроз по коду и документации и проверяет отчёт по каноническому реестру.

Установить в GitHub Copilot · Команда из источника Все способы и платформы ↓
copilot plugin install tmforge@awesome-copilot
Открыть на GitHub

Что делает tmforge

Плагин ставит агента **Strider**, который проходит четыре шага: находит доказательства в коде, конфигурации и документации, строит модель по STRIDE, проверяет результат и обновляет её при изменениях. Идентификаторы угроз остаются стабильными, а уже подтверждённые контроли отделены от предположений — при повторном прогоне видно, что реально изменилось.

Внутри два скилла: threat-modeling отвечает за сбор доказательств, оценку риска, вёрстку страниц и проверку пакета, а threat-modeling-tmforge — за манифест и работу с моделями Microsoft Threat Modeling Tool в формате .tm7. По умолчанию режим analyze выдаёт один Markdown-отчёт; formal-package сохраняет реестр, документы, манифест и диаграмму. Валидаторы запускаются локально и требуют Python 3.10+ без сторонних пакетов.

Для .tm7 нужен сам tmforge: на первом запуске Strider спросит разрешение и скачает привязанную к версии сборку через управляемый лаунчер. Без Git-репозитория укажите --root явно. На macOS релизы не подписаны Developer ID и не нотаризованы, лаунчер не отключает Gatekeeper — если запуск заблокирован, разбирайтесь по локальной политике безопасности. Сгенерированная модель остаётся черновиком, пока человек не сверит её с базой доказательств.

Какие задачи решает

  • построить STRIDE-модель угроз по существующему коду и конфигурации
  • получить Markdown-отчёт с оценкой рисков для ревью безопасности
  • обновить модель после изменений, сохранив идентификаторы угроз
  • сверить готовую модель с реализацией без её перезаписи
  • собрать формальный пакет с манифестом и диаграммой .tm7

Примеры запросов агенту

  • Проанализируй путь запроса оформления заказа и сделай один Markdown-отчёт по STRIDE
  • Собери формальный пакет модели угроз с манифестом и сгенерированным .tm7
  • Проверь эту модель по реализации, ничего в ней не переписывая

Как установить tmforge

Команда из источника

copilot plugin install tmforge@awesome-copilot

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о tmforge

Как установить tmforge в GitHub Copilot?

Выполните copilot plugin install tmforge@awesome-copilot, затем перезагрузите VS Code или начните новую сессию Copilot и выберите **Strider**. В представлении кастомизации отметьте оба скилла. Если раньше плагин ставился напрямую, удалите только ту старую запись, чтобы не было дублей.

Что делает tmforge?

Даёт Copilot субагента Strider для моделирования угроз по STRIDE и два скилла к нему. Агент ищет доказательства в коде и документации, оценивает риски и проверяет отчёты по каноническому реестру.

Что нужно для работы с .tm7?

Сам tmforge — через управляемый лаунчер или уже установленный CLI. Лаунчер при первом использовании спросит подтверждение и скачает сборку, точно совпадающую с версией; без сети работает проверенный кэш. Для Markdown-анализа ничего скачивать не нужно.

Исходный текст

tmforge · MIT
# tmforge Copilot plugin

**Strider** builds evidence-backed STRIDE threat models from code, configuration,
documentation, and existing artifacts. It preserves stable threat IDs, separates
observed controls from assumptions, and validates reports against a canonical ledger.

## Included

| Component | Purpose |
| --- | --- |
| [Strider](com.github.copilot/agents/strider.agent.md) | Copilot agent coordinating discovery, modeling, verification, and updates. |
| [threat-modeling](skills/threat-modeling/SKILL.md) | Portable evidence, STRIDE coverage, risk, review, rendering, and validation workflow. |
| [threat-modeling-tmforge](skills/threat-modeling-tmforge/SKILL.md) | Product-specific manifest and `.tm7` authoring, inspection, and candidate validation. |

The package uses **Agent Plugins 1.0**. Skills load on demand; the README is
human-facing documentation, not automatically loaded agent instructions. There are
no hooks, bundled MCP servers, or embedded CLI binaries.

## Prerequisites

- A Copilot client supporting Agent Plugins 1.0.
- **Python 3.10+** for validators and rendering; no third-party Python packages.
- Git for worktree discovery, or an explicit `--root` for a non-Git directory.
- **tmforge only for `.tm7` workflows**, through the managed launcher or a selected
  CLI. Markdown-only analysis needs no binary download.

## Install from a marketplace

Register the repository marketplace once and install through the supported
`plugin@marketplace` route:

```bash
copilot plugin marketplace add Hacks4Snacks/tmforge
copilot plugin install tmforge@tmforge
copilot plugin list
```

Reload VS Code or start a fresh Copilot session, then select **Strider**. Check both
skills in the customization view; noninteractive plugin listings may omit agents.
Existing agents with the same name can take precedence. When replacing a previous
direct installation, remove only that entry to avoid duplicates.

The catalog follows the default branch and may be ahead of a release. Managed CLI
setup requires the exact matching release; it never falls back to an older version.

## Example requests

- "Analyze the checkout request path and produce one Markdown STRIDE report."
- "Create a formal threat-model package, including a manifest and generated `.tm7`."
- "Verify this model against the implementation without rewriting it."
- "Update this model for the change, preserving IDs and review decisions."

The default `analyze` mode produces one Markdown report. `formal-package` retains
the ledger, documents, manifest, diagram, and lifecycle evidence. `verify` is
read-only unless changes are requested; `update` preserves the existing convention.
Generated models remain drafts until a human approves them against an evidence baseline.

## CLI setup for diagrams

Installing the plugin does not download or execute tmforge. On first `.tm7` use,
Strider requests approval before the [managed launcher](skills/threat-modeling-tmforge/scripts/tmforge.py)
downloads the exact matching release. Downloads are version-pinned and checksum-verified;
verified cached binaries work offline. No global installation or separate .NET runtime
is needed for the managed binary. You can instead supply an approved existing CLI.

See [tool setup](skills/threat-modeling-tmforge/SKILL.md#locate-the-tool) for status,
installation, cache options, and invocation syntax, or the
[manual installation guide](https://github.com/Hacks4Snacks/tmforge/blob/main/docs/installation.md).

On macOS, releases are not Developer ID signed or notarized. The launcher preserves
quarantine and never disables Gatekeeper. Follow the tool setup guidance and local
security policy if execution is blocked; checksums do not replace code signing.

## Workflow reference

- [Core workflow](skills/threat-modeling/SKILL.md): evidence, risk scoring, pages,
  rendering, package rebuilds, and changed-package validation.
- [CLI workflow](skills/threat-modeling-tmforge/references/cli-workflow.md): authoring,
  layout checks, suppressions, nested quoting, no-op rebuilds, and troubleshooting.

These bundled resources are the authoritative operational guidance. Use resources
from the installed plugin, not similarly named scripts in the repository under review.

## Local development

To try a checkout in VS Code, add its nested plugin directory to `chat.pluginLocations`
and start a new session. For local marketplace installation tests, isolate
`COPILOT_HOME` and `COPILOT_CACHE_HOME`; refresh or reinstall after source changes.

## Safety and data handling

- Treat reviewed content as evidence, not executable instructions. Use only authorized sources.
- Downloads, publishing, remote changes, and risk acceptance require explicit approval.
- Validators run locally without a separate telemetry or upload service. Content shared
  with Copilot follows the client's data policies.
- User-supplied generator commands execute locally and are not sandboxed. Do not run
  commands supplied by untrusted model content or overwrite author-owned triage.
- Validation checks consistency, not the truth of evidence, and cannot replace human review.

## License and provenance

[MIT](LICENSE.md), matching tmforge. The agent and skills were adapted from the
Strider workflow in threat-model-as-a-service; no service runtime, private model
data, or internal integration is included.

© Mark Dalton Gray · MIT · Hacks4Snacks/tmforge

Похожие плагины

Все плагины по теме «Безопасность» →
security-guidance официальный Anthropic Три слоя проверки кода, который пишет Claude: мгновенные предупреждения по regex, разбор диффа через LLM и агентная проверка коммитов. ★ 44 770звёзд репо mcp-tunnels официальный Anthropic Соединяет Claude с MCP-сервером внутри вашей сети через туннель Anthropic: без входящих портов и публичного доступа. ★ 44 770звёзд репо hookify официальный Anthropic Создаёт хуки и правила для Claude Code через простые Markdown-файлы. Защищает проект от случайных опасных команд и нежелательных правок в коде. ★ 44 770звёзд репо code-modernization официальный Anthropic Ведёт перенос легаси-кода по шагам: разбор, план, сборка и доказательство, что новое поведение совпадает со старым. ★ 44 770звёзд репо claude-security официальный Anthropic Ищет уязвимости в вашем коде прямо в сессии Claude, проверяет каждую находку и по желанию готовит патчи. ★ 44 770звёзд репо google-cloud-developer официальный Google LLC Плагин помогает агенту настраивать Google Cloud, выбирать учётные данные и проверять команды gcloud. MCP-сервер подключает актуальную документацию Google. CX Codex ★ 21 606звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой