Home / Claude Code mods / Security / env-exfil-guard

env-exfil-guard

env-exfil-guard is a Claude Code mod by baselane-sh that asks before a command prints your environment, echoes a secret variable or sends local data to a remote host.

Updated 2026-10-06

What is env-exfil-guard?

env-exfil-guard is a Claude Code mod by baselane-sh that asks before a command prints your environment, echoes a secret variable or sends local data to a remote host. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
Authorbaselane-sh
Repositorybaselane-sh/mods
Popularity1 GitHub stars
CategorySecurity
SecurityLow risk (100/100)
Rank#1,555 of 5,272 Claude Code mods; #172 in Security
LicenseMIT
Last commit2026-10-06
Hooks1 events
Seesclassic hooks
Draws onnothing

Is env-exfil-guard safe to install?

env-exfil-guard scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

How do I install env-exfil-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/baselane-sh/mods
    claude plugin validate ./mods/plugins/env-exfil-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add baselane-sh/mods && claude plugin install env-exfil-guard@baselane-mods-dev

Or ask Claude to set it up

Paste this into Claude Code and it installs env-exfil-guard for you:

Install the "env-exfil-guard" Claude Code mod from https://github.com/baselane-sh/mods/tree/main/plugins/env-exfil-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from baselane-sh/mods

This repository has at least 9 Claude Code mods on MCPMods.

  • achievements: Unlocks eight badges once each (first session, first green test run, 100 and 1,000 tool calls, 7-day streak, 10 blocked (Low risk)
  • agent-firewall: A live pane of every tool call the agent makes: green when it ran, red when it was blocked, with counters. Open it with (Low risk)
  • ahead-behind: A band above the prompt with the commits ahead and behind the upstream (↑2 ↓1), read with git status after each Bash cal (Low risk)
  • audit-pack: Three read-only audit commands in one mod: /secret-scan, /conflicts and /licenses. They read git, project files and depe (Low risk)
  • authors: Adds /authors: the top 15 contributors by commit count with their last commit date, from git log. Names only, never emai (Low risk)
  • auto-format: Runs your project's own formatter on each file Claude writes or edits, only when the project has a formatter config, and (Low risk)
  • auto-lint: Runs your project's own linter fix (eslint, ruff or golangci-lint) on each file Claude writes or edits, only when the pr (Low risk)
  • band-pack: The first six Baselane band meters in one row above the prompt: session cost, lattes, context bar, today's spend, the fo (Low risk)