Docs

Stop agents reading passwords and keys

Find every key and password an AI tool can reach, move the ones you can, and stop the AI from reading the rest.

Rules, Detections: the credential rules.

Why this matters

An AI tool runs with the developer's access. If there's an AWS key in a .env file, in a shell profile, or in an MCP server's settings, the AI can read it. And an AI that's been tricked by a web page will.

Step 1: see where the keys are

  1. Click Issues, then the Secrets chip.
  2. Credentials an agent can read lists each key by name and where it sits: a project .env file, a shell profile, an MCP server's settings, the AWS or gcloud credential files. ZYBE never reads the value, only that a key with that name is there.
  3. Credential in an MCP configuration is the worst kind: a key in plain text in a settings file every AI tool reads.
  4. Same credential on several endpoints means one key is on more than one laptop. If it leaks, you don't know from where.

Each issue says what to do. Usually: move the key into a secrets manager or the keychain, where AI tools don't read.

Step 2: stop the reads

  1. Click the gear icon, then Rules, then Detections.
  2. Click Agent read a credential file. Click Edit. Set When it matches to Block, or Ask if you'd rather developers decide each time. Click Save.

From now on, on every laptop where the AI tool shows Blocking, a read of .env, ~/.aws/credentials, an SSH key, a keychain export or similar is refused before it happens. The developer sees why. The AI is told it's a company rule.

To do it only for some teams or some AI tools, put the rule in a profile instead. See Different rules for different teams.

Step 3: catch a key leaving

Two more rules watch for a key that's already been read.

What the developer sees

In the terminal or editor, one sentence:

Blocked by your organisation's rule "Agent read a credential file" (ZYBE).

followed by a link to ask for an exception. If they click it and give a reason, the request lands on your Requests page. See Let someone past a rule.