T1593.003: Code Repositories
Adversaries may search public code repositories for information about victims that can be used during targeting. Victims may store code in repositories on various third-party websites such as GitHub, GitLab, SourceForge, and BitBucket. Users typically interact with code repositories through a web application or command-line utilities such as git.
Adversaries may search various public code repositories for various information about a victim. Public code repositories can often be a source of various general information about victims, such as commonly used programming languages and libraries as well as the names of employees. Adversaries may also identify more sensitive data, including accidentally leaked credentials or API keys.[1] Information from these sources may reveal opportunities for other forms of reconnaissance (ex: Phishing for Information), establishing operational resources (ex: Compromise Accounts or Compromise Infrastructure), and/or initial access (ex: Valid Accounts or Phishing).
**Note:** This is distinct from Code Repositories, which focuses on Collection from private and internally hosted code repositories.
Analyst context for executives and security teams
Public code repositories can unintentionally publish a useful map of an organization: technologies in use, employee names, libraries, build patterns, and sometimes credentials or API keys. For leaders, the risk is not the repository itself but the downstream decisions an adversary can make from it—better phishing, account compromise, infrastructure targeting, or use of valid accounts.
Executive priority
Treat this as an exposure-management and SDLC governance issue. Executives should ask whether public repositories are inventoried, whether developer guidance covers secret handling, whether auditing can prove review of public code exposure, and whether leaked credentials can be rapidly revoked. Priority is highest where public development, cloud APIs, CI/CD, or third-party repository services are material to operations.
Technical view
T1593.003 is a reconnaissance sub-technique under Search Open Websites/Domains for the PRE platform. MITRE provides no official detection text, but a related detection strategy, DET0805 Detection of Code Repositories, is linked. SOC, IR, and detection engineering teams should validate whether they can identify organization-related public repository exposure, leaked secrets, and suspicious follow-on use of credentials or accounts. Relationship context maps use by HAFNIUM, LAPSUS$, Contagious Interview, and Shai-Hulud, so defenders should consider this behavior relevant to both social engineering and software supply chain exposure without assuming local targeting.
Likely telemetry
- Public repository inventory and organization/account ownership records
- Repository provider audit logs where available
- Commit history, pull requests, issues, wikis, and public metadata referencing the organization
- Secret scanning or exposure scanning findings for credentials, API keys, and tokens
- Developer identity and access records tied to repository accounts
Detection direction
- Confirm whether DET0805 or equivalent processes cover public repositories, not only private/internal code stores.
- Tune monitoring for organization names, domains, employee identifiers, project names, and credential patterns in public code repositories while accounting for legitimate open-source activity.
- Prioritize validation of leaked secrets by type, age, scope, and whether they remain active; avoid treating every public reference as equal risk.
- Correlate repository exposure with downstream authentication, cloud API, SaaS, or CI/CD activity to determine whether reconnaissance has created an actionable access risk.
- Maintain a clear distinction from T1213.003, which concerns collection from private or internally hosted code repositories.
Mitigation priorities
- Implement M1013 Application Developer Guidance focused on preventing secrets and sensitive operational details from being committed to public repositories.
- Use M1047 Audit to regularly review public repository exposure, repository configurations, developer activity, and evidence of remediation.
- Establish a repeatable process to revoke, rotate, or scope down credentials and API keys found in public repositories.
- Inventory public repositories associated with the organization and define ownership for review and takedown/remediation decisions.
- Integrate repository exposure checks into SDLC, CI/CD, cloud security, and compliance evidence workflows.
Analyst notes and limits
The key decision value is whether the organization can find and remediate externally visible development artifacts before they enable phishing, account compromise, infrastructure compromise, or valid-account access. The ATT&CK relationships to named groups and software show this behavior is operationally relevant across multiple threat contexts, but local risk depends on what the organization publishes and whether exposed credentials or metadata remain usable.
Official MITRE detection guidance is not provided for this technique in the supplied fields. Telemetry and control recommendations are therefore conservative and should be validated against the organization’s actual repository providers, cloud/SaaS integrations, CI/CD design, and audit capabilities. No claim is made that any listed group or software is targeting a specific organization.
Code Repositories
Adversaries may search public code repositories for information about victims that can be used during targeting. Victims may store code in repositories on various third-party websites such as GitHub, GitLab, SourceForge, and BitBucket. Users typically interact with code repositories through a web application or command-line utilities such as git.
Adversaries may search various public code repositories for various information about a victim. Public code repositories can often be a source of various general information about victims, such as commonly used programming languages and libraries as well as the names of employees. Adversaries may also identify more sensitive data, including accidentally leaked credentials or API keys.[1] Information from these sources may reveal opportunities for other forms of reconnaissance (ex: Phishing for Information), establishing operational resources (ex: Compromise Accounts or Compromise Infrastructure), and/or initial access (ex: Valid Accounts or Phishing).
**Note:** This is distinct from Code Repositories, which focuses on Collection from private and internally hosted code repositories.
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Related techniques
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1593 | Search Open Websites/Domains | This object subtechnique of Search Open Websites/Domains. |
Groups, software, and campaigns
G1052: Contagious Interview
Contagious Interview is a North Korea–aligned threat group active since 2023. The group conducts both cyberespionage and financially motivated operations, including the theft of cryptocurrency and user credentials. Contagious Interview targets Windows, Linux, and macOS systems, with a particular focus on individuals engaged in software development and cryptocurrency-related activities. [1][2][3][4][5][6][7][8]
G1004: LAPSUS$
LAPSUS$ is cyber criminal threat group that has been active since at least mid-2021. LAPSUS$ specializes in large-scale social engineering and extortion operations, including destructive attacks without the use of ransomware. The group has targeted organizations globally, including in the government, manufacturing, higher education, energy, healthcare, technology, telecommunications, and media sectors.[1][2][3]
G0125: HAFNIUM
HAFNIUM is a likely state-sponsored cyber espionage group operating out of China that has been active since at least January 2021. HAFNIUM primarily targets entities in the US across a number of industry sectors, including infectious disease researchers, law firms, higher education institutions, defense contractors, policy think tanks, and NGOs. HAFNIUM has targeted remote management tools and cloud software for intial access and has demonstrated an ability to quickly operationalize exploits for identified vulnerabilities in edge devices.[1][2][3]
S9008: Shai-Hulud
Shai-Hulud is a supply chain worm, first reported in September 2025, that spreads through code repositories, including GitHub and NPM packages. It exploits CI/CD pipeline dependencies to propagate to victims and poisons the supply chain by publishing malicious packages. Once inside a victim environment, Shai-Hulud steals credentials and access tokens from compromised repository accounts and exfiltrates them to attacker-controlled servers via encoded GitHub Actions workflows.[1][2][3][4][5][6][7]
All related ATT&CK context
Mitigation direction
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .
Imported snapshots across ATT&CK releases (1)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.1 | 1.0 | Current bundle | 249fd7dc8dce… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
-
[1]
GitHub Cloud Service Credentials
Runa A. Sandvik. (2014, January 14). Attackers Scrape GitHub For Cloud Service Credentials, Hijack Account To Mine Virtual Currency. Retrieved August 9, 2022.
Open source URL -
[2]
mitre-attack T1593.003Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.