New Tool Will Find Secrets – Including Crypto Keys – in Your Public Code

A clever tool scours GitHub for secret keys and passwords that programmers inadvertently made public.

AccessTimeIconOct 29, 2019 at 6:01 p.m. UTC
Updated Aug 18, 2021 at 12:12 p.m. UTC

Presented By Icon

Election 2024 coverage presented by

Stand with crypto

Coding crypto projects is hard enough without running the risk of losing your private keys. Shhgit, a webapp and downloadable tool by Paul Price aims at least to reduce the chance of that happening.

The app, which is open source, scans code repository GitHub for dangerous files and data. As a beginning coder, you may have left your password data or private keys inside public repository without realizing. When this happens, hackers and other nasties can easily access your stuff.

  • Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
    13:18
    Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
  • Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
    05:10
    Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
  • The first video of the year 2024
    04:07
    The first video of the year 2024
  • The last regression video of the year 3.67.0
    40:07
    The last regression video of the year 3.67.0
  • "Finding these secrets across GitHub is nothing new," wrote Price, a programmer and security expert who goes by the handle Darkport. "There are many open-source tools available to help with this depending on which side of the fence you sit. On the adversary side, popular tools such as gitrob and truggleHog focus on digging in to commit history to find secret tokens from specific repositories, users or organizations."

    Sshgit is more public about these secrets: it offers a front-end that simply displays them as they appear on GitHub. This means hackers could watch it for potential places to exploit. But it also encourages safe coding because users know their public repositories are insecure.

    Not everything sshgit uncovers is dangerous information but you can also set it to search for signatures that you're particularly interested in, like, say, ethereum wallet addresses.

    As someone who once committed the private keys for a bitcoin wallet to a public GitHub account, let me tell you: I could have used this a few years ago.

    The product is free, downloadable here. Price is looking for sponsors to pay for hosting because, as you can imagine, his traffic is quite high as people search for secrets.

    screen-shot-2019-10-29-at-12-25-57-pm

    Keys image via Shutterstock

    Disclosure

    Please note that our privacy policy, terms of use, cookies, and do not sell my personal information have been updated.

    CoinDesk is an award-winning media outlet that covers the cryptocurrency industry. Its journalists abide by a strict set of editorial policies. CoinDesk has adopted a set of principles aimed at ensuring the integrity, editorial independence and freedom from bias of its publications. CoinDesk is part of the Bullish group, which owns and invests in digital asset businesses and digital assets. CoinDesk employees, including journalists, may receive Bullish group equity-based compensation. Bullish was incubated by technology investor Block.one.


    Learn more about Consensus 2024, CoinDesk's longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to consensus.coindesk.com to register and buy your pass now.



    Read more about