GithubHelp home page GithubHelp logo

crowdstrike / forensics Goto Github PK

View Code? Open in Web Editor NEW
333.0 333.0 75.0 26.46 MB

Scripts and code referenced in CrowdStrike blog posts

License: BSD 2-Clause "Simplified" License

Shell 27.83% Batchfile 13.28% Python 58.88%

forensics's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forensics's Issues

O365-Outlook-Activities Error: AppId is not allowed

Hello,

Thank you for this great tool. I am trying to run it to collect activity logs for a user but I get the following error:

HTTP 403: AppId: "32613fc5-e7ac-4894-ac94-fbc39c9f3e4a" is not allowed.

This AppId seems to be associated with the Outlook Dev Center - OAuth Sandbox. I have granted my user the required permissions using the Add-MailboxPermission command.

Not working

hello
the bat file not working. where is splunk app?

CoreAnalyticsParser Exception processing aggregate files

Got an exception when running coreAnalyticsParser.py as sudo on local disk on macOS 10.13.
[+] Found 4 .core_analytics files to parse. [+] Found 3 aggregate files to parse. Traceback (most recent call last): File "/Users/research/Desktop/coreanalyticsparser.py", line 231, in <module> CoreAnalyticsParser() File "/Users/research/Desktop/coreanalyticsparser.py", line 183, in CoreAnalyticsParser data_lines = json.loads(data) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 369, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) ValueError: Extra data: line 2 column 1 - line 3 column 1 (char 17 - 2243)

Add support for CreateRemoteThread ID 8

Greetings.

Suggest updating line 55 in sysmon_parse.cmd to include ID 8, added to Sysmon on 20 JUL 2015 to identify CreateRemoteThread events.
Suggested change as follows:
tools\logparser\logparser -i:evt -o:csv "Select RecordNumber,TO_UTCTIME(TimeGenerated),EventID,SourceName,ComputerName,SID,Strings from %src% WHERE EventID in ('1';'2';'3';'4';'5';'6';'7';'8')" > Results_%dtstamp%\sysmon_parsed.txt

Cheers.

O365 retriever does not handle unicode correctly

Retrieving activities................Traceback (most recent call last):
  File "retriever.py", line 109, in <module>
    writer.writerow(vars(activity))
  File "C:\Python\Python36-32\lib\csv.py", line 155, in writerow
    return self.writer.writerow(self._dict_to_list(rowdict))
  File "C:\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 732-733: character maps to <undefined>

I've fixed this by adding encoding='utf8' to line 95, but I'm not sure that this isn't better handled as a command-line switch. Also, as you seem to be python 2 compatible, it needs handling for that too.

Error parsing UALs

I receive the following error occasionally.

Traceback (most recent call last):
File "C:\Users\REDACTED\Documents\ForensicTools\UAL analyzer\Forensics-master\ual-analyzer\ual-analyzer.py", line 30, in
for row in reader:
File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python37-32\lib\csv.py", line 112, in next
row = next(self.reader)
File "C:\Users\REDACTED\AppData\Local\Programs\Python\Python37-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 6691: character maps to

Errors while executing

I am getting the following errors while executing. I have made changes in the script for line 97 to 100 since the .core_analytics files are now located in the Retired folder of Diagnostic Reports.

Changes:

if args.disk:
analytics_location = glob.glob('/Library/Logs/DiagnosticReports/Retired/.core_analytics')
elif args.input and not args.input.endswith('.core_analytics'):
analytics_location = glob.glob(args.input+'/Retired/
.core_analytics')

Error:

[+] Found 42 .core_analytics files to parse.
Traceback (most recent call last):
File "CoreAnalyticsParser.py", line 231, in
CoreAnalyticsParser()
File "CoreAnalyticsParser.py", line 123, in CoreAnalyticsParser
i.startswith("{"timestamp":")][0]['timestamp']
IndexError: list index out of range

Issue with Accessing .core_analytics files

Hello!

I am currently operating on Mac OS 10.13.6. The .core_analytics files are now located in the Retired folder of Diagnostic Reports. I have implemented the following changes to lines 97-100:

if args.disk:
     analytics_location = glob.glob('/Library/Logs/DiagnosticReports/Retired/*.core_analytics')
elif args.input and not args.input.endswith('.core_analytics'):
     analytics_location = glob.glob(args.input+'/Retired/*.core_analytics')

Both the change from 'Analytics' to 'Retired' and the addition of the forward slash after 'Retired' are necessary to allow the program to properly access the .core_analytics files.

I would recommend adding additional checks to determine if the .core_analytics files are found in Retired or a way to check the system's OS and adjust the file path accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.