Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: allow user to enrich objects #9187

Merged
merged 3 commits into from Aug 3, 2023
Merged

Conversation

righel
Copy link
Contributor

@righel righel commented Jul 11, 2023

What does it do?

Allow enriching objects. misp-modules can handle objects and can define which template name or uuid applies to certain objects.

image

When defining your misp-module you can add an object template name as input to the mispattributes dictionary, example:

mispattributes = {
    'input': ['sigmf-recording'],
    'output': [
        'MISP objects'
    ],
    'format': 'misp_standard'
}

sigmf-recording is a object template name, when click on the enrichment icon (image) in the object envelop, MISP will propose a list of possible enrichments that match that object template:
image

For accessing the full object in the misp-module, you can do the following:

def handler(q=False):
    request = json.loads(q)
    object = request.get("object")
    ...

Questions

  • Does it require a DB change?
  • Are you using it in production?
  • Does it require a change in the API (PyMISP for example)?

@righel righel marked this pull request as ready for review August 1, 2023 09:57
@righel righel merged commit 81e0345 into MISP:develop Aug 3, 2023
3 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.

None yet

1 participant