MA
Muhammad AldiansyahRed Team Field Guide
Authorized environments only

Wide Source-Code Search

Map public code, configuration, packages, history, and documentation tied to an authorized organization.

On this page · 5 sections
01

Map organizations, users & repositories

Begin with known organization names, verified domains, developer portals, package namespaces, and repository links from official properties. Similar names alone do not establish ownership.

  • Official GitHub organizations and verified domains.
  • Known maintainers and service accounts.
  • Public repositories, forks, archived projects, and templates.
  • Package namespaces for npm, PyPI, Maven, NuGet, RubyGems, and containers.
  • Documentation, examples, issue trackers, and CI/CD references.
02

Layered search strategy

  1. 01

    Search narrow organization or repository scope first.

  2. 02

    Look for domain names, internal hostnames, project codenames, and configuration vocabulary.

  3. 03

    Add path, language, and filename qualifiers.

  4. 04

    Review forks, archived repositories, and commit history when authorized.

  5. 05

    Correlate a result with the deployed asset inventory before escalating.

Safe query examples
org:example-corp "example.com"
org:example-corp path:.github/workflows
org:example-corp (path:.env OR path:config) NOT path:test
repo:example-corp/sample language:yaml "endpoint"
03

High-value source surfaces

SurfaceLook forDefensive control
CI/CDWorkflow permissions, environments, artifact pathsLeast privilege and protected environments
ConfigurationEndpoints, tenant IDs, feature flagsSeparate public config from secrets
Infrastructure as codePublic resources and trust relationshipsPolicy-as-code and review
PackagesNamespaces, install scripts, ownershipProvenance and publisher controls
HistoryRemoved sensitive values and old endpointsSecret rotation and history cleanup
04

Authorized query builder

Use the client-side builder below to compose GitHub Code Search qualifiers. The query stays in this browser until you choose to open GitHub.

GitHub Code Search BuilderClient-side · no storage · no API
Query previewEnter a valid authorized scope to build a query.
Open in GitHub Code Search

The query is assembled locally. This site does not receive search results, credentials, or repository data.

05

Evidence & remediation

Source exposure record
PUBLIC URL:
OWNER / SCOPE EVIDENCE:
FILE / COMMIT:
EXPOSED DATA CLASS:
SECRET STATUS: unknown / revoked / active (owner-confirmed)
AFFECTED SYSTEM:
ROTATION / REMOVAL OWNER:
DISCOVERY DATE:

Official references

GitHub Code Search syntaxGitHub search documentationHackTricks wide source search reference