Contributing
How to contribute to Synthaea: the public repositories, getting set up, cross-repository changes, sign-off, licensing and what CI enforces.
Last updated
Synthaea is developed in the open, across six public repositories. Code, comments, docs and commits are all in English. Much of the system above the Linux agent is still design-phase, which means the foundations are still cheap to argue about: a well-argued objection to a design document is one of the most valuable contributions you can make.
The repositories
| Repository | Change it for |
|---|---|
| agent | The endpoint: sensors, engines, transport, packaging, the eBPF probes |
| server | The control plane |
| ml | Training, datasets, evaluation, the model registry |
| rules | Detection content: Sigma, YARA, IOC feeds |
| scenarios | Benign attack scenarios and the detections each one must trigger |
| rig | The testing rig: machine catalog, VM harness, in-guest builds, the scenario runner and its reports |
Issues are filed in the repository of the component they concern; when in doubt, use agent. Security reports never go to any tracker: see Security.
Getting set up
Clone the repositories you work on side by side in one directory, under their own
names, which are the names the contract tests look for (agent, server, ml,
rules, scenarios):
mkdir synthaea && cd synthaea
git clone https://github.com/synthaea-lab/agent
git clone https://github.com/synthaea-lab/server
git clone https://github.com/synthaea-lab/ml
git clone https://github.com/synthaea-lab/rules
git clone https://github.com/synthaea-lab/scenarios
cd agent && cargo test
A contract test whose other half lives in a sibling that is not checked out prints one
skipped line instead of failing, so any repository builds and tests alone; set
SYNTHAEA_ROOT if the siblings live elsewhere. You need git for everything, Rust (the
toolchain is pinned) for the agent and rules, Node 20 for the server, Python 3.10+ with
uv or pip for the ML pipeline, and Docker for the local stacks.
Validate on a real kernel
The rig boots a VM from its machine catalog
(machines.json), builds the agent inside it, runs the attack scenarios against it and
writes a report of what each scenario expects versus what fired. Clone it next to the
checkouts it builds and runs:
mkdir synthaea && cd synthaea
for r in agent rules scenarios rig; do git clone https://github.com/synthaea-lab/$r; done
python3 rig/rig.py up debian12
python3 rig/rig.py build debian12 --ort-compat
python3 rig/rig.py run debian12
python3 rig/rig.py report debian12
python3 rig/rig.py down debian12
On Linux the rig uses libvirt, on Windows Hyper-V (from an elevated shell), and on Apple
Silicon QEMU, which runs arm64 guests only (use ubuntu2404 there, which needs no
--ort-compat). Debian 12 needs --ort-compat because its C/C++ runtime is too old for
the prebuilt ONNX Runtime. build --offline keeps the guest off the network on slow
links. The rig's README covers the prerequisites, every machine and how to read a
report: PASS, UNEXPECTED (extra alerts), FAIL, ERROR or SKIP.
A change in one repository
Work on a branch and open the pull request in that repository:
cd agent
git switch main && git pull
git switch -c fix/1234-short-name
# edit, then commit with a sign-off
git commit -s -m "fix: describe the behavior, not the diff"
git push -u origin fix/1234-short-name
The component's CI tests your pull request against its siblings' main branches.
A change across repositories
Repositories meet only through contract tests: golden fixtures and shipped content one repository reads from another. A change to such a contract lands as one pull request in the producer, one in the consumer; maintainers then pin the two commits together and run every contract suite on exactly that pair.
Sign-off and licensing
There is no CLA and no rights assignment: you keep your copyright. Every commit carries a
Developer Certificate of Origin sign-off
(git commit -s), with your real name. Contributions are accepted under Apache-2.0,
except contributions to the Linux eBPF probes, which must be GPL-2.0 for the kernel to
accept them.
What CI enforces
- Formatting, the agent's dependency-direction rules, license and advisory checks,
clippy -D warningsand the test suites on Linux, Windows and macOS. - Golden fixtures for the event schema and parity tests for the ML features shared between Rust and Python.
- Content suites: every rule must compile and fire on a crafted sample.
- A packaged build must never contain the public test signing key.
Ground rules
- No offensive tooling. Adversary-emulation content that tests our own detections is welcome; tools that mutate third-party binaries to evade other products, or evasion capability whose only use is against defenders, are not.
- Vulnerabilities are never public issues. Anything that blinds, crashes, bypasses or subverts the agent goes through the private channel in Security.
- Challenging a decision means opening an issue that engages with the ADR's recorded context and consequences, and what your alternative would cost.
- Commits follow Conventional Commits, and pull requests explain why.