Try in Splunk Security Cloud


This search is to detect a pushed or commit to master or main branch. This is to avoid unwanted modification to master without a review to the changes. Ideally in terms of devsecops the changes made in a branch and do a PR for review. of course in some cases admin of the project may did a changes directly to master branch

  • Type: Anomaly
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud, Dev Sec Ops Analytics
  • Datamodel:
  • Last Updated: 2021-08-20
  • Author: Teoderick Contreras, Splunk
  • ID: c9d2bfe2-019f-11ec-a8eb-acde48001122


ID Technique Tactic
T1199 Trusted Relationship Initial Access
`github` branches{}.name = main OR branches{}.name = master 
| eval severity="low" 
| eval phase="code" 
|  stats count min(_time) as firstTime max(_time) as lastTime  by commit.commit.message repository.pushed_at, phase, severity 
| eval phase="code" 
| `security_content_ctime(firstTime)` 
| `security_content_ctime(lastTime)` 
| `github_commit_changes_in_master_filter`

Associated Analytic Story

How To Implement

To successfully implement this search, you need to be ingesting logs related to github logs having the fork, commit, push metadata that can be use to monitor the changes in a github project.

Required field

  • _time

Kill Chain Phase

  • Exploitation

Known False Positives

admin can do changes directly to master branch


Risk Score Impact Confidence Message
9.0 30 30 suspicious commit by $$ to main branch


Test Dataset

Replay any dataset to Splunk Enterprise by using our tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range

source | version: 1