Identity Guard

ReviewAudited by ClawScan on May 10, 2026.

Overview

Identity Guard is a coherent privacy-protection skill, but its authorization check can approve a sender across any channel when channel data is omitted, so it should be reviewed before use.

Install only if you are comfortable maintaining an identities.json allowlist. Before using it in groups, initialize the intended master in a private session, require channel-aware checks, avoid broad global allowlists, and treat sender IDs as private identifiers.

Findings (5)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

A user authorized in one channel, or an ID collision across channels, could be treated as authorized somewhere else if the agent does not pass the channel.

Why it was flagged

For a guard intended to protect sensitive information in multi-user sessions, allowing authorization to fall back to any configured channel broadens the permission boundary when channel metadata is missing or omitted.

Skill content
If channel is not provided, the script will check if the sender is authorized in ANY channel.
Recommendation

Require both trusted sender_id and trusted channel for sensitive checks, fail closed when channel is missing, and reserve global allowlist behavior for explicit administrator choice.

What this means

If the bot is exposed before the intended owner initializes it, the first eligible DM setup could claim the master role.

Why it was flagged

The skill can persistently set the initial master identity through chat. This is disclosed and bounded to first-time DM setup, but it determines future access control.

Skill content
The assistant may initialize identities.json via chat only if: No master_id is configured for the channel yet, and The request comes from a DM...
Recommendation

Initialize the guard in a controlled private session before deployment, review identities.json, and restrict who can modify the file.

What this means

The agent may rely on a local script result to allow or deny sensitive requests.

Why it was flagged

The skill asks the agent to run a local shell helper for authorization decisions. This is central to the stated purpose and scoped to the bundled script.

Skill content
Execute the verification script: ./scripts/guard.sh <sender_id> [channel]
Recommendation

Use the bundled script path, review identities.json before relying on it, and avoid letting untrusted users choose arbitrary script paths or arguments.

What this means

Setup or helper commands may fail unexpectedly on systems without the required local tools.

Why it was flagged

The registry metadata declares no required binaries, but this bundled helper requires rg. This is a dependency declaration gap rather than evidence of hidden installation.

Skill content
echo "ripgrep (rg) is required for whoami.sh"
Recommendation

Declare optional helper dependencies such as rg and python3 in metadata or document clearly which features need them.

What this means

Running the helper against shared or broad session logs could reveal a sender ID that should not be posted publicly.

Why it was flagged

The whoami helper searches local OpenClaw session logs to find sender_id values. It outputs only the matched ID, but session-derived identifiers are sensitive.

Skill content
SESSIONS_DIR="${HOME}/.openclaw/agents/${AGENT_ID}/sessions"
Recommendation

Prefer current message metadata for whoami, run the helper locally or in DM, and avoid sharing sender IDs in group chats.