$npx -y skills add transilienceai/communitytools --skill osintOpen-source intelligence gathering - company repository enumeration, secret scanning, git history analysis, employee footprint, and code exposure discovery.
| 1 | # OSINT |
| 2 | |
| 3 | Passive and semi-passive intelligence gathering focused on code repositories, developer footprints, and exposed secrets across public platforms. |
| 4 | |
| 5 | ## Phases |
| 6 | |
| 7 | ### 1. Organization Discovery |
| 8 | - Enumerate GitHub/GitLab/Bitbucket orgs for target company name variants |
| 9 | - Find employee personal accounts linked to the target org |
| 10 | - Identify archived, forked, and deleted repositories |
| 11 | |
| 12 | ### 2. Repository Analysis |
| 13 | - Map all repos: tech stack, languages, CI/CD, dependencies |
| 14 | - Identify internal hostnames, IPs, endpoints, environment names |
| 15 | - Check for `.env`, config files, secrets in current code |
| 16 | |
| 17 | ### 3. Secret & Credential Scanning |
| 18 | - Scan current code with `gitleaks` / `trufflehog` |
| 19 | - Scan full git history (secrets removed in commits are still accessible) |
| 20 | - Search with targeted dorks (see `reference/repository-recon.md`) |
| 21 | |
| 22 | ### 4. Code Intelligence |
| 23 | - Extract API endpoints, auth patterns, internal service names |
| 24 | - Review Dockerfiles, CI configs, IaC for infra details |
| 25 | - Check dependency files for version-specific CVE candidates |
| 26 | |
| 27 | ## Output |
| 28 | |
| 29 | ``` |
| 30 | data/reconnaissance/repositories.json # Repo inventory + findings |
| 31 | reports/reconnaissance_report.md # OSINT section appended |
| 32 | raw/osint/ # Raw tool outputs |
| 33 | ``` |
| 34 | |
| 35 | ## Tools |
| 36 | |
| 37 | `trufflehog`, `gitleaks`, `gitrob`, GitHub/GitLab search, `gh` CLI, `git log` |
| 38 | |
| 39 | ## Rules |
| 40 | |
| 41 | 1. Passive discovery first (search APIs, public pages) before any cloning |
| 42 | 2. Scan git history — deleted secrets are still in commit objects |
| 43 | 3. Check employee personal accounts, not just org accounts |
| 44 | 4. Document every discovered credential/secret immediately as a finding |
| 45 | 5. All output saved to `{OUTPUT_DIR}/` per CLAUDE.md directory structure |
| 46 | |
| 47 | ## Reference |
| 48 | |
| 49 | - `reference/repository-recon.md` - Dorks, tool commands, secret patterns, workflow |