plugins/claude-code-expert/skills/security-compliance/SKILL.md
--- name: security-compliance description: Claude Code security and compliance — permissions model, settings.json allowlists/denylists, enterprise managed settings, audit logging, secrets handling, SOC2/HIPAA/GDPR patterns. Use this skill whenever configuring permissions, auditing a setup for security, handling secrets, preparing for compliance, or tightening access. Triggers on: "permissions", "allowlist", "security audit", "compliance", "SOC2", "HIPAA", "GDPR", "secrets", "enterprise settings"
npx skillsauth add markus41/claude plugins/claude-code-expert/skills/security-complianceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Baseline security + enterprise compliance patterns for Claude Code.
Permissions live in .claude/settings.json:
{
"permissions": {
"allow": ["Read", "Write", "Edit", "Glob", "Grep", "Bash(npm *)"],
"deny": ["Bash(rm -rf /)", "Bash(sudo *)", "Bash(curl * | sh)"],
"ask": ["WebFetch", "Bash(git push *)", "Bash(npm publish *)"]
}
}
allow → tool executes without askingdeny → tool never executesask → user is prompted each time| Mode | Behavior |
|---|---|
| ask | Prompt for every tool use |
| acceptEdits | Auto-accept Read/Write/Edit; prompt for others |
| auto | Minimal prompting |
| bypassPermissions | Skip prompts (dangerous; CI only) |
| plan | Plan mode — no file writes |
Set via claude --permission-mode <mode> or in settings.json → permissionMode.
Never in repo:
.env files (except .env.example)Where secrets go:
secretstorage, keyring, keychain)Install the protect-sensitive-files hook (via cc_kb_hook_recipe("protect-sensitive-files")) to prevent accidental writes to .env / credentials.
Enterprise deployments log all tool calls for compliance:
{
"hooks": {
"PostToolUse": [
{ "matcher": "*", "hooks": [{ "type": "command", "command": "bash .claude/hooks/audit-log.sh" }] }
]
}
}
audit-log.sh appends JSON lines to a log shipping to SIEM (Splunk, Elastic, Datadog). Key fields: timestamp, session_id, tool_name, tool_input_hash (not raw input if sensitive), decision, duration_ms.
For org-wide enforcement, use managed settings at the OS level:
/Library/Application Support/Claude/managed-settings.jsonC:\ProgramData\Claude\managed-settings.json/etc/claude/managed-settings.jsonManaged settings override user settings. Use for: denylist of dangerous commands, required hooks (audit), forbidden MCP servers.
allow/deny tied to AD/SSO identity..claude/ edits go through PR review.detect-secrets + custom PHI regex in hook.mem_timeline, /cc-memory export).Run security-compliance-advisor agent for a full audit. Minimum checks:
settings.json, .mcp.json, or any committed filedeny list includes destructive commands (rm -rf, sudo, curl|sh)protect-sensitive-files hook installedbypassPermissions outside CI--dangerously-skip-permissions in any committed script| Need | Tool |
|---|---|
| Settings schema | cc_docs_settings_schema |
| Audit checklist | cc_docs_checklist("security") |
| Model for review | cc_docs_model_recommend("security review") → Opus |
| Hook recipe for protection | cc_kb_hook_recipe("protect-sensitive-files") |
permissions.allow: ["*"] → defeats the point.env → committed to git.bypassPermissions in developer default → one typo destroys something.tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.