PyMISP/pymisp/tools
seamus tuohy 07137209e2 Attempt to decode utf-8-sig encoded emails.
eml files downloaded from Windows Online security on some Windows 11
systems are automatically encoded in UTF with a byte order mark (BOM)
at the front of the file. This will cause the email parser to fail.

This is a somewhat isolated problem. It only will affects a small
subset of Windows users who download and re-upload eml files. But,
this small subset of users is the target user-base for the MISP
email module: low expertiese users who wish to quickly share
high-value indicators on an ad-hoc basis.

While this fix could be tacked onto the MISP email module instead of
here, I beleive that this fix is more appropriate in the PyMISP object
code. As the "email" object parser this object should be built to
parse all manner of emails that it may encounter. This includes common
malformations such as this one and, even horrors such as, the .msg
format. This commit adds a generically named "attempt_decoding"
function which can be expanded to address all manner of sins that
are encountered in the future.
2020-09-09 07:45:07 -04:00
..
pdf_fonts@7ff222022e
__init__.py
abstractgenerator.py
asnobject.py
create_misp_object.py
csvloader.py
domainipobject.py
elfobject.py
emailobject.py Attempt to decode utf-8-sig encoded emails. 2020-09-09 07:45:07 -04:00
ext_lookups.py
fail2banobject.py
feed.py
fileobject.py
genericgenerator.py
geolocationobject.py
git_vuln_finder_object.py
load_warninglists.py
machoobject.py
microblogobject.py
neo4j.py
openioc.py
peobject.py
reportlab_generator.py
sbsignatureobject.py
sshauthkeyobject.py
stix.py
urlobject.py
vehicleobject.py
vtreportobject.py