OpenParable
Skip to content
← Back to skills

T1593.003_code-repositories

Research

T1593.003_code-repositories is an Agent Skill for research published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Adversaries may search public code repositories for information about victims that can be used during targeting.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/mitre_attack/TA0043_reconnaissance/T1593.003_code-repositories/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/t1593-003-code-repositories, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

T1593.003 Code Repositories

Sub-technique of: T1593

High-Level Description

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. 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.

Kill Chain Phase

  • Reconnaissance (TA0043)

Platforms: PRE

What to Check

  • Identify if Code Repositories technique is applicable to target environment
  • Check PRE systems for indicators of Code Repositories
  • Verify mitigations are bypassed or absent (2 known mitigations)
  • Assess detection coverage (1 detection strategies)

How to Test

Manual Testing

  1. Identify Attack Surface: Determine if the target environment is susceptible to Code Repositories by examining the target platforms (PRE).

  2. Assess Existing Defenses: Review whether mitigations for T1593.003 are in place. If defenses are absent or misconfigured, this technique may be exploitable.

  3. Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.

Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.

Remediation Guide

M1013 Application Developer Guidance

Application developers uploading to public code repositories should be careful to avoid publishing sensitive information such as credentials and API keys.

M1047 Audit

Scan public code repositories for exposed credentials or other sensitive information before making commits. Ensure that any leaked credentials are removed from the commit history, not just the current latest version of the code.

Detection

Detection of Code Repositories

Risk Assessment

FindingSeverityImpact
Code Repositories technique applicableHighReconnaissance

CWE Categories

CWE IDTitle
CWE-200Exposure of Sensitive Information

References