Skip to main content
Policy is one page with three tabs, under Endpoint AI Risk › Policy: An Endpoint AI Policy tells the Guardway agent on a group of machines how to govern the AI tools running there: whether model traffic goes through your gateway, which detections run and whether risky actions are blocked, what usage is reported, which AI tool restrictions apply, and how the agent updates itself.

How policies work

You never run anything on the machines. Saving a policy is all it takes. Each machine picks up the change on its next check-in, applies it, and reports back what it runs. There is no separate draft or publish step: turn a policy off with its Enabled switch to keep it inert. Which policy a machine gets. A policy applies to the machines in its scope: every machine in its groups, plus any machines pinned to it by name (pins only add). When several enabled policies contain a machine, the one with the lowest Precedence number wins; a blank precedence sorts last. A machine no policy contains gets the policy bound to the All endpoints group. If nothing applies, the machine keeps the last policy it received. A machine you name belongs to one policy. Pinning a machine, or listing it in a hand-picked group, names it explicitly, and only one policy can do that. When you pin a machine in the Endpoint scope picker, each machine shows the policy it is already in. Picking one that another policy pins asks you to move it: saving moves it to this policy and removes it from the other. A machine in another policy’s hand-picked group can’t be pinned until you remove it from that group. Rule-based groups such as All endpoints or an operating-system group are different: they overlap by design, and Precedence decides between them. Find a machine’s policy. Type a hostname or user in the Search box on the Policies tab. Each matching machine shows the one policy that governs it, how it got there (pinned or through which group), and any policies it also matched but that were outranked. To see the machines behind a policy, click its endpoint count: a side panel lists them with the policy version each one runs, and Export CSV downloads the list. Click “taken by a higher policy” to see which policy took each machine.
Groups synced from a directory (Microsoft Entra, Okta, Active Directory) do not match any machine yet. Use the built-in groups or pin machines by name.
Personal-account groups. A group with the rule Signed into a personal AI account holds the machines where an AI tool is signed in with a Personal account: an email on a personal email provider, whatever the plan. Your company domains don’t change who is in it. A machine joins or leaves it with its next report. Policies only raise. A policy can make a machine stricter than its local setup, never more permissive. A machine an operator set to Enforce locally stays on Enforce even under an Observe policy, and AI Control switches raise your organization’s baseline without ever lowering it. Per-policy and org-wide settings. Most settings apply only to the machines a policy covers. Two live in one shared document every enrolled machine fetches, so editing them in any policy changes them for the whole organization: the indicator lists under Detections and Endpoint routing. The editor marks both as shared. Unset means default. A section you leave unset follows the fleet baseline or the agent’s defaults. Rollout status. The footer shows how many machines run the latest policy version, out of every enrolled machine (not only this policy’s scope). Saving any policy starts a new version, so machines read as behind until their next check-in. A machine that never reported which policy it runs is shown as unknown, not as clean. Saving a policy needs the Owner or Admin role.

General

Posture

How strictly model traffic from AI tools is governed by your gateway.
  • Choosing Enforce without choosing a fallback means fail closed.
  • Under Observe, machines are still given their gateway address and key ahead of time, so moving to Enforce takes effect on their next check-in.
  • Windows: only Enforce, fail closed applies. The agent points Claude Code and Codex straight at your gateway, and each machine reports when a setting cannot apply there. Under Observe or fail open, Windows machines are reported, not governed.
Enforce single tools (shown under Observe) sends one tool’s traffic, Claude Code or Codex, through the gateway while everything else stays observed. These always fail open. Not available on Windows. Gateway setup chooses where machines relay to:
  • Platform gateway: pick one of your registered gateways. Each machine gets its own key on its next check-in, so one machine’s key can be revoked on its own.
  • Other gateway: a URL and one shared key for every machine. Revoking that key revokes the whole fleet.
Changing the gateway re-keys every machine in scope automatically; only owners and admins can change it. The gateway address must use https and a public address: a machine refuses a private IP address or an internal name (ending in .local, .internal or .lan) and keeps observing. A gateway an operator configured on the machine itself always wins. Access profile limits what each machine’s gateway key may do: models, rate limit, budget and key lifetime. Unrestricted is the default. Editing a profile updates every key already issued from it within one gateway poll.

Detections

One table of every rule the agent runs, in four layers. Each rule can be turned off; a rule that is off never runs on these machines, so there is no finding and no evidence for it. New rules from agent updates are on by default. Rules marked May be noisy are pattern-based leads to review. Only Live guard and two Governance rules can block anything: Blocked skill present and MCP server not on the approved list. Every other rule records a finding. Rules show a tag for the kind of risk they look for, such as Credential theft, Runs code or Autonomous behavior. AIDR tags its findings with the same words.

Live guard

Checks each action an AI tool is about to take, such as a shell command, a file edit, a web fetch or an MCP tool call, before it runs. It works in Claude Code, Codex, Cursor, Antigravity, Junie, Grok Build, Devin, GitHub Copilot, Gemini CLI, OpenCode and Kilo Code: the agent adds its check to each tool installed on the machine, and removes it when you switch Live guard off. Nothing needs to be installed or run on the machines.
  • Record (default): matches are recorded as “would block”; nothing is stopped.
  • Block: six rules stop the action: credential exfiltration (GUARD-CRED-EXFIL), download and execute (GUARD-FETCH-EXEC), destructive commands (GUARD-DESTRUCTIVE), writing secrets to files (GUARD-SECRET-WRITE), opening a public GitHub surface (GUARD-PUBLIC-REPO-EXFIL) and switching an AI tool’s approval prompts off (GUARD-APPROVALS-OFF). The other Live guard rules always record only. Blocking applies on machines with the managed (MDM) install; a per-user install records only.
The public GitHub rule stops creating a public repository or any gist, making a repository public, and pushing to the address of a repository under another owner than the checkout’s own. It only records adding a remote for such a repository, and gh repo create without a visibility flag. A push to an existing remote by name is never matched. Agent switched an AI tool’s approval prompts off (GUARD-APPROVALS-OFF) stops an AI tool from writing a setting that turns approval prompts off. It checks a file edit made by Claude Code and a shell command run by any tool, in a project’s settings file or the user’s own. Each setting is matched in its own tool’s settings file: The Cursor CLI, Codex and Grok Build rows need an agent newer than 0.2.265. Codex’s approval_policy = "never" on its own is not stopped: inside the Codex sandbox it is how scripts and CI run Codex. Cursor’s editor auto-run and Gemini CLI are not covered by this rule. Three things to know:
  • It looks at what the action writes, not at the file as it is. An edit elsewhere in a settings file is not matched; a whole settings file written back with the setting still in it is.
  • It also stops the change when a person asked their AI tool to make it. The message tells them to make the change themselves.
  • It has its own switch, under Blocked, with its own switch in the policy editor, and it is on unless you turn it off. The Live guard switch does not change it, and it is not part of the Live guard count. While every Live guard rule is off, it does nothing.
This rule stops the write. To keep the tools from running without asking at all, whatever their settings files say, use Deny YOLO mode under AI Control. Block Cursor while Run Everything or own keys are on (off by default, needs Block): on machines with the managed install, while Cursor runs agent commands without asking (Run Everything in the app, the CLI’s unrestricted approval mode, or a CLI session started with --force) or uses a developer’s own API key, every Cursor agent action is stopped. The message tells the developer what to change in Cursor. Recorded as GUARD-CURSOR-DRIFT. A per-user install neither stops nor records it. Reading a credential is recorded under either setting and never stopped: by a command (Command touched a credential store, GUARD-CRED-READ), or by a file tool or an MCP tool (Read a credential store, GUARD-SECRET-READ). For an MCP or other tool, only the arguments that name a location (a path, a file, a directory, a file:// URI) are checked, never text the tool carries.
Run in Record for about a week and review the would-block findings before switching to Block.

Recorded, never blocked

Four Live guard rules record something an AI tool did and never stop it, under Record or Block. Each is ordinary work as often as it is a warning sign, so the record is there to review, not to block. Guardway turns this group on per organization; until it is on for yours, the policy editor does not show it. Each rule has its own switch. The Live guard switch and the Record or Block choice do not change them, and they are not part of the Live guard count. They follow Live guard in one way: while every Live guard rule is off, they record nothing. Show each match in the console (off by default) applies to all four rules. On: each match is sent with a redacted preview of the command or the file’s path, and appears as a finding on the person in People, on the machine in Fleet and in AIDR’s Findings, marked as recorded. It opens no incident. Off: the rules are counted on the machine only. The setting belongs to one policy, so turn it on in each policy that should send matches. The policy list shows Match records on on every policy where it is on. While it is on, each of these rules has a See matches link in the policy editor that opens Findings filtered to that rule; the rules that block have the link always. A machine’s report holds up to 40 recorded matches beside its other findings, so blocked and would-block calls never push them out. If more than 40 match between two reports, the oldest are not sent; the counts on the machine stay exact. Agent versions: v0.2.254 to v0.2.257 send the matches of the first two rules only, and share one list of 25 findings per report with everything else, so on a machine with many blocked calls some matches are left out. Agents released after v0.2.257 send all four with room of their own. An agent older than v0.2.254 ignores the setting and sends nothing. To check a machine, run gw-cli guard --status (elevated on a managed machine): the match records line says on, off, or that no console policy has arrived. Live guard never stops work because of Guardway itself: if the agent is stopped or does not answer within a few seconds, the action goes ahead. Changes apply within seconds of a machine receiving the policy, and before any policy has arrived nothing is installed. A few limits of the tools themselves: GitHub Copilot does not check searches, file globs or sub-agent tasks; Junie’s hooks do not run inside the JetBrains IDE plugin; and on a per-user install Codex asks the developer to trust the check once. When Skills is set to Claude Code or Every AI tool, Claude Code keeps its check even with Live guard off, so blocked skills stay refused there. Claude Desktop’s Chat and Cowork run their commands inside Desktop’s own virtual machine, where no AI tool check runs, so Live guard neither sees nor stops them. What the agent reports instead is under Claude Desktop folder holds credentials in Governance.

Behavior

Rules over each AI tool’s sessions. They record findings and never block. Claude Code’s come from its telemetry (see Telemetry); the other tools’ from the session files they already write, read without changing anything in the tool. The two credential rules at the end of the table run inside Live guard’s check instead, so they need Live guard on. Which tools are covered, and what counts as the developer’s rejection: Most tools record only the rejection, not which actions asked for approval, so their rate is over every proposed action. That can only miss a spike, never raise a false one. A session with prompts switched off (Grok’s always-approve, Copilot’s allow-all) is marked as having no human in the loop. A rule that blocks a call (Guardway’s Live guard included) never counts as the developer’s rejection.

Governance

  • Artifact not in the approved baseline (GOV-UNAPPROVED): when on, each machine records what is installed now (skills, MCP servers, hooks and other agent extensions) as approved, and flags anything new or changed after that. What is already installed raises no finding. Turning it off stops the findings; turning it back on reuses the original snapshot.
  • Blocked skill present (GOV-SKILL-BLOCKED): a skill your organization marked Blocked in the skill catalog is installed. On machines with the managed install, Live guard on Block stops any checked AI tool from using one, and the Skills setting stops it where that setting says.
    This rule also controls blocking. Turning it off stops blocked skills from being refused in Claude Code or moved aside in other AI tools, whatever the Skills setting under AI Control says.
  • Unsanctioned skill (GOV-SKILL-UNSANCTIONED): a skill not on your sanctioned list, or a modified copy of one.
  • Blocked skill reinstalled (GOV-SKILL-TAMPER): a skill that was moved aside came back 3 or more times in a day.
  • MCP server not on the approved list (GOV-MCP-UNLISTED): Cursor’s agent called an MCP server your organization did not approve. When Managed MCP servers only is on under AI Control and the catalog approves at least one server, the call is stopped and recorded on machines with the managed install, whether Live guard is on or off. A per-user install does not check Cursor’s MCP calls, so nothing is stopped or recorded there. Turning the rule off also stops the blocking.
  • Claude Desktop folder holds credentials (GOV-DESKTOP-SHARE): a folder someone connected to Claude Desktop’s Chat or Cowork contains credential files, such as .env, cloud credentials or private keys. Desktop runs those agents’ commands in its own virtual machine with the folder mounted read-write, outside Live guard. The agent reads file names only and opens no file; see Claude Desktop connected folders. Turning the rule off keeps the folders in the inventory without the finding.
  • AI tool working on another computer (GOV-REMOTE-SESSION): an AI tool on the machine, such as VS Code, Cursor or Claude Desktop, works on another computer: a server reached over SSH (on the network, over a VPN or in the cloud), a vendor tunnel, a cloud workspace such as GitHub Codespaces, or a Kubernetes pod. In those sessions the tool’s agent, terminal and file edits run on that computer, outside Live guard. Medium, below the fail line. See AI tools working on another computer. Turning the rule off keeps the sessions in the inventory without the finding.

Installed content

Rules that score the skills, MCP servers, hooks and other agent extensions installed on the machine (see Inventory & Risk Scoring). They raise an artifact’s risk score; nothing is blocked or moved. Four of them use indicator lists you can extend: known malicious indicators (IOC-KNOWN, Critical), paste and file-drop hosts (EXT-PASTE), protected brand domains (EXT-LOOKALIKE, names one character away from yours) and popular packages (EXT-TYPOSQUAT, package names one character away from popular ones). The built-in entries cannot be removed; your entries add to them. These lists are shared by every policy in your organization.

Endpoint routing

Where model traffic is allowed to go. Shared by every policy in your organization.
  • Require Guardway gateway (default): any model endpoint not reached through one of your platform gateways is reported non-compliant, even an approved vendor called directly.
  • Allow sanctioned vendors: direct calls to the hosts you list are compliant; anything else is reported non-compliant.
Your platform gateways are always sanctioned. Routing reports compliance in the fleet view; it does not block requests. What actually routes traffic is Posture.

Telemetry

Send Claude Code and Cursor usage to Guardway
  • On: each machine’s agent sets up Claude Code and Cursor’s usage hooks to send their usage to the agent, starting with the next session. If the machine already sends Claude Code telemetry to another collector, that setup is left alone and the machine reports it.
  • Off: usage stays on the machine. Those machines show as unknown in the console, and the Behavior rules cannot fire for them.
  • Not set (default): each machine keeps whatever its install set up.
What is sent is metadata only: cost and tokens (including personal Pro and Max subscriptions), sessions, active time, prompts sent, tool calls by tool name, lines added and removed, commits and pull requests, accepted and rejected agent actions, models used, Cursor sessions, prompts sent and shell and MCP calls, and the account’s email domain (never the address) with the agent’s own label for it. The console labels the account from that domain: see Signed-in accounts. Never sent: responses, tool inputs or outputs, and file contents. Prompts are not sent either, unless Keep Cursor prompt previews is on. The agent never turns on Claude Code’s content logging. Keep Cursor prompt previews (off by default, needs the usage switch above): keeps the first 240 bytes of each prompt typed in Cursor, redacted on the machine. Claude Code prompts are never sent. See Cursor.

AI Control

Switches that raise your organization’s AI tool restrictions for the machines this policy covers. They never lower your baseline, and your catalogs and login settings stay organization-wide. AI Control applies on machines with the managed (MDM) install. The agent re-checks every few minutes and puts back anything a developer changed. Antigravity, Junie, Gemini CLI and Devin have no settings for these controls; Live guard covers them. Each machine reports, per tool, which controls it could apply and which that tool has no setting for.

Skills

Blocked skills: where should they be stopped? Skills your organization marked Blocked in the skill catalog are always reported. This setting decides where they are also stopped: Claude Code and Every AI tool need at least one sanctioned skill in the catalog. They stop blocked skills only: the Live guard rules keep their own Record or Block setting. Agents up to 0.2.232 also switch Live guard to Block on managed installs. Quarantine unsanctioned skills is delivered but not yet enforced.

Org login gate

The Org login gate is on the AI Control (Org Level) tab, so it is the same for your whole organization. With Require org login on, AI tools must be signed in to your organization, and sign-ins outside Allowed email domains fail the gate. Use company domains copies your company domains into Allowed email domains. Then choose Publish, as for any change on this tab.
  • The login gate matches domains exactly, so add subdomains like github.acme.com separately. Your company domains cover their subdomains; the gate doesn’t.
  • Later changes to your company domains don’t update Allowed email domains.

Agent updates

How the Guardway agent on these machines updates itself. The agent only installs releases from Guardway’s signed release index and never downgrades itself.
Windows machines installed from an MSI older than 0.2.148 cannot install updates by themselves. Install 0.2.148 or later over them once.
On Linux machines installed from the .deb or .rpm package, the agent updates through the package manager, so dpkg and rpm always know which version is installed. With Auto-install, the agent downloads the package for the selected release, checks it against Guardway’s signed release index, and installs it with dpkg -i or rpm -U. If apt or dnf is busy at that moment, it tries again 15 minutes later. A package update is not rolled back automatically: if the new version does not start, the machine is reported as needing attention.
Linux machines installed from a .deb or .rpm package older than 0.2.160 cannot install updates by themselves. Install the 0.2.160 or later package over them once, for example sudo apt install ./guardway-agent_0.2.160-1_amd64.deb.

Inventory & Risk Scoring

What the agent finds and how each artifact is scored.

Skill Custody

Stopping a blocked skill in every AI tool.

Usage and Cost

How each AI tool’s usage and cost are measured.

Cursor

How Guardway governs Cursor on the device.