Skip to content

Break-In Analyzer - A script that analyze auth.log, secure, utmp/wtmp for possible SSH break-in attempts

License

Notifications You must be signed in to change notification settings

zam89/Break-In-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Break-In Analyzer

A script that analyze the log files /var/log/auth.log*, /var/log/secure*, utmp/wtmp for illegal break-in attempts and writes all output to text file.

Features

  • Analyze logs from:
    • /var/log/auth.log*
    • /var/log/secure*
    • /var/log/wtmp
    • /var/run/utmp
  • Script tested on Ubuntu 20.04.

How to Run

  • Copy break-in_analyzer your host machine
  • Give execution permission by running chmod +x breakins_analyzer.sh
  • Then run the script as below:
  $ ./breakins_analyzer.sh
  • Specify with logs to be analyzed e.g. auth, secure, utmp or wtmp
  • Specify FULL path of the logs location together with wildcard symbol (if you analyzing more than 1 logs) e.g. /home/user/var_logs/auth*
  • Wait until it finished analyzing the logs
  • The result with be shown on the terminal & written into output folder together with file named:
    • auth_output.log
    • secure_output.log
    • utmp_output.log
    • wtmp_output.log

Screenshot

Menu Auth.log analysis Secure log analysis wtmp analysis

Changelogs

  • 1.0 (15 Oct 2021): First version of the script.
  • 1.1 (17 Oct 2021): Refined few search pattern.
  • 1.2 (18 Oct 2021): Add save output/result into txt file.

To-Do-List (In Future)

  • Adding more file to be analyzed

License

MIT License. Copyright (c) 2021 Mohd Khairulazam. See License.

About

Break-In Analyzer - A script that analyze auth.log, secure, utmp/wtmp for possible SSH break-in attempts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages