Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malicious mail attached to 'carrier' mail is not correctly analyzed. #37

Open
begunrom opened this issue Nov 11, 2019 · 3 comments
Open

Comments

@begunrom
Copy link
Contributor

Hi I am testing mail2misp.
I am sending a mail with another mail as attachment.
The mail is successfully received in misp but the attached mail is seen as a file object.
I would like the attachment to be analyzed and sent to misp (and the carrier mail to be ignored).

Is this possible?

I originally tried with an msg attachment (Outlook), then I tried with an eml attachment that I converted from the msg.
I both used mail_to_misp.py and mail_to_mips_forward.py. The result was the same.

Am I doing something wrong?

@rommelfs
Copy link
Collaborator

Could you please try to forward the mail inline the other mail and not as an attachment?

Currently,

forward_identifiers = {'-------- Forwarded Message --------', 'Begin forwarded message:'}
defines the known separators for forwarded mails.

Please try this and see if the forwarding separator matches the ones defined. Just add a new one if your mail client does it differently.

@begunrom
Copy link
Contributor Author

I defined 'Carrier mail' as separator, but that does not make any difference.
Please find attached a sample of a "carrier mail" with 2 eml attachments that I seek to process.

Full email (1).zip

@begunrom
Copy link
Contributor Author

Created pull request
#38

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

No branches or pull requests

2 participants