iglocska
9ea5ec8b1f
Revert "chg: Remove legacy stix converter."
...
This reverts commit 94ce4a367b
.
- breaks misp-stix converter, reverting it for now, let's find a way to deprecate this without outright removing it
2021-08-05 11:10:33 +02:00
Raphaël Vinot
3252361b3c
fix: Skip nameless sections in ELF
...
Related: #678
2021-03-16 17:56:06 +01:00
Raphaël Vinot
2734224958
chg: Raise exception on missing template in CSVLoader
...
Related: #714
2021-03-05 19:33:27 +01:00
Raphaël Vinot
94ce4a367b
chg: Remove legacy stix converter.
2021-03-01 15:10:56 +01:00
Raphaël Vinot
d0a050263e
fix: Do not add the serial-number twice.
...
Related: #678
2021-02-16 18:34:58 +01:00
Raphaël Vinot
4730452ce0
fix: Skip PE section if name is none AND size is 0.
...
Related: #678
2021-02-15 16:11:18 +01:00
Raphaël Vinot
78ead2f49e
chg: Disable correlation on malware-sample for FileObject
2021-02-01 12:17:28 +01:00
Raphaël Vinot
c41a2f1549
chg: Remove critical warning if lief is not installed
...
Fix https://github.com/MISP/MISP/issues/6908
2021-01-26 13:14:03 +01:00
Raphaël Vinot
c5c1d84bcf
fix: Better warning if lief is outdated.
2021-01-21 11:55:30 +01:00
Raphaël Vinot
76c4f92c17
chg: Use lief 0.11.0, generate authenticode entries
2021-01-19 15:44:58 +01:00
Raphaël Vinot
de6125a623
fix: Do not fail if extract_msg is missing
2021-01-11 14:57:22 +01:00
Raphaël Vinot
fa95c9d84f
fix: Properly decode the body depending on the encoding of the email
...
Fix #671
2021-01-11 14:15:34 +01:00
Raphaël Vinot
c50bbd5d1c
chg: Add controller argument to get_csv script
2021-01-11 11:49:12 +01:00
seamus tuohy
87c02da0d7
Updated emailobject.
...
Email object no longer requires extra php libraries for install.
Tests have been expanded to improve coverage.
RTF encapsulated HTML and Plain Text will now be de-encapsulated.
The raw MSG binary will now be included in the extracted email object.
2020-12-28 13:47:21 -05:00
nighttardis
2a4b215026
adding check if "from" is in the "received" header row
2020-11-30 18:45:53 -06:00
Raphaël Vinot
9046b08a3c
fix: Do not fail on PyMISP import when mail-parser is not present
2020-11-24 14:56:29 +01:00
Raphaël Vinot
71fe62b466
fix: Make mail-parser really optional
2020-11-24 12:18:35 +01:00
Raphaël Vinot
9fed66eb2b
chg: Make mail-parser an optional dependency
2020-11-24 11:17:23 +01:00
Raphaël Vinot
b55370cdad
chg: Improve error handling for Outlook emails
...
Related: #631
2020-11-19 11:38:35 +01:00
Jakub Onderka
9fd3d8a3e3
fix: [emailobject] Correctly parse multiple addresses
2020-10-24 17:24:18 +02:00
Jakub Onderka
055ef16e41
new: Test parsing just email header
2020-10-24 17:24:18 +02:00
Jakub Onderka
5e0ad0a47f
new: Test parsing outlook message format
2020-10-24 17:24:18 +02:00
Jakub Onderka
f598865ce4
new: Refactored emailobject generator
2020-10-24 17:24:17 +02:00
Jakub Onderka
d39d4caf7d
new: Export display name from email
2020-10-24 17:16:16 +02:00
Jakub Onderka
c2fedc3850
new: Parse date from email
2020-10-24 17:16:16 +02:00
garanews
cd785aab09
fix typo
...
fix typo
2020-10-01 13:45:29 +02:00
Raphaël Vinot
18474a2144
chg: Add comments to ELF, PE, and MachO object generators.
2020-09-15 12:39:59 +02:00
Raphaël Vinot
9c48079d88
new: Method to get the new version of the templates
2020-09-10 15:26:34 +02:00
Raphaël Vinot
e3815a41f1
fix: Make flake8 happy
2020-09-09 15:41:42 +02:00
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
deku
dd6922fd3a
Exclude section correlation .rsrc and zero-filled
2020-08-14 11:13:53 -04:00
Paal Braathen
ff62f1c19c
Linting/Add missing whitespace
2020-07-28 20:05:42 +02:00
louis
f8589061cb
chg: Remove standalone default value from MISPObject children c'tor
...
MISPObject.__init__ sets standalone=True by default, so there is no
need to do it in its child classes.
2020-06-30 12:40:08 +02:00
Troy Ross
17ebfe86ab
Previously file object was reporting the libmagic description of a file
...
instead of the mimetype. According to [MISP DataModels](https://www.misp-project.org/datamodels/#types )
```
mime-type: A media type (also MIME type and content type) is a two-part identifier for file formats and format contents transmitted on the Internet
```
more precisely defined in [RFC2045](https://tools.ietf.org/html/rfc2045 ) and others.
The description returned by libmagic is more useful than the generic mime-type,
but I did not find a place to put the description in the current data model.
2020-06-14 10:48:29 -06:00
Raphaël Vinot
5d97d7ee0c
new: Add helper and test case for GitVulnFinderObject
2020-05-26 15:37:24 +02:00
Raphaël Vinot
b214c7d4c1
chg: Add comment in microblog object
2020-05-12 22:34:25 +02:00
Raphaël Vinot
5df58406ef
fix: Catch exception when liblua-5.3 is not present
...
Related: https://github.com/MISP/misp-modules/issues/398
2020-05-12 13:21:05 +02:00
Raphaël Vinot
35257e538d
fix: Make flake8 happy
2020-05-12 11:34:38 +02:00
Raphaël Vinot
dcd1db8883
fix: make flake8 happy
2020-05-11 15:40:20 +02:00
VVX7
fff0caa330
chg: [dev] clean up how keys are accessed in self._parameters
2020-05-08 19:54:12 -04:00
VVX7
759e9196de
chg: [dev] use isinstance() type check.
2020-05-08 19:31:19 -04:00
VVX7
395d6aabac
chg: [dev] fix abstract generator import. add logger.
2020-05-08 19:27:42 -04:00
VVX7
de994fd944
chg: [dev] change type() == list
2020-05-08 16:32:29 -04:00
VVX7
0eb209c7df
new: [dev] add microblog object tool
2020-05-08 16:10:09 -04:00
DocArmoryTech
4ee4db16fe
Fixed __query_virustotal return type
...
__query_virustotal returned a Response object and not the json expected; modified so that report_json is returned instead of report.
2020-04-06 10:46:15 +01:00
Raphaël Vinot
11353f8ae2
fix: Make lief optional again
...
fix #538
2020-02-07 11:51:48 +01:00
Raphaël Vinot
4e586d0de5
chg: Bump deps, add pep8 test
2020-01-30 11:44:13 +01:00
Raphaël Vinot
b0e95fd5af
chg: Refactorize typing, validate
2020-01-23 10:27:40 +01:00
Raphaël Vinot
24a8f90ea8
new: Remove python < 3.6 support.
2019-12-18 14:45:14 +01:00
Raphaël Vinot
c03b26a18c
new: URLObject (requires pyfaup)
2019-12-04 15:18:27 +01:00