# Turn Security Watch on or off, and show messages

This page shows an org admin how to turn Security Watch on or off for the whole organization, how to choose whether incidents show the message that caused them (with secrets removed), and how to check that stops are arriving. Security Watch is the MassifyAI console page that records each time the secret guard on a developer's machine stopped a key from reaching the model. Both settings are for the Organization Admin role only; the current beta package includes Claude Code and Codex guards. Check [Supported clients](/docs/reference/supported-clients) for the installed runtime and coverage; the incident test below specifically uses Claude Code.

For what the guard catches and what an incident holds, read [Security Watch and the secret guard](/docs/concepts/security-watch) first.

## 1. Turn Security Watch on or off

Security Watch is on by default for every organization.

1. In the MassifyAI console, open the account menu and choose "Settings".
2. Open the "Data policy" tab. Only an Organization Admin sees this tab's settings.
3. Find the "Security Watch" switch. Its description reads "Check prompts and file reads for secrets before they reach the model, and record what was stopped. A change takes effect within a minute."
4. Turn the switch on or off.
5. Choose "Save". You see "Saved."

The change reaches every machine within a minute.

What "off" means:

- The guard on your developers' machines checks nothing: prompts with keys go to the model, and the agent may read secret files.
- Nothing new is recorded in Security Watch.
- Past incidents stay, and you can still read them.

You can also reach the switch from two links:

- The Security Watch page (sidebar "Work" › "Security Watch") says "Security Watch is on for your organization." followed by "Turn it off in Settings → Data policy". People who cannot change the setting see "Your org admin can turn it off." instead. While it is off, the page says "Security Watch is off: prompts and file reads aren't checked, and no new incidents are recorded. Past incidents stay below." with a "Turn it on" link for admins, or "Ask your org admin to turn it on." for everyone else.
- The message a developer sees when a prompt is stopped ends, once MassifyAI has recorded a stop from their machine, with "Your org admin can turn Security Watch off:" and a link to this setting.

## 2. Show messages, with secrets removed

By default an incident holds no text of what the developer typed: only which kind of key, where and when. If you want reviewers to see the context of a stop, turn this on.

1. In "Settings" › "Data policy", find "Show messages, with secrets removed, in Security Watch". It is off by default.
2. Turn it on and choose "Save".

What it stores:

- For each stop made after you turn it on, about 300 characters of the message around the match, shown on the incident page as "Message (secrets removed)", or "Command (secrets removed)" for a blocked shell command.
- Each secret in it, and anything else that looks like one, is replaced by its kind, such as `[Stripe live key]`, or by `[redacted]`.
- The message is built on the developer's machine, with secrets already removed, and is sent only while this setting is on.
- Stored messages are cleared when they pass the "Data-loss detections" retention period (90 days by default), set on the same tab.

Turning it off stops new messages within a minute and deletes the stored ones within a few minutes. Incidents themselves stay.

## 3. Check that a stop arrives

Run this from a machine with the `massifyai-beta` plugin installed (`claude plugin list` names `massifyai-beta@massifyai`). It creates a real incident in your organization, labeled as yours.

1. In a Claude Code session, type a prompt that holds a made-up AWS access key: the letters `AKIA` followed directly by sixteen capital `Z` characters, with no space. Send it.
2. You see "MassifyAI stopped this prompt: it contains what looks like an AWS access key (line 1). Nothing was sent to the model. …". Nothing reached the model.
3. Within a few seconds, open the console's Security Watch page. A new incident is at the top, with a Detector such as "Secret — AWS access key · stopped · prompt in" followed by your project's name.
4. Send the same prompt again. The block message now also says which organization recorded it: "This is recorded in" followed by the organization's name and "'s Security Watch." In Security Watch, the same incident's Occurrences count goes up instead of a second incident appearing.

If step 2 does not happen, check that Security Watch is on, that the machine runs `massifyai-beta` rather than `massifyai`, and that the plugin is up to date (`claude plugin marketplace update massifyai && claude plugin update massifyai-beta@massifyai`, then restart Claude Code).

## If stops seem to be missing: check the hook destination

MCP and hook credentials can be scoped separately. A live `whoami` identifies the MCP connection; it does not establish where the local guard reports incidents. With workspace routing, inspect the route-specific hook sign-in metadata and the incident's actual org/project without printing credentials.

Check the installed package, enabled guard, trust, recording/guard roots and the intended destination. Preserve other workspace sign-ins; do not sign out a global default merely because an incident is missing. See [Connect workspaces to different organizations](/docs/how-to/workspace-organizations).

## Related

- [Security Watch and the secret guard](/docs/concepts/security-watch)
- [Data handling](/docs/reference/data-handling)
- [Roles and permissions](/docs/reference/roles-and-permissions)
- [Install the plugin](/docs/getting-started/install-the-plugin)

See [the workspace improvement loop](/docs/concepts/workspace-improvement-loop) and [supported clients](/docs/reference/supported-clients) for the current journey and client boundaries.
