Yamato-Security / takajo

Takajō (鷹匠) is a Hayabusa results analyzer.
https://yamato-security.github.io/takajo/
GNU Affero General Public License v3.0
89 stars 7 forks source link

Add RDP logon/logoff information to `timeline-logon` command #209

Open YamatoSecurity opened 1 week ago

YamatoSecurity commented 1 week ago

Add RDP logon/logoff information to timeline-logon command. There are also RDP reconnect logs that contain source IP address info that should be added. Will have to think about how best to correlate the multiple logs into single events though..

fukusuket commented 1 week ago

RDS-Gateway

fukusuket commented 4 days ago
fukusuket commented 4 days ago

@YamatoSecurity I have a question! IMHO, It would be useful to simply have the output in timestamp order without tying it to a single event. What do you think?🤔

YamatoSecurity commented 4 days ago

@fukusuket I think that it depends on the analyst and situation. I think by default we should put things in single events to minimize the events to make things easier to read (I don't think we can add reconnect logs here though) but I was thinking about adding an option to display each event as single events. Since we were only looking at a handful of Security events, I figured that people could just easily filter on those event IDs in Timeline explorer, etc.. to get the singe event logon timeline but if we are adding information and RDP logs, then we might want to have an option to extract out those logon events and put in a timeline but not consolidate them into single events. What do you think?

fukusuket commented 3 days ago

@YamatoSecurity Thank you for comment! I see... as you said, it depends on the situation. It would be best if it could be selected as an option!

Let me confirm one thing! What kind of image did you have in mind for put single events? In my image, I thought it meant consolidating the information of Sec 4624/RDS 21 into one event. If that's the case, it seems there is no way to consolidate them into a single event...🤔 Am I misunderstanding...?

YamatoSecurity commented 3 days ago

I was thinking consolidating 4624 logon events with logoff events like we do now, and consolidating RDP logon and logoff events in one event (and calculate the logon time based on that). I haven't thought about consolidating RDP events and Sec 4624 events together. I would have to look into that so for now, I think we should separate Security events and RDP log events. There may be source IP address info. etc.. inside RDP reconnect logs so I would like to use that information inside the consolidated RDP event if it is not already there.

fukusuket commented 3 days ago

I understood! I forgot that the Security logoff events for 4634 were consolidated😅 Yes, it's better to separate Security and RDP log!