Coder Social home page Coder Social logo

fulco / bluelinuxtriage Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Basic rapid linux IR bash script

Home Page: https://www.fulco.net

License: MIT License

Shell 100.00%
dfir dfir-tools ir linux triage blueteam blueteam-tools blueteaming blueteaming-tools

bluelinuxtriage's Introduction

BlueLinuxTriage

Overview

This script is designed to perform a forensic triage on Ubuntu-style Linux operating systems. It collects various types of system information, logs, and other relevant data that can be used for initial forensic analysis.

Collected Data

System Information

  • Date and Time: Current date and time of the system.
  • Uptime: System uptime.
  • Hostname: System's hostname.
  • Kernel Version: Version of the Linux kernel.
  • System Information: Hardware and system information.

User Information

  • Current Users: Users currently logged into the system.
  • Logged in Users: List of users currently logged in.
  • Last Logins: History of user logins.
  • User List: List of all user accounts on the system.
  • User Groups: List of all user groups and their members.
  • Sudoers Configuration: Contents of the sudoers file.

Process Information

  • Running Processes: List of all running processes.
  • Top Processes: Snapshot of the top processes by resource usage.

Network Information

  • Network Interfaces: Configuration and status of network interfaces.
  • Active Connections: List of active network connections and listening ports.
  • ARP Cache: ARP cache entries.
  • Routing Table: System's routing table.
  • Firewall Rules (iptables): Current iptables rules.
  • Firewall Rules (ufw): Current ufw rules.

File System Information

  • Mounted File Systems: Information about mounted file systems.
  • Disk Usage: Disk usage summary for user directories.
  • Open Files: List of all open files on the system.
  • Recently Modified Files: List of recently modified files in critical directories.
  • Large Files: List of large files on the system.

Log Files

  • System Log: /var/log/syslog
  • Authentication Log: /var/log/auth.log
  • Kernel Log: /var/log/kern.log
  • Message Buffer Log: /var/log/dmesg
  • Secure Log: /var/log/secure
  • Failed Login Log: /var/log/faillog

Scheduled Tasks

  • Cron Jobs: List of scheduled cron jobs for all users.
  • Cron Directories: Contents of cron directories.

System Configuration

  • Network Configuration: Network interfaces configuration (/etc/network/interfaces).
  • Hosts File: System hosts file (/etc/hosts).
  • DNS Resolver Configuration: DNS resolver configuration (/etc/resolv.conf).
  • Services: Status of all services on the system.
  • Loaded Kernel Modules: List of currently loaded kernel modules.
  • Systemd Services: List and status of systemd services.

Application-Specific Logs

  • Apache Logs: Logs from Apache web server.
  • Nginx Logs: Logs from Nginx web server.
  • MySQL Logs: Logs from MySQL database.
  • PostgreSQL Logs: Logs from PostgreSQL database.

Security and Authentication

  • PAM Configuration: Pluggable Authentication Modules (PAM) configuration.
  • Failed Login Attempts: Detailed logs of failed login attempts.

SSH Configuration

  • SSH Configuration: Contents of SSH configuration files.

Usage

  1. Save the script to a file, e.g., forensics_triage.sh.

  2. Make the script executable:

    chmod +x triage.sh
  3. Run the script with sudo to ensure it has the necessary permissions:

    sudo ./triage.sh

Output

The script saves the collected data in a directory named forensics_YYYYMMDDHHMMSS located in /tmp, where YYYYMMDDHHMMSS is the timestamp of when the script was run. All collected data is stored in this directory for further analysis.

Disclaimer

This script is intended for use in a controlled forensic investigation environment. Use it responsibly and ensure you have appropriate permissions to collect and analyze system data.

bluelinuxtriage's People

Contributors

fulco 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.