I'm trying to write a custom smb signature to restrict access to certain shares. It's based on Custom App-ID for a specific SMB share
My share pattern is '\\america\credit'. Unfortunately, it didn't work for me and I opened a support case. But they asked me to post the sig. here to verify it first before they look at this further. Can some one please, check the signature ?
<entry name="And Condition 2">
<entry name="Or Condition 1">
<pattern>\x 5c 00 5c 00 61 00 6d 00 65 00 72 00 69 00 63 00 61 00 5c 00 63 00 72 00 65 00 64 00 69 00 74 00\x</pattern>
<comment>string in unicode matches "\\america\credit"</comment>
<description>App-ID to identify and control access to a specific SMB share</description>
I think you want to remove the <or-condition> as that will make the entry contained inside that tag optional. as i read it the signature would fire on all traffic, not just the path you want to match.
Looking at a packet capture, the raw hex stream doesn't include spaces. So yours would be:
I haven't tested this, but it may be worth a shot. I know the article linked shows spaces, but that seems odd to me because the pattern is specifying hex (using \x in front and back). Might be worth trying.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!