
إطار عمل Fuzzing لوحدات خادم Apache HTTPD
يتيح لك apatchy اختبار خط معالجة طلبات HTTP الكامل في Apache - التحليل، الخطافات، الفلاتر، المعالجات - دون أي إدخال/إخراج شبكي. يستبدل طبقة المقابس في Apache بفلاتر إدخال/إخراج مخصصة، ويغذي البايتات الخام مباشرة في نفس مسارات الكود التي تتعامل مع حركة مرور HTTP الحقيقية.

يُفضَّل تشغيل هذا على WSL2 و/أو حاوية دوكر
docker build --build-arg UID=$(id -u) -t apatchy-dev .
docker run -it --rm -p 9000:9000 -v $(pwd):/repo apatchy-dev
ثم شغّل هذه الأوامر بالترتيب التالي:
# 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
ملاحظة: لا يزال هذا قيد التقدم/غير مكتمل. أعلم أن واجهة CLI تحتاج إلى مزيد من الاهتمام.
apatchy docs --serveانظر LICENSE.