Commit Graph

3235 Commits (17cac2b29c378b78f25ec165f100d0a3b6a4f3ca)

Author SHA1 Message Date
Raphaël Vinot 17cac2b29c
chg: Make python 3.9 happy 2024-12-20 15:38:25 +01:00
Raphaël Vinot fb45f2a07b
chg: Bump deps 2024-12-20 15:30:39 +01:00
Christian Studer 23b5d3a328
Revert "fix: [tests] Removed typing"
This reverts commit a7cf9dc3f0.
2024-12-18 18:28:37 +01:00
Christian Studer a7cf9dc3f0
fix: [tests] Removed typing 2024-12-18 18:24:06 +01:00
Christian Studer 1e9258eb4a
add: [tests] Testing Analyst Data in different scenarios
- Testing different ways to attach analyst data
- Testing that no matter what object type the
  analyst data is attached to, the `object_type`
  & `object_uuid` are correct, and the parent
  container does contain every analyst data object
  in flat lists with no nesting
2024-12-18 18:17:00 +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 da76fb110b
chg: Bump deps 2024-12-16 16:46:03 +01:00
Raphaël Vinot cb62cd0927
chg: Bump changelog 2024-12-16 13:53:36 +01:00
Raphaël Vinot c50f206c22
chg: Bump release 2024-12-16 13:28:06 +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
Raphaël Vinot 30819e141f chg: Bump changelog 2024-11-18 18:44:24 +01:00
Raphaël Vinot e53e1a06e6 chg: Skip PyMISP version check 2024-11-18 18:39:59 +01:00
Raphaël Vinot 8b40a5857d chg: Bump deps, version 2024-11-18 18:37:41 +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
Christian Studer 2f76ae2bf9
Merge branch 'main' of github.com:misp/pymisp 2024-11-16 12:31:21 +01:00
Raphaël Vinot 516e9724f7 chg: Bump deps, version 2024-11-15 12:37:24 +01:00
Raphaël Vinot 0d88a9d909 fix: Avoid exception on dev releases 2024-11-15 12:37:24 +01:00
Raphaël Vinot 226f2918e2
Merge pull request #1310 from MISP/dependabot/github_actions/codecov/codecov-action-5
build(deps): bump codecov/codecov-action from 4 to 5
2024-11-14 21:21:28 +01:00
dependabot[bot] 522c07c921
build(deps): bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-14 17:02:48 +00:00
Raphaël Vinot 26fbac0ec9 fix: template versions in tests 2024-11-13 23:52:00 +01:00
Raphaël Vinot c71b52b7a6 chg: Bump version, deps, templates. 2024-11-13 23:43:11 +01:00
Raphaël Vinot 56641fab61 chg: Bump version, test for GH action release 2024-11-11 13:39:48 +01:00
Raphaël Vinot 5e921b0ca0 new: Publish to PyPi on release 2024-11-11 13:36:26 +01:00
Raphaël Vinot 06657719af
Update pytest.yml for python 3.13 2024-11-11 13:25:37 +01:00
Raphaël Vinot 317c0d149b chg: Drop python 3.8, add python 3.13 2024-11-11 12:38:43 +01:00
Raphaël Vinot 5d5f706dc6 chg: Bump templates 2024-11-11 12:32:39 +01:00
Raphaël Vinot 12f275c7fc chg: Bump deps 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
Christian Studer 7edb2e0a7e
Merge branch 'main' of github.com:misp/pymisp 2024-10-30 12:17:51 +01:00
Raphaël Vinot 5bc824e3e9 chg: re-bump changelog 2024-10-17 14:46:11 +02:00
Raphaël Vinot 83aac7801b new: onion-address type 2024-10-17 14:40:51 +02:00
Raphaël Vinot 239c02428d fix: Skip trying to install doc in python 3.9 2024-10-17 14:35:33 +02:00
Raphaël Vinot d2120763b3 chg: Bump changelog 2024-10-17 14:24:24 +02:00
Raphaël Vinot 718b4b4976 chg: Bump objects 2024-10-17 14:23:43 +02:00
Raphaël Vinot 9f0afe12f1 chg: Bump version 2024-10-17 14:22:25 +02:00
Raphaël Vinot e542a78ae5 chg: Bump deps 2024-10-17 14:21:51 +02:00
Christian Studer 7316c3e040
Merge branch 'main' of github.com:misp/pymisp 2024-10-17 14:03:49 +02:00
Raphaël Vinot f4438dbe3a chg: Bump changelog 2024-10-04 13:35:19 +02:00
Raphaël Vinot 33541e43af chg: Bump deps 2024-10-04 13:32:10 +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