Skip to content
Back to skills

Scan Secret Files

ASecurity

Friction, not a security boundary: flags files that are secrets by name or content -- private keys and key stores, Google service-account/OAuth JSON, kubeconfig users, AWS, npm, PyPI, netrc, git, pgpass, docker, Composer, NuGet, Maven credentials, tfstate/tfvars, non-template .env, framework secret files, browser stores, an agent's local settings or env file (.claude/settings.local.json, .gemini/.env, whatever it holds). Blocks; encrypted keys, notebook outputs and test, fixture, example, doc...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 3, 2026
ai-agentsgoshelldockerawsterraformgitsecurity

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add open-coder-ai/chock-catalog --skill scan-secret-files --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scan Secret Files?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scan Secret Files
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-coder-ai-scan-secret-files/badge)](https://www.skillsdirectory.com/skills/open-coder-ai-scan-secret-files)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scan-secret-files
description: "Friction, not a security boundary: flags files that are secrets by name or content -- private keys and key stores, Google service-account/OAuth JSON, kubeconfig users, AWS, npm, PyPI, netrc, git, pgpass, docker, Composer, NuGet, Maven credentials, tfstate/tfvars, non-template .env, framework secret files, browser stores, an agent's local settings or env file (.claude/settings.local.json, .gemini/.env, whatever it holds). Blocks; encrypted keys, notebook outputs and test, fixture, example, doc, lock and eval paths ask. Misses: renamed binary stores other than PKCS#12/JKS/DER, unlisted secret names, values split or encoded."
metadata:
  chock.artifact: hook
  chock.enforcement: block
  chock.coverage_without_chock: advisory
---

# Scan Secret Files

Friction, not a security boundary: flags files that are secrets by name or content -- private keys and key stores, Google service-account/OAuth JSON, kubeconfig users, AWS, npm, PyPI, netrc, git, pgpass, docker, Composer, NuGet, Maven credentials, tfstate/tfvars, non-template .env, framework secret files, browser stores, an agent's local settings or env file (.claude/settings.local.json, .gemini/.env, whatever it holds). Blocks; encrypted keys, notebook outputs and test, fixture, example, doc, lock and eval paths ask. Misses: renamed binary stores other than PKCS#12/JKS/DER, unlisted secret names, values split or encoded.

```
on(commit|tool_use): block(script) script=scan-secret-files-gate.py
This file is a secret, or holds one: a private key or key store, a cloud, registry or tool credential file, Terraform state, a dotenv file with live values, or a browser credential store. Keep it out of the repository: add it to .gitignore, load the value from the environment or a secret manager, and commit a template with placeholders (.env.example) instead. Rotate any credential that was written or pushed. There is no inline waiver; a person who has reviewed a fixture commits it from their own shell.
```

This skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` blocks at commit, on an agent's file writes and at turn end. See https://github.com/open-coder-ai/chock

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.