Christian Studer
614d2e0ca1
fix: [AnalystData] Added missing properties for Notes and Opinions
...
- This is now needed because MISPNote and MISPOpinion
are no longer part of AnalystDataBehaviorMixin and
cannot then get them from there
2024-12-24 09:55:07 +01:00
Christian Studer
ea8fd62c41
fix: [api] Notes, Opinions and Relationships are no longer AnalystDataBehaviorMixin
2024-12-22 14:08:05 +01:00
Raphaël Vinot
94d9b1c299
chg: Update objects templates
2024-12-20 16:10:28 +01:00
Christian Studer
e38dfe33b0
Merge branch 'main' of github.com:misp/pymisp into analyst_data_fix
2024-12-18 10:40:07 +01:00
Raphaël Vinot
5e131ad7a3
chg: Bump deps
2024-12-16 12:26:29 +01:00
Raphaël Vinot
6c3e91cbc0
new: create a sign_blob method to sign events
2024-12-16 12:22:38 +01:00
iglocska
671c9fabf5
new: [support for signing] added
...
- added new class CryptographicKeys
- added functions to to_feed calls to include crypto keys
- added protected boolean field to misp event
- updated feed generator to support signing
- if the new setting is set to True signing will be attempted for protected events
- protected events are now passed to the /cryptographic_keys/serverSign endpoint of misp for signing
- signatures are included as a .asc file in the output directory
- TODO:
- currently the JSON dumping is moved from a streamed dumping to an in memory dump before saving to disk
- add a check for protected events and revert to streamed dumping for non protected events
- alternatively use the already saved files to request signing from MISP
2024-12-08 18:48:07 +01:00
Christian Studer
90b8f5883a
fix: [MISPAnalystData] Added missing typing
2024-11-20 13:36:19 +01:00
Christian Studer
6ca367dc25
fix: [MISPAnalystData] Reverted the declaration of Analyst data objects lists back to the mixin parent class
2024-11-20 13:21:35 +01:00
Christian Studer
ea6ff20103
fix: [MISPAnalystData] Better handling of the different use cases
...
- Additional checks for parent to support both
the standalone and attached analyst data objects
- Standalone Analyst data objects with nested
notes or opinions are defined with the nesting
as they have no parent. When they are added to
a parent data layer, the nested objects are then
flattened
2024-11-20 11:47:41 +01:00
Christian Studer
df39554208
chg: [AnalystData] Flattening analyst data based on the recent changes on MISP standard format
...
- Adding a note or an opinion will always add the
new analyst data object to the list of notes or
opinions at the parent data layer level
- `from_dict` on a JSON blob is also able to parse
properly analyst data and generate flat lists
regardless of whether the given data described
in the new flat or previously nested format
2024-11-19 13:49:53 +01:00
Christian Studer
e6a961afb2
Merge branch 'main' of github.com:chrisr3d/PyMISP into analyst_data_fix
2024-11-16 12:32:48 +01:00
Raphaël Vinot
0d88a9d909
fix: Avoid exception on dev releases
2024-11-15 12:37:24 +01:00
Raphaël Vinot
c71b52b7a6
chg: Bump version, deps, templates.
2024-11-13 23:43:11 +01:00
Raphaël Vinot
5d5f706dc6
chg: Bump templates
2024-11-11 12:32:39 +01:00
Raphaël Vinot
0462ab62c0
chg: remove fonts from submodules, on-demand download if needed
2024-11-11 12:32:39 +01:00
Christian Studer
8e288a4323
fix: [AnalystData] Typo...
2024-10-30 17:00:22 +01:00
Christian Studer
1dce13d61b
fix: [AnalystData] Avoiding issues with analyst data objects
2024-10-30 15:10:53 +01:00
Christian Studer
d5e472b95d
fix: [AnalystData] A quick and simple typing fix
2024-10-30 12:19:11 +01:00
Raphaël Vinot
83aac7801b
new: onion-address type
2024-10-17 14:40:51 +02:00
Raphaël Vinot
718b4b4976
chg: Bump objects
2024-10-17 14:23:43 +02:00
Raphaël Vinot
a3c3f12fd7
chg: Bump deps
2024-10-04 13:31:46 +02:00
iglocska
7599037e94
chg: [tests] misp_instance_version_master now uses the 2.5 branch
2024-10-04 13:26:02 +02:00
Raphaël Vinot
865a8a50ca
fix: Make mypy happy
2024-09-14 15:58:27 +02:00
Raphaël Vinot
391c51373f
Merge pull request #1296 from sebix/wrong-exec-bit
...
openioc.py is not a script, but had exec bit
2024-09-05 17:05:27 +02:00
Alexandre Dulaunoy
080ebdfad1
chg: [data] describeTypes.json updated
2024-09-05 15:22:35 +02:00
Sebastian Wagner
ff0ed977ee
openioc.py is not a script, but had exec bit
...
the file openioc can only be used as module and as part of a package,
has no instructions for direct execution and is therefor not a script
for direct execution
this removes the executable bit from the file
2024-09-03 18:13:18 +02:00
Alexandre Dulaunoy
3cd655827c
chg: [misp-objects] updated to the latest version
2024-08-23 08:47:15 +02:00
Raphaël Vinot
3237a5ed7e
fix: Avoid printing huge log when a request fails
...
fix #1286
2024-08-22 00:35:38 +02:00
Raphaël Vinot
69877a8809
chg: Bump deps
2024-08-20 13:04:15 +02:00
Raphaël Vinot
fa0d7ced4d
chg: Bump objects
2024-07-27 12:53:12 +02:00
Raphaël Vinot
1608c4783b
fix: Bump objects (invalid template)
2024-07-26 15:50:18 +02:00
Raphaël Vinot
9654912127
chg: Bump version
2024-07-26 15:40:55 +02:00
Raphaël Vinot
b582999d7b
new: Add delete role, test suite for roles
2024-07-26 11:43:20 +02:00
Raphaël Vinot
96a4745d77
chg: Bump deps
2024-07-26 11:00:29 +02:00
Raphaël Vinot
5a17f057e7
fix: Do not let a user pass a full dict as tagname
2024-07-26 11:00:29 +02:00
Tobias Mainka
4e85c93a9f
re-naming variables to make tests happy.
2024-07-22 15:16:47 +02:00
Tobias Mainka
2665aff327
added support to add or update a MISP role
2024-07-22 14:56:25 +02:00
Sura De Silva
7c8df85a98
feat: Adds methods to get attribute by id/uuid
2024-06-25 06:38:13 +10:00
Raphaël Vinot
0f34db6f48
chg: Bump deps
2024-06-21 10:36:47 +02:00
Raphaël Vinot
1848caf9a2
chg: Bump deps
2024-06-06 19:39:57 +02:00
Raphaël Vinot
f7b28e7bc9
fix: Get the tests to pass.
2024-05-22 12:39:29 +02:00
Raphaël Vinot
feadedeadb
Merge branch 'wip_analystdata'
2024-05-22 11:31:14 +02:00
Vincenzo
cd078e2ead
Add attach galaxy cluster method
2024-05-19 16:25:05 +02:00
Raphaël Vinot
2cf5d99dc8
chg: A bit more refactoring
2024-05-06 16:39:07 +02:00
Raphaël Vinot
94a48a6fdd
fix: Properly load AnalystData from dict
2024-05-06 15:24:04 +02:00
Raphaël Vinot
10ca6f191a
fix: more changes to get the tests to pass
2024-05-06 14:40:25 +02:00
Raphaël Vinot
902ed5a92c
chg: use from_dict in the mixin to initialize the objects
2024-05-06 12:19:04 +02:00
Sami Mokaddem
56be46320e
chg: [analyst-data] Added improvements, API endpoints and tests
2024-05-03 15:48:03 +02:00
Sami Mokaddem
d03cea7a67
fix: [event-report] Make sure to generate an UUID
2024-04-29 15:08:47 +02:00