feat(mailoney): support next JSONL format with malwaredir storage#17
Open
t3chn0m4g3 wants to merge 1 commit into
Open
feat(mailoney): support next JSONL format with malwaredir storage#17t3chn0m4g3 wants to merge 1 commit into
t3chn0m4g3 wants to merge 1 commit into
Conversation
Update Mailoney parsing for the new JSONL event schema, skip rate-limit events, preserve event fields as additional data, and attach stored .eml files/attachments only when send_malware is enabled. Also switch example configs to log/log.json and Mailoney's storage path via malwaredir, plus add focused unit coverage for the new behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@trixam @elivlo - Please review and test.
Summary
nextversion JSONL event formatcommands.logtolog/log.json[MAILONEY] malwaredirfor Mailoney stored.emlfiles and attachmentssend_malware = trueMailoney Reference
This targets the new Mailoney version currently available on the
nextbranch:https://github.com/t3chn0m4g3/mailoney/tree/next
That version replaces the old command-style log with flat JSONL events for
mail,auth,session, andrate_limit_block, and stores captured mail dataunder its configured storage directory.
Tests
python3 -m compileall honeypots/mailoney.py modules/ealert.pypython3 -m unittest discover -s tests