Skip to main content

Config Guard

Config Guard is Sielum's feature for deploying, monitoring, and enforcing OS-level AI tool settings on every enrolled endpoint. For Claude Code, it writes a managed settings file with the highest possible priority — overriding user settings, CLI arguments, and project configuration, so the configured policy always takes precedence.

Why Config Guard​

Claude Code's configuration precedence is:

Config Guard file → CLI args → Local project → Shared project → User settings

This means that disableBypassPermissionsMode: "disable" in the Config Guard file blocks --dangerously-skip-permissions even as a CLI flag — something that writing to the user-level settings.json cannot achieve.

How it works​

  1. An admin configures the Config Guard policy in the Sielum dashboard (Config Guard page).
  2. Sielum distributes the policy to all enrolled agents via the gRPC heartbeat.
  3. Each agent writes the policy to the OS-level path and monitors it for tampering.
  4. If the file is deleted or modified, the agent restores it on its next check (default every 5 minutes) and raises a tamper alert.

Deployed file path​

OSPath
Linux/etc/claude/managed-settings.json
macOS/Library/Application Support/ClaudeCode/managed-settings.json
WindowsC:\ProgramData\ClaudeCode\managed-settings.json

The Linux path is confirmed against a real Claude Code install. The macOS and Windows directories above match what the agent writes but are not yet confirmed against a real install on those platforms.

Privileged agent required

Config Guard can only enforce settings when the agent runs with sufficient privileges to write to the target path.

  • Linux: run the agent as the systemd service installed by the one-line installer (sielum-agent.service), which is privileged.
  • macOS / Windows: admin rights are required.

When the agent runs in user-mode (non-root), it cannot write /etc/claude/managed-settings.json. Such endpoints are reported as non-compliant with the tamper type user_mode_no_privilege — a deployment configuration issue, not an attack.

Available policy settings​

SettingDescription
Disable Bypass Permissions ModeBlocks --dangerously-skip-permissions and bypassPermissions config.
Allow Managed Permission Rules OnlyOnly admin-defined allow/deny tool rules apply. Users cannot set allowedTools: '*'.
Allow Managed MCP Servers OnlyOnly approved MCP servers (from the allow-list) can run. All others are blocked by Claude Code.
Allow Managed Hooks OnlyPrevents user-defined hooks that could bypass policy checks.
Allow Remote SessionsWhether Claude Code may accept remote session connections.

Compliance monitoring​

The Config Guard page in the dashboard shows real-time compliance status for all endpoints:

  • Total endpoints covered by the policy
  • Compliant / Non-Compliant split
  • Per-endpoint tamper type and details:
    • missing — the managed settings file is not on disk
    • modified — the file's content no longer matches the policy
    • user_mode_no_privilege — the agent runs unprivileged and cannot write the file

Tamper events generate a high-severity alert visible in the Alerts page.

Configuring the policy​

Navigate to Config Guard in the sidebar, under Protection. Each agent picks up a changed policy on its next check-in — by default every 5 minutes (see Agent Configuration).

Recommended baseline

Enable Disable Bypass Permissions Mode and Allow Managed Permission Rules Only for all environments. Enable Allow Managed MCP Servers Only only after defining an MCP server allow-list.