Closed YamatoSecurity closed 1 year ago
` @YamatoSecurity
The cause of the problem has been identified. The logon-summary is double the number of records in metrics because it was double counted with the metrics tally.
The difference between metrics and csv-timeline is that the record count in metrics was counting the number of records after channel name and EID filtering. The number in csv-timeline is the original record count.
Filtered record is following, filtered by Event>System>Channel is not found.
{"Event": Object {"SubscriptionBookmarkEvent": Object {"SubscriptionId": Null}, "System": Object {"Computer": String("dhcp01.offsec.lan"), "EventID": String("111"), "Provider_attributes": Object {"Name": String("Microsoft-Windows-EventForwarder")}, "TimeCreated_attributes": Object {"SystemTime": String("2021-04-27T15:03:16.983Z")}}}, "Event_attributes": Object {"xmlns": String("http://schemas.microsoft.com/win/2004/08/events/event")}}
@YamatoSecurity There are two ways to fix it: 1. for 2. it affects the % of metrics and logon-summary display; and 2. for 3. it affects the % of logon-summary display. If you want to avoid affecting the % notation, need to separate the display variables from the aggregate variables. (In #1106, This adjusted)
When running the
metrics
,logon-summary
andcsv-timeline
commands, the total event records count will be different. Test:./hayabusa-2.6.0-mac-intel metrics -d ../hayabusa-sample-evtx -o test.csv -C
./hayabusa-2.6.0-mac-intel logon-summary -d ../hayabusa-sample-evtx -o test.csv -C
./hayabusa-2.6.0-mac-intel csv-timeline -d ../hayabusa-sample-evtx -o test.csv -C
Results:
logon-summary
: 94950metrics
: 47475csv-timeline
: 47,476Also, there are no commas displayed with
logon-summary
andmetrics
so it is difficult to read the number when the event record count is in the millions. (ie.234723049
) So I would like to add commas like incsv-timeline
(->234,723,049
)@hitenkoku Could you look at this whenever you have time? (I think you are the most knowledgable about this)