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

Enrichment of Events and Attributes #1318

Open
DeveloperNamedMax opened this issue Feb 18, 2025 · 2 comments
Open

Enrichment of Events and Attributes #1318

DeveloperNamedMax opened this issue Feb 18, 2025 · 2 comments
Assignees

Comments

@DeveloperNamedMax
Copy link

According to the MISP OpenAPI specification, there is an endpoint (POST /attributes/enrich/{attribute_id}) and (POST /events/enrichEvent/{eventId) for enriching events and attributes. However, I've been unable to find a corresponding higher-level function in PyMISP for this endpoint.

  • Is there an existing method for enriching events/attributes that I might be missing?

Currently using:

PyMISP’s direct_call():

mispdirect_call(f'/attributes/enrich/{attribute_id}', data=enrichment_modules)
mispdirect_call(f'/events/enrichEvent/{event_id}', data=enrichment_modules)

Requests directly:

response = requests.post(
    f'{misp_root_url}/attributes/enrich/{attribute_id}',
    json=enrichment_modules,
    verify=True,
    headers=headers
)
response = requests.post(
    f'{misp_root_url}/events/enrichEvent/{event_id}',
    json=enrichment_modules,
    verify=True,
    headers=headers
)
@Rafiot Rafiot self-assigned this Feb 18, 2025
@Rafiot
Copy link
Member

Rafiot commented Feb 18, 2025

It's missing in PyMISP, I'll add it asap (unless you do it first, I'm happily merging PRs).

Rafiot added a commit that referenced this issue Feb 19, 2025
@Rafiot
Copy link
Member

Rafiot commented Feb 19, 2025

I'll test it a bit more, but looks like it's going t be in the next release :)

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

No branches or pull requests

2 participants