# DhavalKapil/heap-exploitation

This book on heap exploitation is a guide to understanding the internals of glibc's heap and various attacks possible on the heap structure.

Repository: https://github.com/DhavalKapil/heap-exploitation
Canonical: https://ross.abutalabs.com/products/heap-exploitation
Homepage: https://heap-exploitation.dhavalkapil.com/
Language: C
License Family: other
Topics: book, heap, security
Last push: 2022-10-07T04:58:37+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3436, "days_push": 1426, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1293, forks 121 (observed 2026-08-28T04:04:16.240467+00:00)

## What it is
A free online book (with PDF/ePUB/Mobi editions) explaining glibc heap internals and heap exploitation attacks. It targets readers unfamiliar with the topic as well as security researchers wanting a refresher.

## Use cases
- learn how glibc malloc and free work internally
- get started with heap exploitation
- understand heap memory attacks like use-after-free
- revise heap exploitation techniques before a CTF
- find secure coding guidelines to avoid heap vulnerabilities

## When to choose
- you want a concise beginner-friendly introduction to glibc heap internals
- you are a security researcher starting with heap exploitation
- you need a quick reference on classic heap attacks

## When to avoid
- you need coverage of non-glibc allocators (Windows, jemalloc, tcmalloc)
- you want a hands-on exploitation lab or tooling rather than a book
- you need up-to-date coverage of the latest glibc hardening mitigations

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: security, documentation, developer-tools
- domain: security, tutorials, developer-tools
- platform: cross-platform
- tags: heap-exploitation, glibc, malloc, book, binary-exploitation, memory-corruption, linux

## Member repositories
- DhavalKapil/heap-exploitation (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.240467+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:07.226195+00:00, confidence not recorded.
  - readme: https://github.com/DhavalKapil/heap-exploitation (fetched 2026-08-28T04:04:16.240467+00:00, sha 7f9f4f1b2c48)
  - homepage: https://heap-exploitation.dhavalkapil.com/ (fetched 2026-08-29T12:10:54.920333+00:00, sha 17c1b1efdbe6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
