claudit-sec

作者 HarmonicSecurity已验证

Security audit tool for Claude Desktop and Claude Code on macOS — single-command visibility into MCP servers, extensions, plugins, connectors, scheduled tasks, and permissions.

293
Stars
48
Forks
PowerShell
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/HarmonicSecurity/claudit-sec

快速入门

使用 claudit-sec 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

🛡️ CLAUDIT-SEC

Security audit tool for Claude Desktop on macOS and Windows — including CoWork, extensions, plugins, MCP servers, connectors, and scheduled tasks.

One command. Full visibility. Read-only.

⚠️ Windows support is a work in progress. We're aware of a few kinks and bugs and wanted to get something out sooner rather than later. Community feedback and contributions are welcome.

CLAUDIT terminal output

🤔 Why

Claude Desktop introduces a new class of endpoint risk: AI agents with autonomous execution, persistent scheduled tasks, MCP server integrations, browser-control extensions, and OAuth-authenticated connectors to external services. Most of this configuration lives in JSON files scattered across multiple directories with no centralised visibility.

CLAUDIT gives you that visibility in a single command.

📝 A note on "Code": Claude Desktop includes a built-in agent coding feature called Code (visible in the app's sidebar). This is not the same as Claude Code, the standalone terminal CLI. CLAUDIT primarily audits Claude Desktop and its CoWork features. It does include a basic check of the Claude Code settings file (~/.claude/settings.json on macOS, %USERPROFILE%\.claude\settings.json on Windows), but the focus is squarely on the Desktop app.

📋 What It Audits

AreaWhat's Checked
🖥️ Desktop SettingskeepAwakeEnabled, sidebar/menuBar preferences
🤖 CoWork SettingsScheduled tasks, web search, browser use, dispatch (mobile→desktop), network mode, egress policy, enabled plugins, marketplaces
🏢 WorkspacesMulti-workspace detection, account names, session counts, org indicators (DXT-managed, org-plugins, dispatch-bridge)
🔌 MCP ServersServer names, commands, arguments, environment variable keys
🧩 Extensions (DXT)Installed extensions, signature status, dangerous tool grants
⚙️ Extension SettingsPer-extension allowed directories and configuration
🚦 Extension GovernanceAllowlist enabled/disabled, blocklist entries
📦 PluginsInstalled, remote (org-deployed), cached (downloaded)
🪝 Plugin HooksLifecycle hooks executing shell commands (PreToolUse, PostToolUse, Stop, etc.)
🔗 ConnectorsOAuth-authenticated web services, desktop integrations
🎯 SkillsUser-created, scheduled, session-local, and plugin skills across 9 paths
Scheduled TasksTask names, cron expressions (with plain English translation)
🔐 App ConfigNetwork mode, extension allowlist/blocklist keys, device identifiers
📲 DispatchBridge state (OFF/CONFIGURED/ON), active session detection via hostLoopMode and bridge-state.json
🔇 Disabled MCP ToolsPer-session tools explicitly disabled (with dangerous tool callout)
🏃 Runtime StateRunning processes, sleep assertions, LaunchAgents, crontab entries
🍪 CookiesCookies and Cookies-journal presence

📖 For a detailed breakdown of every individual check, what it means, and why it matters, see the Findings Reference.

⚡ Getting Started

Prerequisites

macOS:

RequirementHow to checkHow to install
🍎 macOSYou're on a Mac
🐚 zshzsh --versionShips with macOS since Catalina
🔧 jqjq --versionbrew install jq

Windows:

RequirementHow to checkHow to install
🪟 Windows 10/11You're on a PC
PowerShell 5.1+$PSVersionTable.PSVersionShips with Windows 10+
No additional dependenciesFully self-contained

Install & Run

macOS:

git clone https://github.com/HarmonicSecurity/claudit-sec.git
cd claudit-sec
chmod +x claude_audit.sh
./claude_audit.sh

Windows:

git clone https://github.com/HarmonicSecurity/claudit-sec.git
cd claudit-sec
powershell -ExecutionPolicy Bypass -File claude_audit.ps1

That's it. The script reads your Claude configuration and prints a colour-coded report to the terminal. It never modifies anything.

🎛️ Usage

macOS:

./claude_audit.sh [OPTIONS]

Options:
  --html [FILE]    Generate a standalone HTML report
  --json           Output structured JSON
  --user USER      Audit a specific user
  --all-users      Audit all users with Claude data (requires root)
  -q, --quiet      Only show WARN and CRITICAL findings
  --version        Print version and exit
  -h, --help       Show usage

Windows:

powershell -ExecutionPolicy Bypass -File claude_audit.ps1 [OPTIONS]

Options:
  -Html [FILE]     Generate a standalone HTML report
  -Json            Output structured JSON
  -User USER       Audit a specific user
  -AllUsers        Audit all users with Claude data (requires admin)
  -Quiet           Only show WARN and CRITICAL findings
  -Version         Print version and exit
  -Help            Show usage

Examples

macOS:

# Default: colour output in terminal
./claude_audit.sh

# Only warnings and critical findings
./claude_audit.sh -q

# Standalone HTML report
./claude_audit.sh --html

# JSON for SIEM ingestion
./claude_audit.sh --json > audit.json

# Specific user
./claude_audit.sh --user jsmith

# All users (run as root via MDM — FleetDM, Jamf, Mosyle, CrowdStrike RTR)
sudo ./claude_audit.sh

Windows:

# Default: colour output in terminal
powershell -ExecutionPolicy Bypass -File claude_audit.ps1

# Only warnings and critical findings
powershell -ExecutionPolicy Bypass -File claude_audit.ps1 -Quiet

# Standalone HTML report
powershell -ExecutionPolicy Bypass -File claude_audit.ps1 -Html

# JSON for SIEM ingestion
powershell -ExecutionPolicy Bypass -File claude_audit.ps1 -Json > audit.json

# Specific user
powershell -ExecutionPolicy Bypass -File claude_audit.ps1 -User jsmith

# All users (run as admin via MDM — Intune, CrowdStrike RTR)
powershell -ExecutionPolicy Bypass -File claude_audit.ps1 -AllUsers

💡 macOS: When run as root (uid 0), the script automatically discovers and scans all users with Claude data. No flags needed.

💡 Windows: When run as Administrator, the script can scan all users with the -AllUsers flag. MDM tools like Intune and CrowdStrike RTR execute scripts with elevated privileges.

📊 Output Formats

🖥️ Terminal (default)

Colour-coded output with Unicode tables and severity indicators.

CLAUDIT terminal output

🌐 HTML (--html)

Standalone dark-themed report with collapsible sections. Created with restrictive file permissions (0600).

CLAUDIT HTML report

📄 JSON (--json)

Structured output for SIEM ingestion. Sensitive fields (OAuth tokens, API keys, secrets) are automatically redacted. Multi-user scans produce a JSON array.

🚨 Severity Levels

SeverityMeaning
🟠 WARNIncreases risk surface — e.g. unsigned extensions, autonomous execution enabled
🟡 REVIEWNeeds human judgement — e.g. org-deployed plugins, MCP servers present
🔵 INFOInformational — e.g. Claude is running, permissions granted

📖 Documentation

DocDescription
Findings ReferenceEvery individual check CLAUDIT performs, what it means, why it matters (risk, compliance, AI enablement), and what to do about it

🔒 Security Properties

  • Read-only — never writes to, modifies, or deletes any audited file
  • No network access — all data collected from local filesystem and system commands
  • Sensitive data redacted — tokens, keys, and secrets replaced with [REDACTED] in all output formats
  • Minimal privileges — runs as current user; root only needed for multi-user scans
  • Single file — macOS requires jq; Windows is fully self-contained (no external dependencies)
  • Auditable — the entire tool is one readable script (claude_audit.sh on macOS, claude_audit.ps1 on Windows)

💜 Built with Claude Code

This project is built and maintained using Claude Code. We love it. Seriously. If you're building developer tools and haven't tried it yet, you're missing out.

📄 License

Apache License 2.0 — see LICENSE for details.

常见问题

What is claudit-sec?

claudit-sec is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by HarmonicSecurity. Security audit tool for Claude Desktop and Claude Code on macOS — single-command visibility into MCP servers, extensions, plugins, connectors, scheduled tasks, and permissions. It has 293 GitHub stars.

Is claudit-sec safe to use?

Yes. claudit-sec passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claudit-sec?

Clone the repository with "git clone https://github.com/HarmonicSecurity/claudit-sec" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claudit-sec written in?

claudit-sec is primarily written in PowerShell. It is open-source under HarmonicSecurity on GitHub, so you can review or fork the full source.

Are there alternatives to claudit-sec?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claudit-sec against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情