Skip to content

Public GitLab Repositories Exposed Over 17,000 Secrets

A security engineer discovered over 17,000 exposed secrets across 2,800 unique domains in public GitLab repositories. The secrets included API keys, passwords, and tokens. The researcher used the TruffleHog tool to scan 5.6 million public repositories on GitLab Cloud.

Severity awaiting reviewData breach
Incident date
Published
Read time
5 min
C
CertGPS

Not independently reviewed

AI-assisted content. Editorial policy ยท Suggest a correction

View source
On this page

Note: This analysis is based on publicly available information from source article. Facts are clearly separated from technical analysis.

Executive Summary

On November 28, 2025, a high-severity data breach incident occurred, exposing over 17,000 secrets in public GitLab repositories. The incident affected 2,804 companies and 5,600,000 repositories, with the oldest leaked secrets dating back to 2009 and the majority being newer than 2018. This incident highlights the importance of secure practices in managing sensitive information and the need for continuous monitoring and improvement.

The impact of this incident is significant, with nearly three times as many secrets exposed as in Bitbucket, and a 35% higher secret density. The total cost for scanning the affected repositories was $770, demonstrating the relatively low cost of scanning compared to the potential risks.

What Happened: Timeline

โœ… Verified Facts

  • November 28, 2025 12:43 PM: Public GitLab repositories exposed more than 17,000 secrets.
  • 24 hours: Scan of 5,600,000 repositories completed.
  • 2009: Oldest leaked secrets found.
  • 2018: Most leaked secrets are newer than.

Technical Deep Dive

Understanding AWS Simple Queue Service (SQS)

What is it?

AWS SQS is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. It provides a reliable and secure way to communicate between different components of an application.

How does it work?

SQS works by allowing producers to send messages to a queue, which are then processed by consumers. The queue acts as a buffer, storing messages until they are processed. This decouples the producer and consumer, allowing them to operate independently.

Security considerations

SQS provides several security features, including encryption, access control, and auditing. However, in the context of this incident, SQS was used for enumeration, which highlights the importance of secure configuration and monitoring.

Understanding AWS Lambda

What is it?

AWS Lambda is a serverless compute service that allows you to run code without provisioning or managing servers. It provides a scalable and secure way to execute code in response to events.

How does it work?

Lambda functions are triggered by events, such as changes to a database or file uploads. The function is executed, and the results are returned to the caller. Lambda provides a scalable and secure way to execute code, but it requires careful configuration and monitoring to ensure security.

Understanding TruffleHog

What is it?

TruffleHog is an open-source tool for detecting secrets in code repositories. It uses a combination of static analysis and machine learning to identify potential secrets.

How does it work?

TruffleHog scans code repositories for potential secrets, such as API keys, passwords, and encryption keys. It uses a combination of static analysis and machine learning to identify potential secrets and provide recommendations for remediation.

Analysis: What Went Wrong

๐Ÿ“Š Professional Analysis

Technical Root Cause

The technical root cause of this incident appears to be a combination of factors, including:

  • Insecure configuration of SQS and Lambda services
  • Lack of monitoring and auditing of sensitive information
  • Use of open-source tools, such as TruffleHog, without proper configuration and monitoring

Contributing Factors

  • Lack of secure practices in managing sensitive information
  • Inadequate training and awareness of security best practices
  • Insufficient resources and budget for security initiatives

Lessons for Security Professionals

Key Takeaways

  1. Secure configuration and monitoring are essential: Ensure that all services, including SQS and Lambda, are properly configured and monitored for security.
  2. Use open-source tools responsibly: Use open-source tools, such as TruffleHog, with caution and proper configuration and monitoring.
  3. Implement secure practices: Implement secure practices, such as encryption and access control, to protect sensitive information.

Prevention & Detection

How to Prevent

  • Implement secure configuration and monitoring of services, such as SQS and Lambda
  • Use open-source tools, such as TruffleHog, with caution and proper configuration and monitoring
  • Implement secure practices, such as encryption and access control, to protect sensitive information

How to Detect

  • Monitor for suspicious activity and anomalies in code repositories and services
  • Use tools, such as TruffleHog, to detect potential secrets and vulnerabilities
  • Implement regular security audits and penetration testing to identify potential security risks
View related certification topics

CISSP

  • Domain 1: Security and Risk Management
  • Domain 2: Asset Security
  • Domain 3: Security Engineering
  • Domain 4: Communication and Network Security
  • Domain 5: Identity and Access Management
  • Domain 6: Security Assessment and Testing
  • Domain 7: Software Development Security
  • Domain 8: Security Operations

CompTIA Security+

  • Objective 1.1: Implement security measures to protect data at rest and in transit
  • Objective 1.2: Implement security measures to protect data from unauthorized access
  • Objective 1.3: Implement security measures to protect data from unauthorized changes
  • Objective 1.4: Implement security measures to protect data from unauthorized deletion
  • Objective 2.1: Implement security measures to protect systems from malware
  • Objective 2.2: Implement security measures to protect systems from unauthorized access
  • Objective 2.3: Implement security measures to protect systems from unauthorized changes
  • Objective 2.4: Implement security measures to protect systems from unauthorized deletion

Other Relevant Certifications


Source (1)

This analysis is based on: https://www.bleepingcomputer.com/news/security/public-gitlab-repositories-exposed-more-than-17-000-secrets/


This incident analysis is provided for educational purposes. Facts are cited from the source article, while technical analysis represents professional interpretation.