entrovyx/hermes-agent-offsec/gitlab-public-recon
Claude Code and agent skill by entrovyx/hermes-agent-offsec
- community
Checking that the SKILL.md file is still in the repository.
Mine GitLab for secrets, CI tokens when subdomain found.
Install
npx vskill@latest install entrovyx/hermes-agent-offsec/gitlab-public-reconSKILL.md
The same SKILL.md was published earlier as entrovyx/hermes-agent-offsec/gitlab-public-recon.
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 CGE-RJ (3 public repos, 461K CPFs, internal IP 10.11.82.75, CI/CD tokens), ScriptBees (GitLab with SSL private keys), and SMart Fit (Firebase SA keys in repos).
When to Use
- Target has a
gitlab.subdomain or self-hosted GitLab instance. - crt.sh reveals
gitlab.target.comin certificates. - After
subdomain-enumerationdiscovers GitLab hosts. - After
js-secrets-extractionfinds GitLab CI/CD references. - Target is a government agency or large enterprise (common self-hosted GitLab users).
Prerequisites
terminaltool with curl, python3, jq.- GitLab URL (e.g.,
https://gitlab.target.com). - GitLab API is accessible without authentication for public resources.
How to Run
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 | CI/CD variables (admin only) | Critical | |
/api/v4/projects/:id/jobs | CI/CD job history | Medium | |
/users/sign_up | Open registration | Critical | |
/explore | Public project explorer | Info |
Procedure
Phase 1 — Discover GitLab Instance & Check Public Access
Phase 2 — Enumerate Public Projects
Phase 3 — Extract Source Code & Secrets
Phase 4 — CI/CD Token & Variable Extraction
Real Production Results
CGE-RJ (gitlab.cge.rj.gov.br)
- 3 public repositories: cge/hdi (Helpdesk system), cge/cnpj-sqlite, cge/exame-front-cge
- 461,304 CPF records in
servidores_sigrh.json(state employee database) .env.examplewith MongoDB host, LDAP config, email server credentialsdeploy.shwith internal IP10.11.82.75, blue/green deployment infrastructuredocker-compose.prod.ymlwith container architecture.gitlab-ci.ymlwith CI/CD tokens and runner configurations- Registration OPEN at
/users/sign_up
ScriptBees (gitlab.scriptbees.com)
- GitLab CE with SSL private keys exposed in repositories
- Related to Thgroep compromise (same infrastructure)
commit history analysis (optional depth)
Pitfalls
- Rate limiting. GitLab API has rate limits (typically 300-600 requests/min). Use
--max-timeand delays. - File path encoding. Special characters in paths must be URL-encoded (
/→%2F,.→%2E). - Default branch may not be `main`. Try
main,master,developfor file access. - Large files may truncate. The API may limit response size. Use
git clonefor full access if registration is open. - GitLab authentication. Public repos are accessible without auth. Private repos return 404.
Verification
- Public projects MUST be enumerable via
/api/v4/projects?visibility=public. - Sensitive files MUST be downloadable via the raw endpoint and contain real credentials/config (not templates).
- Internal IPs/domain names found MUST be confirmed as the target's infrastructure.
- CI/CD tokens found MUST be tested for validity (e.g., GitLab API access with runner token).
- Registration open means anyone can create an account and potentially access more resources.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/offsec/recon/gitlab-public-recon/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/entrovyx/hermes-agent-offsec/gitlab-public-recon)