Sub-technique of T1213 Data from Information Repositories.View on attack.mitre.org
Adversaries may leverage code repositories to collect valuable information. Code repositories are tools/services that store source code and automate software builds. They may be hosted internally or privately on third party sites such as Github, GitLab, SourceForge, and BitBucket. Users typically interact with code repositories through a web application or command-line utilities such as git.
Once adversaries gain access to a victim network or a private code repository, they may collect sensitive information such as proprietary source code or Unsecured Credentials contained within software's source code. Having access to software's source code may allow adversaries to develop Exploits, while credentials may provide access to additional resources using Valid Accounts.
**Note:** This is distinct from Code Repositories, which focuses on conducting Reconnaissance via public code repositories.
Rules on DetectionCode tagged with T1213.003.
| Rule | Level | Log source |
|---|---|---|
| Bitbucket Unauthorized Full Data Export Triggered | critical | bitbucket / NULL |
| Bitbucket Full Data Export Triggered | high | bitbucket / NULL |
| Github Delete Action Invoked | medium | github / NULL |
| Github Outside Collaborator Detected | medium | github / NULL |
| Github Self Hosted Runner Changes Detected | low | github / NULL |
| Used by | Procedure example |
|---|---|
| GroupAPT41 | APT41 cloned victim user Git repositories during intrusions. |
| GroupLAPSUS$ | LAPSUS$ has searched a victim's network for code repositories like GitLab and GitHub to discover further high-privilege account credentials. |
| GroupScattered Spider | Scattered Spider enumerates data stored within victim code repositories, such as internal GitHub repositories. |
| GroupShinyHunters | ShinyHunters has gathered information from and has searched for vulnerabilities in the target company’s GitHub repository source code. |
| Used by | Procedure example |
|---|---|
| MalwareGlassWorm | GlassWorm has gathered code repository authentication materials for NPM and GitHub. GlassWorm has collected details pertaining to the npm configuration data for `_authToken`. |
| MalwareMini Shai-Hulud | Mini Shai-Hulud has gathered and downloaded data stored on both compromised and publicly accessible code repositories. |
| MalwareShai-Hulud | Shai-Hulud has downloaded existing packages from code repositories and extracted data stored within them. |
| MalwareTeamPCP Cloud Stealer | TeamPCP Cloud Stealer can target sensitive file paths in Git repos to extract credentials. |
| ToolTruffleHog | TruffleHog has gathered data and credentials from code repositories. |
| Used by | Procedure example |
|---|---|
| CampaignSolarWinds Compromise | During the SolarWinds Compromise, APT29 downloaded source code from code repositories. |
Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.