add dataset

This commit is contained in:
P4T12ICK
2021-09-01 10:54:03 +02:00
parent 9af8c6e5e0
commit 8d51af0e53
2 changed files with 73 additions and 0 deletions
@@ -0,0 +1,61 @@
name: GitHub Security Advisor Alert
id: 05032b04-4469-4034-9df7-05f607d75cba
version: 1
date: '2021-09-01'
author: Patrick Bareiss, Splunk
type: Anomaly
datamodel: []
description: This search looks for Security Advisor Alerts in Github logs.
search: '`github` alert.id=* action=create
| rename repository.full_name as repository, repository.html_url as repository_url
| stats min(_time) as firstTime max(_time) as lastTime by action alert.affected_package_name
alert.affected_range alert.created_at alert.external_identifier alert.external_reference alert.fixed_in
alert.severity repository repository_url
| `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
| `github_security_advisor_alert_filter`'
how_to_implement: You must index GitHub logs. You can follow the url in reference to onboard GitHub logs.
known_false_positives: unknown
references:
- https://www.splunk.com/en_us/blog/tips-and-tricks/getting-github-data-with-webhooks.html
tags:
analytic_story:
- Dev Sec Ops
asset_type: GitHub
cis20:
- CIS 13
confidence: 90
impact: 30
kill_chain_phases:
- Actions on Objectives
message: Vulnerabilities found in packages used by GitHub repository $repository$
mitre_attack_id:
- T1195.001
nist:
- PR.DS
- PR.AC
- DE.CM
observable:
- name: repository
type: System
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
- Dev Sec Ops Analytics
required_fields:
- _time
- alert.id
- repository.full_name
- repository.html_url
- action
- alert.affected_package_name
- alert.affected_range
- alert.created_at
- alert.external_identifier
- alert.external_reference
- alert.fixed_in
- alert.severity
risk_score: 21
security_domain: network
@@ -0,0 +1,12 @@
name: GitHub Security Advisor Alert Unit Test
tests:
- name: GitHub Security Advisor Alert
file: cloud/github_security_advisor_alert.yml
pass_condition: '| stats count | where count > 0'
earliest_time: '-365d'
latest_time: 'now'
attack_data:
- file_name: github_security_advisor_alert.json
data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1195.001/github_security_advisor_alert/github_security_advisor_alert.json
sourcetype: aws:firehose:json
source: github