Contributing to Aperi'Solve
August 15, 2026 Β· View on GitHub
Thank you for your interest in contributing! We welcome all contributions, whether it's bug fixes, new features, or documentation improvements.
Getting Started
Tip
New to the project? Adding a new analyzer is a great first contribution! Check out our Adding a New Analyzer Guide.
Quick Steps
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test your changes
- Commit with clear messages (
git commit -m 'Add amazing feature') - Push to your fork (
git push origin feature/amazing-feature) - Open a Pull Request describing your changes
What Can You Contribute?
π§ Adding New Analyzers
Want to add support for a new steganography or forensics tool? We'd love that!
Note
Check out our detailed tutorial: Adding a New Analyzer
Quick checklist for new analyzers:
- Create analyzer file in
analyzers/extendingSubprocessAnalyzer(setname,display_orderand flags β registration is automatic) - Add tool to Docker setup if needed
- Add the analyzer name to the expected list in
tests/test_registry.py - Test with sample images
- Update documentation
π Bug Fixes
Found a bug? Please:
- Check if it's already reported in Issues
- If not, open a new issue with reproduction steps
- Feel free to submit a PR with the fix!
π Documentation
Help us improve:
- Fix typos or unclear explanations
- Add examples and use cases
- Improve installation instructions
- Translate documentation
π Wiki Pages
The in-app wiki (/wiki/) is plain Markdown β the easiest way to contribute:
-
Pages live in
aperisolve/wiki_content/en/. Drop a.mdfile and it appears automatically with navigation, SEO metadata and the sitemap entry. The sidebar sections are folder-driven: top-level files (e.g.getting-started.md) go under "Wiki", files undertechniques/go under "Techniques", andtools/<analyzer>.mdgo under "Tools". To add a new sidebar section, create a new top-level folder and add its label toSECTION_ORDER/_section_labelinaperisolve/wiki.py. -
Start each file with
metafrontmatter (no---delimiters):Title: My Page Title Description: One-sentence summary used for search engines. Order: 150 -
Ordercontrols the position within a sidebar section (tools use 100β260). -
Use fenced code blocks for commands; a copy button is added automatically. Callout boxes are available via python-markdown admonitions (
!!! tip "β¦",!!! warning "β¦"). -
Preview locally with
FLASK_DEBUG=1(page cache is bypassed). -
The wiki is organized like HackTricks: a
methodologytriage page and the standalone cheatsheet decision tree feed into per-mediumtechniques/pages, which cross-link to the per-analyzertools/pages. Improvements and corrections are welcome, as are translations (the non-English wiki is currently English-only and falls back automatically).
πΊοΈ Cheatsheet & decision-tree map
The cheatsheet is not a wiki page β it is a standalone page served by
aperisolve/cheatsheet.py:
-
/cheatsheetrendersaperisolve/cheatsheet_content/en/cheatsheet.md(same Markdown pipeline as the wiki, English fallback). The per-medium command checklists it links to still live in the wiki underwiki_content/*/cheatsheet/. -
/cheatsheet/mapis a near-fullscreen interactive decision tree: hover a step for the command and a link to its tool, and download the whole tree as PNG or PDF. -
The map's SVG, its tooltip data (
decision-tree.json) and the editable Excalidraw scene are all generated from one model. Edit theBRANCHESlist inscripts/gen_decision_tree.py, then regenerate:$ python scripts/gen_decision_tree.pyCommit the regenerated
aperisolve/static/img/cheatsheet/decision-tree.*artifacts alongside the script change.
π Translations
The UI ships in English, French, Spanish, German, Russian, Chinese and Portuguese. Machine-translated drafts are welcome; native review even more so.
-
UI strings live in gettext catalogs at
aperisolve/translations/<lang>/LC_MESSAGES/messages.po. After changing translatable strings in templates/Python, refresh and recompile:$ pybabel extract -F babel.cfg -o messages.pot . $ pybabel update --ignore-obsolete -i messages.pot -d aperisolve/translations $ pybabel compile -d aperisolve/translationsCommit both the
.poand compiled.mofiles (the dev compose mounts the source tree directly, so the runtime needs the committed.mo). -
Wiki pages are translated by mirroring the English file:
aperisolve/wiki_content/fr/techniques/images.mdtranslatesaperisolve/wiki_content/en/techniques/images.md(the standalone cheatsheet mirrors the same way undercheatsheet_content/<lang>/). Untranslated pages automatically fall back to English with a banner, canonicalize to the English URL and stay out of the sitemap β so partial translations are fine. The wiki content is currently English-only (the previous translations were retired when the wiki was restructured), so translating any page underwiki_content/en/into another language is a high-impact contribution. Mirror the English path exactly under the target language. -
Adding a new language: add its code to
PREFIX_LANGSinaperisolve/i18n.py, runpybabel init -i messages.pot -d aperisolve/translations -l <lang>, and translate.
π¨ UI/UX Improvements
Contributions to the web interface are welcome:
- Better error messages
- Improved result presentation
- Mobile responsiveness
- Accessibility improvements. One rule worth knowing up front: don't put an
aria-labelon a control that already has visible text β the label replaces that text as the accessible name, so voice-control users who say what they see stop matching the control (WCAG 2.5.3, Label in Name). If a control genuinely needs extra context, the label must contain the visible text in every language, not just English. Icon-only controls have no visible text, so they still need a label.
Code Style & Quality
Important
Follow the projectβs code style and run linters before submitting any code.
This project enforces:
- Ruff : Check + Format (line length 100)
- ty : Type checking
Tip
All tool configurations (Ruff, ty) are centralized in pyproject.toml. You can run each tool directly and it will automatically pick up the configuration.
Setup
Tip
Use a virtual environment and install development dependencies:
# Create & activate a virtual environment
uv venv
# Install project + development dependencies from pyproject.toml
uv sync --extra dev
Running Tools Manually
Option 1 - Bash script (no pre-commit file needed)
Run this script lint.sh at the project root folder.
π§Ή Running Ruff lint checks...
π¨ Running Ruff format checks...
π Running ty type checks...
π§ͺ Running pytest...
β
All checks passed!
Equivalent manual commands:
ruff check .
ruff format . --check
ty check aperisolve
pytest -q
Tests
-
pytest -qruns the unit tests (analyzer registry, cache headers, i18n, rate limits, and a couple of in-process analyzers). No services required. -
tests/test_webapp_analyzers.pydrives every analyzer end-to-end through the real HTTP path (upload β RQ worker runs the tool β poll β results). It needs the stack running and is skipped automatically when no server is reachable, so it does not block the standardpytestrun:docker compose -f compose.dev.yml up -d pytest tests/test_webapp_analyzers.py -v # or point APERISOLVE_BASE_URL elsewhereEach password/extraction tool has a fixture in
tests/fixtures/that actually contains hidden data (generated with the tool and round-trip verified), so a healthy analyzer returnsok. When you add an analyzer, add a case toCASESthere βtest_all_analyzers_are_coveredfails if a registered analyzer has no web-app test.
Option 2 - Pre-Commit hook
Create a pre-commit hooks file .pre-commit-config.yaml at the project root folder.
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-check
- repo: local
hooks:
- id: ty-check
name: ty-check
entry: ty check
types: [python]
language: system
pass_filenames: true
Then run the following command so each staged files will be checked while commited.
pre-commit install
You can also do a manual pass on all files before commiting:
pre-commit run --all-files
Note
Continuous Integration (CI) runs all checks on every PR. Ensure your code passes before submitting.
Pull Request Guidelines
Use clear, descriptive titles:
- β
Add stegdetect analyzer - β
Fix binwalk extraction error handling - β
Update documentation for password-protected tools - β
Update code - β
Fix bug
Commit Messages
Write clear, concise commit messages:
# Good
git commit -m "Add zsteg analyzer for PNG steganography detection"
git commit -m "Fix foremost error detection when no files extracted"
# Not so good
git commit -m "updates"
git commit -m "fix"
Adding New Dependencies
Caution
Adding new dependencies requires careful consideration.
If your contribution needs new dependencies:
- Python packages: Add to
pyproject.toml([project.dependencies]or[project.optional-dependencies.dev]) - System tools: Add to
Dockerfile - Explain why in your PR description
- Keep dependencies minimal - avoid adding large libraries for small features
Useful commands
# development environment (hot reload and local volumes)
docker compose -f compose.dev.yml up --build
# Stop and remove containers and networks (keeps volumes: database and results)
docker compose down
# DANGER: also remove volumes (wipes the database and all stored results)
# docker compose down -v
# Enter web container shell
docker exec -it aperisolve-web bash
# Enter Postgres shell (from host)
docker exec -it postgres psql -U aperiuser -d aperisolve
# Backup all uploaded files
docker cp -r aperisolve-web:/app/aperisolve/results /path/to/backup/location
# Backup a single uploaded file
docker cp aperisolve-web:/app/aperisolve/results/filename.ext /path/to/backup/filename.ext
Warning
If switching between dev and production compose files, remove the results directory or mounted volume to avoid conflicts:
rm -rf aperisolve/results
Docker and Tool Installation
When adding a new analyzer that requires a new tool:
# In Dockerfile
RUN apt-get update && apt-get install -y \
your-new-tool \
&& rm -rf /var/lib/apt/lists/*
Or for tools requiring compilation:
# Builder stage example (jphide)
RUN git clone https://github.com/h3xx/jphs.git /tmp/jphs && \
cd /tmp/jphs && \
make && \
cp jphide jpseek /usr/local/bin/ && \
rm -rf /tmp/jphs
# Runtime stage - copy compiled binaries
COPY --from=builder /usr/local/bin/jphide /usr/local/bin/jphide
COPY --from=builder /usr/local/bin/jpseek /usr/local/bin/jpseek
Note
Test the Docker build locally before submitting!
Code Review Process
- Automated checks run first (linters, tests)
- Maintainer review - we'll provide feedback
- Address feedback - update your PR as needed
- Approval & merge - once everything looks good!
Tip
Don't worry if you need to make changes - it's a normal part of the process!
Need Help?
- π¬ Questions? Open a Discussion
- π Found a bug? Open an Issue
- π‘ Ideas? We'd love to hear them in Discussions!
Recognition
Note
All contributors will be recognized in our Contributors page and in release notes!
Thank you for contributing! π
Your efforts help make this tool better for the entire security and CTF community!