GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Toxx-dev/verify-dont-trust: A leak scanner for things that were never meant to ship: old brand names, absolute paths, credential strings, unfinished placeholders. Zero dependencies. · 发布前的泄漏扫描器:旧品牌名、绝对路径、密钥字符串、未替换的占位符。零依赖。 · 公開前の漏れを見つけるスキャナ:古いブランド名、絶対パス、鍵らしい文字列、未置換のプレースホルダ。依存なし。 · 공개 전에 새는 것을 찾는 스캐너: 오래된 브랜드 이름, 절대 경로, 키 모양 문자열, 바꾸지 않은 자리표시자. 의존성 없음.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples/clean-site
examples/clean-site
 
 
.leakscan.json
.leakscan.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
verify.mjs
verify.mjs
 
 

Repository files navigation

verify-dont-trust

scan

A leak scanner for things that were never meant to ship. Zero dependencies, one file, exit code 1 when it finds something — so it drops straight into CI.

node verify.mjs --dir ./public

Getting it

No install, no dependencies — one file and Node 18 or newer.

git clone https://github.com/Toxx-dev/verify-dont-trust.git
cd verify-dont-trust

node verify.mjs --self-test            # 10/10 — the scanner proves itself before it is trusted
node verify.mjs --dir examples/clean-site   # a clean folder: exit 0, nothing found

Then point it at the folder you are about to publish, or copy verify.mjs into a project and wire it into your deploy step.

Why this exists

Every project has a "before you publish" checklist. Every checklist gets skipped exactly once — the late night, the final deploy, the twenty minutes before an interview.

And the things that leak are rarely dramatic:

  • the client's old brand name, still sitting in a <title> three files away
  • an absolute path from the machine that built it (C:\Users\you\client-project\) — which tells a stranger your username and your folder layout
  • a test key left in a config
  • a TODO: replace before launch that nobody replaced
  • a .pem in the folder, which a text-only scanner will happily approve

None of those throw an error. All of them are visible to a stranger in one click. The last one is the reason this tool checks file names as well as contents: the first version of it scanned only text, and its own self-test caught it missing a private key file. That is the argument for shipping a self-test with a scanner.

What it checks

rule catches
private-key -----BEGIN … PRIVATE KEY----- blocks pasted into text
key-file .pem .key .p12 .pfx .jks files in the folder
ssh-key id_rsa, id_ed25519, and friends
dotenv .env files
credentials-file credentials, secrets, .npmrc, .netrc, service-account JSON
aws-access-key · github-token · slack-token · stripe-key · google-api-key · openai-style-key credential-shaped strings
absolute-windows-path · absolute-home-path · file-url paths from a builder's machine
term anything you list in your config — old brands, client names, internal hostnames
todo · replace-me · placeholder-word · lorem unfinished text in HTML/CSS about to be published

Secret-shaped matches are redacted in the report, so a finding can be pasted into an issue without leaking the very thing it caught.

Configuration

node verify.mjs --example-config > .leakscan.json
{
  "terms": [
    { "value": "oldbrandname.com", "why": "the domain we moved off" },
    { "value": "Acme Holdings LLC", "why": "must not appear on a public page" }
  ],
  "placeholders": true,
  "ignore": ["CHANGELOG.md", "fixtures/**", "*.txt"]
}
  • terms — plain strings, matched case-insensitively. Add "regex": true for a pattern, "caseSensitive": true if you must.
  • placeholders — the TODO/placeholder pass, applied to HTML and CSS only (it would be noise in code).
  • ignore — globs, relative to the scanned folder. * within a path segment, ** across them.

The file is picked up automatically: the scanner reads .leakscan.json from the folder you are scanning, then from the current folder. --config <file> names a different one. (This repo ignores its own README.md and verify.mjs that way — both quote example leaks on purpose.)

Also scans a URL

node verify.mjs --url https://example.com

Same rules, applied to the bytes a server actually hands out — which is not always the same as the file you edited.

Machine-readable output for CI

node verify.mjs --dir ./public --json > report.json
# exit 1 means findings; fail the build on it

Self-test

node verify.mjs --self-test

Builds a clean fixture and a dirty one in a temp directory and asserts every rule fires, that findings carry line numbers, that secrets are redacted, and that ignore globs work. A checker you have never seen fail is a checker you cannot trust — so this one proves itself before it is trusted with anything.

Scope, honestly

It is a text scanner, not a secret detector with entropy analysis. It will not find a secret that looks like an ordinary string. It cannot see inside images, PDFs, node_modules, or a git history — git log -p | grep is still your friend for the last one.

What it does is catch the four classes of mistake that actually reach a public folder, cheaply, in under a second, without a network call unless you ask for one.

中文

发布之前,先扫一遍。 一个准备公开的文件夹里不该出现的东西:旧品牌名、构建机器的绝对路径、密钥形式的字符串、没替换的占位符,还有本来就不该被发布的 .pem。零依赖,Node 18 起;只要发现一项就以 exit 1 退出,所以它可以直接放进 CI。

node verify.mjs --dir ./public
node verify.mjs --self-test     # 10/10

原则是只报告,不猜:每一项都给出文件名、行号和原因,密钥本身会被隐去。干净的时候它是安静的,这正是它能一直留在流水线里的原因。

它是文本扫描器,不做熵分析,也看不进图片、PDF、node_modules 或 git 历史。完整的范围说明与配置写法见上方英文部分。

日本語

公開する前に、一度スキャン。 公開用フォルダに入っていてはいけないものを見つけます:古いブランド名、ビルドしたマシンの絶対パス、鍵のような文字列、置き換え忘れたプレースホルダ、そしてそもそも公開すべきでない .pem。依存なし、Node 18 以降。見つけた時点で exit 1 で終わるので、そのまま CI に入ります。

node verify.mjs --dir ./public
node verify.mjs --self-test     # 10/10

方針は報告するだけで、推測しないこと。指摘はファイル名・行番号・理由まで出て、鍵そのものは伏せられます。何もなければ静かなので、パイプラインに置いたままにできます。

テキストスキャナであり、エントロピー解析はしません。画像、PDF、node_modules、git の履歴の中までは見られません。範囲と設定の詳細は上の英語の節にあります。

한국어

공개하기 전에 한 번 훑습니다. 공개용 폴더에 있으면 안 되는 것들을 찾습니다: 오래된 브랜드 이름, 빌드한 기계의 절대 경로, 키 모양 문자열, 바꾸지 않은 자리표시자, 그리고 애초에 공개되면 안 되는 .pem. 의존성 없음, Node 18 이상. 하나라도 찾으면 exit 1로 끝나므로 CI에 그대로 붙습니다.

node verify.mjs --dir ./public
node verify.mjs --self-test     # 10/10

원칙은 보고만 하고 추측하지 않는 것입니다. 지적에는 파일 이름, 줄 번호, 이유가 함께 나오고 키 값 자체는 가려집니다. 깨끗할 때는 조용하기에 파이프라인에 두고 계속 쓸 수 있습니다.

텍스트 스캐너이며 엔트로피 분석은 하지 않습니다. 이미지, PDF, node_modules, git 히스토리 안쪽은 볼 수 없습니다. 전체 범위와 설정 방법은 위의 영어 절에 있습니다.

License

MIT — see LICENSE.

About

A leak scanner for things that were never meant to ship: old brand names, absolute paths, credential strings, unfinished placeholders. Zero dependencies. · 发布前的泄漏扫描器:旧品牌名、绝对路径、密钥字符串、未替换的占位符。零依赖。 · 公開前の漏れを見つけるスキャナ:古いブランド名、絶対パス、鍵らしい文字列、未置換のプレースホルダ。依存なし。 · 공개 전에 새는 것을 찾는 스캐너: 오래된 브랜드 이름, 절대 경로, 키 모양 문자열, 바꾸지 않은 자리표시자. 의존성 없음.

breathmark.team

Topics

ciclileak-detectionnodejspre-deploysecretssecuritystatic-site

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.