E

env-guard

Stops Claude Code from reading your .env secrets via Read, Bash or Grep

yannigoyal/env-guard · v0.2.0 · Development & Workflow

by yannigoyalOwner verifiedScan grade: GoodAwesome AI Plugins

Claude Code can read any file in your project, including your .env. One "show me the config" and your API keys are in the chat log.

Follow0
Protect this install with HOL Guard

Guard checks the skills and MCP servers a plugin adds on your machine and asks you before a risky action runs. The scores above are free, and no plan changes them.

Is env-guard a fit?

From the plugin's manifest and HOL's scan. Anything the plugin does not declare is shown as not declared.

Works with

  • Claude Code
  • 1 skill

Before you install

Sign-in
Not declared
Declared access
Not declared
License
MIT

Check before relying on it

About env-guard

env-guard adds a PreToolUse hook that checks every Read, Bash and Grep request before it runs. If it mentions a .env file, the action is blocked, and Claude is told why. .env.example, .env.sample and .env.template still work.

It also adds /env-guard:env-check, which lists any .env files tracked by git and shows how to untrack them.

What it never does:
• No network access; nothing is sent anywhere
• Never reads, logs or stores your .env contents
• Never changes settings.json or your permissions

Install in Claude Code:
/plugin install env-guard --marketplace yannigoyal/env-guard

Free and open source (MIT). Needs jq.

What is env-guard?

env-guard is a published development & workflow plugin for AI coding agents in the Claude Code ecosystem, developed by yannigoyal and distributed through the HOL AI plugin registry. Claude Code plugin that checks Read, Bash and Grep requests for `.env` paths and reports tracked `.env` files without reading their values.

Canonical slug
yannigoyal/env-guard
Version
v0.2.0 · updated Nov 11, 2026

Registry snapshot

Owner verification
Verified on HOL as @yannigoyal
Marketplace source
.claude-plugin/marketplace.json
Scanner
HOL plugin scanner
Security result
Needs review
Digest verified
Yes
1 bundled skillRead, copy or download each SKILL.mdOpen skills

Trust and security

Trust & reputation

On-Chain Verified
80

HOL Trust Score

Per-metric points (0–100 each) combined via a weighted average into the overall score.

Installability
100/100
Maintenance
40/100
MCP server setup
100/100
Plugin Security
84/100
Provenance
80/100
Publisher Quality
100/100

Provenance

Plugin root
.
Source repo
https://github.com/yannigoyal/env-guard
Source commit
f5cda6893aef…
Publisher verified
Yes
Owner verified
@yannigoyal
Agent Plugins 1.0
Not detected

Continuous scanner CI not detected

This plugin remains listed. Its overall trust score is reduced by 10% because security checks are not maintained in the source repository's CI.

Optional: maintain the scanner in the source repository's CI to receive the full trust score. Listing does not require that change.

README badge detected

The source repository README links to this HOL listing. Distribution, not security evidence. It adds a 2% engagement adjustment to the overall trust score and never changes the security result.

Needs review
Security result
84
Security score
0
High findings
Provider
codex-plugin-scanner
Grade
B · Good
Version
3.24.2
codex:hol-plugin-scanner-XFpIS2 / cisco-skill-scanner: failedcodex:hol-plugin-scanner-XFpIS2 / cisco-mcp-scanner: skipped

[claude:.] Claude Plugin

18/18

5 checks

[claude:.] Security

13/16

6 checks

[claude:.] Operational Security

N/A

5 checks · not applicable

[claude:.] Code Quality

10/10

2 checks

[codex:.] Manifest Validation

21/31

9 checks

[codex:.] Security

13/16

9 checks

[codex:.] Operational Security

N/A

5 checks · not applicable

[codex:.] Best Practices

9/12

5 checks

[codex:.] Marketplace

N/A

3 checks · not applicable

[codex:.] Skill Security

5/5

4 checks

[codex:.] Code Quality

10/10

2 checks

Published advisories

None matched in GitHub security advisories, checked . This covers published advisories only, not problems nobody has reported.

GitHub security advisories are those the source repository has published.

Findings

lowsecuritySECURITY_MD_MISSINGReported 2 times

Plugins should publish a SECURITY.md file for responsible disclosure and support guidance.

Add a SECURITY.md file with reporting guidance and supported versions.

infomanifest-validationPLUGIN_JSON_RECOMMENDED_HOMEPAGE

The manifest is missing the documented recommended field "homepage".

Add "homepage" to strengthen the plugin manifest metadata.

infomanifest-validationPLUGIN_JSON_INTERFACE_SHORTDESCRIPTION

The interface object is missing a valid "shortDescription" value.

Add a valid "shortDescription" field to the interface metadata.

infomanifest-validationPLUGIN_JSON_INTERFACE_LONGDESCRIPTION

The interface object is missing a valid "longDescription" value.

Add a valid "longDescription" field to the interface metadata.

infomanifest-validationPLUGIN_JSON_INTERFACE_CATEGORY

The interface object is missing a valid "category" value.

Add a valid "category" field to the interface metadata.

infomanifest-validationPLUGIN_JSON_INTERFACE_CAPABILITIES

The interface object is missing a valid "capabilities" value.

Add a valid "capabilities" field to the interface metadata.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_WEBSITEURL

The interface field "websiteURL" must use HTTPS or point to a safe in-repo asset.

Update "websiteURL" to use HTTPS or an existing relative asset path.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_PRIVACYPOLICYURL

The interface field "privacyPolicyURL" must use HTTPS or point to a safe in-repo asset.

Update "privacyPolicyURL" to use HTTPS or an existing relative asset path.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_TERMSOFSERVICEURL

The interface field "termsOfServiceURL" must use HTTPS or point to a safe in-repo asset.

Update "termsOfServiceURL" to use HTTPS or an existing relative asset path.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_COMPOSERICON

The interface field "composerIcon" must use HTTPS or point to a safe in-repo asset.

Update "composerIcon" to use HTTPS or an existing relative asset path.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_LOGO

The interface field "logo" must use HTTPS or point to a safe in-repo asset.

Update "logo" to use HTTPS or an existing relative asset path.

infomanifest-validationPLUGIN_JSON_INTERFACE_ASSET_SCREENSHOTS

The interface field "screenshots" must use HTTPS or point to a safe in-repo asset.

Update "screenshots" to use HTTPS or an existing relative asset path.

infobest-practicesCODEXIGNORE_MISSING

A .codexignore file helps prevent accidental inclusion of local artifacts and secrets.

Add a .codexignore file with generated assets, local state, and secret paths.

Install guidance

Install in Claude Code

Install through the Claude Code plugin marketplace.

Claude Code plugin docs

Optional: install HOL Guard for Claude Code first, so it can check this plugin's tools on your machine before Claude Code uses them.

  1. 1

    Add the marketplace

    Run this inside a Claude Code session. It registers the marketplace manifest shipped at the repository root. If the repository ships none, add the generated entry from the Advanced section below first.

    claude code
  2. 2

    Install the plugin

    Installs the env-guard entry from the yannigoyal-plugins marketplace.

    claude code
  3. 3

    Scripted alternative

    Non-interactive equivalent for scripts and CI pipelines. Add --scope project to pin the install to one repository.

    shell
  4. 4

    Check it is installed

    Lists installed plugins. The entry should appear as enabled.

    shell

To remove it later, run claude plugin uninstall env-guard@yannigoyal-plugins.

Did setup work in Claude Code?

No setup reports for Claude Code yet. Self-reported by signed-in visitors. Copying a command is not counted, and most installs are never reported.

Attested installs: Fewer than 10 attested installs of this plugin in week 2026-W45, so no number is shown. Counted from opt-in HOL Guard install reports, once per machine and runtime, and never mixed with the answers above. How install reports work.

Env guard cover
1 / 1

Env guard cover

Full size
Loading reviews

Plugin manifest

{
  "name": "env-guard",
  "displayName": "Env Guard",
  "version": "0.2.0",
  "description": "Blocks Claude from reading .env files and mobile signing keys (Android keystores, iOS .p12/.p8), and checks whether any .env files are tracked by git. No network access, no settings changes.",
  "author": {
    "name": "Yanni Goyal",
    "url": "https://github.com/yannigoyal"
  },
  "repository": "https://github.com/yannigoyal/env-guard",
  "license": "MIT",
  "keywords": [
    "security",
    "secrets",
    "dotenv",
    "android",
    "ios",
    "keystore"
  ],
  "interface": {
    "displayName": "Env Guard",
    "developerName": "yannigoyal"
  },
  "skills": "./",
  "holManifestOrigin": "repository",
  "registryIndexVersion": 9
}

Marketplace source

Repo URL
https://github.com/yannigoyal/env-guard
Marketplace path
.claude-plugin/marketplace.json
Source path
.
Install policy
Unspecified

Skills

1 SKILL.md file ship with this plugin. Preview, copy, or download each one, then install them with the Skills CLI.

Share
skills-cli
  • env-check

    skills/env-check/SKILL.md

    Check whether any .env files are tracked by git in the current repository. Use when the user asks about leaked secrets or committed env files.

    SKILL.md content is not in this snapshot. Open the raw file to copy it from the source repository.

File inventory

.claude-plugin/marketplace.json

file

203 bytes

9649ee7017eea052…

.claude-plugin/plugin.json

file

525 bytes

580cff1e23e600f9…

.codex-plugin/plugin.json

plugin-manifest

623 bytes

38662c7e20a734c2…

hooks/hooks.json

file

243 bytes

f625849d762a92a9…

LICENSE

file

1,424 bytes

5fcc1f73204d8b6e…

README.md

file

3,579 bytes

3fb9a4a80cc77351…

skills/env-check/SKILL.md

skill

534 bytes

ed7979949adf3c10…

env-guard — Frequently asked questions

What is env-guard?
env-guard is an AI plugin in the HOL registry. Claude Code can read any file in your project, including your .env. One "show me the config" and your API keys are in the chat log. env-guard adds a PreToolUse hook that checks every Read, Bash and Grep request before it runs. If it mentions a .env file, the action is…
How do I install env-guard?
Install env-guard in your harness: Claude Code — /plugin marketplace add yannigoyal/env-guard; Any agent — npx [email protected] add yannigoyal/env-guard. Full step-by-step guidance is on the HOL plugin page.
How do I install env-guard in HOL Guard?
To install env-guard in HOL Guard, start with hol-guard plugin install yannigoyal/env-guard --apply. The complete step-by-step install guide for HOL Guard is on the HOL plugin page.
How do I install env-guard in Claude Code?
To install env-guard in Claude Code, start with /plugin marketplace add yannigoyal/env-guard. The complete step-by-step install guide for Claude Code is on the HOL plugin page.
Is env-guard free?
env-guard is listed as open source on HOL.
How is the Trust Score for env-guard computed?
env-guard has a HOL Trust Score of 80 out of 100. The score is a weighted sum of six components from a static scan of the source, capped for high-severity findings and adjusted by two disclosed policies. Memberships and payments are not inputs, and a scan is not a safety guarantee. Full breakdown: https://hol.org/registry/plugins/yannigoyal%2Fenv-guard/trust
Who publishes env-guard?
env-guard is published by yannigoyal and listed on HOL.
Is env-guard available now?
env-guard is currently available according to its latest public launch.

Directory acceptance

Listed in 0 of 5 directory lists

Read from the list each directory publishes on GitHub. Being listed means the directory accepted the plugin; it is not a HOL security rating.

Lists last read . HOL re-reads them every day.

Submitting it? Check it against each directory's rules

Install signal

HOL cannot see every install. These are separate signals from different sources, so they are not added together. Counts under each floor show as <N.

Install commands issued here
<5
HOL Guard install commands issued from this listing, last 28 days.
Opt-in install reports
<10
Machines that reported installing it through HOL Guard in week 2026-W45. Reporting is opt-in, so most installs are not counted.
HOL Guard workspaces
<5
Workspaces that approved it or include it in an approved-plugin feed, as of today.
New GitHub stars
<5
From HOL's GitHub snapshots of the repository, 2026-11-03 to 2026-11-11.

History, reviews, and similar plugins

Latest launch