Default Branch Updated

ID

project_default_branch_updated

Severity

critical

Resource

Branch

Description

Detects when the default branch of a project is updated.

Impact

Changing the default branch in a Git repository can have various implications for the development and collaboration process within your project. If an attacker gains unauthorized access and changes the default branch, it can potentially disrupt or manipulate the project in several ways:

Code Modification: Changing the default branch can lead to the modification of the main branch, which might contain the stable, production-ready code. Unauthorized changes to this code can introduce vulnerabilities, bugs, or malicious code.

Confusion: Changing the default branch can cause confusion among team members and contributors. Existing references, workflows, and automated processes that rely on the default branch may break or lead to errors.

Code Theft or Loss: If an attacker changes the default branch and subsequently deletes or alters other branches, it can result in the loss or theft of code and project history.

Impact on CI/CD Pipelines: CI/CD pipelines and automated workflows may be linked to the default branch. Changing it could affect the pipeline’s behavior, potentially allowing the execution of unauthorized or malicious code.

Supported Technologies

This detector is supported by the following sensors:

Azure Sensor  Azure Sensor

GitLab Sensor   GitLab Sensor