This website uses cookies. By clicking OK, you consent to the use of cookies. Click Here to learn more about how we use cookies.
OK
  • RSA.com
  • Products
    • Archer®
      • Archer®
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Archer® Exchange
      • Training
      • Upcoming Events
      • Videos
    • RSA® Fraud & Risk Intelligence Suite
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Web Threat Detection
      • Upcoming Events
      • Videos
    • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Cloud
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Patch Content
      • Videos
    • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication Mobile SDK
      • Advisories
      • Events
      • Ideas
      • Knowledge Base
      • Request Access
      • Training
    • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication for eCommerce
      • RSA® Adaptive Authentication for eCommerce
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® FraudAction Services
      • RSA® FraudAction Services
      • Advisories
      • Discussions
      • Documentation
      • Ideas
      • Videos
    • RSA® Web Threat Detection
      • RSA® Web Threat Detection
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Videos
    • RSA NetWitness® Platform
      • RSA NetWitness® Platform
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA NetWitness® Detect AI
      • RSA NetWitness® Detect AI
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Investigator
      • RSA NetWitness® Investigator
      • Documentation
      • Download the Client
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Orchestrator
      • RSA NetWitness® Orchestrator
      • Overview
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA SecurID® Suite
      • RSA SecurID® Suite
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Knowledge Base
      • Ideas
      • Integrations
      • Training
      • Videos
    • RSA® Identity Governance & Lifecycle
      • RSA® Identity Governance & Lifecycle
      • Advisories
      • Blog
      • Community Exchange
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA SecurID® Access
      • RSA SecurID® Access
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • Other RSA® Products
      • Other RSA® Products
      • RSA® Access Manager
      • RSA® Data Loss Prevention
      • RSA® Digital Certificate Solutions
      • RSA enVision®
      • RSA® Federated Identity Manager
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
  • Resources
    • Advisories
      • Product Advisories on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Hosted
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Product Advisories
    • Blogs
      • Blogs on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Blogs on RSA Link
    • Discussion Forums
      • Discussion Forums
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Discussion Forums on RSA Link
    • Documentation
      • Product Documentation
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Downloads
      • Product Downloads
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Downloads on RSA Link
    • Ideas
      • Idea Exchange
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Knowledge Base
      • Knowledge Base
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Knowledge Base Pages on RSA Link
    • Upcoming Events on RSA Link
      • Upcoming Events
    • Videos
      • Videos on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Videos on RSA Link
  • Support
    • RSA Link Support
      • RSA Link Support
      • News & Announcements
      • Getting Started
      • Support Forum
      • Support Knowledge Base
      • Ideas & Suggestions
    • RSA Product Support
      • RSA Product Support
      • General Security Advisories and Statements
      • Product Life Cycle
      • Support Information
      •  
      •  
      •  
      •  
      •  
  • RSA Ready
  • RSA University
    • Certification Program
      • Certification Program
    • Course Catalogs
      • Course Catalogs
    • On-Demand Subscriptions
      • On-Demand Subscriptions
      • Archer®
      • RSA NetWitness® Platform
      • RSA SecurID® Suite
    • Product Training
      • Product Training
      • Archer®
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Identity Governance & Lifecycle
      • RSA NeWitness® Platform
      • RSA SecurID® Access
    • Student Resources
      • Student Resources
      • Access On-Demand Learning
      • Access Virtual Labs
      • Contact RSA University
      • Enrollments & Transcripts
      • Frequently Asked Questions
      • Getting Started
      • Learning Modalities
      • Payments & Cancellations
      • Private Training
      • Training Center Locations
      • Training Credits
      • YouTube Channel
    • Upcoming Events
      • Upcoming Events
      • Full Calendar
      • Conferences
      • Live Classroom Training
      • Live Virtual Classroom Training
      • Webinars
Sign In Register Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Announcements

RSA Link website migration to new platform is in progress

View Status

RSA NetWitness® Platform Discussions

Discussions about the RSA NetWitness Platform.
  • RSA Link
  • :
  • Products
  • :
  • RSA NetWitness Platform
  • :
  • Discussions
  • :
  • Re: Rule to Create a Report with Alert Out of Busi...
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page
RenatoGoncalves
RenatoGoncalves Beginner
Beginner
‎2018-02-27 05:06 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Rule to Create a Report with Alert Out of Business Hours

We want to create a report that shows the access to our customer outside business hours.

Im using the following meta: time, user.dst, event.desc, alias.host, count(user.dst)

 

in "where" i tried to create a time range ( 5pm to 9am) using:

 

event.time != (9am to 5pm) 

time != (9am to 5)

 

No of them worked. Does anyone tried with sucess building a rule for out of business hours? 

  • Tags:
  • Community Thread
  • Discussion
  • Forum Thread
  • NetWitness
  • NW
  • NWP
  • RSA NetWitness
  • RSA NetWitness Platform
0 Likes
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
10 Replies
EricPartington
Employee EricPartington
Employee
‎2018-02-27 05:13 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

There is an ESA rule to alert on this in RSA Live.  does that help you identify those accesses outside your business hours ?

 

https://community.rsa.com/docs/DOC-63712 

0 Likes
Share
Reply
RenatoGoncalves
RenatoGoncalves Beginner
Beginner
‎2018-02-27 05:25 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hello Eric,

 

Thanks for the reply. Unfortunelly it doesnt help for a couple of reasons:

 

1- The alert rule sometimes gives us logs inside the business hours. Still trying to figure out why.

 

2 We want to build a automatic report in NW,to send by email to our costumer, in which we have detailed information of accesses outside business hours. In the ESA rule i can see that the meta selected is  ec_activity = Logon and ec_outcome=failure. I can do that in the rule for report, but how can i define the hours, which in the ESA rule are defined in the parameters?

0 Likes
Share
Reply
EricPartington
Employee EricPartington
Employee
In response to RenatoGoncalves
‎2018-02-27 06:31 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

you might have more luck using the REST interface to programmatically generate the business hours of the days you want to report on using these resources.  you will have to account for the weekends (not business hours most likely), evenings, holidays and potentially timezones depending on how regional your customer is.

 

https://community.rsa.com/message/904418?commentID=904418#comment-904418 

REST API to CSV 

https://community.rsa.com/docs/DOC-74088 

 

you could cron the script, and have it send out via email from the REST interface (probably run from head server)

0 Likes
Share
Reply
JoshRandall
New Contributor JoshRandall New Contributor
New Contributor
In response to RenatoGoncalves
‎2018-02-27 08:31 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

You could try modifying that OOTB rule (copy it as an advanced rule) and replace the default "create context..." section with this:

 

create schema StartEvent();
create schema EndEvent();
context NonWorkingHours start StartEvent end EndEvent;
insert into StartEvent select * from pattern[every timer:interval(1 minute)] where current_timestamp.getDayOfWeek IN (...) AND current_timestamp.getHourOfDay NOT IN (...)
insert into EndEvent select * from pattern[every timer:interval(1 minute)] where current_timestamp.getDayOfWeek IN (...) AND current_timestamp.getHourOfDay IN (...)

The "IN" can be used with ranges such as (1:5).

This would let you specify both weekday and weekend non-working hour time ranges.

I have this running in my lab, and while I did get a couple alerts that, at first, appeared to be within my working hour time range, it was because current_timestamp relies on UTC instead of my offset (-8).

If your OOTB rule is alerting within business hours, I would also check that your ESA is able to keep up with the meta stream and is not falling behind (000032858 - How to check if Event Stream Analysis (ESA) is falling behind concentrators in RSA Secur...).

Mr. Mongo
0 Likes
Share
Reply
MaximilianoCitt
MaximilianoCitt Beginner
Beginner
‎2018-02-28 09:48 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hi Renato.

I have done an app rule on the decoders to alert when an event is on working hours or not.. in fact there are to app rules. the first one, we evaluate if the event was generated in working hours. To do so, we create an expression that evaluates the entire date...

for example:

time = "2018-02-02 09:00:00"-"2018-02-02 18:00:00" || time = "2018-02-03 09:00:00"-"2018-02-03 18:00:00" || time = "2018-02-04 09:00:00"-"2018-02-04 18:00:00" || ... and so on for every working day of the month. let's say that app rule generates the meta alert  with "working" within. The next rule evaluates if the meta alert exist and contains "working", if not, generates the alert meta with "not working"... using that, every event is "tagged" with "working" or "not working" on the meta "alert" wich can be used in further queries for reports.

It's a little manual approach, but it works for my customer, the only thing to take care about is to keep the first rule updated every month. (I'm planning to script something to do that automatically, but I'm not having enough time right now).

I hope that could be useful to you

 

Regards,

Max

0 Likes
Share
Reply
RenatoGoncalves
RenatoGoncalves Beginner
Beginner
‎2018-03-01 05:29 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

First of all thanks you all for the reply

I think all the ideas are valid, but not what we are looking for.

 

This is a part of our report - made directly by the report engine of NWCaptura de ecrã de 2018-03-01 22-15-53.png

 

Has you can see we have time, user, the event, the host.  But has you can also see the first 3 lines the time is between 9/17 and we only want outside of that time. You can also see that the last two are outside business hours.

Anyone has any ideas how can we do it? Or the only way is like Maximiliano, Joshua and Eric said?

0 Likes
Share
Reply
EricPartington
Employee EricPartington
Employee
In response to RenatoGoncalves
‎2018-03-01 07:02 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

The reporting engine by itself is not able to perform that logic.

 

Here is another idea that is similar to the feed idea by @Maximiliano

 

create a feed on the head server in the lighthttp directory with one line in it, 2 columns

call it something like "nonworkinghourfeed.csv"

 

#logonkey,#where to write to

login,non_working_hour_event

 

Use a cron script to run at the edges of your working day window to update the 2nd line of the file (either comment it at the beginning of the working day or uncomment at the end).  This way your action outside the working hours are flagged with meta which can be used in your reports (and there will hopefully be less events to tag with the meta).

 

then create a recurring feed in the UI that refreshes this feed every x minutes (whatever your acceptable resolution is at the edges of your window vs. the load on the server to check the feed every minute (lowest time period))

 

that way when a login event occurs, the feed will either have a value that matches as non_working_hour_activity or not and that meta (say into the alert key) will be used in your reporting engine to select the events to report on for your customer.

 

your report would be

select

time, user.dst, event.desc, alias.host, count(user.dst)

where

alert='non_working_hour_activity'

 

if you wanted to account for holidays etc. then there are some posts I have seen about using a text file to put your holidays in and a runer script that checks if the next day is one of those days to take appropriate additional action to flag or not on those depending on the location and holidays of the customer.

 

Similar idea to Maximiliano without the excessive app rules.

1 Like
Share
Reply
MaximilianoCitt
MaximilianoCitt Beginner
Beginner
In response to EricPartington
‎2018-03-02 09:15 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hi Eric, my first option was exactly the same thing that you tell but, I found a problem there... Let say we have a windows event source, as you know, windows like many other event sources works by fetching the events by a given period of time, so you have in a single event two time/date related meta, the first one the raw event date/time and the second the collection time. In event sources like Windows, ODBC or others, this two dates may have a gap of a few second or several minutes. So, if you made a script generated custom feed, it could miss enrich an 5:50 PM event as "non_working_hours" just because the event has decoded at 6:01 PM. I was wondering about a LUA parser, but the lua engine within the decoder is compiled as 32bits and it cant handle the event.time meta. So, my final option was to made an app rule... I don't like neither, but is the only "accurate" approach. 

0 Likes
Share
Reply
OmarGarciaGilio
OmarGarciaGilio Beginner
Beginner
‎2018-03-05 12:41 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hi Renato,

 

I had the same problem with a report. The main trouble is handle with "event.time" meta and report engine syntax. Well, this is how I did:

1st: work on the xml parser and use "event.time.str" to save (as string) the value of "event.time" (You gonna need UDS knowledge). In this step we get a string like '2018-03-05 11:58:02' (eg).

 

2nd: Make a lua (You gonna need Lua knowledge) parser that work with "event.time.str" to get 2 new metas ("my.date" and "my.time"), lua have string functions (string.gsub, string.match, etc), Also need to add this new metas on index-custom file (services decoder, concentrator, archiver, esa). This both new metas have to be "UInt32", this help to make a rule on report engine. In this step we get a meta for date as number '20180305' and time also as number '115802'.

 

3th: Well with the new "my.time" meta is easy to make a rule on reporte engine (eg: not(my.time = 90000-170000)), but if saturday and sunday are not working day, no matter the hour?

 

4th: to get the name of the day from "my.date" you can use a feed, but is not a practical solution, as you must to map the day name from a date (eg: "20180305","monday"), that will be 365 lines for just one year. There gonna be a better way ...
we gonna use LUA (God bless you LUA :D) to get "my.day.name" (text), and this usefull link: http://lua-users.org/wiki/DayOfWeekAndDaysInMonthExample
Finally we alredy to use a rule like "not(my.time= 90000-170000 && my.day.name= 'Mon','Tue','Wed','Thu','Fri')".

 

I prefer work with "event.time" meta than "time" meta, as "event.time" is the print from the device or app. Suppose that you collect the log with hours of delay, the "time" meta gonna have delay time and your report will show you uncorrect data.

 

Hope this can help you.

0 Likes
Share
Reply
  • « Previous
    • 1
    • 2
  • Next »
  • « Previous
    • 1
    • 2
  • Next »
Powered by Khoros
  • Products
  • Resources
  • Solutions
  • RSA University
  • Support
  • RSA Labs
  • RSA Ready
  • About RSA Link
  • Terms & Conditions
  • Privacy Statement
  • Provide Feedback
© 2020 RSA Security LLC or its affiliates.
All rights reserved.