A key’s day

Part 1, Code · Step 13: Analyze

What sits behind a key: owner, reach, permissions, activity

What can it reach? TruffleHog shows which account the key belongs to and what it can do. A Stripe secret key has full access to every Stripe API, so this one can make charges, issue refunds, and read customer records. Anyone holding a copy can do the same until the key is shut off.

Why it matters. Knowing the reach tells the team how urgent this is and who owns it.

See it in the lesson Part 1 recap

This really happened: Toyota, 2022

A contractor’s public repository held a key to a customer data server for almost five years. When it was found, Toyota’s access records couldn’t confirm or rule out that someone had used it.

Try it with TruffleHog open source

Shows detailed permissions for about 20 of the most commonly leaked key types.

trufflehog analyze

Sources

Keep going

More topics