name: sandbox-entitlements-auditor description: 审计并推荐安全桌面应用所需的最小沙箱权限 allowed-tools: Read, Grep, Glob, Bash tags: [安全, 沙箱, 权限, 审计, macos]
sandbox-entitlements-auditor
审计现有权限并为安全的桌面应用程序推荐最小的沙箱权限集,主要针对macOS,但其概念也适用于其他平台。
功能
- 分析当前权限使用情况
- 检测过度授权的配置
- 推荐最小权限集
- 检查安全反模式
- 验证MAS合规性
- 生成审计报告
输入模式
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"entitlementsPath": { "type": "string" },
"targetDistribution": { "enum": ["mas", "direct", "both"] }
},
"required": ["projectPath"]
}
审计检查项
- 不必要的文件系统访问
- 不需要时的广泛网络权限
- 强化运行时例外
- JIT编译许可
- 库验证禁用
相关技能
macos-entitlements-generatorsecurity-hardening流程