updated test file

This commit is contained in:
P4T12ICK
2021-03-29 16:49:13 +02:00
parent cfca6b19d5
commit f12d9a90bb
2 changed files with 15 additions and 11 deletions
+11 -9
View File
@@ -7,15 +7,17 @@ type: streaming
datamodel: []
description: This search looks for specific authentication events from the Windows
Security Event logs to detect potential attempts using Pass-the-Hash technique.
search: ' | from read_ssa_enriched_events() | eval _time=map_get(input_event, "_time"),
EventCode=map_get(input_event, "event_code"), LogonType=map_get(input_event, "logon_type"),
LogonProcess=map_get(input_event, "logon_process"), ComputerName=map_get(input_event,
"dest_ip_primary_artifact"), AccountName=map_get(input_event, "dest_user_primary_artifact")
| where (LogonType="3" AND LogonProcess="NtLmSsp" AND AccountName IS NOT NULL) OR
(LogonType="9" AND LogonProcess="seclogo") | first_time_event input_columns=["EventCode","LogonProcess","ComputerName"]
| where first_time_EventCode_LogonProcess_ComputerName | eval start_time=_time,
end_time=_time, body="TBD", entities="TBD" | select start_time, end_time, entities,
body | into write_ssa_detected_events(); '
search: ' | from read_ssa_enriched_events()
| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null))
| eval signature_id=map_get(input_event, "signature_id"), authentication_type=map_get(input_event, "authentication_type"),
authentication_method=map_get(input_event, "authentication_method"), origin_device_domain=map_get(input_event,
"origin_device_domain")
| where (authentication_type="3" AND authentication_method="NtLmSsp") OR
(authentication_type="9" AND authentication_method="seclogo")
| eval start_time=timestamp, end_time=timestamp, entities=mvappend(dest_device_id,
dest_user_id), body="TBD" | into write_ssa_detected_events();'
how_to_implement: The test data is converted from Windows Security Event logs generated
from Attach Range simulation and used in SPL search and extended to SPL2
known_false_positives: Legitimate logon activity by authorized NTLM systems may be
@@ -5,6 +5,8 @@ tests:
pass_condition: '@count_gt(0)'
description: Test detection of pass-the-hash
attack_data:
- file_name: T1550.002.json
data: https://attack-range-attack-data.s3-us-west-2.amazonaws.com/T1550.002/T1550.002.json
- file_name: windows-security.log
data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1550.002/atomic_red_team/windows-security.log
source: WinEventLog:Security