Home Hacking News DumpsterDiver – The Tool For Finding Hardcoded Secrets

DumpsterDiver – The Tool For Finding Hardcoded Secrets

by Unallocated Author

What is this dumpster diving tool you speak of?

The creator of this tool has given us an exclusive insight. LHN have drawn the conclusion that despite many cyber security professionals cringing at the American name ‘DumpsterDiver’ this tool is actually pretty nifty. One of the defining features is that it uses Shannon Entropy (complex stuff) to aid in finding private keys within huge volumes of file types such as AWS Access Keys, Azure Share Keys and SSH keys.

So what does it do?

The tool supports 3 different methodologies for finding hardcoded secrets:
– it uses Shannon entropy to find hardcoded keys (e.g. AWS Secret Access Key, Azure Share Key or SSH private key),
– it uses password’s strength checker to find hardcoded passwords
– it can search for multiple grep patterns.

What makes it unique to other similar tools?

– it can analyze ANY text file
– it can verify files compressed into archives (e.g. zip, tar.gz etc.)
– it can search through git logs
– it is fully customizable
– it uses a false positive filter rules

DumpsterDiver in action

The tool is fully customizable. All its features can be found in its help menu:
Let’s assume, we want to find common access keys, any complex, hardcoded password, or any mail address in ‘evilcorp.com‘ domain. To do it you have to specify a path to a folder containing files to be analyzed and a few flags:
If you want to look only for AWS Secret Access Key, then you can use the following command:

Is it actively supported?

Yes, they are constantly adding new features as of the time of writing. Currently the development of this tool is focused on creating new false positive filter rules. In future, there are plans to add more search rules and eventual new methods. As this is open source project new contributors and ideas to implement are very welcome.

Conclusions

The tool can be quite useful especially for:

– Pentesters/red teamers discovering access to a target’s storage.
– Auditors to audit company’s storage.
– Administrators to set cyclic scans of their companies storage
By specifying what exactly is a secret in your company you can easily customize the DumpsterDiver tool and find the secret’s leak before the bad guys do.
If you want to download the tool you can do so here

What Bunny rating does it get?

We have decided to give this tool a very respectable bunny rating of 4/5 bunnies
If you would like to learn more about ethical hacking and such techniques, we have an exclusive course with a 90% discount HERE
Get in touch with us via the contact form if you would like us to look at any other GitHub ethical hacking tools.

You may also like

Latest Hacking News

Privacy Preference Center

Necessary

The __cfduid cookie is used to identify individual clients behind a shared IP address and apply security settings on a per-client basis.

cookie_notice_accepted and gdpr[allowed_cookies] are used to identify the choices made from the user regarding cookie consent.

For example, if a visitor is in a coffee shop where there may be several infected machines, but the specific visitor's machine is trusted (for example, because they completed a challenge within your Challenge Passage period), the cookie allows Cloudflare to identify that client and not challenge them again. It does not correspond to any user ID in your web application, and does not store any personally identifiable information.

__cfduid, cookie_notice_accepted, gdpr[allowed_cookies]

Advertising

DoubleClick by Google refers to the DoubleClick Digital Marketing platform which is a separate division within Google. This is Google’s most advanced advertising tools set, which includes five interconnected platform components.

DoubleClick Campaign Manager: the ad-serving platform, called an Ad Server, that delivers ads to your customers and measures all online advertising, even across screens and channels.

DoubleClick Bid Manager – the programmatic bidding platform for bidding on high-quality ad inventory from more than 47 ad marketplaces including Google Display Network.

DoubleClick Ad Exchange: the world’s largest ad marketplace for purchasing display, video, mobile, Search and even Facebook inventory.

DoubleClick Search: is more powerful than AdWords and used for purchasing search ads across Google, Yahoo, and Bing.

DoubleClick Creative Solutions: for designing, delivering and measuring rich media (video) ads, interactive and expandable ads.

doubleclick

Analytics

The _ga is asssociated with Google Universal Analytics - which is a significant update to Google's more commonly used analytics service. This cookie is used to distinguish unique users by assigning a randomly generated number as a client identifier. It is included in each page request in a site and used to calculate visitor, session and campaign data for the sites analytics reports. By default it is set to expire after 2 years, although this is customisable by website owners.

The _gat global object is used to create and retrieve tracker objects, from which all other methods are invoked. Therefore the methods in this list should be run only off a tracker object created using the _gat global variable. All other methods should be called using the _gaq global object for asynchronous tracking.

_gid works as a user navigates between web pages, they can use the gtag.js tagging library to record information about the page the user has seen (for example, the page's URL) in Google Analytics. The gtag.js tagging library uses HTTP Cookies to "remember" the user's previous interactions with the web pages.

_ga, _gat, _gid