Command Palette

Search for a command to run...

Назад к скиллам
скилл № 21288

tauri-security

Harden Tauri 2 applications with capabilities, permissions, scopes, CSP, and trust-boundary review. Use when exposing native APIs, adding plugins, handling…

БесплатноБез исполняемых скриптов
ZToolsCenterот ZToolsCenter★ 55 звёзд на GitHub

Установить tauri-security в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Tauri security

Use the official security model as the source of truth. This guidance is scoped to Tauri 2; verify generated schemas and version-sensitive fields against installed docs.

Workflow

  1. Inventory frontend origins, windows/webviews, commands, plugins, remote content, lifecycle transitions, and data crossing IPC.
  2. Define capabilities per window or webview in src-tauri/capabilities/. Grant only required permission identifiers and review merged capabilities because permissions combine across matching windows.
  3. Add scopes that constrain resources where supported; enforce validation in Rust as defense in depth. Review asset protocol scopes and prevent path traversal or unintended exposure.
  4. Configure restrictive CSP and HTTP headers appropriate to the frontend. Avoid wildcard sources and do not weaken headers to fix unexplained failures.
  5. Model lifecycle threats: startup, navigation, window creation, suspend/resume, update/relaunch, crash recovery, and shutdown can change authority or expose stale state.
  6. Review runtime authority and the ecosystem: audit plugins, dependencies, release/update paths, signing, and provenance as part of the threat model.
  7. Treat remote API access as a separate trust boundary. Do not enable remote content or remote API access without explicit origin allowlisting, capability minimization, authentication/authorization, transport security, input validation, and a documented threat model.
  8. Test denied access, malformed input, scope escape attempts, navigation, remote content, headers/CSP, update artifacts, and production builds.

Rules

  • Never ship private keys, tokens, or secrets in frontend code or updater artifacts.
  • Use capabilities and permissions together; neither replaces validation.
  • Treat third-party plugins as privileged Rust code and audit their permissions and source.
  • Do not grant filesystem, process, shell, or remote authority merely to make a prototype work.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • LICENSE

FAQ

Что делает скилл tauri-security?

Harden Tauri 2 applications with capabilities, permissions, scopes, CSP, and trust-boundary review. Use when exposing native APIs, adding plugins, handling untrusted content, or auditing a Tauri app.

Как установить скилл tauri-security?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tauri-security запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tauri-security с