Contributing to MISP Development
Start with a concrete use case and a small example that reviewers can share. Search the relevant project’s issues and pull requests before proposing a change. Use an issue to discuss the design when adding a core type or making a change that affects several components.
Choose the repository and base branch
Propose changes to attribute types, validation, the web interface, or the server API in MISP/MISP. Target develop for ordinary 2.x fixes and features. The stable 2.5 branch takes urgent hotfixes outside the release cycle. Target 3.0_wip for work specific to MISP 3.0. Confirm the target with maintainers if the change spans release lines. Upstream contribution workflow
Propose Python client changes and reusable examples in MISP/PyMISP. For an import, enrichment, export, or workflow module, follow the MISP Modules contribution guide. Object templates, taxonomies, galaxies, and warninglists have their own repositories. See Propose a shared definition.
Run your MISP checkout locally
For a core change targeting MISP 3.0, fork MISP on GitHub. Replace YOUR-ACCOUNT with your GitHub account and create a topic branch from the current upstream branch.
git clone https://github.com/YOUR-ACCOUNT/MISP.git
cd MISP
git remote add upstream https://github.com/MISP/MISP.git
git fetch upstream 3.0_wip
git switch --no-track -c feature/describe-the-change upstream/3.0_wip
git submodule update --init --recursive
git rev-parse HEAD
git submodule statusUse a fresh development database and synthetic events. Clone the MISP 3.0 Docker branch alongside your application checkout.
cd ..
git clone --branch misp-3.0_wip https://github.com/MISP/misp-docker.git
cd misp-docker
cp template.env .envKeep CORE_TAG=3.0_wip in .env. Set CORE_COMMIT to the upstream commit printed by git rev-parse HEAD above to build the same revision as your starting checkout. Configure the local URL and credentials as described in Quick Start. The misp-core image contains its own source tree. Use the upstream guide’s Compose override to bind-mount the directories you are changing so that the running stack uses your edits. Docker development guide
Build the MISP 3.0 images locally and start the stack. The published default images are for 2.5. MISP 3.0 Early Access
docker compose build
docker compose up -d
docker compose psFrom misp-docker/, verify that the file you are editing is the file the container reads. Repeat the comparison after an edit so matching checkout and image versions cannot mask a missing mount.
docker compose exec -T misp-core cat /var/www/MISP/app/Model/MispAttribute.php \
| cmp ../MISP/app/Model/MispAttribute.php -Reproduce the behavior through the UI or API before editing and repeat the same steps after editing. For request errors, inspect the application log from misp-docker/.
docker compose exec -T misp-core tail -n 50 /var/www/MISP/app/tmp/logs/error.logFor startup errors, use docker compose logs --tail=50 misp-core. The upstream guide also covers DEBUG=1 and Xdebug for a local stack. Keep debug output and test credentials private. Debugging a Docker checkout
Propose a new core attribute type
Check the current category and type reference and the installed GET /attributes/describeTypes response. If the observation groups fields for one entity, check the object template catalogue for an existing representation. For a new core type, describe the observation, why the existing types fall short, and how analysts expect to search, correlate, or export it. Include valid and invalid sample values, expected normalization, allowed categories, and the default category and IDS flag (to_ids).
In MISP 3.0, start with generateTypeDefinitions() and generateCategoryDefinitions() in app/Model/MispAttribute.php. Follow value normalization and validation into app/Lib/Tools/AttributeValidationTool.php and add focused test cases for any new rules. Core model · Validation tests
On the development instance, verify the Add Attribute form, expected defaults in GET /attributes/describeTypes, and the stored value returned after a REST save. Exercise a rejected value or category as well. Check compatibility with the PyMISP clients, sync peers, and exporters that are expected to consume the type, and describe any limits in the PR.
Discuss companion updates with maintainers, including the core describeTypes.json snapshot, the client’s bundled metadata, and the book. For a book reference update, follow the data-model regeneration instructions. Core metadata generation · PyMISP bundled metadata
Propose a shared definition
Search the repository for an existing entry to extend. Explain what the definition represents, who can reuse it, and where the data came from. Include sources and redistribution terms when the contribution uses external data.
- Object template. Define the fields for one entity in
objects/<name>/definition.json. Use existing attribute types, document required relations and multiplicity, and validate a minimal object and one with optional fields. Load the template into a test instance and inspect the saved JSON. Author a template · MISP/misp-objects - Taxonomy. Define a tagging vocabulary in
<namespace>/machinetag.json. Explain the meaning of the predicates and values. Import it on the test instance and verify that the intended machine tags can be enabled and applied. Taxonomy authoring · MISP/misp-taxonomies - Galaxy. Add a cluster to the appropriate
clusters/<type>.json, or add the matching galaxy and cluster collection when introducing a new galaxy type. Provide stable UUIDs, sources or aliases where relevant, and valid relationship targets. Check that MISP imports the definitions and that the resulting cluster can be attached. Galaxy authoring · MISP/misp-galaxy - Warninglist. Explain the potential false positive the list helps analysts recognize and how entries will stay current. Define the match mode and applicable attribute types in
lists/<name>/list.json. Test a value that should match and one that should miss. For externally maintained data, include how the list is obtained or regenerated. Warninglist management · MISP/misp-warninglists
Follow the target repository’s schema and validation workflow. For updates, preserve stable identifiers and follow the repository’s versioning rules. In the PR, record which validation you ran and what happened when you imported the definition into MISP.
Propose a tool using PyMISP
State who needs the tool, what it consumes, what it produces, and whether it writes to MISP. For example, a read-only tool could take an event UUID and summarize the visible attributes by type. Provide a small synthetic input and its expected output so reviewers can try it.
Use the PyMISP examples as a starting point. Propose a reusable example or client library change in PyMISP. For a standalone integration, share its repository and usage instructions when asking for feedback. Document dependencies and supported MISP and PyMISP versions. Accept the instance URL and API key through local configuration and describe the permissions needed for the operation.
For a read-only tool, test a visible fixture and the missing or inaccessible case with the intended user role. For a tool that writes records, use a disposable instance and exercise a repeated run to check for duplicates or other unintended changes. To change PyMISP itself, use its development environment and test commands. PyMISP development setup and tests
Open the pull request and update the guide
Commit the focused change, push the topic branch to your fork, and choose the correct upstream repository and base branch when opening the pull request. Link the issue and include the use case, expected behavior, tested versions or commits, checks you ran, and relevant compatibility limits. Use the Developer FAQ’s testing guidance to select checks for core changes.
When users need new instructions or examples, open a related PR against main in MISP/misp-book and link it to the implementation PR. Follow How to Contribute to edit the .qmd files and render the book.
@misc{themispprojectcontributors2026contributing,
author = {{The MISP Project \& Contributors}},
title = {Contributing to MISP Development},
year = {2026},
month = {nov},
howpublished = {\url{https://www.circl.lu/doc/misp/contributing-development/index.html}},
url = {https://www.circl.lu/doc/misp/contributing-development/index.html},
urldate = {2026-11-29},
note = {In: MISP User Guide. Accessed: Nov. 29, 2026}
}@misc{themispprojectcontributors2026misp,
author = {{The MISP Project \& Contributors}},
title = {MISP User Guide},
year = {2026},
month = {nov},
isbn = {978-99987-458-0-3},
howpublished = {\url{https://www.circl.lu/doc/misp/}},
url = {https://www.circl.lu/doc/misp/},
urldate = {2026-11-29},
note = {Accessed: Nov. 29, 2026}
}