Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Kaspersky_CVE-2024-3094 | Kitploit
Tools/GitHubGitHub/vesjolyjd/kaspersky_cve-2024-3094
Static AnalysisDynamic Analysis (Sandboxing)Vulnerability AnalysisCode AnalysisExploitationFuzzingMalware AnalysisSupply Chain SecurityPapers & ResearchLearning & Education
GitHubvesjolyjd/kaspersky_cve-2024-3094

Kaspersky_CVE-2024-3094

3 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository

Security Review: CVE-2024-3094 (XZ Utils Backdoor)

Author: Sushin Ivan
Date: March 2026


1. Project Description

This repository contains the results of a full security review of the vulnerability CVE-2024-3094 (Supply Chain Attack in the XZ Utils library).

Objective:

  • Conduct threat analysis (Threat Modeling)
  • Perform static and dynamic code analysis
  • Develop a set of automated tests
  • Prepare risk mitigation recommendations

Artifacts:

FileDescription
docs/ThreatModel.mdSTRIDE threat model + diagram
docs/Report_Final.pdfFinal report (57+ pages)
exploit/PoC.pyProof-of-Concept of the vulnerability
tests/Set of automated tests (pytest)
reports/Findings.xlsxSecurity Review findings table
presentation/Presentation slides and video

2. Requirements


3. Quick Start

3.1. Building the Docker Image

root@kitploit:~
cd kaspersky_task_SushinIvan

# Build the image
docker build -t cveanalysis:1.0 .

# Verify the image
docker images | grep cveanalysis

# Run the container
docker run -it --rm --privileged -v $(pwd):/work cveanalysis:1.0

3.2.1 Building XZ Utils (inside the container)

root@kitploit:~
cd /work/src/vulnerable-code/build

# Clear cache
rm -rf CMakeCache.txt CMakeFiles/

# Configuration
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug \
    -DUSE_ATTR_IFUNC=OFF -DENABLE_NLS=OFF

# Build
make -j$(nproc)

# Check version
./xz --version
# Expected output: xz (XZ Utils) 5.6.1

3.2.2 Building the patched version (XZ Utils 5.6.2)

root@kitploit:~
cd /work/src/patched-code/build

# Clear cache
rm -rf CMakeCache.txt CMakeFiles/

# Configuration
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug \
    -DUSE_ATTR_IFUNC=OFF -DENABLE_NLS=OFF

# Build
make -j$(nproc)

# Check version
./xz --version
# Expected output: xz (XZ Utils) 5.6.2

3.3 Build Verification (make && make test)

root@kitploit:~
cd /work/src/vulnerable-code/build

# Build
make -j$(nproc)

# Run project tests
make test

# Expected result: All tests passed

3.3 Running Tests

root@kitploit:~
# Install dependencies
cd /work
pip3 install -r tests/requirements.txt

# Run pytest
python3 -m pytest tests/ -v

Expected result: 5 passed

3.4 Running Analysis Tools

Static Analysis

root@kitploit:~
# Symbol analysis (nm)
nm -C liblzma.a | grep -iE "ssh|backdoor|hook|init"

# Cppcheck
cppcheck --enable=all --inconclusive src/liblzma 2> reports/cppcheck_log.txt

Dynamic Analysis

root@kitploit:~
# AddressSanitizer (build with flags)
cmake .. -DCMAKE_C_FLAGS="-fsanitize=address -g"

# Valgrind
valgrind --leak-check=full ./exploit/test_trigger

# AFL++ Fuzzing (30 minutes)
timeout 1800 afl-fuzz -i fuzzing/inputs -o fuzzing/outputs -- ./exploit/test_trigger_afl @@

Project Structure

root@kitploit:~
.
├── Dockerfile                    # Docker image
├── README.md                     # This file
├── Report_Final.pdf              # Final report
├── docs/
│   ├── ThreatModel.md            # Threat model
│   └── threat_model.png          # Diagram
├── exploit/
│   ├── PoC.py                    # Proof-of-Concept
│   ├── test_trigger.c            # Test for ASAN/AFL++
│   ├── test_trigger              # Binary
│   └── test_trigger_afl          # Instrumented binary
├── tests/
│   ├── src/
│   │   └── test_cve2024_3094.py  # Automated tests
│   ├── CMakeLists.txt            # Test configuration
│   └── requirements.txt          # Python dependencies
├── reports/
│   ├── Findings.xlsx             # Findings table
│   ├── asan_test_output.txt      # ASAN logs
│   ├── valgrind_log.txt          # Valgrind logs
│   ├── cppcheck_log.txt          # Cppcheck logs
│   ├── afl_fuzzing_log.txt       # AFL++ logs
│   └── version_*.txt             # Build versions
└── presentation/
    └── slides.md                 # Presentation slides
Download Tool
ComponentVersionPurpose
Docker Engine20.10+Environment containerization
Git2.20+Version control
Python3.8+Tests and scripts
GCC/Clang9.0+Compilation of XZ Utils