Skip to content

Add binGraph expansion module for attachments and malware samples - #1011

Merged
adulau merged 1 commit into
mainfrom
codex/bingraph-expansion
Oct 26, 2026
Merged

adulau merged 1 commit into
mainfrom
codex/bingraph-expansion

Conversation

@adulau

@adulau adulau commented Oct 26, 2026

Copy link
Copy Markdown
Member

Add local binary visualizations for attachment and malware-sample attributes, inspired by geekscrapy/binGraph. Enrichment returns an entropy plot and byte histogram as a PNG in the existing MISP image object, with a visualizes reference to the source attribute. No new object template is required.

  • Support combined, entropy-only and histogram-only images, with SHA-256, overall entropy and plotting parameters recorded in the image metadata.
  • Read legacy and current MISP ZIP layouts with password infected, verify the unpacked MD5, and enforce input and decompression limits. Samples are processed in memory without execution or extraction to disk.
  • Preserve the source attribute and mark generated attributes to_ids=false with correlation disabled. Use the headless Agg canvas and serialize rendering across concurrent requests.
  • Add installation and configuration documentation, attribution, and tests using benign fixtures, including a real encrypted MISP archive.

Validation: python -m pytest -q tests/test_bingraph.py — 40 passed. Black, isort, flake8 and git diff --check pass. The published tree matches the validated local tree.

This implementation treats inputs as binary blobs and does not include PE/ELF section or entry-point annotations. It reports entropy in bits per byte (0–8) and uses a minimum 256-byte window. Live MISP UI integration remains untested; PyMISP image-object import and source references are covered by the tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T09:27:25.291205Z 3811857 PR opened
🔒 Security Review ✅ Completed 2026-10-26T09:27:44.759102Z 3811857 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit a51a4d8 into main Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant