Linux Incident Response Tools

Practical scripts for Linux incident response and digital forensics

This curated collection brings together scripts for live response, evidence collection, log and timeline analysis, and filesystem examination. Each tool includes a short summary and a direct link to its source on GitHub.

Before use: review the script, its dependencies and its effect on the target system. Several tools require root privileges or third-party forensic utilities. Use them only on systems and evidence that you are authorised to examine.

Browse the complete Bash collection on GitHub (opens in a new tab).

Live response and collection

Collect volatile evidence and investigate activity on live Linux hosts and container platforms.

  • Process Recovery

    Recovers executables and executable memory regions from live Linux processes, including deleted and memory-backed files, with hashes and structured manifests.

    Requirements: Requires root privileges and access to the target process through /proc.

    View Process Recovery on GitHub (opens in a new tab)
  • Operating System Journal Triage

    Performs rapid checks of offline systemd journals for authentication activity, privileged commands and other investigative leads.

    Requirements: Requires root privileges and a directory containing systemd journal files; findings should be reviewed in context.

    View Operating System Journal Triage on GitHub (opens in a new tab)
  • Rapid Log Grabber

    Collects key authentication, system, audit and journal logs from multiple Linux hosts over SSH.

    Requirements: Requires suitable SSH access and must be tested against the responder's environment before operational use.

    View Rapid Log Grabber on GitHub (opens in a new tab)
  • Docker Triage

    Captures Docker host, image and container information to support incident triage in containerised environments.

    Requirements: Requires Docker and a writable output directory with sufficient space for the collected artefacts.

    View Docker Triage on GitHub (opens in a new tab)
  • Namespace-Aware Executable Recovery

    Records a process's namespace and mount context before recovering its executable through the process root, an open /proc handle or executable memory regions.

    Requirements: Requires root privileges, a live process ID and kernel permission to read the relevant /proc entries.

    View Namespace-Aware Executable Recovery on GitHub (opens in a new tab)
  • Cron Artefact Collector

    Collects system-wide and per-user cron definitions into CSV output to support scheduled-task and persistence review.

    Requirements: Requires root privileges and should be tested against the target distribution because it is supplied as a demonstration script.

    View Cron Artefact Collector on GitHub (opens in a new tab)
  • Authentication Log Check

    Summarises successful and failed password authentications found in common Debian, Ubuntu and Red Hat log locations.

    Requirements: Reviews fixed auth.log and secure paths, including one rotated file, and does not cover every authentication method.

    View Authentication Log Check on GitHub (opens in a new tab)
  • Process Memory Dumper

    Uses GDB to extract the readable and writable private memory regions associated with a running Linux process.

    Requirements: Requires GDB and permission to attach to the process; debugger attachment may briefly affect process behaviour.

    View Process Memory Dumper on GitHub (opens in a new tab)
  • ShadowHS Live Hunter

    Hunts for indicators associated with the ShadowHS fileless post-exploitation framework, including memory-backed execution, command-line spoofing, tunnelling and mining activity.

    Requirements: Requires root privileges. It is threat-specific and its findings are investigative leads that may include false positives.

    View ShadowHS Live Hunter on GitHub (opens in a new tab)

Logs and timelines

Convert, triage and compare Linux logs and forensic timelines across one or more systems.

Filesystems and disk images

Work with common Linux filesystems and forensic image formats while protecting source evidence.

Cloud evidence transfer

Create controlled, time-limited upload links for transferring common Linux evidence artefacts to Amazon S3.

  • AVML Upload URL Creator

    Generates a time-limited Amazon S3 PUT URL for uploading an AVML memory image using a host-and-time-based object name.

    Requirements: Requires Python, boto3, an authorised AWS profile and locally configured bucket, region and expiry settings.

    View AVML Upload URL Creator on GitHub (opens in a new tab)
  • UAC Upload URL Creator

    Generates a time-limited Amazon S3 PUT URL for uploading a UAC evidence archive with a host-and-time-based object name.

    Requirements: Requires Python, boto3, an authorised AWS profile and locally configured bucket, region and expiry settings.

    View UAC Upload URL Creator on GitHub (opens in a new tab)

Metadata analysis

Review document metadata for changes and discrepancies that may warrant further investigation.

  • EXIF Evidence Review

    Searches documents by date and identifies potentially significant differences between creator and last-modified metadata.

    Requirements: Requires ExifTool; metadata differences are investigative leads rather than proof of unauthorised activity.

    View EXIF Evidence Review on GitHub (opens in a new tab)