In Burp Suite, how do the Montoya API and the legacy Extender API differ, and what does that mean for an inherited Jython extension?
answer
- two generations, one retired
- Java or Kotlin jar
- Python and Ruby via a bridge
- documentation says no longer maintained
- port, review or remove
basics
~20 sThe Montoya API, used from Java or Kotlin, is the actively maintained, recommended interface. The legacy Extender API (Python via Jython, Ruby via JRuby) is no longer actively maintained, so inherit one only with review and a port-or-retire plan.
solid answer
~40 sThe **Montoya API** is Burp's current extension interface: you write Java, or Kotlin compiled to a `.jar`, and PortSwigger calls it actively maintained and recommended. The **legacy Extender API** serves Python through Jython and Ruby through JRuby, and the documentation says it is no longer actively maintained, with its examples kept to help people maintain existing extensions. PortSwigger also plans features that the legacy API cannot take. An inherited Jython extension still sees every proxied message, so I would inventory it, review its code like any other, then port it to Montoya or remove it instead of expecting fixes from the API.
code
java · 15 linesimport burp.api.montoya.BurpExtension;
import burp.api.montoya.MontoyaApi;
public class Extension implements BurpExtension
{
@Override
public void initialize(MontoyaApi montoyaApi)
{
// The name shown under Extensions > Installed
montoyaApi.extension().setName("Registration check");
// Written to the extension's Output tab
montoyaApi.logging().logToOutput("Extension loaded");
}
}go deeper
Recall that Montoya (Java or Kotlin) is the maintained interface and the Jython and JRuby route is the older, unmaintained one.
Explain the mechanics: a class implements BurpExtension, Burp calls initialize with a MontoyaApi, and the legacy API instead serves Python and Ruby through a bridge.
Show the inheritance plan: inventory, review, then port or retire, instead of trusting an extension because it has always worked.
Frame the maintenance risk: code on a frozen interface with access to client traffic should carry an owner and an end date in the team's tooling policy.
## Two generations of extension API Burp has two extension interfaces. The **Montoya API** is the current one: extensions are written in Java and loaded as a `.jar`, and PortSwigger's creating-extensions page says it strongly recommends it because it is actively maintained, well documented and gives full access to Burp's extensibility features. You can also write in Kotlin, which compiles to a `.jar` and loads like a Java extension. The **legacy Extender API** is the older route for Python (through Jython) or Ruby (through JRuby), and the same page states plainly that it is no longer actively maintained. | | Montoya API | Legacy Extender API | |---|---|---| | Languages | Java; Kotlin compiled to a `.jar` | Python via Jython; Ruby via JRuby | | Status in the documentation | Recommended, actively maintained | No longer actively maintained | | Entry point | A class implementing `BurpExtension` with an `initialize` method | The older interface family, shown in the legacy examples | | New features | Added release by release (for example the 2026.7 tag added a request execution engine, Professional only) | PortSwigger says planned features are not compatible with it | | Documentation emphasis | All current docs and examples | Examples kept to help maintain existing extensions | ## What a minimal Montoya extension looks like The skeleton in the code example only names itself and logs a message. `setName` sets the label shown in **Extensions > Installed**, and `logToOutput` writes a line to the extension's Output tab. Registering handlers, tabs and menu items would all start from the same `initialize` method. ## What the documentation says about the legacy path The Montoya API is not a Professional-only door: the interface files carry a licence header covering extensions for both Burp Suite Community Edition and Burp Suite Professional, although individual capabilities, such as the 2026.7 request execution engine, are Professional only. The legacy examples page is explicit about its purpose: the examples are provided to help users maintain existing extensions, and anyone proficient in Java is strongly advised to write new ones with the Montoya API. PortSwigger adds that it plans new and improved features that are not compatible with the legacy API. A Python or Ruby extension also depends on a Jython or JRuby environment being available to Burp; the pages read for this answer do not document the settings that point Burp at one, so no menu path is given here. ## What that means for a team that inherits one An old Jython extension is code with the same access as any other extension, to every proxied message, and it sits on an interface its vendor has stopped developing. The practical stance is: 1. **Inventory it.** Record its name, source and who last changed it. 2. **Review it** as you would a new extension; age is not evidence of safety. 3. **Decide to port or retire.** If it is still needed, rewrite against the Montoya API, which also lets it use features the legacy API will not receive. If it is not, remove it. 4. **Do not expect fixes.** Without active maintenance, assume problems with a newer Burp release will not be repaired for you. ## Which features does the old extension actually use? The legacy examples page lists what typical legacy extensions do: a traffic redirector, event listeners, a custom logger, a custom editor tab, custom scan insertion points, custom scanner checks, custom session tokens and Intruder payloads. Before a port, list which of those the inherited extension relies on, find the Montoya interface for each in the API's JavaDoc, and port the smallest useful piece first. Many inherited extensions turn out to use one feature, and that shrinks the work or shows the extension is no longer needed. ## The versions to name Answers here assume Burp Suite Professional and Community 2026.9, whose documentation was updated on 22 September 2026, and the Montoya API tag 2026.7. The API's own changelog shows it still gaining capabilities in 2026: the 2026.4 entry lets a handler suppress a request and supply a spoofed response, and the 2026.7 entry adds the engine above. Those capabilities exist only on the Montoya side, which is the strongest practical argument for moving. ## What a reviewer should not conclude A Python extension is not unsafe merely because it is Python, and a Java one is not safe merely because it uses the maintained API. The generation tells you about maintenance and available features; whether the code is trustworthy still comes from reading it.
- A colleague wants to write the team's new extension in Kotlin. Does Burp object?No. PortSwigger's page says Kotlin extensions are compiled to a `.jar` and loaded in Burp like a Java extension, and they still use the Montoya API. The language choice matters for the team's skills, not for how Burp loads the result.
- Why does an extension author's use of a newer Montoya release matter to a reviewer?The API grows, and newer releases add capabilities. The 2026.4 changelog entry lets an HTTP handler suppress a request and supply a spoofed response, and the 2026.7 entry adds a request execution engine for Professional. When an extension updates, the reviewer re-reads what it now calls.
- The legacy extension still works and its author has left. Do you port it now?Not automatically. Keep it only while it has been reviewed, is clearly needed and is on the inventory, and port it when it breaks on a Burp release, needs a newer feature or cannot be reviewed. A working but unmaintained extension that nobody understands is the case to retire.
- The legacy Extender API is the recommended route for Python extensions.
- Kotlin extensions cannot be loaded by Burp, only Java ones.
- An old Jython extension is safe because it has run for years.
- The Montoya API only works in Burp Suite Professional.
- The legacy API will receive every new Montoya feature eventually.
Assumes Burp Suite Professional / Community 2026.9 documentation and the Montoya API at its 2026.7 tag; the 'no longer actively maintained' wording for the legacy Extender API is quoted from PortSwigger's creating-extensions page.