← Catalog

@raquezha/noleaks

Security credentials protector shield for the Pi Coding Agent — blocks LLM access to .env, keys, and secrets

Package

Install

Install with PiG

pig install npm:@raquezha/noleaks

Install with Pi

pi install npm:@raquezha/noleaks
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "extensions"
  ]
}

README

Written by the package's publisher, shown as published in version 0.0.7 (README.md). PiG does not review it.

noleaks

Senior-grade credentials guard and Data Loss Prevention (DLP) shield for the Pi Coding Agent. It intercepts tool calls to block unauthorized access to sensitive files and redacts secrets from tool outputs.

Security model: noleaks is a powerful defense-in-depth "seatbelt," not an airtight sandbox. It prevents accidental leaks and stops common AI exfiltration techniques. For untrusted code or unattended automation, always use a real sandbox like Docker or a Micro-VM.

Key Features

  • 3-Tier Security Modes: Switch between max, basic, and off using the /noleaks command.
  • Output Scrubbing (DLP): Automatically redacts tokens, keys, and secret assignments from any tool's stdout before the agent sees it.
  • Symlink Guard: Resolves paths to their "real" location on disk, preventing bypasses using symbolic links.
  • Obfuscation Detection: Normalized Unicode (NFKC) and hidden/control-character checks detect homoglyph attacks and command obfuscation while allowing normal shell whitespace in multi-line commands.
  • Universal Word Scanning: Scans every word in a bash command to catch dangerous utilities hidden as arguments (e.g., sudo chmod).

Commands

CommandDescription
/noleaksShow session statistics (blocked calls, redacted secrets).
/noleaks mode max(Default) Blocks sensitive paths AND redacts secrets from output.
/noleaks mode basicAllows reading sensitive paths but still redacts secrets from the output (Safe Debugging).
/noleaks mode offDisables all path blocking and redaction (Status icon: 🔓).

What it blocks (in MAX mode)

CategoryExamples
Environment files.env, .env.local, .env.production
Private keysid_rsa, id_ed25519, .pem, .key, .p12, .pfx, .keystore
Credential storesauth.json, .npmrc, .netrc, .pypirc, .pi-secrets/, ~/.ssh/
Cloud / platform config~/.aws/, ~/.azure/, ~/.config/gcloud/, ~/.docker/, ~/.kube/, ~/.gnupg/
Discovery Toolsnmap, tcpdump, wireshark (when combined with secrets)

Usage

# Load directly
pi --extension ./packages/noleaks

# Via nothing mindset (meta)
pi --meta

Settings

Settings are persisted to ~/.pi/agent/noleaks.json. You can also enable it globally by setting "noleaks": true in your main settings.json.