
Fuzzing-Framework für Module im Apache-HTTPD-Server
apatchy ermöglicht es dir, die gesamte HTTP-Anfrageverarbeitungspipeline von Apache zu fuzzen – Parsing, Hooks, Filter, Handler – ganz ohne Netzwerk-I/O. Es ersetzt die Socket-Schicht von Apache durch benutzerdefinierte I/O-Filter und speist rohe Bytes direkt in dieselben Codepfade ein, die echten HTTP-Traffic verarbeiten.

Es wird empfohlen, dies unter WSL2 und/oder in einem Docker-Container auszuführen.
docker build --build-arg UID=$(id -u) -t apatchy-dev .
docker run -it --rm -p 9000:9000 -v $(pwd):/repo apatchy-dev
Führe dann diese Befehle in dieser Reihenfolge aus:
# 1. activate environment
cd framework/
uv venv .venv
uv pip install --python .venv -e ".[all]"
source .venv/bin/activate
# 2. init setup (one-time setup)
apatchy setup check # verify dependencies
apatchy setup --force llvm --llvm-version 18 # install LLVM tools locally
# 3. download
apatchy download --version 2.4.65
# 4. configure (vanilla root tree)
apatchy configure --asan --ubsan --ubsan-ignorelist ./configs/ubsan.ignorelist
# 5. build vanilla tree (`--bear` for IDE navigation)
apatchy make --tree vanilla --bear
# 6. build libfuzzer branch (inherits sanitizers from root)
apatchy make --tree lf
# 7. setup for protobuf
apatchy setup lpm
# 8. list avail. harnesses
apatchy link --list-harnesses
# 9. link target harness
apatchy link --harness mod_fuzzy_proto_session --bear
# 10. fuzz
apatchy fuzz \
--config configs/session-coverage.conf \
--seed-dir fuzz-seeds/session/ \
# 11. build coverage branch and generate HTML cov report
apatchy make --tree cov
apatchy coverage report \
--with-introspect \
--config configs/session-coverage.conf \
--harness mod_fuzzy_proto_session \
--suppress configs/ubsan.supp
# 12. launch interactive gui w/ call-tree analysis
apatchy introspect \
--entry session_crypto_decode,session_crypto_encode,session_crypto_init
Hinweis: Dies ist noch in Arbeit/nicht vollständig. Ich weiß, dass die CLI mehr Aufmerksamkeit braucht.
apatchy docs --serve erzeugenSiehe LICENSE.