Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
2023-11-16 16:12:25 Author: securityboulevard.com(查看原文) 阅读量:8 收藏

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform

Securing secrets is an endless and uphill battle. API tokens, cloud credentials, and database URLs have a terrible habit of getting exposed everywhere – from private repositories to CI job logs and Slack messages. And let's not forget those leaks tend to happen when your security teams least expect them, usually during "out of office hours" and far beyond your perimeter – think personal GitHub repos of your developers.

Matching your hardcoded secrets against millions of others leaked on GitHub.com.

For every secret that is found exposed in your perimeter (inside repositories that you own and that are hosted on GitHub, GitLab, Bitbucket, and Azure Repos or Slack channels and Jira projects), GitGuardian will now run an automated check to verify if that same secret was not found to have leaked publicly–in code, issues and gists of projects hosted on GitHub.com and located outside your organization's perimeter.

This isn't merely an update; it's a direct integration of our latest project HasMySecretLeaked into GitGuardian. HasMySecretLeaked is the cornerstone, storing every secret we find as we sift through billions of public GitHub commits. It holds more than 20 million secrets and keeps growing every day. Now, it seamlessly blends into our platform and gives you infinite visibility over GitHub and the activity of its hundred million developers!

Show me what it looks like

The Publicly leaked tag is your signal for quickly identifying incidents with exposure outside your perimeter. More than just a label, it's telling you that someone has leaked your secret in a project your organization didn't even know existed and that this secret is now visible to anyone on the GitHub platform, including malicious bots and attackers.

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
Hardcoded secrets incidents with a 'Publicly leaked' tag on them.

In the example below, a valid Google API key was found twice inside the same file in a private GitLab repository (in two different commits). GitGuardian indicates this API key has leaked nine times outside the organization's perimeter!

DevOps Unbound Podcast

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
Public leak status on an incident's details view.

Public leak checks are automatically run for open incidents where the secrets were found to be anything other than invalid (status = valid | has no checker | failed to check | unknown). Still, you also have the flexibility to trigger a leak check if needed.

Beyond tagging incidents, the feature provides a comprehensive view of where a secret has been publicly leaked – up to 10 locations and their URLs (files, issues, or gists) are listed. This enriched context allows for investigation and validation of the leak before deciding what action to take and how to respond to the incident.

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
Places of publicly leaked secrets on GitHub.com.

Treat your 'Publicly leaked' secrets first.

Prioritization is critical when dealing with a growing pile of hardcoded secrets incidents. For this purpose, we recommend you harness the power of GitGuardian's enriched incident context by using filters on the secrets' validity, severity score, and tags, such as the new Publicly leaked one.

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
Using filters to prioritize hardcoded secrets incidents.

This can help you narrow your hundreds or thousands of exposed secret incidents to a few critical ones requiring immediate attention. If your GitGuardian workspace is on our Business plan, you can start filtering on the Publicly leaked tag right now.

Yes, the severity scoring engine takes it into account

Public leakage is also included in GitGuardian's automated severity scoring feature. A new built-in rule designates a `CRITICAL` severity to non-invalid secrets leaked publicly no more than once. You can also customize these severity rules based on the number of places a secret has publicly leaked or create a new one.

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform
Built-in rules for Automated Severity Scoring, including a rule for publicly leaked secrets.

Beyond your already hardcoded secrets: Check ALL your secrets

While tagging your incidents when secrets are found to have also leaked publicly is a significant leap forward, our commitment to your secrets' security goes beyond this. With HasMySecretLeaked, you can extend your protection to check ALL your secrets (in vaults, build pipelines, .env files, cloud provider built-in secrets stores, and many other places) for leakage on GitHub.com.

Read more about how you can achieve this with the help of ggshield, the GitGuardian CLI:

Has Your Secret Leaked? Here’s the easiest way to find out.

Today, we’re unveiling HasMySecretLeaked, a free toolset to help security and DevOps engineers verify if their organization’s secrets have leaked on GitHub.com.

Unveiling public leak checks for hardcoded secrets in the GitGuardian PlatformGitGuardian Blog – Automated Secrets DetectionZiad Ghalleb

Unveiling public leak checks for hardcoded secrets in the GitGuardian Platform

*** This is a Security Bloggers Network syndicated blog from GitGuardian Blog - Automated Secrets Detection authored by Ziad Ghalleb. Read the original post at: https://blog.gitguardian.com/unveiling-public-leak-checks-for-hardcoded-secrets-in-the-gitguardian-platform/


文章来源: https://securityboulevard.com/2023/11/unveiling-public-leak-checks-for-hardcoded-secrets-in-the-gitguardian-platform/
如有侵权请联系:admin#unsafe.sh