Branch was auto-updated.

This commit is contained in:
pyth0n1c
2022-07-19 14:15:32 -07:00
committed by GitHub
6 changed files with 391 additions and 0 deletions
@@ -0,0 +1,68 @@
name: Living Off The Land
id: 1be30d80-3a39-4df9-9102-64a467b24abc
version: 1
date: '2022-07-08'
author: Michael Haag, Splunk
type: Correlation
datamodel:
- Risk
description: The following correlation identifies a distinct amount of analytics associated with the Living Off The Land analytic story that identify potentially suspicious behavior.
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Risk.All_Risk where All_Risk.analyticstories="Living Off The Land" All_Risk.risk_object_type="system" by All_Risk.risk_object All_Risk.annotations.mitre_attack.mitre_tactic source
| `drop_dm_object_name(All_Risk)`
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| stats values(source) as detection_name values(annotations.mitre_attack.mitre_tactic) as tactics values(firstTime) as firstTime values(lastTime) as lastTime dc(annotations.mitre_attack.mitre_tactic) as distinct_tactics dc(source) as distinct_detection_name by risk_object
| where distinct_detection_name >= 2
| `living_off_the_land_filter`'
how_to_implement: To implement this correlation search a user needs to enable all
detections in the Living Off The Land Analytic Story and confirm it is generating risk events.
A simple search `index=risk analyticstories="Living Off The Land"` should contain
events.
known_false_positives: There are no known false positive for this search, but it could
contain false positives as multiple detections can trigger and not have successful
exploitation. Modify the static value distinct_detection_name to a higher value. It is also required to tune analytics that are also tagged to ensure volume is never too much.
references:
- https://www.splunk.com/en_us/blog/security/living-off-the-land-threat-research-february-2022-release.html
- https://research.splunk.com/stories/living_off_the_land/
tags:
analytic_story:
- Living Off The Land
asset_type: Endpoint
cis20:
- CIS 3
- CIS 5
- CIS 16
confidence: 70
context:
- Source:Endpoint
dataset:
- https://raw.githubusercontent.com/splunk/attack_data/master/datasets/attack_techniques/T1218/living_off_the_land/lolbinrisk.log
impact: 90
kill_chain_phases:
- Reconnaissance
- Exploitation
message: An increase of Living Off The Land behavior has been detected on $affected_systems$
mitre_attack_id:
- T1105
- T1190
- T1059
nist:
- DE.CM
observable:
- name: affected_systems
type: Hostname
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- All_Risk.analyticstories
- All_Risk.risk_object_type
- All_Risk.risk_object
- All_Risk.annotations.mitre_attack.mitre_tactic
- source
risk_score: 63
security_domain: endpoint
@@ -0,0 +1,86 @@
name: Windows Identify Protocol Handlers
id: bd5c311e-a6ea-48ae-a289-19a3398e3648
version: 1
date: '2022-07-11'
author: Michael Haag, Splunk
type: Hunting
datamodel:
- Endpoint
description: 'The following hunting analytic will identify any protocol handlers utilized on the command-line. A protocol handler is an application that knows how to handle particular types of links: for example, a mail client is a protocol handler for "mailto:" links. When the user clicks a "mailto:" link, the browser opens the application selected as the handler for the "mailto:" protocol (or offers them a choice of handlers, depending on their settings).
To identify protocol handlers we can use NirSoft https://www.nirsoft.net/utils/url_protocol_view.html URLProtocolView or query the registry using PowerShell: get-Item Registry::HKEY_CLASSES_ROOT\* | Select-Object "Property","PSChildName" | Where-Object -Property Property -Match "^URL*" #|Export-Csv -path c:\temp\url_all.csv. Note my query is limited to URL in the property to limit the scope of this query to similar handlers as ms-msdt.'
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Processes.process) as process values(Processes.parent_process) as parent_process from datamodel=Endpoint.Processes by Processes.dest Processes.user Processes.process_name Processes.process
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `drop_dm_object_name(Processes)`
| lookup windows_protocol_handlers handler AS process OUTPUT handler ishandler | where ishandler="TRUE"
| `windows_identify_protocol_handlers_filter`'
how_to_implement: To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. In addition, confirm the latest CIM App 4.20 or higher is installed and the latest TA for the endpoint product.
known_false_positives: False positives will be found. https and http is a URL Protocol handler that will trigger this analytic. Tune based on process or command-line.
references:
- https://www.oreilly.com/library/view/learning-java/1565927184/apas02.html
- https://blogs.windows.com/msedgedev/2022/01/20/getting-started-url-protocol-handlers-microsoft-edge/
- https://github.com/Mr-Un1k0d3r/PoisonHandler
- https://www.mdsec.co.uk/2021/03/phishing-users-to-take-a-test/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/T1218.md#atomic-test-5---protocolhandlerexe-downloaded-a-suspicious-file
- https://techcommunity.microsoft.com/t5/windows-it-pro-blog/disabling-the-msix-ms-appinstaller-protocol-handler/ba-p/3119479
- https://www.huntress.com/blog/microsoft-office-remote-code-execution-follina-msdt-bug
- https://parsiya.net/blog/2021-03-17-attack-surface-analysis-part-2-custom-protocol-handlers/
tags:
analytic_story:
- Living Off The Land
asset_type: Endpoint
cis20:
- CIS 3
- CIS 5
- CIS 16
confidence: 20
context:
- Source:Endpoint
- Stage:Defense Evasion
dataset:
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059/protocol_handlers/protocolhandlers.log
impact: 30
kill_chain_phases:
- Exploitation
message: An instance of $parent_process_name$ spawning $process_name$ was identified on endpoint $dest$ by user $user$ utilizing a protocol handler.
mitre_attack_id:
- T1059
nist:
- DE.CM
observable:
- name: user
type: User
role:
- Victim
- name: dest
type: Hostname
role:
- Victim
- name: parent_process_name
type: Process Name
role:
- Parent Process
- name: process_name
type: Process
role:
- Child Process
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- Processes.dest
- Processes.user
- Processes.parent_process_name #parent process name
- Processes.parent_process #parent cmdline
- Processes.original_file_name
- Processes.process_name #process name
- Processes.process #process cmdline
- Processes.process_id
- Processes.parent_process_path
- Processes.process_path
- Processes.parent_process_id
risk_score: 6
security_domain: endpoint
+205
View File
@@ -0,0 +1,205 @@
handler,ishandler
"*bingmaps:*",TRUE
"*calculator:*",TRUE
"*callto:*",TRUE
"*conf:*",TRUE
"*DLNA-PLAYSINGLE:*",TRUE
"*Explorer.AssocActionId.BurnSelection:*",TRUE
"*Explorer.AssocActionId.EraseDisc:*",TRUE
"*Explorer.AssocActionId.ZipSelection:*",TRUE
"*Explorer.AssocProtocol.search-ms:*",TRUE
"*Explorer.BurnSelection:*",TRUE
"*Explorer.EraseDisc:*",TRUE
"*Explorer.ZipSelection:*",TRUE
"*feed:*",TRUE
"*feeds:*",TRUE
"*file:*",TRUE
"*FirefoxURL-308046B0AF4A39CB:*",TRUE
"*ftp:*",TRUE
"*grvopen:*",TRUE
"*http:*",TRUE
"*https:*",TRUE
"*iehistory:*",TRUE
"*ierss:*",TRUE
"*im:*",TRUE
"*LDAP:*",TRUE
"*Lync15:*",TRUE
"*Lync15classic:*",TRUE
"*ma-chan:*",TRUE
"*ma-filelink:*",TRUE
"*mailto:*",TRUE
"*mapi:*",TRUE
"*mapi15:*",TRUE
"*mapi16:*",TRUE
"*mk:*",TRUE
"*MMS:*",TRUE
"*ms-access:*",TRUE
"*ms-actioncenter:*",TRUE
"*ms-apprep:*",TRUE
"*ms-availablenetworks:*",TRUE
"*ms-cortana:*",TRUE
"*ms-cxh:*",TRUE
"*ms-device-enrollment:*",TRUE
"*ms-excel:*",TRUE
"*ms-msdt:*",TRUE
"*ms-penworkspace:*",TRUE
"*ms-powerpoint:*",TRUE
"*ms-publisher:*",TRUE
"*ms-settings:*",TRUE
"*ms-settings-airplanemode:*",TRUE
"*ms-settings-bluetooth:*",TRUE
"*ms-settings-cellular:*",TRUE
"*ms-settings-connectabledevices:*",TRUE
"*ms-settings-displays-topology:*",TRUE
"*ms-settings-emailandaccounts:*",TRUE
"*ms-settings-language:*",TRUE
"*ms-settings-location:*",TRUE
"*ms-settings-lock:*",TRUE
"*ms-settings-mobilehotspot:*",TRUE
"*ms-settings-notifications:*",TRUE
"*ms-settings-power:*",TRUE
"*ms-settings-privacy:*",TRUE
"*ms-settings-proximity:*",TRUE
"*ms-settings-screenrotation:*",TRUE
"*ms-settings-wifi:*",TRUE
"*ms-settings-workplace:*",TRUE
"*ms-teams:*",TRUE
"*ms-windows-search:*",TRUE
"*ms-word:*",TRUE
"*mssharepointclient:*",TRUE
"*msteams:*",TRUE
"*mswindowsmusic:*",TRUE
"*mswindowsvideo:*",TRUE
"*odopen:*",TRUE
"*OneIndex16:*",TRUE
"*OneNote:*",TRUE
"*OneNote.URL.16:*",TRUE
"*OneNoteDesktop:*",TRUE
"*OneNoteDesktop.URL.16:*",TRUE
"*Outlook.URL.feed.15:*",TRUE
"*Outlook.URL.mailto.15:*",TRUE
"*Outlook.URL.stssync.15:*",TRUE
"*Outlook.URL.webcal.15:*",TRUE
"*res:*",TRUE
"*rlogin:*",TRUE
"*search:*",TRUE
"*search-ms:*",TRUE
"*sip:*",TRUE
"*sips:*",TRUE
"*skypecast15:*",TRUE
"*stssync:*",TRUE
"*tbauth:*",TRUE
"*tel:*",TRUE
"*telnet:*",TRUE
"*tn3270:*",TRUE
"*webcal:*",TRUE
"*webcals:*",TRUE
"*windows.tbauth:*",TRUE
"*WMP11.AssocProtocol.DLNA-PLAYSINGLE:*",TRUE
"*WMP11.AssocProtocol.MMS:*",TRUE
"*Word:*",TRUE
"*xbox-tcui:*",TRUE
"*appinstaller.oauth2:*",TRUE
"*bingnews:*",TRUE
"*bingweather:*",TRUE
"*feedback-hub:*",TRUE
"*git-client:*",TRUE
"*IE.HTTP:*",TRUE
"*insiderhub:*",TRUE
"*microsoft-edge:*",TRUE
"*microsoft-edge-holographic:*",TRUE
"*microsoft.windows.camera:*",TRUE
"*microsoft.windows.camera.multipicker:*",TRUE
"*microsoft.windows.camera.picker:*",TRUE
"*microsoft.windows.photos.crop:*",TRUE
"*microsoft.windows.photos.picker:*",TRUE
"*microsoft.windows.photos.videoedit:*",TRUE
"*Microsoft.Workfolders:*",TRUE
"*microsoftvideo:*",TRUE
"*ms-aad-brokerplugin:*",TRUE
"*ms-appinstaller:*",TRUE
"*ms-calculator:*",TRUE
"*ms-clock:*",TRUE
"*ms-contact-support:*",TRUE
"*ms-cortana2:*",TRUE
"*ms-cxh-full:*",TRUE
"*ms-default-location:*",TRUE
"*ms-device-enrollment2:*",TRUE
"*ms-drive-to:*",TRUE
"*ms-edu-secureassessment:*",TRUE
"*ms-eyecontrolspeech:*",TRUE
"*ms-gamebar:*",TRUE
"*ms-gamebarservices:*",TRUE
"*ms-gamingoverlay:*",TRUE
"*ms-get-started:*",TRUE
"*ms-getoffice:*",TRUE
"*ms-inputapp:*",TRUE
"*ms-insights:*",TRUE
"*ms-meetnow:*",TRUE
"*ms-meetnowflyout:*",TRUE
"*ms-mmsys:*",TRUE
"*ms-msime-imepad:*",TRUE
"*ms-msime-imjpdct:*",TRUE
"*ms-officeapp:*",TRUE
"*ms-officecmd:*",TRUE
"*ms-oobenetwork:*",TRUE
"*ms-people:*",TRUE
"*ms-perception-simulation:*",TRUE
"*ms-phone:*",TRUE
"*ms-photos:*",TRUE
"*ms-powerautomate:*",TRUE
"*ms-print-addprinter:*",TRUE
"*ms-print-printjobs:*",TRUE
"*ms-quick-assist:*",TRUE
"*ms-rdx-document:*",TRUE
"*ms-retaildemo-launchbioenrollment:*",TRUE
"*ms-retaildemo-launchstart:*",TRUE
"*ms-screenclip:*",TRUE
"*ms-screensketch:*",TRUE
"*ms-search:*",TRUE
"*ms-sttoverlay:*",TRUE
"*ms-taskswitcher:*",TRUE
"*ms-to-do:*",TRUE
"*ms-todo:*",TRUE
"*ms-unistore-email:*",TRUE
"*ms-virtualtouchpad:*",TRUE
"*ms-walk-to:*",TRUE
"*ms-wcrv:*",TRUE
"*ms-windows-store:*",TRUE
"*ms-windows-store-deskext:*",TRUE
"*ms-windows-store2:*",TRUE
"*ms-wpc:*",TRUE
"*ms-wpdrmv:*",TRUE
"*ms-wxh:*",TRUE
"*ms-xbet-survey:*",TRUE
"*ms-xbl-3d8b930f:*",TRUE
"*ms-xgpueject:*",TRUE
"*msgamepass:*",TRUE
"*msgamingapp:*",TRUE
"*msnews:*",TRUE
"*msnnews:*",TRUE
"*msnweather:*",TRUE
"*msxbox:*",TRUE
"*outlookaccounts:*",TRUE
"*outlookcal:*",TRUE
"*outlookmail:*",TRUE
"*read:*",TRUE
"*vscode:*",TRUE
"*vsls:*",TRUE
"*vstfs:*",TRUE
"*vsweb:*",TRUE
"*windows-feedback:*",TRUE
"*windowsdefender:*",TRUE
"*xboxliveapp-1297287741:*",TRUE
"*zune:*",TRUE
"*SecureBrowser.security.getDeviceInfo:*",TRUE
"*SecureBrowser.security.getMACAddress:*",TRUE
"*SecureBrowser.security.examineProcessList:*",TRUE
"*SecureBrowser.security.isRemoteSession:*",TRUE
"*SecureBrowser.security.isVMSession:*",TRUE
"*JavaScript:*",TRUE
"*vbscript:*",TRUE
"*about:*",TRUE
"*ms-its:*",TRUE
"*its:*",TRUE
"*mk:@MSITStore:*",TRUE
1 handler ishandler
2 *bingmaps:* TRUE
3 *calculator:* TRUE
4 *callto:* TRUE
5 *conf:* TRUE
6 *DLNA-PLAYSINGLE:* TRUE
7 *Explorer.AssocActionId.BurnSelection:* TRUE
8 *Explorer.AssocActionId.EraseDisc:* TRUE
9 *Explorer.AssocActionId.ZipSelection:* TRUE
10 *Explorer.AssocProtocol.search-ms:* TRUE
11 *Explorer.BurnSelection:* TRUE
12 *Explorer.EraseDisc:* TRUE
13 *Explorer.ZipSelection:* TRUE
14 *feed:* TRUE
15 *feeds:* TRUE
16 *file:* TRUE
17 *FirefoxURL-308046B0AF4A39CB:* TRUE
18 *ftp:* TRUE
19 *grvopen:* TRUE
20 *http:* TRUE
21 *https:* TRUE
22 *iehistory:* TRUE
23 *ierss:* TRUE
24 *im:* TRUE
25 *LDAP:* TRUE
26 *Lync15:* TRUE
27 *Lync15classic:* TRUE
28 *ma-chan:* TRUE
29 *ma-filelink:* TRUE
30 *mailto:* TRUE
31 *mapi:* TRUE
32 *mapi15:* TRUE
33 *mapi16:* TRUE
34 *mk:* TRUE
35 *MMS:* TRUE
36 *ms-access:* TRUE
37 *ms-actioncenter:* TRUE
38 *ms-apprep:* TRUE
39 *ms-availablenetworks:* TRUE
40 *ms-cortana:* TRUE
41 *ms-cxh:* TRUE
42 *ms-device-enrollment:* TRUE
43 *ms-excel:* TRUE
44 *ms-msdt:* TRUE
45 *ms-penworkspace:* TRUE
46 *ms-powerpoint:* TRUE
47 *ms-publisher:* TRUE
48 *ms-settings:* TRUE
49 *ms-settings-airplanemode:* TRUE
50 *ms-settings-bluetooth:* TRUE
51 *ms-settings-cellular:* TRUE
52 *ms-settings-connectabledevices:* TRUE
53 *ms-settings-displays-topology:* TRUE
54 *ms-settings-emailandaccounts:* TRUE
55 *ms-settings-language:* TRUE
56 *ms-settings-location:* TRUE
57 *ms-settings-lock:* TRUE
58 *ms-settings-mobilehotspot:* TRUE
59 *ms-settings-notifications:* TRUE
60 *ms-settings-power:* TRUE
61 *ms-settings-privacy:* TRUE
62 *ms-settings-proximity:* TRUE
63 *ms-settings-screenrotation:* TRUE
64 *ms-settings-wifi:* TRUE
65 *ms-settings-workplace:* TRUE
66 *ms-teams:* TRUE
67 *ms-windows-search:* TRUE
68 *ms-word:* TRUE
69 *mssharepointclient:* TRUE
70 *msteams:* TRUE
71 *mswindowsmusic:* TRUE
72 *mswindowsvideo:* TRUE
73 *odopen:* TRUE
74 *OneIndex16:* TRUE
75 *OneNote:* TRUE
76 *OneNote.URL.16:* TRUE
77 *OneNoteDesktop:* TRUE
78 *OneNoteDesktop.URL.16:* TRUE
79 *Outlook.URL.feed.15:* TRUE
80 *Outlook.URL.mailto.15:* TRUE
81 *Outlook.URL.stssync.15:* TRUE
82 *Outlook.URL.webcal.15:* TRUE
83 *res:* TRUE
84 *rlogin:* TRUE
85 *search:* TRUE
86 *search-ms:* TRUE
87 *sip:* TRUE
88 *sips:* TRUE
89 *skypecast15:* TRUE
90 *stssync:* TRUE
91 *tbauth:* TRUE
92 *tel:* TRUE
93 *telnet:* TRUE
94 *tn3270:* TRUE
95 *webcal:* TRUE
96 *webcals:* TRUE
97 *windows.tbauth:* TRUE
98 *WMP11.AssocProtocol.DLNA-PLAYSINGLE:* TRUE
99 *WMP11.AssocProtocol.MMS:* TRUE
100 *Word:* TRUE
101 *xbox-tcui:* TRUE
102 *appinstaller.oauth2:* TRUE
103 *bingnews:* TRUE
104 *bingweather:* TRUE
105 *feedback-hub:* TRUE
106 *git-client:* TRUE
107 *IE.HTTP:* TRUE
108 *insiderhub:* TRUE
109 *microsoft-edge:* TRUE
110 *microsoft-edge-holographic:* TRUE
111 *microsoft.windows.camera:* TRUE
112 *microsoft.windows.camera.multipicker:* TRUE
113 *microsoft.windows.camera.picker:* TRUE
114 *microsoft.windows.photos.crop:* TRUE
115 *microsoft.windows.photos.picker:* TRUE
116 *microsoft.windows.photos.videoedit:* TRUE
117 *Microsoft.Workfolders:* TRUE
118 *microsoftvideo:* TRUE
119 *ms-aad-brokerplugin:* TRUE
120 *ms-appinstaller:* TRUE
121 *ms-calculator:* TRUE
122 *ms-clock:* TRUE
123 *ms-contact-support:* TRUE
124 *ms-cortana2:* TRUE
125 *ms-cxh-full:* TRUE
126 *ms-default-location:* TRUE
127 *ms-device-enrollment2:* TRUE
128 *ms-drive-to:* TRUE
129 *ms-edu-secureassessment:* TRUE
130 *ms-eyecontrolspeech:* TRUE
131 *ms-gamebar:* TRUE
132 *ms-gamebarservices:* TRUE
133 *ms-gamingoverlay:* TRUE
134 *ms-get-started:* TRUE
135 *ms-getoffice:* TRUE
136 *ms-inputapp:* TRUE
137 *ms-insights:* TRUE
138 *ms-meetnow:* TRUE
139 *ms-meetnowflyout:* TRUE
140 *ms-mmsys:* TRUE
141 *ms-msime-imepad:* TRUE
142 *ms-msime-imjpdct:* TRUE
143 *ms-officeapp:* TRUE
144 *ms-officecmd:* TRUE
145 *ms-oobenetwork:* TRUE
146 *ms-people:* TRUE
147 *ms-perception-simulation:* TRUE
148 *ms-phone:* TRUE
149 *ms-photos:* TRUE
150 *ms-powerautomate:* TRUE
151 *ms-print-addprinter:* TRUE
152 *ms-print-printjobs:* TRUE
153 *ms-quick-assist:* TRUE
154 *ms-rdx-document:* TRUE
155 *ms-retaildemo-launchbioenrollment:* TRUE
156 *ms-retaildemo-launchstart:* TRUE
157 *ms-screenclip:* TRUE
158 *ms-screensketch:* TRUE
159 *ms-search:* TRUE
160 *ms-sttoverlay:* TRUE
161 *ms-taskswitcher:* TRUE
162 *ms-to-do:* TRUE
163 *ms-todo:* TRUE
164 *ms-unistore-email:* TRUE
165 *ms-virtualtouchpad:* TRUE
166 *ms-walk-to:* TRUE
167 *ms-wcrv:* TRUE
168 *ms-windows-store:* TRUE
169 *ms-windows-store-deskext:* TRUE
170 *ms-windows-store2:* TRUE
171 *ms-wpc:* TRUE
172 *ms-wpdrmv:* TRUE
173 *ms-wxh:* TRUE
174 *ms-xbet-survey:* TRUE
175 *ms-xbl-3d8b930f:* TRUE
176 *ms-xgpueject:* TRUE
177 *msgamepass:* TRUE
178 *msgamingapp:* TRUE
179 *msnews:* TRUE
180 *msnnews:* TRUE
181 *msnweather:* TRUE
182 *msxbox:* TRUE
183 *outlookaccounts:* TRUE
184 *outlookcal:* TRUE
185 *outlookmail:* TRUE
186 *read:* TRUE
187 *vscode:* TRUE
188 *vsls:* TRUE
189 *vstfs:* TRUE
190 *vsweb:* TRUE
191 *windows-feedback:* TRUE
192 *windowsdefender:* TRUE
193 *xboxliveapp-1297287741:* TRUE
194 *zune:* TRUE
195 *SecureBrowser.security.getDeviceInfo:* TRUE
196 *SecureBrowser.security.getMACAddress:* TRUE
197 *SecureBrowser.security.examineProcessList:* TRUE
198 *SecureBrowser.security.isRemoteSession:* TRUE
199 *SecureBrowser.security.isVMSession:* TRUE
200 *JavaScript:* TRUE
201 *vbscript:* TRUE
202 *about:* TRUE
203 *ms-its:* TRUE
204 *its:* TRUE
205 *mk:@MSITStore:* TRUE
+7
View File
@@ -0,0 +1,7 @@
description: A list of Windows Protocol Handlers
filename: windows_protocol_handlers.csv
name: windows_protocol_handlers
default_match: 'false'
match_type: WILDCARD(handler)
min_matches: 1
case_sensitive_match: 'false'
@@ -0,0 +1,12 @@
name: Living Off The Land Unit Test
tests:
- name: Living Off The Land
file: endpoint/living_off_the_land.yml
pass_condition: '| stats count | where count > 0'
earliest_time: '-24h'
latest_time: 'now'
attack_data:
- file_name: lolbinrisk.log
data: https://raw.githubusercontent.com/splunk/attack_data/master/datasets/attack_techniques/T1218/living_off_the_land/lolbinrisk.log
source: lotl
sourcetype: stash
@@ -0,0 +1,13 @@
name: Windows Identify Protocol Handlers Unit Test
tests:
- name: Windows Identify Protocol Handlers
file: endpoint/windows_identify_protocol_handlers.yml
pass_condition: '| stats count | where count > 0'
earliest_time: -24h
latest_time: now
attack_data:
- file_name: msdt.log
data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059/protocol_handlers/protocolhandlers.log
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
sourcetype: xmlwineventlog
update_timestamp: true