A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.
Contributing to Open Suite
Thanks for considering a contribution. Open Suite is a community project and changes of any size are welcome, from a one-line fix to a whole tool.
How to contribute a change
Changes come in as pull requests from your own fork of the repository.
Fork the repository with the Fork button at the top of the GitHub page. That gives you a copy under your own account that you can push to.
Clone your fork and add the main repository as
upstream, so you can keep your copy current:git clone https://github.com/<your-user>/open-suite.git cd open-suite git remote add upstream https://github.com/scottsturrock/open-suite.gitCreate a branch for the change, starting from an up-to-date
main:git fetch upstream git checkout -b my-change upstream/mainMake the change and keep it focused on one thing. Build and run it (
./build.shthen./run.sh) and confirm the app still launches and your change behaves as intended.Commit and push the branch to your fork:
git push -u origin my-changeOpen a pull request from that branch to
mainonscottsturrock/open-suite. After the push, GitHub shows a "Compare & pull request" button on your fork. Say what the change does and why.
A maintainer reviews the pull request, may ask for adjustments, and merges it.
The merged commit keeps you as its author, and you are credited in
CONTRIBUTORS.md.
Reporting a problem counts too: when an issue you opened leads to a fix, you are
credited in CONTRIBUTORS.md under issue reporters.
Keep each change self-contained. Match the style of the surrounding code: the same naming, comment density and idioms. Do not reformat unrelated code.
Building
./build.sh # compiles src/ and repacks dist/opensuite.jar
./run.sh # launches the app
./test.sh # compiles and runs the test suite
Tests live under tests/ rather than src/, so they are never packed into the
shipped jar. Any change with logic to it should come with test cases.
A passing run still prints some lines that begin with ERROR, most with a stack
trace, to standard error. They are not failures. They are the suite's own
Debug.error calls, printed by cases that deliberately make something go wrong
and check that it is dealt with: a corrupt setting, a project record holding a
class it may not, an extension that throws or hangs or saves a state a project
file cannot hold. A failure is a FAIL line and a non-zero exit code, and the
last line of the run counts them. An ERROR line that no case provokes on
purpose is worth a look.
Requirements: Java 25, the version tools/versions pins and CI tests. BouncyCastle and a
Brotli decoder are vendored under lib/; the ZAP scan engine and the Chromium
browser are fetched on demand by ./fetch-zap.sh and ./fetch-browser.sh. See
DEPENDENCIES.md for how
bundled tools are pinned and updated across releases, and run
./tools/check-updates.sh to see what has a newer version.
How the code is organised
The source lives under src/opensuite/:
core- shared services: the suite context, message store, scope, scan tasks, issues, HTTP primitives.engine- drives the bundled OWASP ZAP scan engine, run headless: starting it, running crawl-and-audit, mapping ZAP's findings into Open Suite issues and its traffic into the logger, and configuring ZAP's rules. All detection is ZAP's; Open Suite keeps none of its own.ui- the main window, menus, shared Swing helpers, HiDPI scaling, bootstrap.proxy- the intercepting proxy, the per-host certificate authority, and the embedded browser launcher.- one package per tool:
target,proxy,scanner,intruder,repeater,collaborator,sequencer,decoder,comparer,logger,dashboard.
CONTRACT.md is the full API reference for the tool contract, SuiteContext,
HttpMessage and the shared UI helpers.
Architecture at a glance
Open Suite is a shell that hosts independent tools around one shared context.
SuiteContextis the hub. It holds the state every tool reads and writes: the message store (all captured traffic), the target scope, settings, the issue list, scan tasks, and the collaborator. Tools talk through it, not to each other.- Each tool is a
ToolModulethat contributes a tab. The shell callsinit(ctx)once, thentabs()to build its UI; tools are listed inBootstrap.registerToolsin tab order. An extension loaded from a jar contributes its tab the same way after the window is built, throughToolHost. - Traffic flows one way. The proxy captures an exchange into
ctx.store(); the store notifies listeners; the site map, logger and dashboard update from it. - Scanning is delegated to the engine (
opensuite.engine), which crawls and audits and returns findings mapped intoctx's issue list. A small add-on of our own (engine-addon/) runs inside the engine for what its API does not offer, such as holding a paused scan's requests. Uiholds the shared Swing helpers and look and feel, so every tool matches.
To understand any tool, read its *Tool.java: that one file is the whole of it.
Add a tool in a few minutes
A tool is one class implementing opensuite.core.ToolModule, plus one line in
Bootstrap. This is a complete, working tool:
package opensuite.hello;
import opensuite.core.SuiteContext;
import opensuite.core.ToolModule;
import opensuite.ui.Ui;
import javax.swing.*;
public class HelloTool implements ToolModule {
@Override public String name() { return "hello"; } // the tab caption
@Override public void init(SuiteContext ctx) { } // grab shared state here
@Override public Tab[] tabs() {
JPanel p = new JPanel();
p.add(Ui.label("Hello from a new tool."));
return new Tab[]{ new Tab("hello", p) };
}
}
Register it in src/opensuite/ui/Bootstrap.java:
frame.register(new opensuite.hello.HelloTool());
Then ./build.sh && ./run.sh, and a "hello" tab appears. To receive requests
from other tools' "send to" menus, call ctx.registerSink("hello", ...) in
init; everything else shared (traffic, scope, issues) is on SuiteContext.
Load an extension from a jar
An extension is the same contract in a jar of its own, in a package outside
opensuite. Put the class in a jar and add the jar under
Extensions > Installed (Add). Its entry point is the one class that implements
opensuite.core.ToolModule and has a public constructor with no arguments; if
a jar has several, name the one to run in
META-INF/services/opensuite.core.ToolModule. Its tab joins the strip, its
menus join the menu bar, and a sink() it declares appears in the "send to"
menus. The same class as above, with public class HelloExtension in a
package of its own, is a complete extension.
An extension runs differently from a built-in tool in one way: none of its
methods is called on the event thread. It gets a thread of its own,
opensuite-ext-<name>, and every call into it, and every event the suite
raises for it, is made there, one at a time. So tabs() and menus() build
their components before anything is on screen, and anything that has to
happen on the event thread is the extension's to post there with
SwingUtilities.invokeLater. A listener it registers with the suite is never
called on the thread that raised the event: events wait in a queue of 256, and
a listener that runs for more than five seconds has the extension marked
unresponsive, with new events paused until it is removed or resumed.
Three more rules for an extension:
- A saved state (
saveState()) may hold only the JDK's value and collection types and the suite's own classes. One that holds a class of the extension's own is left out when the project is saved, and the extension's Errors say so. - Register what you need in
init, and remove it inshutdown(): everyadd...Listenerhas aremove...Listener, andregisterSinkhasunregisterSink. - The list of extensions is kept in
~/.opensuite/extensions.tsv, and they load again at startup when "Automatically reload extensions on startup" and the row's Auto-reload box are both ticked.
A library an extension needs can go in its jar, or in the folder under Settings > Extensions > Java environment, which is on every extension's class path. An extension's own copy of a library is used before the suite's.
Good first areas
- Anything on the roadmap. ROADMAP.md lists every feature that
is laid out in the interface but not built yet, each with a reference code such
as
OT-EXT-SCANCHECK; the Discover > Roadmap tab shows the same list in the app. Quote the code in your pull request title. When you implement one, remove its entry from the registry insrc/opensuite/ui/Unbuilt.javaand regenerate the file (see MAINTAINING.md). - Deeper ZAP engine integration. Surface more of the engine through the UI: the AJAX spider for single-page apps, active-rule and scan-policy configuration, and persisting rule settings across runs.
- Protocol support (WebSocket, HTTP/2).
- Payload libraries and processors for intruder.
- UI polish and accessibility.
House style
- Clear, self-documenting code over cleverness.
- Describe behaviour on its own terms in comments and docs.
- Do not use em dashes or en dashes anywhere in the project; use a plain hyphen.
- Keep the interface aligned and uniform. Labelled inputs line up through
Ui.form(...), filter strips throughUi.filterBar(...), and matching controls share one height. A screen where fields or rows do not line up is a bug to fix, not to ship.