Skip to content

Conversation

@iglocska
Copy link
Member

@iglocska iglocska commented Dec 8, 2024

  • 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

- 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
_fields_for_feed: set[str] = {'uuid', 'info', 'threat_level_id', 'analysis', 'timestamp',
'publish_timestamp', 'published', 'date', 'extends_uuid'}
'publish_timestamp', 'published', 'date', 'extends_uuid',
'protected'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: we need to add in def _set_default an entry self.protected = False, to keep consistency with the other required fields.

I'm assuming protected set to false par default is the expected value.

@Rafiot Rafiot merged commit 671c9fa into MISP:main Dec 16, 2024
3 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants