<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by IncognitaTech on Medium]]></title>
        <description><![CDATA[Stories by IncognitaTech on Medium]]></description>
        <link>https://medium.com/@incognitatech?source=rss-fdaee2be0a0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HRlzd4XqrAGHQRSeITBAIg.png</url>
            <title>Stories by IncognitaTech on Medium</title>
            <link>https://medium.com/@incognitatech?source=rss-fdaee2be0a0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:48:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@incognitatech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Twitter to notify developers exposing their access tokens: The Aftermath]]></title>
            <link>https://incognitatech.medium.com/using-twitter-to-notify-developers-exposing-their-access-tokens-the-aftermath-fb4e35da0364?source=rss-fdaee2be0a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb4e35da0364</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[IncognitaTech]]></dc:creator>
            <pubDate>Thu, 03 Feb 2022 17:21:27 GMT</pubDate>
            <atom:updated>2022-02-03T17:24:44.637Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Twitter to notify developers who leaked their access tokens in GitHub: The Aftermath</h3><p><a href="https://incognitatech.medium.com/using-twitter-to-notify-careless-developers-the-unorthodox-way-d71478ad367a">Last week</a>, we used Twitter Access Tokens exposed in GitHub to raise awareness regarding the consequences of forgetting secrets in public repositories, by using our <a href="https://twitter.com/PinataHub_Bot">@PinataHub_Bot</a>.</p><p>Although some considered our campaign rather controversial, the response of affected Twitter users was overwhelmingly positive, with dozens of people expressing their appreciation. We are very glad we were able to make a positive impact on their Cybersecurity awareness !</p><p>All in all, around approximately 6.5K of the tokens we had discovered in our <a href="https://pinatahub.incognita.tech/">PinataHub</a> dataset (70% of all valid Twitter tokens), were associated with apps that had write permission. Practically, beyond allowing read access, these tokens enabled anyone who used them to post Tweets, follow users, or update elements of associated user profiles. Thus, after notifying the affected users, we invalidated the tokens they have exposed, to protect their accounts from abuse by malicious parties.</p><p>Although, as noted in the context of GitHub Copilot <a href="https://twitter.com/alexjc/status/1412065229949788165">GitHub itself</a> considers all the exposed secrets as “<em>already compromised</em>” (read more <a href="https://www.theregister.com/2021/07/06/github_copilot_autocoder_caught_spilling/">here</a>), let’s discuss the extent of the impact this could have if it was exploited by threat actors.</p><h3>Main takeaways from our campaign:</h3><h4><strong>1. Several big and verified accounts were affected.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gZef4D6RnXIW_J4jJFRog.png" /></figure><p>Although the majority of the affected accounts, were (rather expectedly) bots, some very influential accounts got affected as well, including <a href="https://twitter.com/BitMartExchange">@BitMartExchange</a>, <a href="https://twitter.com/WesleySafadao">@WesleySafadao</a>, <a href="https://twitter.com/AgidGov">@AgidGov</a> (Official account of the Agency for Digital Italy) and others. This indicates that the programmatic means used for maintaining such accounts (e.g. scripts to automate/schedule tweets, etc), comprise a novel attack vector that can be exploited with devastating consequences.</p><h4><strong>2. Where crypto is involved, things get funky.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owc5B1oNKRKntR0PemV0FA.png" /><figcaption>No, we are not selling any NFTs as of yet :)</figcaption></figure><p>Since several accounts of the crypto twitter were affected, including the official account of <a href="https://www.bitmart.com/"><strong>BitMart</strong></a>, one of the largest cryptocurrency exchanges, <strong>we observed an influx of retweets and follows by accounts within Twitter’s crypto ecosystem that actually were not affected by exposed access tokens.</strong></p><p><strong>This demonstrated how simple it actually is for malicious actors to perform large-scale crypto scams using compromised tokens.</strong> A very recent example of what could happen, is the <a href="https://www.theverge.com/2021/12/21/22848840/scammers-steal-crypto-nft-project-fractal-discord-hack-solana">scam that happened in Fractals’ Discord server, via an exposed webhook</a>. Moreover, given the prevalence of crypto scams, it is highly likely that tokens and other exposed credentials in GitHub have already been used in the past for malicious purposes. The fact that crypto-related accounts were still re-sharing PinataHub_Bot’s tweet days after our campaign, is a clear indication that such abuse can keep flying under the radar for extended periods of time, and it is also difficult to contain.</p><h4><strong>3. We are not the only ones who have collected massive datasets of secrets from public GitHub repositories.</strong></h4><p>Some hours after we run our awareness campaign, we noticed something weird: <strong>The number of retweets was decreasing in a time-linear fashion, something that was very unlikely to happen without the intervention of a third-party</strong>. Of course, it makes sense that several of the affected users would remove the retweet of PinataHub_Bot’s post after being notified, but certainly not at an almost-constant rate.</p><p>The only explanation behind this, is that a “<em>guardian</em> angel” that somehow already had access to a large fraction of the source code containing the exposed tokens, as well as advanced means of secret scanning for detecting those tokens, decided to intervene and programmatically undo the retweets.</p><p>After noticing this, and to protect the exposed accounts from abuse, we immediately proceeded to invalidate all the tokens in our dataset using the relevant feature of <a href="https://developer.twitter.com/en/docs/authentication/api-reference/invalidate_access_token">Twitter’s API</a>. Indeed, after this, the sharp drop of the retweet count stopped. <strong>Thus, there exists an unknown number of parties that collect exposed secrets and credentials from public GitHub, with all that that implies.</strong></p><h4>4. Public GitHub comprises a vast attack surface.</h4><p>As we made clear in our <a href="https://incognitatech.medium.com/using-twitter-to-notify-careless-developers-the-unorthodox-way-d71478ad367a">previous post</a>, <strong>we did not exploit any vulnerabilities.</strong> <strong>Users published themselves the source code containing the affected tokens, and opted to make it public for everyone to access.</strong></p><p>Nonetheless, we received some criticism about not following a “responsible disclosure” process to notify Twitter/GitHub. This doesn’t really make much sense, though. <strong>The existence of leaked secrets in public GitHub repositories is a </strong><a href="https://www.threatable.io/Stop-Posting-Your-API-Keys-To-GitHub"><strong>very well known issue</strong></a>, which even made <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/scan-git-repositories-for-sensitive-information-and-security-issues-by-using-git-secrets.html">Amazon</a> to create a tool to prevent developers from sharing AWS secrets.</p><blockquote>What we did was to demonstrate the scale of this problem, and how it could affect developers lacking cybersecurity awareness.</blockquote><p>Of course, this is just the tip of the iceberg. As many developers are not accustomed with best practices for securing their DevOps lifecycle, they will keep leaking secrets and credentials unknowingly. Without an exceptionally effective secret scanning solution capable of detecting credentials and secrets of all kinds and notifying the affected developers accordingly, public GitHub repositories will continue to expose a vast attack surface, putting a great number of users and services at risk.</p><p><strong>To tackle part of this ever-growing problem we are building </strong><a href="https://gold.incognita.tech/"><strong>GoldDigger</strong></a><strong>, the most advanced secret detection solution ever conceived. Stat tuned for more !</strong></p><p>Follow us on <a href="https://twitter.com/IncognitaTech">Twitter</a> for updates and news.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb4e35da0364" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Twitter to notify careless developers — the unorthodox way]]></title>
            <link>https://incognitatech.medium.com/using-twitter-to-notify-careless-developers-the-unorthodox-way-d71478ad367a?source=rss-fdaee2be0a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d71478ad367a</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[awareness]]></category>
            <dc:creator><![CDATA[IncognitaTech]]></dc:creator>
            <pubDate>Mon, 24 Jan 2022 16:10:55 GMT</pubDate>
            <atom:updated>2022-01-24T16:17:06.117Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Using Twitter to notify careless developers — the unorthodox way (Or, how you could use GitHub to compromise 9.5</strong>K<strong> Twitter accounts without “hacking”)</strong></h3><p>If you are reading this, you probably already know how critical it is to NOT hardcode credentials into source code, especially if this code is going to be committed in a public GitHub repo.</p><p>Certainly, GitHub knows this too, and they provide <a href="https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-public-repositories">secret scanning for all public repositories</a>, as part of the GitHub Advanced Security suite.</p><p>Specifically, GitHub docs <a href="https://docs.github.com/en/developers/overview/secret-scanning-partner-program">state</a> that:</p><blockquote>GitHub scans repositories for known secret formats to prevent fraudulent use of credentials that were committed accidentally. Secret scanning happens by default on public repositories, and can be enabled on private repositories by repository administrators or organization owners. As a service provider, you can partner with GitHub so that your secret formats are included in our secret scanning.</blockquote><p>From the above, it is evident that the secret scanning functionality of GitHub, is capable of identifying secrets conforming to a well-defined format.</p><h4>But what if this is not the case?</h4><p>One major example of such a service provider is <strong>Twitter</strong>, which, notably is not included in the “<a href="https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning#list-of-supported-secrets-for-public-repositories">Secret scanning partner program</a>”. Twitter API uses a typical <a href="https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens">3-legged OAuth 1.0a flow</a> for authorizing applications to perform actions on behalf of users, with a set of token credentials comprising an <strong>access token</strong> and an <strong>access token secret</strong>.</p><p><strong>Here is the catch:</strong> the access tokens generated by Twitter, do not have a well-defined structure. But that shouldn’t pose a serious challenge to the GitHub Advanced Security, <strong><em>right?</em></strong></p><p>We could only think of two logical reasons why GitHub does not scan code for Twitter tokens:</p><ul><li>It is exceptionally rare for Twitter Access Tokens/Secrets to be hardcoded into source code, so the impact of committing these secrets in a public GitHub repository will be negligible (i.e. no malicious actors will ever bother to misuse them).</li><li>The secret scanning provided as part of GitHub’s “Advanced” Security, is in fact, <strong><em>not very advanced</em></strong>. (Any decent entropy based secret scanning tool would be able to catch Twitter secrets).</li></ul><p><strong>So, at IncognitaTech, we decided to test both hypotheses.</strong></p><p>Detecting Twitter tokens and secrets with the intelligent contextual analysis implemented by <a href="https://gold.incognita.tech/"><strong>GoldDigger</strong></a>, our upcoming secret scanning solution, was a simple task. By assembling the initial version of the <a href="https://pinatahub.incognita.tech/">PinataHub</a> dataset, we already had <strong>detected approximately 25K unique Twitter Access Token/Secret combinations</strong>.</p><p>We deliberately selected Twitter to raise awareness of the underlying issues. Clearly, it is the easiest way to reach a wide audience, however, many of the associated accounts may have already been used in malicious campaigns. Twitter account takeovers are used on a daily basis to spread, among others, disinformation, crypto scams, false advertisements, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcPHgmHgAuH-3S20ZVLRXA.png" /><figcaption>Some of the detected Twitter credentials are included in the public version of <a href="https://pinatahub.incognita.tech/">PinataHub</a>.</figcaption></figure><p>For credential leaks, just raw quantities do not mean anything, though. There is a chance that all of these tokens are dummy/non-functional.</p><p>But is this really the case? Thankfully, in the case of Twitter, we were able to quickly verify our findings using <a href="https://www.tweepy.org/">Tweepy</a> library, and collect some interesting statistics.</p><h3><strong>Lo and behold, it turned out that around 9,500 of these access tokens are valid and working.</strong></h3><h4>Practically, anyone could effectively take over these accounts (if not already done so), since the programmatic access to <a href="https://developer.twitter.com/en/docs/twitter-api/v1">Twitter’s API</a> allows for a wide range of actions.</h4><p><strong><em>If you consider this a big deal, imagine what this would mean for other services or platforms.</em></strong></p><p>At this point several questions arise:</p><p><strong><em>Q: How popular/recent are the GitHub repositories containing these access tokens?</em></strong></p><p>From a simple inspection of the metadata we collected when scanning GitHub with Magellan, we found that while ~80% of the repositories with working tokens had zero watchers/forks/stars, the most popular project <strong>had over 600 forks and 7K stars</strong>, at the time of crawling. It’s quite interesting that such a popular project contains leaked credentials that no one bothered to at least remove.</p><p>This also means convincing developers to not hardcode their credentials in the source code, is by no means a simple task, and also, it’s something that can be overlooked rather easily, regardless of how many eyes see this. However, that is not the case for someone with malicious intent.</p><p>Next, to explore the age of the affected repositories, we plot the dates of the last commit per project (grouped by month).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_2Lu-f_DGxBV1DwZMUZYA.png" /></figure><p><strong>Results are pretty self explanatory. Not only the situation is getting worse as more and more tokens get committed each month, but also there exist cases where tokens have been left there for over 8 years, and they are still working.</strong></p><p><strong><em>Q: How popular are the exposed Twitter accounts?</em></strong></p><p>A different dimension to explore is the popularity of these accounts, and assess the potential impact of their takeover by a malicious party. A simple way to gauge this is to explore their follower counts. For this, we plot the <a href="https://en.wikipedia.org/wiki/Cumulative_distribution_function">cumulative distribution function</a> for the <em>followers_count</em> attribute for the leaked accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*nVcRfl2KrA3io6abv9QAkA.png" /></figure><p><strong>Notably, while around 60% of accounts have 10 followers or less, there exist users with more than a MILLION followers ! But let’s not allow curiosity to get the better of us and expose these accounts directly.</strong></p><h3><strong>For last, we left the best part. Actually notifying the affected users !</strong></h3><p>Given that approximately 80% of the repositories have no watchers, probably GitHub is not the best channel to notify the owners of affected accounts. So let’s use Twitter instead.</p><p>We created a dummy Twitter account <a href="https://twitter.com/PinataHub_Bot"><strong>@PinataHub_Bot</strong></a>, and used the valid tokens to perform two actions: <strong>a</strong>) follow this account and <strong>b</strong>) retweet the following:</p><h3>PinataHub_Bot on Twitter: &quot;If you don&#39;t remember retweeting this, it means that you have leaked your Twitter Access Token in a public GitHub repository. Not the best practice, right? For details, read our latest article: https://t.co/6WBC6DRNDS #InfoSec #CyberSecurity #GitHub / Twitter&quot;</h3><p>If you don&#39;t remember retweeting this, it means that you have leaked your Twitter Access Token in a public GitHub repository. Not the best practice, right? For details, read our latest article: https://t.co/6WBC6DRNDS #InfoSec #CyberSecurity #GitHub</p><p><strong>That’s a rather unconventional way to raise awareness, but we hope we make developers think twice about what they commit, especially in public repositories. While this qualifies for the largest Twitter account takeover to date, our goal is noble.</strong></p><p>Contrary to the <a href="https://en.wikipedia.org/wiki/2020_Twitter_account_hijacking">Twitter account hijacking incident in 2020</a>, such takeover would be more difficult to contain since any actions taken would appear totally legitimate, as they originate from properly authorized applications. Thus, we urge all affected users to revoke their access to third party apps immediately, for invalidating the leaked tokens. <a href="https://help.twitter.com/en/managing-your-account/connect-or-revoke-access-to-third-party-apps">Here is how.</a></p><p>We don’t know how long will Twitter allow our <a href="https://twitter.com/PinataHub_Bot">@PinataHub_Bot</a> to live, but we hope our message reaches both careless developers and GitHub.</p><p>Follow us on <a href="https://twitter.com/incognitatech">Twitter</a> for more updates and news.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d71478ad367a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing PinataHub: Explore the world of leaked secrets in GitHub.]]></title>
            <link>https://incognitatech.medium.com/introducing-pinatahub-explore-the-world-of-leaked-secrets-in-github-522aa5060a51?source=rss-fdaee2be0a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/522aa5060a51</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[secdevops]]></category>
            <dc:creator><![CDATA[IncognitaTech]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 10:48:39 GMT</pubDate>
            <atom:updated>2022-01-17T18:48:56.701Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFQqgXHWxvVQ31xhHVjnvg.png" /></figure><p>In our first article, we will walk you through the just-released <a href="https://pinatahub.incognita.tech/">PinataHub</a> platform, <strong>the largest archive of leaked credentials and secrets in public GitHub repositories</strong>.</p><h3><strong>Some background:</strong></h3><p>Forgetting secrets in the source code is a very common problem in the DevOps world, which can have disastrous consequences for any organization. Many have attempted to tackle this problem, but there is no clear answer on how effective are the existing solutions when confronted with the real-world source code landscape. This can be attributed to several factors such as:</p><ul><li>Not every hardcoded password is in a configuration file or part of a URL.</li><li>Not every API key matches a specific regex pattern.</li><li>Not every credential exceeds an entropy threshold.</li><li>An AI model cannot learn every function taking a password as a parameter.</li></ul><p><strong>Most secret scanning solutions are rather constrained. </strong>They are built on the concept that source code complies with certain conventions and norms, and merely leverages popular services, libraries and frameworks. The reality is far wilder than that.</p><p>This is why we are developing <a href="https://gold.incognita.tech/">GoldDigger</a>, the most advanced credential and secret discovery solution with proven accuracy at scale (more on this later), which you can verify for yourself using <a href="https://pinatahub.incognita.tech/">PinataHub</a>.</p><h3><strong>What is PinataHub ?</strong></h3><p>PinataHub is a platform that allows you to explore <strong>a small fraction of the 4M+ passwords and secrets committed in public GitHub repositories</strong>, as detected by GoldDigger. The exposed repositories have an open-source license that allows us to publicly replicate their content, so PinataHub fully adheres to the rules set by GitHub and the developers themselves. You can explore PinataHub at: <a href="https://pinatahub.incognita.tech/">https://pinatahub.incognita.tech</a></p><p>After signing up and logging in, you can browse the leaks and apply several filters such as type and programming language. More precisely, the disclosed leaks are organized in two groups, namely <strong>passwords</strong> and <strong>secrets</strong>.</p><p>Depending on the leaks’ context, GoldDigger classifies the identified passwords in one of the following four categories:</p><ul><li><strong>Mail</strong> (i.e. likely for establishing connection to a mail server)</li><li><strong>Database</strong> (this one is pretty self explanatory)</li><li><strong>Generic</strong> (could not be classified in a specific category)</li><li><strong>Automation</strong> (credentials used in the context of browser automation)</li><li><strong>Web Service</strong> (passwords used for APIs, proxies, panels, etc.)</li></ul><p>Additionally, when possible, GoldDigger also retrieves the usernames associated with a hardcoded credential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6Q48WvECitetZR5JBm30w.png" /><figcaption>Exploring exposed passwords in PinataHub.</figcaption></figure><p>Secrets comprise API/access keys/secrets, tokens, application identifiers, etc., and strings that could be characterized as “sensitive”. Their type is determined via a set of regular expressions when possible, or if that is not possible, they are tagged as “Generic”.</p><blockquote><strong>The prevalence of “Generic” secrets is a clear indicator that relying on pattern matching for secret detection (as Github Advanced Security and other major SecDevOps vendors do), is simply not good enough for capturing the majority of leaks.</strong></blockquote><p>Additionally, GoldDigger is capable of intelligent analysis of each leak and identification of various attributes, severity, and possible endpoints associated with detected secrets.</p><p>Moreover, hard-coded cryptographic objects (private/public keys, certificates, etc.) are also detected. Please note that currently, PinataHub only includes secret types that appear more than 100 times in the data sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJcUD8-48dYI9TpEeRjXlQ.png" /><figcaption>API keys, JWT secrets, you name it…</figcaption></figure><p>PinataHub also allows you to filter the leaks dataset according to a specific programming language, demonstrating the language-agnostic secret detection capability of GoldDigger, which is not bound by syntax rules.</p><p>It is even possible to detect passwords and secrets in text files (no matter how convenient this may appear, storing login information in text files within a project directory is an <strong><em>extremely</em></strong> bad practice, yet it is rather often).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaxonDYY5DEZvS9nfSFUiQ.png" /><figcaption><em>Making a note of your cPanel password in a .txt file named after your hosting provider seems like a pretty great idea. Right ?</em></figcaption></figure><p>Moreover, PinataHub allows you to check if you have leaked any credentials captured in our dataset. For this feature no registration is required, just select “Was I Careless ?” in the navigation bar, and enter the username you would like to check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4AvK7CxdGs1WSTtKso9pg.png" /><figcaption>Check if you (or someone you know) has been careless enough to leak valuable secrets in a public GitHub repo.</figcaption></figure><p><strong><em>If you have made it this far into the article you probably have many questions, some of which we will attempt to answer in the rest of this post.</em></strong></p><p><em>Q: How bad are things, really?</em></p><p>Short answer: <em>Pretty bad.</em> The vast amount of hardcoded credentials left in public repositories, indicates that the <a href="https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning">secret scanning feature</a> of Github Advanced Security (enabled by default for all public repositories) is not effective in capturing credentials, beyond those provided by the token-issuing parties enlisted in GitHub’s Secret scanning partner program.</p><p><strong>This critical limitation leaves massive troves of secrets that evaded detection exposed to the prying eyes of malicious actors.</strong></p><p><em>Q: How were you able to collect these source files?</em></p><p>The files containing these findings are collected from public GitHub repositories using the focused crawling capabilities of Magellan, our upcoming cyber intelligence platform. Some details regarding our data collection pipeline will be covered in a future post. The resulting dataset of leaks will be regularly updated. Nonetheless, PinataHub platform is solely for demonstration purposes, <strong>and only approximately 2.5% of the identified leaks are currently indexed and publicly available</strong>. If you have a legitimate reason for requesting access to the complete dataset, feel free to <a href="https://incognita.tech/#contact">contact us</a>!</p><p><em>Q: How is GoldDigger different from the existing secret scanning/detection tools?</em></p><p>If you have used any open-source tools for secret detection (many exist), or even a pricey SaaS solution, you will probably have figured out that they work well only when the secrets are leaked in obvious and expected ways (e.g. have a clear declaration, high complexity, etc.), or when they are issued by a service that provides credentials in a identifiable and distinguishable format (e.g. AIza[0–9A-Za-z-_]{35}). But in reality, source code can be arbitrarily complex. GoldDigger outperforms every existing secret detection solution, leveraging an intelligent context analysis scheme which uses an extensive set of novel lexical and statistical features to tackle the challenge of capturing credential leaks in the wild. These features were inspired by <a href="https://dl.acm.org/doi/abs/10.1016/j.jnca.2021.103135">our research</a> in the field of Algorithmically Generated Domain (AGD) detection. Although the problem of detecting secrets in source code and detecting malicious AGDs employed by threat actors might appear totally different, they have much common ground: <strong>In both cases, the effectiveness of a detector is determined by its capability to capture patternless outliers in relatively short strings.</strong></p><p>In terms of detecting leaked secrets in source code, we based our solution on the following two assumptions:</p><ol><li>The majority of public Github repositories do not include any leaked secrets (hopefully).</li><li>Meaningful credentials are relatively unique compared to other tokens.</li></ol><p>To this end, we were able to create a baseline model of tokens that commonly occur close to credential-related keywords, and use it to identify sensitive strings that are highly likely to be secrets. This way, the secret detection scheme implemented in GoldDigger is capable of pinpointing actual secrets with great accuracy, vastly reducing the amount of false positives commonly returned by regex or entropy based approaches.</p><p><strong>More technical details regarding how GoldDigger works and comparisons with existing tools will be presented in future posts, so stay tuned !</strong></p><p>Follow us on <a href="https://twitter.com/incognitatech">Twitter</a> for more updates and news.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=522aa5060a51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>