Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
Volatility3-Forensics-Incident-Response — TP4 — Exploitation de CVE-2021-3156, forensique mémoire avec Volatility 3 (LiME) et réponse aux incidents (Hydra, journalctl, iptables). Rapport FR. | Kitploit
도구/GitHubGitHub/hanabouikni/volatility3-forensics-incident-response
Privilege EscalationMemory ForensicsPassword AttacksExploitationNetwork SecurityDigital ForensicsPapers & ResearchLearning & EducationIncident ResponseLog AnalysisLabs & Practice
12026년 11월 14일아직 검토되지 않음
공유
GitHub
hanabouikni/volatility3-forensics-incident-response

Volatility3-Forensics-Incident-Response

TP4 — Exploitation de CVE-2021-3156, forensique mémoire avec Volatility 3 (LiME) et réponse aux incidents (Hydra, journalctl, iptables). Rapport FR.

저장소 보기
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

TP4 — Exploitation, Memory Forensics Analysis & Incident Response

Operating Systems Security — CS.ENG.4 — 2025/2026 USTHB — Faculty of Computer Science Student: BOUIKNI Lydia Hana · Supervisor: Pr. Dr. Sofiane HAMRIOUI Session 04 — May 1, 2026

⚠️ Work carried out on an isolated VMware virtual machine, for strictly educational purposes. The real exploitation of these techniques outside a laboratory that you own is illegal.


Table of contents

  • Objectives
  • Technical environment
  • Step 1 — Exploitation of CVE-2021-3156 (Baron Samedit)
  • Step 2 — Forensic Analysis with Volatility 3
  • Step 3 — Incident Response Procedure
  • Assessment and Reflection
  • Conclusion
  • Repository tree structure

Objectives

This lab experiments with three fundamental areas of offensive and defensive cybersecurity:

  • Exploitation of a CVE — reproduction of the CVE-2021-3156 attack on sudo, followed by application of the patch.
  • Memory forensic analysis — use of Volatility 3 to analyze a RAM dump captured with LiME.
  • Incident response — simulation of an SSH brute-force attack, detection, network isolation and evidence capture.

Technical environment

ItemValue
Host systemUbuntu 24.04 LTS (VMware Virtual Platform)
HypervisorVMware Workstation
Kernel6.14.0-36-generic
Main toolsVolatility 3 (v2.28.0), LiME, Hydra v9.5
Userhana (UID 1000)

Step 1 — Exploitation of CVE-2021-3156 (Baron Samedit)

Vulnerability description

CVE-2021-3156 — Baron Samedit
Vulnerable versionssudo ≤ 1.8.31 (Ubuntu Focal 20.04)
CVSS Score7.8 (High)
ImpactLocal privilege escalation to root

CVE-2021-3156 is a heap buffer overflow discovered in sudo. It allows any local user, without a password, to obtain a root shell by exploiting the sudoedit command. This vulnerability affected millions of Linux and Unix systems.

💡 Unlike TP2 (where the exploit failed due to an incompatible libc-2.39), the environment of this TP4 allows a successful exploitation: the root shell is actually obtained.

Preliminary operations

whoami        # => hana (utilisateur standard)
make          # compile l'exploit
./exploit

Standard user hana before exploitation Figure 4.1 — Standard user hana before exploitation.

Compilation and obtaining the root shell Figure 4.2 — Compiling the exploit with make and obtaining the root shell (#).

Exploitation result

Root shell — whoami / id Figure 4.3 — Root shell obtained: whoami returns root, id confirms uid=0.

✅ The exploit succeeded — a # (root) shell is obtained without a password. whoami returns root and id confirms uid=0(root).

Applying the fix

sudo apt update && sudo apt install --only-upgrade sudo

Installing the patch Figure 4.4 — Installing patch sudo.

After patch: usage message Figure 4.5 — After patch: ./exploit returns only the usage message of sudoedit.

✅ After updating sudo, the exploit fails and returns only the usage message of sudoedit. The attack is no longer possible.


Step 2 — Forensic Analysis with Volatility 3

Generating the memory dump with LiME

Unlike the planned lab on VirtualBox (VBoxManage), the environment is VMware. The LiME tool (Linux Memory Extractor) was used to capture the RAM.

# Installation des dépendances et compilation de LiME
sudo apt install linux-headers-$(uname -r) build-essential git -y
git clone https://github.com/504ensicsLabs/LiME
cd LiME/src
make

# Génération du dump mémoire
sudo insmod lime-$(uname -r).ko "path=/tmp/memory.lime format=lime"
ls -lh /tmp/memory.lime

8 GB memory dump Figure 4.6 — Generated memory dump: memory.lime file of 8 GB.

✅ The /tmp/memory.lime file was created successfully (8.0 GB, = total RAM of the VM). Script: scripts/01_lime_dump.sh

Installing and configuring Volatility 3

# Environnement virtuel Python
python3 -m venv ~/volatility-env
source ~/volatility-env/bin/activate
pip install volatility3

# Génération du Symbol Table (ISF)
sudo apt install linux-image-$(uname -r)-dbgsym -y
git clone https://github.com/volatilityfoundation/dwarf2json
cd dwarf2json && go build
sudo ./dwarf2json linux --elf /usr/lib/debug/boot/vmlinux-$(uname -r) > ~/linux-$(uname -r).json
cp ~/linux-$(uname -r).json \
   ~/volatility-env/lib/python3.12/site-packages/volatility3/framework/symbols/linux/

Script: scripts/02_volatility_setup.sh

📌 Why a Symbol Table (ISF)? Volatility needs to know the exact layout of kernel structures in memory. This information comes from the kernel's debug symbols (-dbgsym), converted to JSON by dwarf2json. Without this file, the analysis fails (see Figure 4.7).

Memory dump analysis

linux.pslist — Process list

vol -f /tmp/memory.lime linux.pslist

Symbol table error Figure 4.7 — First attempt: symbol table error (before ISF generation).

pslist after correction Figure 4.8 — linux.pslist after fixing the symbol table — start of output.

pslist full output Figure 4.9 — Full output of linux.pslist — list of processes in memory.

Suspicious processes identified

vol -f /tmp/memory.lime linux.pslist | grep -E "nc|bash|sh|insmod|sudo"
도구 다운로드

관련 도구

  • PEASS-ng

    PEASS - 권한 상승 멋진 스크립트 스위트 (색상 포함)

  • PrivescCheck

    Windows용 권한 상승 열거 스크립트

  • LinEnum

    스크립트 기반 로컬 Linux 열거 및 권한 상승 점검

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    SMS를 가로채고, 메시지를 주입하며, 모바일 기기를 추적하기 위해 악성 GSM 셀을 배포하는 IMSI Catcher 플랫폼

    732
  • 3

    Callisto

    jetp1ane/callisto

    Ghidra를 통해 실행 파일을 디컴파일하고, Semgrep으로 의사 C 코드를 스캔하며, GPT-3.5-Turbo를 사용하여 결과를 검증해 거짓 양성을 줄이는 자동화된 바이너리 취약점 분석 도구입니다.

    610
  • 4

    opencti

    opencti-platform/opencti

    오픈 사이버 위협 인텔리전스 플랫폼

    546
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    414
  • 6

    DFRoot

    a2333c/dfroot

    삼성 Galaxy S25 Ultra(SM-S938B)용 Android 루트 도구로, DirtyFrag CVE-2026-43284와 CVE-2026-43499를 연쇄하여 KernelSU를 통해 부팅 시 자동으로 루트 권한을 획득합니다.

    413

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →