| name | gitlab-public-recon |
| description | Mine GitLab for secrets, CI tokens when subdomain found. |
| version | 1.1.0 |
| revision_date | "2026-07-25T00:00:00.000Z" |
| license | MIT |
| platforms | ["linux"] |
| compatibility | Requires curl, nmap, python3, masscan, subfinder, httpx, nuclei |
| tags | ["recon","gitlab","source-code","secrets","internal-IPs"] |
| category | recon |
| related_skills | ["js-secrets-extraction","source-leak-hunt","api-noauth-hunt"] |
GitLab Public Recon Skill
Enumerate publicly accessible GitLab repositories to extract source code, credentials, internal IPs, CI/CD tokens, deployment configurations, and environment files. GitLab instances with registration enabled or public visibility expose the entire development infrastructure. Confirmed on gov-finance-portal (3 public repos, 461K CPFs, internal IP 10.11.82.75, CI/CD tokens), dev-agency (GitLab with SSL private keys), and fitness-chain (Firebase SA keys in repos).
When to Use
- Target has a
gitlab. subdomain or self-hosted GitLab instance.
- crt.sh reveals
gitlab.target.com in certificates.
- After
subdomain-enumeration discovers GitLab hosts.
- After
js-secrets-extraction finds GitLab CI/CD references.
- Target is a government agency or large enterprise (common self-hosted GitLab users).
Prerequisites
terminal with curl, python3, jq.
- GitLab URL (e.g.,
https://gitlab.target.com).
- GitLab API is accessible without authentication for public resources.
How to Run
curl --max-time 30 --connect-timeout 10 -sk "https://gitlab.TARGET.com/api/v4/projects?visibility=public&per_page=100" | jq '.[].path_with_namespace'
curl --max-time 30 --connect-timeout 10 -sk "https://gitlab.TARGET.com/api/v4/projects/GROUP%2FPROJECT/repository/files/PATH/raw?ref=main"
Quick Reference
| API Endpoint | What It Returns | Risk |
|---|
/api/v4/projects?visibility=public | All public projects | Info |
/api/v4/projects/:id/repository/tree | Directory listing | High |
/api/v4/projects/:id/repository/files/:path/raw?ref=:branch | Raw file content | Critical |
/api/v4/projects/:id/repository/commits | Commit history with authors | Medium |
/api/v4/projects/:id/variables |