trufflesecurity/driftwood

Private key usage verification

436

stars

8

commits

Go

primary language

Apr 4, 2025

updated

trufflesecurity.com
credentials
secret
secret-management
trufflehog

README

Driftwood

⚠️ The Driftwood CLI tool is no longer supported. Please use TruffleHog instead! ⚠️

CI Status Go Report Card Docker Hub Build Status GitHub

Driftwood is a tool that can enable you to lookup whether a private key is used for things like TLS or as a GitHub SSH key for a user.

Driftwood performs lookups with the computed public key, so the private key never leaves where you run the tool. Additionally it supports some basic password cracking for encrypted keys.

You can read more on it here

Driftwood in action

Installation

Three easy ways to get started.

Run with Docker

cat private.key | docker run --rm -i trufflesecurity/driftwood --pretty-json -

Run pre-built binary

Download the binary from the releases page and run it.

Build yourself

go install github.com/trufflesecurity/driftwood@latest

Usage

Minimal usage is

$ driftwood path/to/privatekey.pem

Run with --help to see more options.

Library Usage

Packages under pkg/ are libraries that can be used for external consumption. Packages under pkg/exp/ are considered to be experimental status and may have breaking changes.

Contributors

dustin-decker

4 commits

dxa4481

1 commits

trufflesecurity/driftwood

Private key usage verification

436

stars

8

commits

Go

primary language

Apr 4, 2025

updated

trufflesecurity.com
credentials
secret
secret-management
trufflehog

README

Driftwood

⚠️ The Driftwood CLI tool is no longer supported. Please use TruffleHog instead! ⚠️

CI Status Go Report Card Docker Hub Build Status GitHub

Driftwood is a tool that can enable you to lookup whether a private key is used for things like TLS or as a GitHub SSH key for a user.

Driftwood performs lookups with the computed public key, so the private key never leaves where you run the tool. Additionally it supports some basic password cracking for encrypted keys.

You can read more on it here

Driftwood in action

Installation

Three easy ways to get started.

Run with Docker

cat private.key | docker run --rm -i trufflesecurity/driftwood --pretty-json -

Run pre-built binary

Download the binary from the releases page and run it.

Build yourself

go install github.com/trufflesecurity/driftwood@latest

Usage

Minimal usage is

$ driftwood path/to/privatekey.pem

Run with --help to see more options.

Library Usage

Packages under pkg/ are libraries that can be used for external consumption. Packages under pkg/exp/ are considered to be experimental status and may have breaking changes.

Contributors

dustin-decker

4 commits

dxa4481

1 commits

Languages

Go

97.1%

Dockerfile

2.9%