← All projects
Project record1 mention
Originally shared on Hacker News

Weir

Weir is an Apache-2.0-licensed tool that catches credential leaks in AI agents. For agents you build, it plants fake credentials where real ones would live, runs the agent's normal flows, and checks telemetry, logs, console output, model requests, and requests to other services for those exact values (including common encoded forms), reporting where they went without printing the credential. For agents you use, it inventories real credentials as keyed fingerprints and shows when one enters your session or leaves in a tool call, currently supported for Claude Code, with an optional hook that redacts known credentials from tool results before the model sees them. The submitter reports it found GHSA-j7qq-vr8c-xvw3 in MLflow (fixed in 3.17.0).

Last shared For People who build and use AI agents
01 / The problem

What it addresses

Credentials crossing the boundaries of your AI agent.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Weir

    Weir is an Apache-2.0-licensed tool that catches credential leaks in AI agents. For agents you build, it plants fake credentials where real ones would live, runs the agent's normal flows, and checks telemetry, logs, console output, model requests, and requests to other services for those exact values (including common encoded forms), reporting where they went without printing the credential. For agents you use, it inventories real credentials as keyed fingerprints and shows when one enters your session or leaves in a tool call, currently supported for Claude Code, with an optional hook that redacts known credentials from tool results before the model sees them. The submitter reports it found GHSA-j7qq-vr8c-xvw3 in MLflow (fixed in 3.17.0).

    Problem: Credentials crossing the boundaries of your AI agent.

    Audience: People who build and use AI agents

    Posted by @CodeNinja778 · Original source ↗

    Story title · @CodeNinja778 · · Source ↗

    Show HN: Weir - Catch credential leaks in the AI agents you build and use

    Submitted URL · @CodeNinja778 · · Source ↗

    https://github.com/IdoGol24/weir

    Source text · @CodeNinja778 · · Source ↗

    Weir is for one problem: credentials crossing the boundaries of your AI agent.

    Source text · @CodeNinja778 · · Source ↗

    For agents you build, Weir plants fake credentials where real ones would live, runs the agent's normal flows, and checks what comes out: telemetry, logs, console output, model requests, and requests to other services.

    Source text · @CodeNinja778 · · Source ↗

    For agents you use, Weir can inventory your real credentials (it stores keyed fingerprints, never the values) and show when one enters your session or leaves in a tool call. Right now, this is supported for Claude Code.

    Source text · @CodeNinja778 · · Source ↗

    Its optional hook redacts those known credentials from tool results before the model sees them.

    Source text · @CodeNinja778 · · Source ↗

    Apache-2.0, no model in the loop, and Weir itself sends nothing anywhere.

    Source text · @CodeNinja778 · · Source ↗

    pip install weir-scan

    Source text · @CodeNinja778 · · Source ↗

    It found GHSA-j7qq-vr8c-xvw3 in MLflow (fixed in 3.17.0).