Skip to content

TruffleHog

TruffleHog helps you find passwords and access keys accidentally left in files or version history that your team owns.

Visit TruffleHog

Why check earlier versions of your app?

A password can disappear from the current files and still be present in the project’s saved history. TruffleHog can check that history in a repository you control. Decide which projects and dates you need covered before counting a clean current file as resolved.

What should your team do with a finding?

Treat the report as sensitive and share it only with the people responsible for the service. If a real key was exposed, have the owner revoke or replace it and confirm the app works with the replacement. Cleaning the file alone leaves the old key usable until the service invalidates it.

Which setup should you budget for?

The project has an open-source scanner you can operate yourself and a managed offering. With the scanner, someone still has to run checks, limit access to results and act on alerts. Compare those costs with the managed plan’s scope.

Who would fix a leaked key on a Friday night?

Use a fake example from an imaginary booking app. The practice is to find the right owner without sharing any actual credentials.

  1. Name the service owner
    Write who can invalidate the fictional key and who can update the app.
  2. Define the handoff
    Agree where the report should go and who confirms the old access has been revoked.