<div dir="ltr">Thanks Mark.<div>I have tested this scenario from 2 clients - one a VM running Win10 (1909) and the other a physical machine. Both displayed the same symptoms on Zeek even with AutoRun/ Play disabled.</div><div><br></div><div>In the "bro_smb_files" event type, an action of "SMB::FILE OPEN" is observed for all the executables in the folder.</div><div>In the "bro_files" event type, these files are extracted.</div><div><br></div><div>Referencing previous queries on action "SMB::FILE OPEN", is it possible that this action caused executables to be extracted "on the fly"?</div><div><a href="http://mailman.icsi.berkeley.edu/pipermail/zeek/2018-April/013049.html">http://mailman.icsi.berkeley.edu/pipermail/zeek/2018-April/013049.html</a> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 16 Jun 2020 at 19:39, Mark I Fernandez <<a href="mailto:mfernandez@mitre.org">mfernandez@mitre.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_5825487442903297269WordSection1">
<p class="MsoNormal">For the “SMB::FILE OPEN” action, I believe you would see this action when viewing a network shared folder. The SMB::FILE OPEN action applies to both files and directories, and I believe there is a flag in one of the SMB headers that specifies
if it is a folder.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For the “extracted files” issue, that sounds strange, but if the files appear in the “extracted” folder, then those executables are being transferred across the wire. I don’t think Zeek could collect those files otherwise. The only thing
I can think of at the moment is that Microsoft Windows has a feature called AutoRun or AutoPlay. Best practice is to disable it, but if it is enabled on your Windows machines, then perhaps it could explain the behavior.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Microsoft article on how to disable AutoRun/AutoPlay:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://docs.microsoft.com/en-us/windows/win32/shell/autoplay-reg" target="_blank">https://docs.microsoft.com/en-us/windows/win32/shell/autoplay-reg</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:rgb(0,51,204)">Mark<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:zeek-bounces@zeek.org" target="_blank">zeek-bounces@zeek.org</a> <<a href="mailto:zeek-bounces@zeek.org" target="_blank">zeek-bounces@zeek.org</a>> <b>
On Behalf Of </b>security devops<br>
<b>Sent:</b> Tuesday, June 16, 2020 4:28 AM<br>
<b>To:</b> <a href="mailto:zeek@zeek.org" target="_blank">zeek@zeek.org</a><br>
<b>Subject:</b> [EXT] [Zeek] Question on Zeek SMB Logs and action "SMB::FILE OPEN"<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">Hi</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">I'm running Security Onion with Zeek 3.0.7.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">I have a client accessing a NAS. Whenever a client accesses a folder containing executables, Zeek will detect a "bro_smb_files" event type for all the executable in the folder,
even though the client did not open these executables.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">There would be an action of "SMB::FILE OPEN" for all these executables and it would be extracted to the "nsm/bro/extracted" folder.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">Is this the default behaviour as it seems odd that the files are extracted even though they did not cross the wire?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">I'm also a little confused over "SMB::FILE OPEN" action when I referenced Zeek documentation. Does it mean the file was "open" even though the client only accessed the mapped
folder?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">The follow up question on this would be forensic integrity of the files. Would this weird SMB behavior affect the "access" date of the file (I am referring to MACB dates
of file).<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">thank you<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</blockquote></div>