SecretSleuth Talk to IronTech

Find it before they do.

Secret Sleuth is a command-line tool that finds the passwords, keys and connection strings sitting in your config files, swaps them for DO_NOT_COMMIT_ placeholders, and puts git guards around the file so they can’t be committed by accident.

Not a public download. Talk to IronTech about your project to get started.

src/Billing.Api/appsettings.json

What --dry-run found, or the file after --full-scan.

Drag the lens. Left: after --full-scan. Right: what --dry-run found. Synthetic values. Real rule categories and placeholders.

Before the scan, appsettings.json holds a SQL connection string with a password, a SendGrid API key, a Laserfiche repository password and an SMTP password. A dry run flags all four (two Critical, two High) and leaves the Azure DevOps pipeline token alone. After a full scan the four values read DO_NOT_COMMIT_CONNSTR, DO_NOT_COMMIT_APIKEY, DO_NOT_COMMIT_LF_SECRET and DO_NOT_COMMIT_PASSWORD, the file is marked skip-worktree and the git hooks are installed.

Sends
Nothing. It runs when you call it, on your machine or in CI, and nothing runs in the background.
Runs as
.NET 10 global tool, Windows, Linux, macOS
Reads
JSON YAML XML .env INI TOML TypeScript JavaScript
Leaves alone
Azure DevOps tokens like $(DbPassword) and __Token__
Exits
0 clean, 2 findings, 1 on error: ready for a pull-request gate

Five steps from exposed to fixed.

Every path in starts with a dry run that changes nothing. You see what it found before a single file is touched.

Nothing is lost. The real values stay in git HEAD, and one command puts back every file you haven’t edited since. More on recovery

SecretSleuth restore --all --remove-hooks
How a full scan changes your repo
  1. Preview

    Finds and reports without changing scanned files, Git protection or the manifest. Reports and, when findings exist, setup scripts go under your profile by default; --report can choose another location.

    SecretSleuth --dry-run
  2. Seal and guard

    Swaps each value for a DO_NOT_COMMIT_ placeholder, marks tracked files skip-worktree, and installs hooks that also block staged placeholders in untracked files. Asks first, the first time.

    SecretSleuth --full-scan
  3. Run it locally again

    When findings exist, run the generated script at the exact path printed by the tool. It prompts for development values and saves them outside the repository.

    & "$HOME\.ironforge-secretsleuth\reports\setup-dev-secrets-my-project.ps1"
  4. Work as usual

    Plain git for every other file. stage, pull and branch-switch for the few that hold placeholders.

    SecretSleuth status
  5. Remediate

    Move the secret to Key Vault or User Secrets, commit a safe value where the placeholder was, and mark the finding done. That count is what the executive summary reports.

    SecretSleuth remediate --mark <id> --target keyvault

It tells you what happened, and what to do next.

Each run ends with the counts by severity, the path to the report, and the next command. status lists every problem in a protected file next to the command that fixes it.

> SecretSleuth --dry-run
  [!] src\Billing.Api\appsettings.json — 4 finding(s)
  [!] src\Billing.Web\src\environments\environment.ts — 1 finding(s)
[IronForge Secret Sleuth] Total findings: 5

── SCAN COMPLETE ───────────────────────────────────
  5 finding(s) detected.
  Critical: 2   High: 3

  Report:
    C:\Users\you\.ironforge-secretsleuth\reports\IronForge-SecretSleuth-billing-<timestamp>.html

  Next steps:
    1. Open the HTML report above for full details on each finding.
    2. Track remediation: SecretSleuth remediate --repo "c:\repos\billing" --list
> SecretSleuth status
── SECRETSLEUTH STATUS ─────────────────────────────
  Protected files   : 2 (skip-worktree), 0 (assume-unchanged)
  Pending findings  : 5
  Pre-commit hook   : installed
  Post-merge hook   : installed

  1 problem(s):
  - src\Billing.Api\appsettings.json has edits git cannot see (line(s) 7)
      fix: SecretSleuth stage --file src\Billing.Api\appsettings.json

Output format from the CLI; repository and counts are an example.

Three guards stay on the file until you remove them.

A sealed file is not just edited. Git is told to keep its hands off it, and two hooks watch the doors. All three live in your clone's .git folder and are never pushed, so each developer runs the scan in their own clone.

skip-worktree

Git stops seeing the file.

A git pull or checkout that would write the real secret back over your placeholder fails loudly instead of silently restoring it.

> git pull
error: Your local changes to the following files
would be overwritten by merge:
	src/Billing.Api/appsettings.json
pre-commit

Placeholders cannot be committed.

The hook checks what is staged, not what is on disk, so committing your own edits through stage still works.

[IronForge Secret Sleuth] BLOCKED: appsettings.json
contains a DO_NOT_COMMIT_ placeholder
post-merge

A merge that restores a secret gets caught.

After every merge it checks each protected file still holds its placeholders, and asks for a re-scan when one does not.

> git merge feature/billing
[IronForge Secret Sleuth] WARNING:
src/Billing.Api/appsettings.json no longer contains
its obfuscated placeholder — secret may have been
restored by this merge.

Existing hooks are never overwritten. They are renamed to <hook>.ifss-backup and still run after the Secret Sleuth check.

Want to see this on your own repository? Talk to us about your project.

Talk to IronTech

Your git habits change for a handful of files. Not forever.

For every file without a placeholder, it is plain git. For the few that hold one, four commands take the place of the ones git would refuse. Once remediation is committed and the files are unfrozen, you are back to plain git everywhere.

The daily workflow, command by command
Instead ofUseWhy
git pull SecretSleuth pull Puts real values back, pulls, re-seals. Refuses to drop your edits.
git checkout <branch> SecretSleuth branch-switch --to <branch> Stashes only your genuine changes, switches, re-protects.
git add appsettings.json SecretSleuth stage --file appsettings.json Stages your edited lines; every other line comes from HEAD.
git update-index --no-skip-worktree SecretSleuth restore --file <path> Real values back, protection cleared, nothing guessed.

Keep real values out of the repository.

After a scan the repo holds placeholders, and development values live in local stores outside it. An assistant with access to your machine may still be able to read your profile, so review terminal commands before approving them.

When an agent pastes a key into a protected file, stage checks the edited lines and refuses to write a new-looking secret to the index.

Guidance for teams using AI assistants

Repository indexed by your assistant

  • appsettings.jsonDO_NOT_COMMIT_CONNSTR
  • environment.tsDO_NOT_COMMIT_APIKEY

Your user profile outside the workspace

  • %APPDATA%\Microsoft\UserSecrets\<id>\secrets.json
  • ~/.ironforge-secretsleuth/user-secrets/<id>/secrets.json
  • .env.localgit-ignored

A paper trail for whoever asks.

One command turns the manifest into a print-ready summary for leadership. No rescan, no file paths, nothing a manager has to decode.

Sample output of exec-summary, test data. Top of the first page.
  1. Progress in one line.Totals and percent complete come straight from the manifest, so the number moves as findings are marked done.
  2. Risk without the map.The spotlight names category, severity and age only. No file paths or keys leave the engineering team.
  3. Where the work is.Completion per category, plus a monthly found-versus-resolved chart once remediation spans months.

Every scan writes an HTML report with a copyable remediation command per finding. Full scans with findings and git protection enabled also write a manifest that tracks each finding under a stable ID. Scans with findings write the dev setup script unless --no-dev-secrets is set. remediate --export-workitems turns the pending list into a CSV for your board. Reports and the manifest

What it will not do for you.

Stated as plainly as what it does, so nobody finds out the hard way.

Every limit, in detail
  • It does not clean git history. A secret committed last year is still in git log. Use git filter-repo or BFG, then coordinate the force-push.
  • It does not rotate credentials. Anything it finds that was ever committed should be treated as compromised and rotated at the source.
  • It cannot make browser code secret. Values compiled into an Angular or React bundle are visible in DevTools. It keeps them out of git; backend credentials still belong behind an API.
  • It does not encrypt local dev values. User Secrets and the profile store are plaintext files in your user profile: outside the repository, not encrypted at rest. Use them for development values only.
  • Its guards are local. git commit --no-verify skips them, and a clone nobody has scanned has none. Keep the pull-request gate as the backstop.
  • Detection is heuristic. Review the findings. Mark the wrong ones with remediate --false-positive and later scans skip them.

Let’s find yours first. Nothing changes until you say so.

Every team’s repositories, stack and pipelines are different. Talk to IronTech Software Solutions about your project, and we’ll work out together how Secret Sleuth can help.

When you get in touch, tell us how many repositories you want to protect, your stack (.NET, Angular or both), and where your CI runs (Azure DevOps or elsewhere).

The Sleuth, a shield with a detective hat peering through a magnifying glass