Wednesday 02 December 2026 17:56:07 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Default branch

The main branch of a repository, often the first place scanners and contributors inspect.

A default branch is the repository’s primary branch, commonly named main or master. It is typically the starting point for new clones, pull requests, and code reviews, so contributors and automated scanners often inspect it first.

In security investigations, finding suspicious code on a default branch shows that it is present in the repository, but does not prove that anyone executed it. Risk increases when developers or CI jobs run tests or imports from untrusted code: startup files such as Python’s conftest.py can execute before test cases begin. Review changes to the default branch, inspect relevant startup and import paths, and run untrusted projects in isolated environments with limited access to secrets.

← WIKICROOK index