Raphaël Vinot
f64f42ac71
Simplfy MISPEvent.add_attribute
2017-07-12 11:08:58 +02:00
Hannah Ward
64f1edd5b4
fix: If array passed to add_attrib, add each individually
2017-06-16 12:25:27 +01:00
Alexandre Dulaunoy
b73435949f
Typo fixed
...
Paris is not the center of the world as the idiot of the World village
would said.
2017-06-02 09:12:00 +02:00
Raphaël Vinot
bcb3b8cdfb
Update validation
...
* Allow strict validation
* Add workaround to avoid all JSON dumps from MISP <=2.4.70 to fail
2017-04-09 00:02:02 +02:00
Nick Driver
d9bef7d65e
extended the Windows fix to lines 168 and 471
2017-03-15 09:03:02 -04:00
Nick Driver
4aa0df9d1f
publish_timestamp Windows 7 Fix
...
On Windows 7 datetime.datetime.fromtimestamp(int(0)) returns a date before 1970, which causes the script to crash. This fixes the bug.
2017-03-14 11:07:31 -04:00
Raphaël Vinot
a7e66ca5db
Allow to pass None to to_ids, default to sane default
2017-03-14 15:58:54 +01:00
Raphaël Vinot
c875fde6ea
Merge branch 'master' of github.com:MISP/PyMISP
2017-03-12 23:05:25 +01:00
Raphaël Vinot
638ad3d4b7
Update types, allow 0 as attribute value
2017-03-12 23:05:13 +01:00
Hannah Ward
b3376183c0
fix: Entrypt isn't a word!
...
fixes #59
2017-03-09 16:36:30 +00:00
Raphaël Vinot
8175a0ecf0
Security fix: do not try to load any valid path as a MISP Event.
...
The MISP Event loader was trying to open any string passed as parameter
if is an existing filepath. Anything that isn't a valid MISP event would
raise an exception, but I can see it used for malicous purposes.
load_file is will do the same, but the user can decide if it is safe to
use.
2017-02-27 11:28:12 +01:00
Richard van den Berg
ef69016e4a
Allow 'Your organisation only' distribution for attributes
2017-02-21 11:07:57 +01:00
Raphaël Vinot
6b5f347423
Merge branch 'master' of github.com:MISP/PyMISP
2017-02-07 14:03:22 +01:00
Raphaël Vinot
b66e1258a7
Fix error message
2017-02-07 14:03:10 +01:00
Hannah Ward
98a008e67a
fix: Don't auto-publish events
2017-02-06 11:06:37 +00:00
Raphaël Vinot
2b9663cdf4
Bug fixes
...
* Improve version checking
* Fix attribute update
2017-01-27 11:58:00 +01:00
Raphaël Vinot
48e1211ed8
Allow to add a tag to a MISPEvent and MISPAttribute
2017-01-26 14:36:01 +01:00
Raphaël Vinot
b26c021b0e
Fix typo
2017-01-19 19:07:24 -05:00
Raphaël Vinot
2bcc4163ad
Add support for attribute level tagging
2017-01-17 18:20:24 -05:00
Raphaël Vinot
351ad53c97
Merge branch 'master' of git://github.com/cgi1/PyMISP into cgi1-master
2017-01-16 14:43:07 -05:00
Raphaël Vinot
748136f3f1
Allow to update an event by UUID, syntax fixes.
2017-01-16 14:41:32 -05:00
Hannah Ward
78cef06963
new: Added ability to disable correlation on attributes
2017-01-16 09:52:35 +00:00
cgi
60c02cb5e9
+ separate function change_sharing_group using update_event
2017-01-09 16:19:20 +01:00
Raphaël Vinot
b2752bd8d5
Load RelatedEvent as MISPEvent.
...
Fix #76
2017-01-06 16:24:39 -05:00
Raphaël Vinot
585ca9cd08
Allow to mark an attribute as deleted in a MISPEvent
...
Related to #33
2017-01-02 16:53:23 +01:00
Raphaël Vinot
d4489d9c34
Fix sharing group distribution level.
...
Fix https://github.com/MISP/MISP/issues/1761
2016-12-14 15:17:33 +01:00
Raphaël Vinot
0f2206a700
Add basic support for Galaxy
2016-12-09 17:35:50 +01:00
Raphaël Vinot
81faa507f4
Add support for data field (malware-sample)
2016-12-07 19:27:12 +01:00
Raphaël Vinot
f96c1b5748
Reorganize json dumps
2016-12-03 18:37:13 +01:00
Raphaël Vinot
d75d02b5eb
Fix merge conflict, make pep8 happy.
2016-12-03 17:29:41 +01:00
morallo
c40eaf935f
Fixed synthax error
2016-12-02 17:51:43 +01:00
morallo
a6a851f38d
Solved warnings in tests when run under Python3
2016-12-02 16:53:45 +01:00
Nicolas Bareil
e44e33fe90
capitalizeformat() does not exist on Python2 and fix category variables
2016-12-01 10:48:33 +01:00
Raphaël Vinot
f62cf9f3d9
More granularity in the verification
2016-11-21 10:44:03 +01:00
Raphaël Vinot
d2e4e73abb
Allow to pass a passphrase as parameter for signing.
2016-11-18 18:01:57 +01:00
Raphaël Vinot
b8a391d263
Avoid error if pyme3 isn't installed
2016-11-17 17:30:23 +01:00
Raphaël Vinot
419897aba0
Bump recommended python3 version
2016-11-17 17:29:54 +01:00
Raphaël Vinot
35a4dd52bc
Add signing support for MISP events
2016-11-17 17:07:29 +01:00
Raphaël Vinot
6c5289d495
Initial version of the OpenIOC loader
2016-10-29 15:27:48 -04:00
Raphaël Vinot
81e3ce37af
Fix forgotten import
2016-10-27 17:04:23 -04:00
Raphaël Vinot
d48f248176
Fix Python2 - Python3 support
2016-10-27 15:58:58 -04:00
Raphaël Vinot
0a63285efb
Fix Python2 support
2016-10-19 19:00:09 +02:00
Raphaël Vinot
49433cdc3a
Print a warning in case python2 is used.
2016-10-19 18:52:49 +02:00
Déborah Servili
9cc55341f0
fix date formatting in mispevent.py + some PEP8 cleaning
2016-10-12 15:40:49 +02:00
Raphaël Vinot
ed2be78f4e
Avoid validation issue if attribute_count is none
2016-10-11 17:45:38 +02:00
Raphaël Vinot
8817674dd0
Do not dump an empty list of attrbutes.
2016-10-10 12:23:03 +02:00
Raphaël Vinot
5ee23d46c0
Make sure all integers are string in the dumped json
2016-09-30 16:06:41 +02:00
Raphaël Vinot
dcd76ec5c4
Fix python 2.7 support, add missing test file
2016-09-28 18:50:05 +02:00
Raphaël Vinot
6482a21834
More cleanup
2016-09-28 18:20:37 +02:00
Raphaël Vinot
e035922949
Getting closed to a full support of a misp event as a Python Object
2016-09-27 19:47:22 +02:00
Raphaël Vinot
cf257493f7
First batch of changes, will be squashed
2016-09-26 00:26:09 +02:00