Giter VIP home page Giter VIP logo

franckferman / lastlog-audit Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 77 KB

๐Ÿ“ LastLog Audit: Security Login Activity Analyzer.

Home Page: https://github.com/franckferman/lastlog-audit/

License: GNU Affero General Public License v3.0

Python 100.00%
audit lastlog lastlogin lastlogontime linux linux-forensics linux-security log log-analysis log-management log-parsing logging parser parsing python python-for-security python3 forensic-analysis forensics forensics-investigations

lastlog-audit's Introduction

Contributors Forks Stargazers Issues License

LastLog-Audit Logo

๐Ÿ“ LastLog Audit: Security Login Activity Analyzer.

Analyzing system login activities for security audits and compliance.
LastLog Audit offers a comprehensive and customizable solution for analyzing login activities on Linux/Unix systems. Designed for system administrators and security professionals, it facilitates security audits, compliance checks, and forensic investigations with ease.

๐Ÿ“˜ Explore the full documentation ยท ๐Ÿž Report Bug ยท ๐Ÿ› ๏ธ Request Feature

๐Ÿ“œ Table of Contents

Click to collapse/expand
  1. ๐Ÿ“– About
  2. ๐Ÿ› ๏ธ Installation
  3. ๐ŸŽฎ Usage
  4. โ— Troubleshooting
  5. ๐Ÿค Contributing
  6. ๐ŸŒ  Star Evolution
  7. ๐Ÿ“œ License
  8. ๐Ÿ“ž Contact

๐Ÿ“– About

LastLog Audit: Security Login Activity Analyzer Enhance your security audits and compliance checks.

LastLog-Audit offers a comprehensive solution for analyzing system login activities, designed to assist in security audits, compliance checks, and forensic investigations on Linux/Unix systems. This tool parses /var/log/lastlog to provide detailed and customizable reports on user login activities, making it an indispensable asset for system administrators and security professionals.

LastLog-Audit Demo Screenshot

Discover the potential of LastLog-Audit in streamlining your security processes. Whether it's for enhancing security protocols, ensuring compliance, or conducting detailed forensic analyses, LastLog-Audit brings robustness and ease to the management of login activity data. Dive into a new level of audit efficiency and control with LastLog-Audit. Begin your journey towards more secure and compliant systems today.

(๐Ÿ”ผ Back to top)

๐Ÿš€ Installation

Setting up LastLog-Audit is streamlined for ease of use. Please follow the guidelines below to ensure you meet the necessary prerequisites before installation.

Prerequisites

LastLog-Audit is developed for Linux/Unix environments, focusing on delivering a robust login activity analysis tool. Here's what you need to know about its compatibility:

Ensure Python 3.11.2 or newer is installed on your system. You can check your current Python version by running python3 --version in your terminal. If you need to upgrade or install Python, use your distribution's package manager or visit the official Python website for more detailed instructions.

โš ๏ธ Note: LastLog-Audit has been rigorously tested on Ubuntu 23.10 x64. This testing was conducted using Python 3.11.2. While LastLog-Audit is expected to function on other Unix-like systems and versions of Python above 3.6, Ubuntu 23.10 x64 with Python 3.11.2 is the recommended setup for the most reliable experience.

Getting LastLog-Audit

To get started with LastLog Audit, you can choose from downloading it directly, cloning the repo, or using a command to pull the latest version. Here's how:

Option 1: Using wget or curl For a quick setup, you can download the main script using wget or curl:

# Using wget
wget https://raw.githubusercontent.com/franckferman/LastLog-Audit/stable/LastLog-Audit.py

# Or using curl
curl -O https://raw.githubusercontent.com/franckferman/LastLog-Audit/stable/LastLog-Audit.py

Option 2: Clone with Git First, ensure you have Git installed on your system. Open your favorite terminal and run the following command to clone the repository:

git clone https://github.com/franckferman/LastLog-Audit.git

This method clones the entire project to your local machine.

Option 3: Direct Download from GitHub If you prefer not using Git, you can download the project directly:

Visit the project's page at https://github.com/franckferman/LastLog-Audit. Click on the <> Code button, then select Download ZIP. After downloading, extract the ZIP file to your preferred location.

Whichever method you choose, ensure Python 3 is installed on your system to run LastLog Audit successfully.

(๐Ÿ”ผ Back to top)

๐ŸŽฎ Usage

Using LastLog Audit is straightforward, enabling you to analyze system login activities efficiently. Here's how to get started:

Getting started

To run LastLog Audit, execute the following command in your terminal, adjusting the script name as necessary:

python3 LastLog-Audit.py

Usage Options

LastLog Audit comes with a variety of options to customize its output and functionality. Hereโ€™s a quick overview:

  • --file FILE: Specifies the path to the lastlog file. The default is /var/log/lastlog.
  • --display {table,line}: Chooses between tabular (table) and line-by-line (line) output formats. The default is table.
  • --include-username: Includes usernames in the output. Note: This is accurate only when run on the target system due to UID mapping.
  • --export EXPORT: Specifies the path for exporting the data. If left unspecified, the output is displayed in the console.
  • --export-format {txt,csv}: Determines the format for exported data (txt or csv). This option requires --export to be set.

Examples

Here are a few examples to illustrate common LastLog Audit usage scenarios:

Analyze and display last login activities in a table format (default behavior):

python3 LastLog-Audit.py

Export last login activities to a CSV file:

python3 LastLog-Audit.py --export ~/output.csv --export-format csv

Include usernames and display output in line-by-line format:

python3 LastLog-Audit.py --include-username --display line

For more details on all available options, run python3 LastLog-Audit.py -h.

(๐Ÿ”ผ Back to top)

๐Ÿ”ง Troubleshooting

Encountering issues? Don't worry. If you come across any problems or have questions, please don't hesitate to submit a ticket for assistance: Submit an issue on GitHub

(๐Ÿ”ผ Back to top)

๐Ÿค Contributing

We truly appreciate and welcome community involvement. Your contributions, feedback, and suggestions play a crucial role in improving the project for everyone. If you're interested in contributing or have ideas for enhancements, please feel free to open an issue or submit a pull request on our GitHub repository. Every contribution, no matter how big or small, is highly valued and greatly appreciated!

(๐Ÿ”ผ Back to top)

๐ŸŒ  Star Evolution

Explore the star history of this project and see how it has evolved over time:

Star History Chart

Your support is greatly appreciated. We're grateful for every star! Your backing fuels our passion. โœจ

๐Ÿ“š License

This project is licensed under the GNU Affero General Public License, Version 3.0. For more details, please refer to the LICENSE file in the repository: Read the license on GitHub

(๐Ÿ”ผ Back to top)

๐Ÿ“ž Contact

ProtonMail LinkedIn Twitter

(๐Ÿ”ผ Back to top)

lastlog-audit's People

Contributors

franckferman avatar

Stargazers

Myriam BELAID avatar  avatar

Watchers

 avatar

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.