Leveraging indexing techniques to find credentials
When it comes to searching for credentials, a very effective technique is to leverage indexing technologies. This could be a system that you run on your own infrastructure to index source code for better analysis. Understanding and using indexing built-in operating systems and indexing services is a powerful technique post-exploitation as well. There's nothing easier and quicker for finding credentials than by just querying an index.
Let's explore both scenarios, starting with third-party tooling to index source code for analysis.
Using Sourcegraph to find secrets more efficiently
Companies with large amounts of source code typically have tooling in place that indexes code and allows for quick searches across the entire code base. Such tools can be very handy for the red team for finding sensitive information that is checked into code.
Red teams should consider leveraging indexing techniques themselves. A useful...