
Framework di fuzzing per moduli del server Apache HTTPD
apatchy ti permette di fare fuzzing sull'intera pipeline di elaborazione delle richieste HTTP di Apache - parsing, hook, filtri, handler - senza alcun I/O di rete. Sostituisce il layer socket di Apache con filtri I/O personalizzati, immettendo byte grezzi direttamente negli stessi percorsi di codice che gestiscono il traffico HTTP reale.

Consigliato eseguire questo su WSL2 e/o container docker
docker build --build-arg UID=$(id -u) -t apatchy-dev .
docker run -it --rm -p 9000:9000 -v $(pwd):/repo apatchy-dev
poi esegui questi comandi in questo ordine:
# 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
Nota: È ancora in lavorazione/non completa. So che la CLI richiede più attenzione.
apatchy docs --serveVedi LICENSE.