google / timesketch

Collaborative forensic timeline analysis
Apache License 2.0
2.52k stars 577 forks source link

Timesketch missing entries if Disabled key is present and the value is a string #3087

Open puffyCid opened 1 month ago

puffyCid commented 1 month ago

Describe the bug Timesketch does not show all entries when uploading JSONL data if the Disbaled key is present and the value is a string. When uploading macOS launchdaemon data i noticed that Timesketch wont display entries if the Disabled key is present and the value is a string.

To Reproduce Steps to reproduce the behavior: Attempt to upload the follow examples:

{"datetime":"1601-01-01T00:00:00.000Z","timestamp_desc":"N/A","message":"/System/Library/LaunchDaemons/com.apple.containermanagerd.system.plist","data_type":"macos:plist:launchd:entry","artifact":"Launchd","ProcessType":"Adaptive","Disabled":"eyIjVGhlbiI6dHJ1ZSwiI0lmRmVhdHVyZUZsYWdEaXNhYmxlZCI6ImNvbnRhaW5lcm1hbmFnZXJkL3VzZXJfc3lzdGVtX3NwbGl0In0=","MachServices":"eyJjb20uYXBwbGUuY29udGFpbmVybWFuYWdlcmQiOnRydWUsImNvbS5hcHBsZS5jb250YWluZXJtYW5hZ2VyZC5zeXN0ZW0iOnRydWV9","EnableTransactions":true,"ProgramArguments":["/usr/libexec/containermanagerd_system","--runmode=privileged","--user-container-mode=current","--bundle-container-mode=global","--bundle-container-owner=_appinstalld","--system-container-mode=none"],"EnablePressuredExit":true,"Label":"com.apple.containermanagerd.system"}
{"datetime":"1601-01-01T00:00:00.000Z","timestamp_desc":"N/A","message":"/System/Library/LaunchDaemons/com.apple.containermanagerd.plist","data_type":"macos:plist:launchd:entry","artifact":"Launchd","ProcessType":"Adaptive","Disabled":"eyIjVGhlbiI6dHJ1ZSwiI0lmRmVhdHVyZUZsYWdFbmFibGVkIjoiY29udGFpbmVybWFuYWdlcmQvdXNlcl9zeXN0ZW1fc3BsaXQifQ==","MachServices":"eyJjb20uYXBwbGUuY29udGFpbmVybWFuYWdlcmQiOnRydWV9","EnableTransactions":true,"ProgramArguments":["/usr/libexec/containermanagerd","--runmode=privileged","--user-container-mode=current","--bundle-container-mode=global","--bundle-container-owner=_appinstalld","--system-container-mode=none"],"EnablePressuredExit":true,"Label":"com.apple.containermanagerd"}

No entries will show up in Timesketch.
If you remove or rename the Disabled key, the entries will show up. If u change the value to true/false the data will show up

Expected behavior Show the entries regardless of Disabled key value or show a warning when uploading?

Desktop (please complete the following information):

Additional context I tried to search previous issues and the website to see if this is expected behavior or identified before. But could not find anything

Let me know if additional info is required or if the JSONL format is incorrect. Thanks!