Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] New version can't find the secret for git? #1601

Closed
rufherg opened this issue Aug 3, 2023 · 3 comments
Closed

[Question] New version can't find the secret for git? #1601

rufherg opened this issue Aug 3, 2023 · 3 comments

Comments

@rufherg
Copy link

rufherg commented Aug 3, 2023

Scene

I use the k8s-goat to learn k8s security. And then it recomand the tool which named 'trufflehog'.
https://madhuakula.com/kubernetes-goat/docs/scenarios/scenario-1/sensitive-keys-in-codebases-in-kubernetes-containers/welcome/#-method-2
It's built in the pod. I can use the built-in trufflehog to find some secrets as the paper say.

But when i download the latest version about trufflehog to compare with built-in trufflehog. I find that i can't find any secret. I don't know what causes this result。Can u help me to search for the truth?Thank u~

The latest version command

./trufflehog git file:///app

# result
🐷🔑🐷  TruffleHog. Unearth your secrets. 🐷🔑🐷

2023-08-02T09:51:43Z    info-0  trufflehog      finished scanning       {"chunks": 6, "bytes": 3075, "verified_secrets": 0, "unverified_secrets": 0}
@zricethezav
Copy link
Collaborator

@rufherg that guide is referencing an old version of TruffleHog(v2). The secret it is likely scanning is not live and/or may be a multi-part credential. Trufflehog does not flag secrets based on entropy alone anymore as that caused a lot of false positives.

@rufherg
Copy link
Author

rufherg commented Aug 4, 2023

@zricethezav Thanks for your answer!

@madhuakula
Copy link

Thanks @zricethezav and also updated the new trufflehog in the container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants