Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By sasy-labsv0.5.2In 1 marketplace
SASY policy enforcement for Claude Code: PreToolUse checks against a Datalog policy engine (data-loss guards, secret-scan gates, taint policies)
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code plugin enforcing SASY Datalog policies on tool calls.
Four hooks, nothing else: SessionStart (ensure the sasy-watch daemon,
register the session, pin the policy profile), SessionEnd (deregister),
PreToolUse (check every tool call via the daemon → RMProxy.CheckToolCall;
denied calls block with a [SASY] reason, even in bypassPermissions mode), and
PostToolUse (signal that an @ask'd tool ran — a marker-independent approval
for the detaint recorder). Fail-closed: if the daemon is unreachable after one
respawn attempt, tool calls are blocked (SASY_FAIL_OPEN=true to override).
Enforcement reference (integration, RPCs, @ask, policy design + Datalog):
docs/claude-code-enforcement.md ·
Design: docs/claude-code.md ·
Daemon: packages/claude-code/
Live demo: make claude-code-demo (builds everything, installs the plugin
config, launches an enforced Claude Code session). Persistent per-project setup:
make claude-code-init PROJECT=/path (or init-project.sh) writes the project's
.claude/settings.json so plain claude is enforced there. Multi-platform
release bundles: .github/workflows/claude-code-release.yml +
scripts/build-claude-code-release.sh.
Quickest setup: run npx skills add -g sasy-labs/sasy-guard, then start
Claude Code and ask it to set up Sasy Guard. The skill installs the runtime and
the plugin and tells you how to test it. To do it by hand, follow
Install.
# 1. Policy engine (from repo root; binary per CLAUDE.md build)
SASY_ALLOW_NO_AUTH=1 sasy-services/target/release/sasy serve \
--evaluator souffle --addr 127.0.0.1:50061 \
--auth-config config/auth_config.yaml --data-dir /tmp/sasy-data
# 2. Daemon config
mkdir -p ~/.sasy && cat > ~/.sasy/config.json <<EOF
{ "endpoint": "localhost:50061", "insecure": true, "entity": "copilot",
"failMode": "closed",
"policyPath": "$PWD/plugins/sasy-guard/profiles/security.dl" }
EOF
# 3. Build the daemon and run a guarded session
(cd packages/claude-code && bun install && bun run build:binary)
claude --plugin-dir plugins/sasy-guard
# Inside the session: `rm -rf` and force pushes are denied with a [SASY] reason.
profiles/)security.dl — the unified policy: fifteen independently-toggleable
rule groups (data_loss, secret_scan, exfil, toxic_flow, reverse_shell,
config_persistence, guard_config, agent_redirect, curl_sh, hidden_unicode,
public_push, review_gate, supply_chain, dep_scan, sast), all ON by default
(sast stays inert until a results file is configured). The old
rm-rf-block, taint-untrusted-fetch, and supply-chain profiles are now
groups here.allow-all.dl — observe-onlydeny-all.dl — lockdown (the engine bootstrap posture)Select via policyPath in ~/.sasy/config.json (pinned per session at
SessionStart; the server dedupes identical sources by content hash). Dial
coverage without editing the policy via metadata flags — rule_off <group>
to drop a group, or rule_on <group> for opt-in mode (e.g. rule_on data_loss
reproduces the old rm-rf-block). See
docs/claude-code-enforcement.md §4.
~/.sasy/config.json)Every knob below already exists in the daemon. They were undocumented here, which is how a field test concluded the tuning did not exist at all — so this table is the reference, and adding a setting means adding a row.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub sasy-labs/sasy-guard --plugin sasy-guardPlugins from other owners that cover similar ground