Skip to content

new: add DMARC aggregate report import module - #1053

Merged
adulau merged 2 commits into
mainfrom
feat/dmarc-import-508
Oct 28, 2026
Merged

adulau merged 2 commits into
mainfrom
feat/dmarc-import-508

Conversation

@adulau

@adulau adulau commented Oct 28, 2026

Copy link
Copy Markdown
Member

Adds a DMARC aggregate-report importer for #508. Analysts can upload XML, gzip, or a ZIP containing one XML report, or paste XML, without an API key or network lookups.

The importer creates a report annotation containing the metadata, published policy and original XML, linked to one domain-ip object per aggregate record. Records retain source IPv4/IPv6 addresses, identifier and authentication domains, reporting intervals, message counts, dispositions, SPF/DKIM results and override reasons. Repeated signatures remain grouped with their selectors and results. Every imported attribute has to_ids disabled.

Input and decompressed XML are limited to 20 MiB, 10,000 records and 32 XML nesting levels. Invalid records reject the entire import. DTDs/entities, encrypted or multi-file ZIPs, nested archives and forensic/failure reports (RUF/ARF) are unsupported. Module metadata and generated documentation describe the supported formats and limits. No new runtime dependencies or object templates are required.

Validation:

  • 59 DMARC tests, covering compression, namespaces/encodings, repeated signatures, object references, MISP object validation, invalid uploads and resource limits.
  • 197 selected import regression tests passed.
  • Live /modules discovery and /query checks for XML, gzip and invalid uploads passed.
  • Package wheel built and verified to include the importer; MkDocs build passed.
  • Black, isort and source flake8 checks passed.

Closes #508.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T21:19:37.387939Z 904c2b5 PR opened
🔒 Security Review ✅ Completed 2026-10-28T21:23:39.368858Z 904c2b5 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 904c2b5dae

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread misp_modules/modules/import_mod/dmarc_import.py Outdated
@adulau
adulau merged commit 11642af into main Oct 28, 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.

DMARC import

1 participant