{"id":7192,"date":"2024-09-11T15:31:08","date_gmt":"2024-09-11T13:31:08","guid":{"rendered":"https:\/\/betterqa.co\/?p=7192"},"modified":"2026-11-02T22:42:36","modified_gmt":"2026-11-02T20:42:36","slug":"the-role-of-fuzz-testing-in-securing-software","status":"publish","type":"post","link":"https:\/\/betterqa.co\/the-role-of-fuzz-testing-in-securing-software\/","title":{"rendered":"What is fuzz testing? How fuzzing finds security bugs"},"content":{"rendered":"<style>:root {\n    --purple: #9152DE;\n    --deep: #5F29A1;\n    --blue: #204782;\n    --paper: #DDE9E9;\n    --paper-dark: #c9dada;\n    --ink: #1a1a1a;\n    --ink-light: #4a4a5a;\n    --white: #ffffff;\n}\n.bqa-article {\n    font-family: 'Roboto', sans-serif;\n    color: var(--ink);\n    line-height: 1.7;\n    background: var(--paper);\n    position: relative;\n}\n.bqa-article::before {\n    content: '';\n    position: fixed;\n    top: 0; left: 0; right: 0; bottom: 0;\n    background-image:\n        linear-gradient(rgba(145, 82, 222, 0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(145, 82, 222, 0.03) 1px, transparent 1px);\n    background-size: 20px 20px;\n    pointer-events: none;\n    z-index: 0;\n}\n.bqa-article-section {\n    position: relative;\n    z-index: 1;\n    padding: 60px 24px;\n}\n.bqa-article-section.alt-bg {\n    background: rgba(255, 255, 255, 0.5);\n}\n.bqa-container {\n    max-width: 900px;\n    margin: 0 auto;\n}\n.bqa-section-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n}\n.bqa-section-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);\n    max-width: 200px;\n}\n.bqa-article h1, .bqa-article h2, .bqa-article h3 {\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    color: var(--ink);\n    margin: 0 0 24px;\n    text-transform: none !important;\n}\n.bqa-article h1 { font-size: 2.5rem; line-height: 1.2; }\n.bqa-article h2 { font-size: 1.75rem; margin-top: 48px; }\n.bqa-article h3 { font-size: 1.25rem; margin-top: 32px; color: var(--deep); }\n.bqa-article p {\n    margin: 0 0 20px;\n    font-size: 1rem;\n}\n.bqa-article a {\n    color: var(--purple);\n    text-decoration: none;\n    border-bottom: 1px solid transparent;\n    transition: border-color 0.2s;\n}\n.bqa-article a:hover {\n    border-bottom-color: var(--purple);\n}\n.bqa-article .bqa-back-link {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 12px;\n    letter-spacing: 0.05em;\n    text-transform: uppercase;\n    color: var(--ink-light);\n    margin-bottom: 32px;\n    display: inline-block;\n}\n.bqa-article .bqa-back-link:hover { color: var(--purple); }\n\/* Hero with Sidebar *\/\n.bqa-hero-grid {\n    display: grid;\n    grid-template-columns: 1fr 280px;\n    gap: 48px;\n    align-items: start;\n}\n.bqa-hero-sidebar {\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    padding: 24px;\n    position: relative;\n}\n.bqa-hero-sidebar::before,\n.bqa-hero-sidebar::after {\n    content: '';\n    position: absolute;\n    width: 12px;\n    height: 12px;\n    border-color: var(--purple);\n    border-style: solid;\n}\n.bqa-hero-sidebar::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }\n.bqa-hero-sidebar::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }\n.bqa-sidebar-title {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 20px;\n    padding-bottom: 12px;\n    border-bottom: 1px dashed var(--paper-dark);\n}\n.bqa-sidebar-item {\n    display: flex;\n    align-items: flex-start;\n    gap: 12px;\n    margin-bottom: 16px;\n}\n.bqa-sidebar-item:last-child { margin-bottom: 0; }\n.bqa-sidebar-item i {\n    font-size: 14px;\n    margin-top: 3px;\n    flex-shrink: 0;\n}\n.bqa-sidebar-item:nth-child(odd) i { color: var(--purple); }\n.bqa-sidebar-item:nth-child(even) i { color: var(--blue); }\n.bqa-sidebar-item-label {\n    font-size: 11px;\n    font-family: 'JetBrains Mono', monospace;\n    text-transform: uppercase;\n    letter-spacing: 0.05em;\n    color: var(--ink-light);\n    margin-bottom: 2px;\n}\n.bqa-sidebar-item-value {\n    font-size: 14px;\n    color: var(--ink);\n    line-height: 1.4;\n}\n\/* Highlight Box *\/\n.bqa-highlight {\n    border-left: 4px solid var(--purple);\n    background: rgba(145, 82, 222, 0.04);\n    padding: 20px 24px;\n    margin: 32px 0;\n    transition: background 0.2s;\n}\n.bqa-highlight:hover { background: rgba(145, 82, 222, 0.07); }\n.bqa-highlight p { margin: 0; font-size: 0.95rem; }\n.bqa-highlight strong { color: var(--deep); }\n\/* Mistake Number *\/\n.mistake-num {\n    font-family: 'JetBrains Mono', monospace;\n    font-weight: 500;\n    color: var(--purple);\n}\n\/* Stats Row *\/\n.bqa-stats-row {\n    display: flex;\n    justify-content: center;\n    gap: 48px;\n    padding: 32px 40px;\n    background: linear-gradient(135deg, var(--deep) 0%, var(--blue) 100%);\n    margin: 32px 0;\n    position: relative;\n    overflow: hidden;\n}\n.bqa-stats-row::after {\n    content: '';\n    position: absolute;\n    inset: 0;\n    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);\n    animation: shine 4s ease-in-out infinite;\n}\n@keyframes shine {\n    0%, 100% { transform: translateX(-100%); }\n    50% { transform: translateX(100%); }\n}\n.bqa-stat {\n    text-align: center;\n    color: #fff;\n}\n.bqa-stat-value {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 2rem;\n    font-weight: 500;\n    color: #fff;\n    margin-bottom: 6px;\n}\n.bqa-stat-label {\n    font-size: 0.8rem;\n    color: rgba(255, 255, 255, 0.85);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n}\n.bqa-stat-source {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 0.65rem;\n    color: rgba(255, 255, 255, 0.5);\n    margin-top: 4px;\n}\n\/* FAQ Accordion *\/\n.bqa-faq-item {\n    border-bottom: 1px solid var(--paper-dark);\n}\n.bqa-faq-item:first-child {\n    border-top: 1px solid var(--paper-dark);\n}\n.bqa-faq-question {\n    width: 100%;\n    background: none;\n    border: none;\n    padding: 20px 0;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    cursor: pointer;\n    text-align: left;\n    font-family: 'Jost', sans-serif;\n    font-size: 1.05rem;\n    font-weight: 600;\n    color: var(--ink);\n    gap: 16px;\n}\n.bqa-faq-question:hover { color: var(--purple); }\n.bqa-faq-toggle {\n    width: 28px;\n    height: 28px;\n    min-width: 28px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: 1.2rem;\n    color: var(--purple);\n    transition: transform 0.3s ease;\n}\n.bqa-faq-item.open .bqa-faq-toggle { transform: rotate(45deg); }\n.bqa-faq-answer {\n    max-height: 0;\n    overflow: hidden;\n    transition: max-height 0.35s ease;\n}\n.bqa-faq-item.open .bqa-faq-answer { max-height: 400px; }\n.bqa-faq-answer-inner {\n    padding: 0 0 24px;\n    font-size: 0.95rem;\n    color: var(--ink-light);\n    line-height: 1.85;\n}\n\/* CTA *\/\n.bqa-cta {\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    color: #fff;\n    padding: 48px 40px;\n    text-align: center;\n    position: relative;\n    z-index: 1;\n}\n.bqa-cta h2 {\n    color: #fff;\n    font-size: 1.6rem;\n    margin-bottom: 12px;\n}\n.bqa-cta p {\n    color: rgba(255, 255, 255, 0.9);\n    margin-bottom: 28px;\n}\n.bqa-article .bqa-cta-btn {\n    display: inline-block;\n    padding: 14px 32px;\n    background: var(--white);\n    color: var(--deep);\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 14px;\n    text-decoration: none;\n    border: none;\n    border-bottom: none;\n    transition: all 0.3s;\n}\n.bqa-article .bqa-cta-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n    color: var(--deep);\n    border-bottom: none;\n}\n\/* Related Resources *\/\n.bqa-related-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 16px;\n}\n.bqa-related-links {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 10px;\n}\n.bqa-article .bqa-related-link {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    padding: 10px 18px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    color: var(--ink-light);\n    font-size: 0.875rem;\n    transition: all 0.2s;\n}\n.bqa-article .bqa-related-link:hover {\n    border-color: var(--purple);\n    color: var(--purple);\n    border-bottom-color: var(--purple);\n}\n.bqa-related-link i {\n    font-size: 11px;\n    color: var(--purple);\n}\n\/* Scroll Reveal *\/\n.bqa-reveal {\n    opacity: 0;\n    transform: translateY(16px);\n    transition: opacity 0.6s ease, transform 0.6s ease;\n}\n.bqa-reveal.visible {\n    opacity: 1;\n    transform: translateY(0);\n}\n\/* Responsive *\/\n@media (max-width: 768px) {\n    .bqa-hero-grid {\n        grid-template-columns: 1fr;\n        gap: 32px;\n    }\n    .bqa-article h1 { font-size: 2rem; }\n    .bqa-article h2 { font-size: 1.4rem; }\n    .bqa-stats-row { flex-direction: column; gap: 24px; padding: 32px 24px; }\n    .bqa-stat-value { font-size: 1.75rem; }\n}\n@media (max-width: 500px) {\n    .bqa-article-section { padding: 40px 16px; }\n    .bqa-article h1 { font-size: 1.7rem; }\n    .bqa-cta { padding: 36px 24px; }\n    .bqa-stats-row { gap: 20px; padding: 24px 16px; }\n    .bqa-stat-value { font-size: 1.5rem; }\n    .bqa-related-links { flex-direction: column; }\n}\n@media (max-width: 380px) {\n    .bqa-article h1 { font-size: 1.5rem; }\n}\n@media (prefers-reduced-motion: reduce) {\n    .bqa-reveal {\n        opacity: 1;\n        transform: none;\n        transition: none;\n    }\n    .bqa-stats-row::after { animation: none; }\n}\n\/* Decision table (drafts) *\/\n.bqa-table-wrap { overflow-x: auto; margin: 24px 0; }\n.bqa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }\n.bqa-table th { background: var(--ink); color: #fff; font-family: 'Jost', sans-serif; font-weight: 600; text-align: left; padding: 12px 14px; }\n.bqa-table td { padding: 12px 14px; border-bottom: 1px solid var(--paper-dark); vertical-align: top; }\n.bqa-table tr:nth-child(even) td { background: rgba(221, 233, 233, 0.35); }\n.bqa-article ol, .bqa-article ul.bqa-list { padding-left: 22px; margin: 16px 0; }\n.bqa-article ol li, .bqa-article ul.bqa-list li { margin-bottom: 8px; }\n@media (max-width: 500px) { .bqa-table { font-size: 0.82rem; } .bqa-table th, .bqa-table td { padding: 10px; } }\n.bqa-faq-item.active .bqa-faq-toggle { transform: rotate(45deg); }\n.bqa-faq-item.active .bqa-faq-answer { max-height: 400px; display: block; }\n.bqa-reveal.revealed { opacity: 1; transform: none; }\n.bqa-article .bqa-reveal { opacity: 1 !important; transform: none !important; }\n.bqa-article .bqa-faq-question { white-space: normal; }\n.bqa-article .bqa-faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }\n.bqa-article h1, .bqa-article h2, .bqa-article h3, .bqa-article p, .bqa-article li { text-align: left; }\n<\/style>\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Jost:wght@400;600&#038;family=Roboto:wght@300;400&#038;family=JetBrains+Mono:wght@400;500&#038;display=swap\" rel=\"stylesheet\">\n<div class=\"bqa-article\">\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<a href=\"\/blog\/\" class=\"bqa-back-link\"><i class=\"fa-solid fa-arrow-left\"><\/i> Back to blog<\/a><\/p>\n<div class=\"bqa-hero-grid\">\n<div>\n<div class=\"bqa-section-label\">Security testing<\/div>\n<h1>What is fuzz testing? How fuzzing finds security bugs<\/h1>\n<div class=\"bqa-short-answer\" style=\"background:#f8f5fd;border-left:4px solid #9152DE;border-radius:10px;padding:18px 20px;margin:0 0 24px\">\n<p style=\"text-align:left;margin:0 0 8px;font-weight:700;color:#461780\">Short answer<\/p>\n<p style=\"text-align:left;margin:0\">Fuzz testing, or fuzzing, is an automated technique that feeds a program large amounts of malformed, unexpected or random input and watches for crashes, hangs and memory errors. It finds the input-handling bugs that hand-written tests miss, which is why it is used on parsers, file formats, network protocols and APIs.<\/p>\n<\/div>\n<p>Fuzzing is cheap to start and keeps paying back. You write a small harness that hands bytes to the code you care about, then let a fuzzer mutate those bytes for hours. Anything that crashes the target is a reproducible bug, and some of those bugs are exploitable. Below: how it works, the main types, the tools worth knowing, and where it fits next to penetration testing and static analysis.<\/p>\n<figure class=\"bqa-inimg bqa-inimg--r bqa-bp-inline\" style=\"max-width:600px;margin:20px 0 8px!important\">\n<style>.bqa-inimg{margin:0!important;min-width:0}.bqa-inimg .bqa-inimg-i{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:12px}.bqa-inimg--r .bqa-inimg-i{aspect-ratio:3\/2}.bqa-inimg--w .bqa-inimg-i{aspect-ratio:16\/9}.bqa-inimg--ui .bqa-inimg-i{aspect-ratio:auto;max-height:none;object-fit:contain;border:1px solid rgba(128,128,128,.3)}.bqa-inimg--w{margin:24px 0 8px!important}.bqa-inimg--c{margin-left:auto!important;margin-right:auto!important}.bqa-inimg figcaption{font-size:.8125rem;line-height:1.4;opacity:.72;padding:8px 0 0;margin:0}.bqa-inimg-row{display:flex;gap:32px;align-items:flex-start}.bqa-inimg-row>:first-child{flex:1 1 0;min-width:0}.bqa-inimg-row>.bqa-inimg{flex:0 0 34%;max-width:380px;margin:6px 0 0!important}.bqa-inimg-col .bqa-inimg{margin:20px 0 0!important}@media(max-width:860px){.bqa-inimg-row{display:block}.bqa-inimg-row>.bqa-inimg{max-width:none;margin-top:16px!important}.bqa-inimg--r .bqa-inimg-i{aspect-ratio:16\/9}.bqa-inimg .bqa-inimg-i{max-height:260px}.bqa-inimg--ui .bqa-inimg-i{max-height:none}}<\/style>\n<picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2025\/06\/SZY_6768-1536x1022.webp 1200w, https:\/\/betterqa.co\/wp-content\/uploads\/2025\/06\/SZY_6768-768x511.webp 600w\" sizes=\"(min-width:861px) 760px, calc(100vw - 32px)\"><img loading=\"lazy\" class=\"bqa-inimg-i\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2025\/06\/SZY_6768-1536x1022.jpg\" width=\"1200\" height=\"800\" alt=\"Desk and laptops in the BetterQA office in Cluj-Napoca\" loading=\"lazy\" decoding=\"async\" title=\"\"><\/picture><\/figure>\n<\/div>\n<div class=\"bqa-hero-sidebar\">\n<div class=\"bqa-sidebar-title\">Article details<\/div>\n<div class=\"bqa-sidebar-item\"><i class=\"fa-solid fa-flag-checkered\"><\/i><\/p>\n<div>\n<div class=\"bqa-sidebar-item-label\">Question<\/div>\n<div class=\"bqa-sidebar-item-value\">What is fuzz testing?<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-sidebar-item\"><i class=\"fa-solid fa-user-tie\"><\/i><\/p>\n<div>\n<div class=\"bqa-sidebar-item-label\">Audience<\/div>\n<div class=\"bqa-sidebar-item-value\">Developers, testers and security leads<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-sidebar-item\"><i class=\"fa-solid fa-book\"><\/i><\/p>\n<div>\n<div class=\"bqa-sidebar-item-label\">Standards cited<\/div>\n<div class=\"bqa-sidebar-item-value\">OWASP, NIST IR 8397<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-sidebar-item\"><i class=\"fa-solid fa-users\"><\/i><\/p>\n<div>\n<div class=\"bqa-sidebar-item-label\">BetterQA team<\/div>\n<div class=\"bqa-sidebar-item-value\">50+ engineers, founded 2018<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section alt-bg bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">How it works<\/div>\n<h2>How fuzz testing works, step by step<\/h2>\n<p>Every fuzzing setup follows the same loop. The details change with the tool and the language, the loop does not.<\/p>\n<ol>\n<li><strong>Pick a target that takes untrusted input.<\/strong> Parsers, decoders, file importers, protocol handlers and API endpoints are the usual candidates. Code that never sees outside data is a poor first choice.<\/li>\n<li><strong>Write a harness.<\/strong> A short function that takes a byte array and passes it to the code under test. With libFuzzer this is one function; with AFL++ it can be a program that reads a file.<\/li>\n<li><strong>Add a seed corpus.<\/strong> A handful of valid inputs (real files, real requests) gives the fuzzer something sensible to mutate. A fuzzer started on empty input works, but reaches deep code more slowly.<\/li>\n<li><strong>Build with sanitizers.<\/strong> AddressSanitizer and UndefinedBehaviorSanitizer turn silent memory corruption into a visible crash, so the fuzzer can tell it happened.<\/li>\n<li><strong>Run and watch coverage.<\/strong> A coverage-guided fuzzer keeps every input that reaches new code and mutates those further. A flat coverage line means the harness or the seeds need work.<\/li>\n<li><strong>Triage the crashes.<\/strong> Deduplicate by stack trace, minimise the triggering input, decide whether it is exploitable, and report it with the input attached.<\/li>\n<li><strong>Keep the fix honest.<\/strong> Add the crashing input to the regression suite and run the fuzzer again in continuous integration, so the same bug cannot come back unnoticed.<\/li>\n<\/ol>\n<div class=\"bqa-highlight\">\n<p><strong>Where the idea comes from.<\/strong> The term was coined by Barton Miller and his students at the University of Wisconsin in the late 1980s, who fed random input to UNIX command-line tools and found that many of them crashed or hung. Their results were published in 1990 in <em>Communications of the ACM<\/em>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">Types of fuzzing<\/div>\n<h2>Types of fuzzing<\/h2>\n<p>Fuzzers differ along three axes: how much they know about the target, how they make inputs, and what feedback they use.<\/p>\n<p><strong>By knowledge of the target<\/strong><\/p>\n<ul class=\"bqa-list\">\n<li><strong>Black-box fuzzing.<\/strong> Sends inputs and watches the outside behaviour only. Works on anything you can run, but wanders blindly.<\/li>\n<li><strong>Grey-box fuzzing.<\/strong> Uses light instrumentation to see which code each input reached. This is what AFL++ and libFuzzer do, and it is the common default.<\/li>\n<li><strong>White-box fuzzing.<\/strong> Uses program analysis, for example symbolic execution, to work out inputs that reach a specific branch. Powerful, and slower per input.<\/li>\n<\/ul>\n<p><strong>By how inputs are made<\/strong><\/p>\n<ul class=\"bqa-list\">\n<li><strong>Mutation-based.<\/strong> Takes valid samples and flips bits, changes bytes, truncates or splices them. Easy to start, needs good seeds.<\/li>\n<li><strong>Generation-based (grammar-based).<\/strong> Builds inputs from a description of the format or protocol. Reaches deeper into strict formats such as network protocols and structured documents.<\/li>\n<\/ul>\n<p><strong>By feedback<\/strong><\/p>\n<ul class=\"bqa-list\">\n<li><strong>Random (dumb) fuzzing.<\/strong> No feedback at all. Simple, and it explores very little.<\/li>\n<li><strong>Coverage-guided fuzzing.<\/strong> Keeps the inputs that reach new code and builds on them. It is the main reason modern fuzzers find deep bugs.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section alt-bg bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">Tools<\/div>\n<h2>Fuzzing tools worth knowing<\/h2>\n<p>No single tool fits every language. Pick by what you are testing.<\/p>\n<div class=\"bqa-table-wrap\">\n<table class=\"bqa-table\">\n<thead>\n<tr>\n<th>Tool<\/th>\n<th>Best for<\/th>\n<th>What to know<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>AFL++<\/strong><\/td>\n<td>C and C++ programs, including binary-only targets<\/td>\n<td>Community-maintained successor to American Fuzzy Lop, with custom mutators and many instrumentation modes<\/td>\n<\/tr>\n<tr>\n<td><strong>libFuzzer<\/strong><\/td>\n<td>Libraries, in the same process<\/td>\n<td>Part of LLVM. You write one fuzz target function and compile with sanitizers<\/td>\n<\/tr>\n<tr>\n<td><strong>Honggfuzz<\/strong><\/td>\n<td>Memory corruption and crashes in native code<\/td>\n<td>Feedback-driven, with a persistent mode that avoids restarting the target<\/td>\n<\/tr>\n<tr>\n<td><strong>OSS-Fuzz<\/strong><\/td>\n<td>Open-source projects<\/td>\n<td>Google service that runs fuzzers continuously for projects that join it, using libFuzzer, AFL++ and others<\/td>\n<\/tr>\n<tr>\n<td><strong>Go native fuzzing<\/strong><\/td>\n<td>Go packages<\/td>\n<td>Built into the <code>go test<\/code> tool since Go 1.18<\/td>\n<\/tr>\n<tr>\n<td><strong>Jazzer and Atheris<\/strong><\/td>\n<td>Java and Python code<\/td>\n<td>Coverage-guided fuzzers that plug into the libFuzzer engine<\/td>\n<\/tr>\n<tr>\n<td><strong>RESTler and Schemathesis<\/strong><\/td>\n<td>REST APIs<\/td>\n<td>Generate requests from an OpenAPI description and look for server errors and broken contracts<\/td>\n<\/tr>\n<tr>\n<td><strong>Boofuzz<\/strong><\/td>\n<td>Network protocols<\/td>\n<td>Python framework for describing a protocol and fuzzing it over a socket<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Web applications need a different approach to binaries. Fuzz the API contract with a tool like Schemathesis, and write harnesses for the parsers and validators behind the endpoints.<\/p>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">Comparison<\/div>\n<h2>Fuzzing compared with other security testing<\/h2>\n<p>Fuzzing does not replace the other methods. Each finds a different class of problem.<\/p>\n<div class=\"bqa-table-wrap\">\n<table class=\"bqa-table\">\n<thead>\n<tr>\n<th><\/th>\n<th>Fuzz testing<\/th>\n<th>Penetration testing<\/th>\n<th>Static analysis<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>How it works<\/strong><\/td>\n<td>Runs the code with generated input<\/td>\n<td>A person attacks the running system<\/td>\n<td>Reads the code without running it<\/td>\n<\/tr>\n<tr>\n<td><strong>Best at finding<\/strong><\/td>\n<td>Memory corruption, parsing bugs, crashes, hangs<\/td>\n<td>Business-logic flaws, access control gaps, misconfiguration<\/td>\n<td>Known bad patterns, hard-coded secrets, unsafe calls<\/td>\n<\/tr>\n<tr>\n<td><strong>Blind spots<\/strong><\/td>\n<td>Logic that does not crash, such as a wrong permission check<\/td>\n<td>Depth in a single parser; limited by time<\/td>\n<td>Reports that need triage; cannot see runtime state<\/td>\n<\/tr>\n<tr>\n<td><strong>Effort to start<\/strong><\/td>\n<td>A harness per target<\/td>\n<td>A scoped engagement<\/td>\n<td>A scanner in the pipeline<\/td>\n<\/tr>\n<tr>\n<td><strong>Runs<\/strong><\/td>\n<td>Continuously, in CI<\/td>\n<td>Per release or per year<\/td>\n<td>On every commit<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>NIST lists fuzzing among the verification techniques developers should apply (NIST IR 8397, 2021). We treat it as one layer: static analysis early, fuzzing on input-handling code, and manual penetration testing for the logic a fuzzer cannot judge.<\/p>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section alt-bg bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">When to use it<\/div>\n<h2>When fuzzing is, and is not, worth it<\/h2>\n<p><strong>Worth it:<\/strong> code that parses data from outside your trust boundary, native code in C or C++ where memory errors are possible, libraries other products depend on, and anything with a strict binary or text format.<\/p>\n<p><strong>Less useful:<\/strong> pure business logic with no unusual input handling, and code in memory-safe languages whose worst outcome is an exception. Fuzzing still finds logic crashes and denial-of-service paths there, but the security payoff is smaller.<\/p>\n<p><strong>Limits to plan for.<\/strong> Fuzzing finds what crashes or trips a sanitizer. It will not tell you that a discount was applied twice or that a user can read another user&#8217;s record. A fuzzer also needs time and a CPU budget, and results depend heavily on the quality of the harness and seeds.<\/p>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">How BetterQA uses it<\/div>\n<h2>How we use fuzzing on client work<\/h2>\n<p>BetterQA is an independent QA company: we test and do not build, so we have no stake in the code we attack. When a client&#8217;s product handles untrusted input, we add fuzzing to the security testing plan next to manual testing and our own AI Security Toolkit, then hand over each crash with the input that triggers it and the steps to reproduce.<\/p>\n<p>If you want a team to set this up and read the results, our <a href=\"\/security-testing-service\/\">security testing service<\/a> covers the scoping, the testing and the report.<\/p>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">FAQ<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>What is fuzz testing in simple terms?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">It is automated testing with junk. A tool throws huge numbers of broken, odd or random inputs at a program and records every time the program crashes, hangs or breaks a memory-safety check. Each recorded input is a reproducible bug report.<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>What bugs does fuzzing find?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">Mostly memory-safety bugs such as buffer overflows and use-after-free, plus unhandled exceptions, infinite loops, assertion failures and resource exhaustion. It is strongest on code that parses untrusted data.<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>How is fuzzing different from penetration testing?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">Fuzzing is automated and repeats the same loop at high volume against one target. Penetration testing is a person reasoning about how the whole system can be abused. Fuzzers miss logic flaws; testers cannot try millions of malformed inputs by hand.<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>How long should a fuzzing run last?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">There is no fixed number. Run each target until coverage stops growing, then keep it running in continuous integration so new code is fuzzed too. Bugs often turn up only after days of execution, once the fuzzer reaches deeper paths.<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>Can you fuzz web applications and APIs?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">Yes. API fuzzers such as RESTler and Schemathesis generate requests from an OpenAPI description and look for server errors. For server-side code, write harnesses for the parsers and validators behind the endpoints.<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-faq-item\">\n<button class=\"bqa-faq-question\" aria-expanded=\"false\"><span>What is the difference between fuzzing and random testing?<\/span><span class=\"bqa-faq-toggle\">+<\/span><\/button><\/p>\n<div class=\"bqa-faq-answer\">\n<div class=\"bqa-faq-answer-inner\">Random testing sends arbitrary input with no feedback. Modern fuzzing is coverage-guided: it keeps inputs that reach new code, mutates them further, and uses sanitizers to catch memory errors that would not crash the program on their own.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-section-label\">Sources<\/div>\n<h2>Where this comes from<\/h2>\n<p>OWASP, <a href=\"https:\/\/owasp.org\/www-community\/Fuzzing\" rel=\"noopener nofollow\" target=\"_blank\">Fuzzing<\/a>. NIST IR 8397, <a href=\"https:\/\/nvlpubs.nist.gov\/nistpubs\/ir\/2021\/NIST.IR.8397.pdf\" rel=\"noopener nofollow\" target=\"_blank\">Guidelines on Minimum Standards for Developer Verification of Software<\/a> (2021). LLVM, <a href=\"https:\/\/llvm.org\/docs\/LibFuzzer.html\" rel=\"noopener nofollow\" target=\"_blank\">libFuzzer documentation<\/a>. Google, <a href=\"https:\/\/google.github.io\/oss-fuzz\/\" rel=\"noopener nofollow\" target=\"_blank\">OSS-Fuzz documentation<\/a>. <a href=\"https:\/\/aflplus.plus\/\" rel=\"noopener nofollow\" target=\"_blank\">AFL++ project<\/a>. B. P. Miller, L. Fredriksen and B. So, <a href=\"https:\/\/dl.acm.org\/doi\/10.1145\/96267.96279\" rel=\"noopener nofollow\" target=\"_blank\">An empirical study of the reliability of UNIX utilities<\/a>, Communications of the ACM, 1990.<\/p>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section alt-bg bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-cta\">\n<h2>Want fuzzing set up on your product?<\/h2>\n<p>Tell us what you are testing and what input it takes. We will tell you whether fuzzing is worth it for it.<\/p>\n<p><a href=\"https:\/\/calendly.com\/betterqa\" class=\"bqa-cta-btn\" rel=\"nofollow noopener\" target=\"_blank\">Book a call<\/a><br \/>\n<a href=\"\/security-testing-service\/\" class=\"bqa-cta-btn\">Security testing service<\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"bqa-article-section bqa-reveal\">\n<div class=\"bqa-container\">\n<div class=\"bqa-related-label\">Related resources<\/div>\n<div class=\"bqa-related-links\">\n<a href=\"\/getting-started-with-security-testing\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-shield-halved\"><\/i> Getting started with security testing<\/a><br \/>\n<a href=\"\/importance-of-early-security-audits\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-clock\"><\/i> Why early security audits matter<\/a><br \/>\n<a href=\"\/betterqa-holistic-security-audits\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-magnifying-glass\"><\/i> Holistic security audits<\/a>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><script>\n\/\/ Scroll reveal\n(function() {\n    var els = document.querySelectorAll('.bqa-reveal');\n    if (!window.IntersectionObserver) {\n        els.forEach(function(el) { el.classList.add('visible'); });\n        return;\n    }\n    var obs = new IntersectionObserver(function(entries) {\n        entries.forEach(function(entry) {\n            if (entry.isIntersecting) {\n                entry.target.classList.add('visible');\n                obs.unobserve(entry.target);\n            }\n        });\n    }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });\n    els.forEach(function(el) { obs.observe(el); });\n})();<\/p>\n<p>\/\/ FAQ: the site script toggles .active; keep aria-expanded in sync with it\n(function() {\n    document.querySelectorAll('.bqa-faq-item').forEach(function(item) {\n        var btn = item.querySelector('.bqa-faq-question');\n        if (!btn || !window.MutationObserver) return;\n        new MutationObserver(function() {\n            btn.setAttribute('aria-expanded', item.classList.contains('active') ? 'true' : 'false');\n        }).observe(item, { attributes: true, attributeFilter: ['class'] });\n    });\n})();\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fuzzing feeds a program malformed input to find crashes and security bugs. How it works, the main types, tools such as AFL++ and libFuzzer, and when it pays off.<\/p>\n","protected":false},"author":33,"featured_media":11897,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[1020,1142,1037,1120,1029,929,1141,1021,969,1048,947,1139],"class_list":["post-7192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation-insights-trends-case-studies","tag-automation-testing","tag-fuzz-testing","tag-independent-software-testing-services","tag-offshore-testing","tag-qa","tag-qa-strategy","tag-qa-tools","tag-quality-assurance","tag-quality-control","tag-security-measures","tag-security-testing","tag-test-strategies"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/7192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=7192"}],"version-history":[{"count":0,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/7192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/11897"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=7192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=7192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=7192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}