Skip to content

aleprada/weblog_triage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weblogs Autotriage

Build Status

This project is based on the bash script showed on the course "SDF:Weblog Forensics" by Michael Leclair, the author of the Surviving Digital Forensics podcast.

I am working in this Python version with the same functionality, thus to identify odd behaviours in logs based on 3 aspects: Indicators of Compromise (IoCs), Frequency and Attack patterns.

What type of data is searched?

  • IoCs: Using a list of IoC's (e.g. iocs.txt) or IoCs stored on MISP.
  • Frequency: IP, HTTP request methods, Successful request status, User Agents, Byte size.
  • Attack Patterns:SQLi, XSS, Path Traversal, Webshells and Backdoors, Encoding, Base64, Command Injection, Admin Site request and popular webserver misconfigurations.

I've also added an integration with MISP(Malware Information Sharing Platform) using PyMISP in order to pull events from MISP instances and checking if some event attributes such as IPs or URLs are found in the logs that are being analysed.

Using Weblog Triage

IoC's analysis

python weblog_triage.py -f path_to_log -i path_to_ioc_list.txt

IoC's analysis using MISP instance

python weblog_triage.py -f path_to_log -m 

Attack patterns analysis

python weblog_triage.py -f path_to_log -a

Frequency analysis

python weblog_triage.py -f path_to_log -c

Total analysis

python weblog_triage.py -f path_to_log -t path_to_ioc_list.txt

The results will be stored inside the folder "reports", creating a a new folder with the date and time each time the program is executed.

Possible next steps

  • Performance enhancement
  • Reduce false positives removing duplicated alerts.
  • Integration with S3 API
  • Integration with CloudWatch?

About

A Python application for triaging suspicious activity in web logs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages