Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计通过

understanding-tauri-ecosystem-securityunderstanding Tauri ecosystem 安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

1,331

周安装

56

GitHub Stars

18

下载量

466
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:understanding-tauri-ecosystem-security(understanding Tauri ecosystem 安全)
来源仓库:https://github.com/dchuk/claude-code-tauri-skills
仓库路径:skills/understanding-tauri-ecosystem-security
安装命令:
npx skills add https://github.com/dchuk/claude-code-tauri-skills --skill understanding-tauri-ecosystem-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dchuk/claude-code-tauri-skills --skill understanding-tauri-ecosystem-security

简介

Tauri 生态系统安全覆盖从依赖管理到运行时配置的完整生命周期。

  • 包括上游审核、CI/CD 安全和 CSP 配置等关键环节。
  • 适合保障桌面应用的安全基线建设。
  • 不能替代专业渗透测试,应定期更新依赖和修补漏洞。
  • 建议建立自动化安全检查流水线。understanding-tauri-ecosystem-security 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Understanding Tauri Ecosystem Security

This skill covers Tauri's organizational security practices, dependency management, vulnerability reporting, and comprehensive security auditing approaches.

Tauri Security Philosophy

Tauri operates on a principle of defense-in-depth with human-in-the-loop oversight. The framework acknowledges that "the weakest link in your application lifecycle essentially defines your security" and provides mechanisms to address threats at every stage.

Trust Boundaries

Tauri distinguishes between:

  • Rust backend code: Trusted, with full system access
  • Frontend code: Untrusted, runs in the system WebView
  • IPC layer: The communication bridge enforcing security boundaries

Frontend code accesses system resources exclusively through the IPC layer, with permissions restricted by capabilities defined in application configuration.

Organizational Security Practices

Build Pipeline Security

The Tauri organization uses highly automated GitHub Actions workflows with mandatory human review and approval before deployment.

Key practices:

  • Signed commits: Core repositories enforce signed commits to mitigate impersonation risks
  • Code review: Every pull request requires approval from at least one maintainer
  • Security workflows: Default security checks run on all code changes

Release Procedures

The working group manages releases through:

  1. Review code modifications and categorize PRs by scope
  2. Maintain current dependencies
  3. Conduct internal security audits for security-related PRs before minor and major releases
  4. Tag releases on the development branch, triggering:

- Core functionality validation - Test execution - Security audits of dependencies - Changelog generation - Artifact creation

  1. Review and edit release notes before publication

Dependency Security

Auditing Dependencies

Use automated tools to identify vulnerable packages:

# Rust dependencies
cargo audit

# Node.js dependencies
npm audit

Advanced Supply Chain Tools

Consider emerging tools for deeper supply chain analysis:

# Verify dependencies against trusted sources
cargo vet

# Community-driven code reviews
cargo crev

Dependency Pinning

For critical dependencies, pin to specific git hash revisions rather than floating versions:

# Cargo.toml - pinned dependency
[dependencies]
critical-lib = { git = "https://github.com/org/repo", rev = "abc123def456" }

Keeping Dependencies Updated

Regularly update Tauri, compilers, and related tooling:

# Update Rust toolchain
rustup update

# Update Tauri CLI
cargo install tauri-cli --locked

# Check for outdated dependencies
cargo outdated

Application Lifecycle Security

Upstream Threats

Evaluate third-party libraries for:

  • Trustworthiness of maintainers
  • Maintenance status and update frequency
  • Known vulnerabilities
  • Code quality and review practices

Development Threats

Development server risks:

The default development server lacks encryption and authentication, exposing frontend assets to local networks. Only develop on trusted networks or implement mutual TLS (mTLS) for untrusted environments.

Machine hardening practices:

  • Avoid administrative accounts for daily coding
  • Never store production secrets on development machines
  • Prevent secrets from entering version control
  • Use hardware security tokens
  • Maintain minimal installed applications
  • Keep systems fully patched

Source control security:

  • Implement proper access controls for repositories
  • Require commit signing from all contributors

Buildtime Threats

CI/CD infrastructure:

Use reputable providers or host systems on controlled hardware. Pin action versions explicitly in workflows:

# Good - pinned to specific version
- uses: actions/checkout@v4.1.1

# Bad - floating tag
- uses: actions/checkout@latest

Reproducible builds:

Current challenge: Rust and many frontend bundlers do not reliably produce reproducible builds by default. Maintain high trust in CI/CD systems until reproducibility tooling improves.

Distribution Threats

Control over manifest servers, build systems, and binary hosting is essential. Consider trusted third-party solutions for binary distribution.

Runtime Threats

Tauri assumes webview insecurity and implements protections via:

  • Content Security Policy (CSP)
  • Capabilities system
  • Runtime authority validation

Content Security Policy

CSP mitigates cross-site scripting (XSS) attacks. Tauri automatically handles cryptographic protections for bundled assets.

CSP Configuration

{
  "app": {
    "security": {
      "csp": {
        "default-src": "'self' customprotocol: asset:",
        "connect-src": "ipc: http://ipc.localhost",
        "font-src": ["https://fonts.gstatic.com"],
        "img-src": "'self' asset: http://asset.localhost blob: data:",
        "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com"
      }
    }
  }
}

CSP Best Practices

  • Make policies as restrictive as possible
  • Whitelist only trusted, preferably self-owned hosts
  • Avoid remote scripts from CDNs (they introduce attack vectors)
  • For WebAssembly frontends, include 'wasm-unsafe-eval' in script-src

Permissions and Capabilities

Permission Structure

Permissions describe explicit privileges governing frontend command access:

# src-tauri/permissions/my-permission.toml
[[permission]]
identifier = "my-identifier"
description = "Describes the impact and scope"
commands.allow = ["read_file"]

[[scope.allow]]
my-scope = "$HOME/*"

[[scope.deny]]
my-scope = "$HOME/secret"

Capability Configuration

Capabilities grant permissions to specific windows or webviews:

{
  "identifier": "main-window-capability",
  "description": "Capability for the main window",
  "windows": ["main"],
  "permissions": [
    "core:default",
    "fs:read-files",
    "fs:scope-home"
  ]
}

Security Boundaries

Capabilities protect against:

  • Frontend compromise impact minimization
  • Accidental system data exposure
  • Privilege escalation from frontend to backend

Capabilities do NOT protect against:

  • Malicious Rust code
  • Overly permissive scopes
  • WebView zero-day vulnerabilities
  • Supply chain attacks

Command Scopes

Scopes provide granular control with allow and deny rules (deny always supersedes allow):

# Allow recursive directory access
[[scope.allow]]
path = "$APPLOCALDATA/**"

# Deny sensitive folders
[[scope.deny]]
path = "$APPLOCALDATA/EBWebView"

Command developers must ensure no scope bypasses are possible through careful validation.

Runtime Authority

The runtime authority manages security enforcement at runtime:

  1. Intercepts IPC requests from webview
  2. Validates origin authorization
  3. Confirms capability inclusion
  4. Applies command-specific scopes
  5. Permits or denies execution

This multi-layer validation creates defense-in-depth against privilege escalation.

Vulnerability Reporting

How to Report

Report vulnerabilities privately through:

  • Preferred: GitHub Private Vulnerability Disclosure feature
  • Alternative: Email to security@tauri.app

What NOT to Do

Do not disclose vulnerabilities via:

  • Pull requests
  • GitHub issues
  • Discord
  • Forum posts

Disclosure Process

The Tauri team commits to:

  • Triaging reports promptly
  • Maintaining confidentiality during investigation
  • Following 90-day standard for coordinated public disclosure
  • Offering optional public attribution

Supported Versions

Only Tauri versions greater than 1.0 receive security support. Earlier versions receive no security updates.

Security Audit Checklist

Pre-Release Audit

## Dependency Audit
- [ ] Run `cargo audit` - no critical vulnerabilities
- [ ] Run `npm audit` - no critical vulnerabilities
- [ ] Review new dependencies for trustworthiness
- [ ] Check dependency update status

## Configuration Audit
- [ ] CSP configured and restrictive
- [ ] Capabilities follow least-privilege principle
- [ ] Scopes properly deny sensitive paths
- [ ] No overly permissive glob patterns

## Code Audit
- [ ] IPC commands validate all inputs
- [ ] No scope bypass vulnerabilities
- [ ] Secrets not hardcoded or logged
- [ ] Error messages do not leak sensitive info

## Build Audit
- [ ] CI/CD actions pinned to specific versions
- [ ] Build artifacts signed
- [ ] Distribution channels secured

Periodic Security Review

## Upstream Review
- [ ] Tauri updated to latest stable
- [ ] Rust toolchain updated
- [ ] Frontend dependencies updated
- [ ] Known CVEs addressed

## Access Control Review
- [ ] Repository access appropriate
- [ ] Commit signing enforced
- [ ] CI/CD secrets rotated
- [ ] Development machine security verified

## Runtime Review
- [ ] WebView security patches applied (OS updates)
- [ ] Capability configuration still appropriate
- [ ] No deprecated permissions in use

Known Security Advisory Patterns

Based on historical advisories, watch for:

  1. iFrame bypass vulnerabilities: Origin checks may be circumvented
  2. Filesystem scope issues: Glob patterns may be overly permissive
  3. Symbolic link bypasses: File operations may follow symlinks unexpectedly
  4. Open redirect risks: External sites may access IPC
  5. Dotfile handling: Hidden files may bypass scope restrictions

Security Resources

Official Channels

Recommended Tools

ToolPurpose
cargo auditRust vulnerability scanning
npm auditNode.js vulnerability scanning
cargo vetDependency verification
cargo crevCommunity code reviews
cargo outdatedDependency freshness

Summary

Tauri ecosystem security requires attention across the entire application lifecycle:

  1. Upstream: Audit and pin dependencies
  2. Development: Harden machines, secure source control
  3. Build: Secure CI/CD, pin action versions
  4. Distribution: Control hosting infrastructure
  5. Runtime: Configure CSP, capabilities, and scopes

The framework provides robust security primitives, but their effectiveness depends on proper configuration and ongoing vigilance. Regular audits, prompt vulnerability patching, and following least-privilege principles are essential for maintaining secure Tauri applications.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.31%
按下载量换算127

Antigravity

22.8%
按下载量换算106

windsurf

19.74%
按下载量换算92

Gemini CLI

14.51%
按下载量换算68

OpenCode

9.17%
按下载量换算43

Codex

3.38%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills