2021-10-26 02:50 PM - edited 2021-10-26 02:52 PM
I am trying to create an Advanced ESA rule that alert us when someone creates an user out of office hours. For that we are creating a "context" which determine when the alert should be generated, and a Whitelist to exclude users that have permission to do that. The Whitelist in question was added to the ContextHub and applied to ESA's Enrichment Sources.
Yet, our query is not working... We are not being able to use our whitelist from within the "context" we've created. Below is a sample of the alert we are trying to create:
@RSAAlert(oneInSeconds=0) @Name ("Suspicious Account Creation")
@Description('This alert is triggered when someone from outside the whitelist creates a new account out of office hours') @UsesEnrichment(name = "Custom_User_Whitelist")
create context cronhour start (1,19,*,*,*) end (59,7,*,*,*); context cronhour select window(*) from Event ( /* Statement: Statement 0 - Null */ (reference_id IS NOT NULL) AND /* Statement: Statement 1 - Reference ID */ (reference_id IN ( '4720' )) AND /* Statement: Statement 2 - User Whitelist */ (user_dst.toLowerCase() IS NOT NULL AND NOT EXISTS (SELECT * FROM Custom_User_Whitelist WHERE ( LIST = Event.user_dst ) )) AND /* Statement: Statement 3 - Exclusions*/ (user_dst NOT LIKE '%$%' AND user_src NOT LIKE '%$%') ).win:length(1);
The error we receive is: Named window by name 'Custom_User_Whitelist' has been declared for context 'null' and can only be used within the same context.
Is there a way to import our ContextHub Whitelist into the context (cronhour) we've created? And if so, how?
2022-05-30 03:05 PM
Hello, @DaveGlover
I'm currently working on the same case of @BrenoAmaral but even more easier.
Can you have a look at my question?
2021-10-27 11:42 AM
Have you gotten an answer for this yet? I don't have the answer, but I can research a solution for you.
2021-10-27 01:34 PM
Hello Dave,
We haven't found a solution for this problem yet. Your help will be much appreciated.
2022-05-30 03:05 PM
Hello, @DaveGlover
I'm currently working on the same case of @BrenoAmaral but even more easier.
Can you have a look at my question?