Lucene search
+L

GitLab CI Secrets Detection

🗓️ 08 Aug 2026 21:48:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 2 Views

GitLab CI Secrets Detection probes GitLab CI paths to extract embedded secrets.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Deep GitLab CI YAML exposure with embedded secret extraction."""

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.scanner.http.gitlab_ci_probe import scan_gitlab_ci


class Module(Scanner, Http_client):
    __info__ = {
        "name": "GitLab CI Secrets Detection",
        "description": (
            "Probes extended GitLab CI paths (.gitlab-ci.yml, ci/*.yml) and extracts "
            "embedded secrets, CI variable references, tokens, and cloud credentials."
        ),
        "author": ["KittySploit Team"],
        "severity": "high",
        "tags": ["web", "scanner", "gitlab", "cicd", "secrets", "exposure"],
        "modules": ["scanner/http/gitlab_ci_yml_detect"],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 8,
            "reversible": True,
            "approval_required": False,
            "produces": ["secret_exposure", "risk_signals"],
            "cost": 0.9,
            "noise": 0.3,
            "value": 1.2,
        },
    }

    def run(self):
        findings = scan_gitlab_ci(self.http_request)
        if not findings:
            return False

        worst = max(findings, key=lambda f: len(f.get("secrets") or []))
        secrets = worst.get("secrets") or []
        critical = [s for s in secrets if s.get("severity") == "critical"]

        self.set_info(
            severity="critical" if critical else "high",
            reason=f"GitLab CI exposed: {len(secrets)} secret/variable indicator(s) in {worst.get('path')}",
            path=worst.get("path") or "/.gitlab-ci.yml",
            findings=findings,
            secrets=secrets[:15],
        )
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Aug 2026 21:48Current
5.8Medium risk
Vulners AI Score5.8
2