skip to content

In Burp Scanner, what is a BCheck, and what must its definition file contain before Burp will accept it?

level: middleimportance: nice to knowfreq 8%

answer

  1. plain text file, own language
  2. metadata block comes first
  3. exactly one given-then statement
  4. report issue needs two ratings
  5. property order is checked

basics

~20 s

A BCheck is a custom scan check written as a plain-text .bcheck file in PortSwigger's own definition language. It must start with a metadata block, contain one given-then statement, and report issues with a severity and a confidence.

solid answer

~40 s

A **BCheck** is a custom scan check, a plain-text file with a `.bcheck` extension that Burp Scanner runs in addition to its built-in routine. The definition must begin with a mandatory `metadata` block (at least `language`, currently `v2-beta`, and `name`), then a single `given ... then` statement saying what it runs on: a response, request, host, path or a type of insertion point. Inside, `if ... then` conditions decide when to `report issue`, and each report must carry a `severity` (info, low, medium, high) and a `confidence` (certain, firm, tentative), in the order the reference gives, or validation can fail. BChecks suit small, targeted checks; complex ones are written as Java scripts against the Montoya API. Review any downloaded BCheck first, since it runs in your scans.

code

pseudocode · 13 lines
pseudocode
metadata:
    language: v2-beta
    name: "X-Powered-By header names the platform"
    description: "Passive check on responses already seen"
    author: "Example security team"
    tags: "passive", "headers"

given response then
    if {latest.response} matches "(?i)x-powered-by: *[^\r\n]+" then
        report issue:
            severity: info
            confidence: firm
    end if

go deeper

for a junior

Recall that a BCheck is a small custom scan check in a plain-text file and that it reports issues with a severity and a confidence.

for a middle

Describe the mandatory structure: metadata first, a single given-then statement, conditions, and report issue with its two required ratings in order.

for a senior

Review a BCheck before it joins a scan library: read its given mode, any requests and Collaborator use it makes, and where it came from.

for a principal

Decide who may add custom scan checks to shared libraries and what review a third-party check needs before it runs against production-like systems.

## What a BCheck is A **BCheck** is a custom scan check you can create and import. Burp Scanner runs it in addition to its built-in scanning routine, which lets a team target a specific issue without writing an extension. Each BCheck is a plain text file with a `.bcheck` extension, written in a custom definition language. PortSwigger's DAST page says BChecks run unchanged in Burp Suite DAST, so a check built for Professional is portable. In Burp Suite Professional, custom scan checks live in a library under **Extensions > Custom scan checks**, where you can import checks, or create them from templates with a built-in editor. There are two kinds: | Kind | Written in | Best for | |---|---|---| | BCheck | The BCheck language | Quick, lightweight checks | | Script | Java, using the Montoya API | More complex checks | PortSwigger warns that slow or resource-intensive scripts can slow Burp down. ## What the file must contain 1. A **`metadata`** block at the very start. It is mandatory. `language` (currently the enum value `v2-beta`) and `name` are required; `description`, `author` and `tags` are optional. The name is what Burp shows when the check reports an issue. 2. Optional `run for each` and `define` blocks, which, if used, must come before the `given ... then` statement. 3. Exactly one **`given ... then`** statement, which defines when the check runs: `given response` (once for each response audited), `given request`, `given host`, `given path`, or `given` followed by an insertion point type (any, query, header, body, cookie). 4. Inside it, `if ... then ... end if` conditions, built from tests such as `matches` for a regular expression, `differs from`, `in`, `is`, and the Collaborator tests (any, DNS, HTTP, SMTP interactions), combined with `and`, `or` and `not`. 5. One or more **`report issue`** blocks. ## Reporting an issue A report block has the properties `name`, `severity`, `confidence`, `remediation` and `detail`. The reference tells you to use them in that order and warns that changing it, for example putting `name` after `severity`, makes the BCheck fail validation. `severity` and `confidence` are mandatory. The issue name falls back to the metadata name when omitted. - `severity` is one of `info`, `low`, `medium` or `high`. - `confidence` is one of `certain`, `firm` or `tentative`. - `report issue` **terminates** the check even if other parts have not run; `report issue and continue` reports and then carries on. A check that reports on DNS interactions with the first form never reports a later HTTP interaction. - Burp applies its normal consolidation to issues reported by the same BCheck with the same name. ## Variables a condition can read Conditions work on request and response properties through reserved variables. `base` is the request and response Burp Scanner used for the scan mode during crawling, `latest` is the most recent pair for the mode, and a named pair can be created with the `called` keyword. Properties include the response's status code, headers, body and HTTP version, and the request's method, URL parts, headers and body. Do not reuse those reserved names for your own variables, or the check errors when it runs. A check that compares `latest` with `base` is how a BCheck notices that a response changed. ## Passive against active The mode decides whether a check can generate traffic. `send request` and `send request as raw HTTP` can be used with every mode **except** `given response`. A check that only reads the responses Burp has already seen is therefore passive in effect and adds no requests, while one that sends requests is active and subject to the same scope and impact rules as built-in active checks. ## Reviewing a BCheck before it joins the library - A BCheck runs in every scan that uses it, so read it as you would code before installing it. - Check whether it sends requests, to which hosts, and whether it uses Collaborator. - Community BChecks are shared on a public repository; treat them as third-party content. - The built-in `Audit checks - BChecks only` configuration runs only BCheck-generated issues, which is useful for testing a new check on its own. ## A minimal passive example The code example shows the smallest useful shape: a `metadata` block, then `given response then`, then one condition that matches a response header naming the server-side platform and reports an `info` issue with `firm` confidence. It runs once for each response audited, sends nothing, and reports only when the pattern matches. It is illustrative, not a recommended check. ## Traps - Putting `report issue` properties in the wrong order and not understanding why validation fails. - Expecting `report issue` to keep running the rest of the check. - Assuming a BCheck is passive because it is short: any mode but `given response` can send requests.

  • How can you tell from a BCheck's `given` statement whether it can send requests of its own?
    `given response` runs once for each response audited and cannot use `send request`, so it adds no traffic. Every other mode (request, host, path or an insertion point type) can send requests, so a reviewer reads those for what they send and where, and applies the active-check impact rules.
  • What does `report issue and continue` change compared with `report issue`?
    `report issue` ends the check as soon as it reports, even if later parts have not run. `report issue and continue` reports and keeps running, so one check can raise several issues, for example one for a DNS interaction and a second for an HTTP interaction.
  • When would a team write a Java script check instead of a BCheck?
    When the logic is too complex for the BCheck language: scripts are written in Java against the Montoya API. The trade-off is weight, since PortSwigger warns that slow or resource-intensive scripts can slow Burp, whereas BChecks are intended for quick, lightweight checks.

  • Thinks a BCheck is a Java extension rather than a plain-text definition file
  • Believes any property order works inside a report issue block
  • Expects report issue to continue running the rest of the check
  • Assumes every BCheck is passive because it only reports a finding
  • Installs community BChecks without reading what requests they send

Assumes Burp Suite 2026.9; the BCheck reference documents the definition language version v2-beta.