Black Hat 2020: xGitGuard uses AI to detect inadvertently exposed data on GitHub
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Source:-portswigger.net
GitHub is often praised for offering a platform for developers to share their open source code and tools that they develop.
However, some developers often unknowingly, or inadvertently, neglect to remove sensitive information such as API tokens and user credentials from their code prior to posting it on GitHub.
Mistakes of this kind can expose an organizationās internal secrets and tokens to harvesting and potential misuse.
Security researchers at Comcast have developed a tool that detects organizationsā secrets and user credentials in cases where they inadvertently spill onto GitHub. The tool, called xGitGuard, is designed to be both scalable and rapid.
The tool was demonstrated during an Arsenal session at the Black Hat 2020 virtual conference on Thursday (August 7).
āxGitGuard takes advantage of a new text processing algorithm that can find secrets within files with a high level of accuracy,ā according to Comcast. āThis can significantly help operations to take proper actions in timely manner.ā
Bahman Rashidi, senior cybersecurity researcher and system architect at Comcast, told The Daily Swig the tool is lean and fast at picking out stray secrets in code repositories thanks to the use of machine learning techniques.
Read more of the latest news from Black Hat 2020
āxGitGuard is an AI-based tool designed to detect if and when private information is improperly posted on GitHub (such as passwords or credentials),ā Rashidi explained.
āComcast technologists developed the tool to address a challenge common in software development environments where large numbers of developers are using GitHub on a daily basis.ā
āThe AI technology powering the tool works fast, even at enterprise scale,ā he added.
The tool takes advantage of a new algorithm that can find āprivate information located within files and the context around them with a high level of accuracyā, according to Comcast.
Spilling secrets
Inadvertently exposing secrets through GitHub and other similar repositories is a known problem in infosec. Various tools to automatically detect leaks have been developed before, but Comcast says its utility overcomes previous limitations.
xGitGuard offers lower false positive detections due to the use of highly efficient and accurate text processing algorithms, says Comcast.
Rashidi explained: āThe key to xGitGuardās effectiveness is the way queries are generated.
āGitHub contains more than 30 million repositories and with API limitations, it is challenging to find secrets in a timely manner. xGitGuard introduces a new search approach that can utilize the existing GitHub search API and review search results at scale.ā