skip to content

In Burp Suite, when would you write a Bambda instead of a full extension, and what risk do Bambdas still carry?

level: juniorimportance: should knowfreq 16%

answer

  1. small Java snippet, no project
  2. filters, columns, rules
  3. lives in a library
  4. extension for complex features
  5. arbitrary code warning

basics

~20 s

A Bambda is a small Java script run inside Burp for table filters, custom columns and match-and-replace rules, needing no project setup. Complex features call for an extension. A Bambda still runs arbitrary code, so review imported ones.

solid answer

~40 s

A **Bambda** is a short Java script that runs directly in Burp, created in **Extensions > Bambda library** or in a tool that accepts one. PortSwigger points to them for custom match-and-replace rules, table columns and filters, because they need no project, build or interface code. A full extension is for complex functionality and takes more setup, and custom scan checks are a separate mechanism. A Bambda is still code: the documentation warns that scripts can run arbitrary code, so scripts from unverified sources should be read before use, and slow ones can drag Burp down. Saved scripts are reusable across projects, so review also decides what lingers.

go deeper

for a junior

Recall that a Bambda is a small Java script for filters, columns and match-and-replace rules, kept in the Bambda library.

for a middle

Explain how it differs from an extension (no project, build or interface code) and note that some uses are marked Professional while table filtering is not.

for a senior

Show proportionate use: Bambdas for light table customisation, extensions for complex work, and a read of every imported script because it is arbitrary code.

for a principal

Frame script libraries as code the team must govern, since a script saved once is reused across later projects without anyone looking again.

## What a Bambda is As documented for Burp Suite 2026.9, a **Bambda** is a small, reusable Java script that runs directly inside Burp Suite. PortSwigger's documentation lists three everyday jobs for one: a custom filter on a table, a custom column, and a custom match-and-replace rule. There is no project to create, no build step and no user-interface code, which is what separates a Bambda from an extension. You write Java in Burp, Burp compiles it, and any errors appear in a **Compilation errors** panel that you must clear before the script can be applied. ## Choosing the lightest mechanism PortSwigger's creating-extensions page sets out the choice by purpose: | Need | Mechanism | Why | |---|---|---| | A custom table filter, a custom column, a scripted match-and-replace rule | **Bambda** | Small Java snippets that run in Burp without project setup | | A custom scan check | A separate definition-file mechanism, covered under Burp Scanner's custom checks | A purpose-built language that extends the scanner without a full extension | | Complex functionality, new tabs, integration with external tools | **Extension** | More flexible, more setup; PortSwigger offers a starter project | ## Where Bambdas live 1. Open **Extensions > Bambda library**. 2. Choose **New**, then **Blank** or **From template**. 3. Name it, pick a **Function** (the task the script performs) and a **Location** (the Burp tool it applies to), and write the Java. 4. **Save**. The script goes into your library, from which you can load it across Burp and in different projects. Several tools also apply scripts directly: the documentation names filtering the HTTP history, the WebSockets history, the Logger view and capture filters, and the site map. Burp can also import scripts shared by others, including from PortSwigger's Bambdas GitHub repository. ## Editions The Bambdas overview marks custom columns, custom scan checks, custom actions in Repeater and scripted match-and-replace rules as Professional. The page names table filtering without that label. A team with Community seats should therefore not assume every Bambda use is available to every tester. ## The risk that stays A small script is still code. The overview carries a warning in so many words: Bambda scripts can run arbitrary code, so be cautious with scripts from unverified sources. Three consequences follow: - **Imported scripts are code review items.** Read one before it goes into the library, as you would a shared snippet. - **The library persists.** Because a saved script is reusable across projects, a script imported for one engagement is still there for the next one unless someone removes it. - **Performance is a failure mode.** The creating page warns that slow or resource-intensive scripts can slow Burp, so a filter that scans every response body is a poor choice on a large history. ## What this looks like in practice A tester reviewing a staging application wants history rows with one response header present, highlighted as a column. That is a table customisation, so a Bambda is proportionate, and a full extension with a project, dependencies and a user interface would be more than the job needs. A second case is a tester who wants only the history rows with a 500 status from hosts in scope: that is a filter, and a short script in the HTTP history's filter does it. The same tester should not paste an unreviewed script from a forum into the library on a laptop that holds client session material. ## Questions to ask before saving a script - **What does it read?** A filter should read parts of a message; a script that does more than present data deserves a closer look. - **Where did it come from?** Record the source, whether PortSwigger's repository, a colleague or a forum post. - **How heavy is it?** Test it against a large history before relying on it. - **Does it belong in the library?** Anything saved there is available to later projects, so remove a one-off script when the engagement ends. ## The defender's side For the owner of the system under test, a table filter or a custom column changes nothing on the wire: it filters or decorates what Burp already holds. A match-and-replace script is different, because it changes messages as they pass through the proxy, so a reviewer should ask which kind a script is. The control that matters sits on the assessor's side, in what the team lets into its script library and who reviews it.

  • A colleague shares a Bambda from a public repository. What do you do before it goes into the library?
    Read it as code. PortSwigger warns that scripts can run arbitrary code and to be cautious with unverified sources, even though it hosts its own Bambdas repository. Check what it reads and writes, test it on a throwaway project, and record where it came from. A saved script is reusable across projects, so a careless import lingers.
  • A Bambda filter makes Burp sluggish on a large HTTP history. What does the documentation tell you?
    It warns that slow or resource-intensive scripts can slow Burp and asks you to write them carefully to limit performance impact. Simplify the filter, avoid work on every message body, and measure again. If the job grows beyond a filter, that is the signal to consider an extension instead.

  • Bambdas run in a sandbox and cannot execute arbitrary code.
  • A Bambda needs a Gradle project and a built jar like any extension.
  • Every Bambda use is available in the Community Edition.
  • Bambdas are the same mechanism as BChecks, only renamed.
  • A script saved in the library is deleted when the Burp project closes.

Assumes the Bambdas documentation for Burp Suite Professional / Community 2026.9 (pages last updated 22 September 2026); which Bambda uses are marked Professional is quoted from the overview page.