Skip to content

Add extra data if the private github key doesnt have access #4435

@jonathongardner

Description

@jonathongardner

Description

I commonly come across leaked github keys. The issue is TH shows them as verified (and shows the user who they belong to) but the key has been flagged so it doesnt provide access to any repositories. It would be helpful if there was a way to flag these types of findings.

Preferred Solution

Add an extra field KeyNeedsApproval to ExtraData.

Additional Context

You can see if a key needs approval:

$ ssh -F /dev/null -o IdentitiesOnly=yes -i testkey_ec.priv [email protected] "git-upload-pack 'trufflesecurity/trufflehog.git'"
ERROR: We're doing an SSH key audit.
Reason: unverified automatically (private key found in a public repository)
Please visit https://github.com/settings/keys/110617020 to approve this key so we know it's safe.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions