11<form theme =" dark" >
2+ <init >
3+ <set token =" show_init_tactic" ></set >
4+ <unset token =" show_breakdown_tactic" ></unset >
5+ </init >
26 <search id =" AtomicRedLookup" >
37 <query >|inputlookup atomic-red-windows-tests
48 </query >
1014 <label >Attack Range Navigator</label >
1115 <description >Available atomic red tests and possible mappings between detections</description >
1216 <fieldset submitButton =" false" autoRun =" true" >
13- <input type =" dropdown" token =" channel " searchWhenChanged =" true" >
17+ <input type =" dropdown" token =" channel_token " searchWhenChanged =" true" >
1418 <label >Content Source</label >
1519 <choice value =" *" >All</choice >
1620 <default >*</default >
3539 <default >*</default >
3640 <initialValue >*</initialValue >
3741 </input >
42+ <input type =" dropdown" token =" tactic_name_token" searchWhenChanged =" true" >
43+ <label >Tactic Name [Detections]</label >
44+ <choice value =" *" >All</choice >
45+ <default >*</default >
46+ <prefix >"</prefix >
47+ <suffix >"</suffix >
48+ <initialValue >*</initialValue >
49+ <fieldForLabel >Tactic</fieldForLabel >
50+ <fieldForValue >Tactic</fieldForValue >
51+ <change >
52+ <condition match =" $tactic_name_token$!=" *" " >
53+ <set token =" show_breakdown_tactic" ></set >
54+ <unset token =" show_init_tactic" ></unset >
55+ </condition >
56+ <condition >
57+ <unset token =" show_breakdown_tactic" ></unset >
58+ <set token =" show_init_tactic" ></set >
59+ </condition >
60+ </change >
61+ <search >
62+ <query >|inputlookup mitre_matrix_list_ar|dedup Tactic |fields Tactic</query >
63+ <earliest >-24h@h</earliest >
64+ <latest >now</latest >
65+ </search >
66+ </input >
67+ <input type =" dropdown" token =" technique_name_token" searchWhenChanged =" true" >
68+ <label >Technique Name [Detections]</label >
69+ <choice value =" *" >All</choice >
70+ <default >*</default >
71+ <prefix >"*</prefix >
72+ <suffix >*"</suffix >
73+ <initialValue >*</initialValue >
74+ <fieldForLabel >Technique</fieldForLabel >
75+ <fieldForValue >Technique</fieldForValue >
76+ <search >
77+ <query >|inputlookup mitre_matrix_list_ar|dedup Technique |fields Technique</query >
78+ <earliest >-24h@h</earliest >
79+ <latest >now</latest >
80+ </search >
81+ </input >
3882 </fieldset >
3983 <row >
4084 <panel >
148192 <table >
149193 <title >(Click to view in ESCU)</title >
150194 <search base =" AtomicRedLookup" >
195+ <progress >
196+ <set token =" story_count" >$job.resultCount$</set >
197+ </progress >
151198 <query >|rename "Technique #" as Technique
152199| sseidenrichment type=mitreid field=Technique
153200| eval mitre_id = Technique+" - "+mitre_technique_display, atomic_test= 'Test Number'+"-"+'Test Name'
169216|search Technique=$technique_token$
170217|stats dc(title) by title
171218| fields title</query >
172- <progress >
173- <set token =" story_count" >$job.resultCount$</set >
174- </progress >
175219 </search >
176220 <option name =" count" >20</option >
177221 <option name =" dataOverlayMode" >none</option >
186230 </drilldown >
187231 </table >
188232 </panel >
189- <panel >
233+ <panel depends = " $show_breakdown_tactic$ " >
190234 <title >Detections with possible Atomic tests mapping [$detection_count$]</title >
191235 <table >
236+ <title >*Tactic Name and Technique Name field applies only here</title >
192237 <search base =" SSEAnalytics" >
193- <query >
194- |mvexpand mitre_technique
238+ <progress >
239+ <set token =" detection_count" >$job.resultCount$</set >
240+ </progress >
241+ <query >| mvexpand mitre_technique
195242|search mitre_technique!="None" mitre_technique!="" mitre_technique!="TA*"
196- |table name , mitre_technique, channel
243+
197244|lookup atomic-red-windows-tests "Technique #" AS mitre_technique OUTPUT "Test Name" as atomic_test_name
245+ | mvexpand mitre_tactic_display
198246| eval atomic_test_exists=if(atomic_test_name != "", "1", "0")
247+ | eval "Candidate Atomic test"=mitre_technique
199248| where atomic_test_exists="1"
200- |search mitre_technique=$technique_token$
201- |rename mitre_technique as "Candidate Atomic test"
202-
203- |table name, "Candidate Atomic test", channel</query >
204- <progress >
205- <set token =" detection_count" >$job.resultCount$</set >
206- </progress >
249+ |search mitre_technique=$technique_token$ channel=$channel_token$ mitre_tactic_display=$tactic_name_token$ mitre_technique_display=$technique_name_token$
250+ |table name, "Candidate Atomic test", mitre_tactic_display,channel</query >
207251 </search >
208252 <option name =" count" >10</option >
209253 <option name =" dataOverlayMode" >none</option >
214258 <option name =" wrap" >true</option >
215259 </table >
216260 </panel >
261+ <panel depends =" $show_init_tactic$" >
262+ <title >Detections with possible Atomic tests mapping [$detection_count_default_panel$]</title >
263+ <table >
264+ <search base =" SSEAnalytics" >
265+ <progress >
266+ <set token =" detection_count_default_panel" >$job.resultCount$</set >
267+ </progress >
268+ <query >|mvexpand mitre_technique
269+ |search mitre_technique!="None" mitre_technique!="" mitre_technique!="TA*"
270+
271+ |lookup atomic-red-windows-tests "Technique #" AS mitre_technique OUTPUT "Test Name" as atomic_test_name
272+ | eval atomic_test_exists=if(atomic_test_name != "", "1", "0")
273+ | eval "Candidate Atomic test"=mitre_technique
274+ | where atomic_test_exists="1"
275+ |search mitre_technique="*" channel="*" mitre_technique_display="***"
276+ |search mitre_technique=$technique_token$ channel=$channel_token$ mitre_technique_display=$technique_name_token$
277+ |table name, "Candidate Atomic test",channel</query >
278+ </search >
279+ <option name =" count" >10</option >
280+ <option name =" dataOverlayMode" >none</option >
281+ <option name =" drilldown" >none</option >
282+ <option name =" percentagesRow" >false</option >
283+ <option name =" refresh.display" >progressbar</option >
284+ <option name =" rowNumbers" >false</option >
285+ <option name =" totalsRow" >false</option >
286+ <option name =" wrap" >true</option >
287+ </table >
288+ </panel >
217289 </row >
218290</form >
0 commit comments