MemGuard logo
Application Security

MemGuard

Open-source memory safety for C and C++: 15 detection tools, a local AI analyst, and a time-travel debugger in one workflow.

Watch the MemGuard demo

Fill in your details below and the demo will unlock straight away.

We use your details to share relevant FieldCISO research. No spam, unsubscribe anytime.

About MemGuard

MemGuard is an open-source (MIT) memory safety platform built by Dhruthan M N, first shown at Black Hat Bangalore. Memory corruption is still behind most critical CVEs in browsers, the Linux kernel, and Android, yet no single static or dynamic tool catches it all. MemGuard runs Valgrind, Helgrind, the sanitizers, Infer, cppcheck, and more together, cross-correlates their findings, and sends each bug through a local AI pipeline for root cause and a suggested fix. It works on a compiled binary alone, needs no cloud, and runs from the CLI, a web dashboard, or a CI/CD pipeline on every commit.

Key Capabilities

One Pipeline, Many Tools

  • Orchestrates Valgrind, Helgrind, ASan, LSan, MSan, UBSan, TSan, heaptrack, Infer, and cppcheck in parallel
  • Cross-correlates and deduplicates findings that no single tool would confirm on its own
  • Catches use-after-free, double free, buffer overflows, null dereferences, race conditions, and leaks

MemHint and AI Analysis

  • MemHint uses an LLM plus the Z3 theorem prover to find custom allocators that static analysers miss
  • Every bug goes through triage, root-cause analysis, and fix generation with CWE references
  • Runs on a local model such as Qwen 2.5 Coder 14B, so code never leaves the machine

Time-Travel Debugging

  • Built on rr, with AI commands that walk execution backwards to the root cause
  • A taint-flow tracker shows whether an attacker can actually trigger the bug
  • Works from the binary alone, using DWARF info to map findings back to source