This commit is contained in:
tccontre
2021-08-27 14:02:45 +02:00
@@ -5,6 +5,7 @@ date: '2021-08-20'
author: Teoderick Contreras, Splunk
type: Anomaly
datamodel: []
<<<<<<< HEAD
description: 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
@@ -13,8 +14,20 @@ search: '`github` branches{}.name = main OR branches{}.name = master
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `github_commit_changes_in_master_filter`'
=======
description: 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
search: '`github` branches{}.name = main | stats count min(_time) as firstTime max(_time)
as lastTime by commit.author.html_url commit.commit.author.email commit.author.login
commit.commit.message repository.pushed_at commit.commit.committer.date | `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)` | `github_commit_changes_in_master_filter`'
>>>>>>> 4cd7b43ed0ed57bbc91cafe06c6bd8a16867e00f
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.
logs related to github logs having the fork, commit, push metadata that can be use
to monitor the changes in a github project.
known_false_positives: admin can do changes directly to master branch
references:
- https://www.redhat.com/en/topics/devops/what-is-devsecops
@@ -35,8 +48,7 @@ tags:
- _time
security_domain: endpoint
impact: 30
confidence: 30
# (impact * confidence)/100
confidence: 30
risk_score: 9
context:
- Source:Endpoint
@@ -47,5 +59,4 @@ tags:
type: User
role:
- attacker
automated_detection_testing: passed