Skip to content
mauricelambertPublic

About

Collect Linux Evidences for Forensics and investigations.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

CLEF Logo

CLEF

Collect Linux Evidence for Forensics.

Description

This script collect evidence on a Linux system.

  • work on Debian-Based Linux Distributions
  • work on RedHat-Based Linux Distributions
  • work on minimal systems like containers (tested on docker)
  • work offline, in chroot or other method to isolate your Linux

This script generate a full TAR archive with evidences from the live linux system, you should push/pull it on your own system for investigation.

Requirements

This package require:

  • bash (version >= 4)
  • basic commands (cat, cp find, grep, awk...)
  • root privileges

Installation

cURL

curl -O https://raw.githubusercontent.com/mauricelambert/CLEF/refs/heads/main/CLEF.sh

wget

wget https://raw.githubusercontent.com/mauricelambert/CLEF/refs/heads/main/CLEF.sh

git

git clone https://github.com/mauricelambert/CLEF.git
cd CLEF

Usages

Basic usage in incident response

sudo bash CLEF.sh -f

Options/Flags arguments

# Help
bash CLEF.sh -h
bash CLEF.sh --help

# Full collect
bash CLEF.sh
# OR
chmod +x CLEF.sh
./CLEF.sh

# Fast mode
bash CLEF.sh -f
bash CLEF.sh --fast

# No color mode
bash CLEF.sh -c
bash CLEF.sh --no-color

# No logs
bash CLEF.sh -l
bash CLEF.sh --no-logs

# No debug (interactive mode for debugging)
bash CLEF.sh -d
bash CLEF.sh --no-debug

Help

~# bash CLEF --help
Description: This script collects maximum evidence for forensic investigations.
USAGES: CLEF.sh [-h] [-c] [-d] [-l] [-f]
         -h/--help: this help message
         -c/--no-color: disabled colors (useful for output redirection)
         -d/--no-debug: disabled breakpoints (interactive mode for debugging)
         -l/--no-logs: no logs
         -f/--fast: fast mode (no files analysis and reporting)

Screens

CLEF running on debian-based system CLEF running on minimal RedHat-based system CLEF running on docker container

Logo

CLEF Logo

Licence

Licensed under the GPL, version 3.

About

Collect Linux Evidences for Forensics and investigations.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages