Shield Agent AI

All replays

Command replay (a class of call, not one reported incident)

Read a gcloud config file: how to stop it

What happens

Read a gcloud config file. The call below tries to read a credentials file. The agent sends it through its Bash tool, and it involves Google Cloud.

The call

cat ~/.config/gcloud/configurations/config_default

Tool: Bash. The replay uses placeholder tokens and hosts only.

Fix it without us

Add a deny rule such as Read(~/.config/gcloud/**) to the Claude Code settings, and run the agent in a container or as a separate OS user that cannot see the gcloud folder. A Read rule also covers shell commands such as cat, but not a script that opens the file itself, so enable the Claude Code sandbox when the block must hold.

What KYA does

Replay result: Stopped. In the replay test, the local hook denies the call and names the rule.

Rule secret-read-gcloud, first stopped in version 0.33.0.

The hook is local and advisory. It fails open: if kya breaks or times out, the call goes ahead.

Install

For Claude Code, the host this replay ran on:

/plugin marketplace add The-Pixel-Boys/shield-kya
/plugin install kya@shield-kya

For any host:

npm i -g @shield-agent/kya@latest && kya start

Does a client ask how you control AI coding agents?

The Answer Pack drafts your answers to the AI section of a client security questionnaire.

Get the Answer Pack