Netskope Community
09-18-2023 06:54 AM
How would you write the rule expression for this:
(P0) - Passwords (Contextual)
(C0) - Custom Passwords
(C1) - Custom Word 1
(C2) - Custom Word 2
I want to look for P0 or C0 as long as either is NOT NEAR C1 or C2. The UI doesn't let me build the write logic. Ideally, I think I would want this (which isn't allowed in the UI):
( P0 OR C0 ) NOT NEAR (C1 OR C2)
09-26-2023 11:48 AM
Hi @nduda ,
I think what you want is NOT (( P0 OR C0 ) NEAR (C1 OR C2))
Not sure, but hope it helps.
Regards,
Òscar
09-26-2023 12:39 PM
No go. I don't think using NOT for this scenario is possible.
Invalid syntax in rule expression, check the position of the NEAR operator along with opening and closing parenthesis.
09-27-2023 01:31 AM
Hello @nduda , you're right.
I'm afraid this is the only way to achieve what you want:
(P0 NEAR P2) OR (P0 NEAR P3) OR (P1 NEAR P2) OR (P1 NEAR P3)
Don't know the performance impact of a DLP rule like this.... you may check with support or PPSS.
PS: likes are appreciated.
Regards,
Òscar
09-27-2023 09:00 AM
This doesn't address the "NOT NEAR" though.
here is the real world use case. We have employees that like to communicate Zoom links with the password. If we just use any password detection DLP rule it will trigger on these. We don't want to trigger on if a password is present near a specific zoom URL (e.g. https://acme.zoom.us).
09-27-2023 01:30 PM
Hello @nduda ,
you're right. I forgot the negation. You just need to add a NOT before. The mistake was easy to spot:
NOT ( (P0 NEAR P2) OR (P0 NEAR P3) OR (P1 NEAR P2) OR (P1 NEAR P3) )
If I was you I would invest a abit of time on researching the docs and testing carefully instead of just asking for the solution, copy/pasting and responding "does not work". I didn't give you the solution but the idea was right. You just did not analyze it enough to see it.
Being polite and thankful also helps to build community and encourages people to keep helping each other. I hope you understand.
Said that, I hope it helped.
Kind regards,
Òscar
In order to view this content, you will need to sign in to your account. Simply click the "Sign In" button below
Sign In