Linux forensics

From jmagly/aiwg · View interactive version

Linux forensics is an AI agent skill from the GitHub repository jmagly/aiwg. Generalized Linux incident response and forensic analysis covering Debian/Ubuntu, RHEL/CentOS/Rocky, and SUSE families

How to use this skill

Skill file

linux-forensics

Performs structured forensic analysis on Linux systems, adapting collection and verification procedures to the detected distribution family. Covers Debian/Ubuntu (apt/debsums), RHEL/CentOS/Rocky (rpm), and SUSE (zypper/rpm). Produces a findings document aligned with NIST SP 800-86 collection ordering.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

Purpose

Linux distributions differ in package managers, log file paths, service managers, and integrity verification tools. A forensic workflow that hardcodes Debian paths will miss evidence on RHEL systems and vice versa. This skill detects the distribution family at runtime and selects appropriate tooling, producing consistent output regardless of target distro.

Behavior

When triggered, this skill:

  1. Detect distribution family:
  1. Verify package integrity:
  1. Collect authentication and authorization evidence:
  1. Audit scheduled tasks:
  1. Review persistence mechanisms:
  1. Examine recently modified files:
  1. Inspect network state and processes:
  1. Collect kernel and module state:
  1. Write findings document:

Usage Examples

Example 1 — Remote investigation

linux forensics user@prod-api-01.example.com

Example 2 — Local system

investigate linux server localhost

Example 3 — RHEL target with elevated access

linux incident response root@192.0.2.100

Output Locations

Configuration

linux_forensics:
  find_depth: 5
  log_lines: 5000
  flag_suid_non_root: true
  distro_families:
    debian:
      auth_log: /var/log/auth.log
      pkg_verify: debsums -c
    rhel:
      auth_log: /var/log/secure
      pkg_verify: "rpm -Va"
    suse:
      auth_log: /var/log/messages
      pkg_verify: "rpm -Va"

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.