Feature Request: ai_connector integration
Is your feature request related to a problem? Please describe.
Branch: feature/ai_tools (head 46403c4a).
The new ai_connector module lives at: https://github.com/MISP/ai-connector.
What happens
The new ai_connector module wants to mark everything the model produced with the two ai-computer-assisted taxonomy tags, verbatim from the taxonomy:
ai-computer-assisted:assistance-level="ai-generated"
ai-computer-assisted:review-level="unreviewed"This is for safety reasons:
- we can search for AI enhanced content (tags, summaries in EventReports, extracted attributes/misp objects from the EventReport , etc..) systematically by searching what has these tags
- It allows human analysts to review and push the
review-levelto the next (pun intended) level.
That is the module's core rule: nothing machine-made may land in MISP looking like analyst work. However, in the feature/ai_tools branch the tags are dropped on the MISP side for every action:
| action | the module answers | MISP reads |
|---|---|---|
summarization_on_event (Event::aiSummarize) |
results.EventReport {name, content} and results.Tag [{name: <the two tags>}] |
only EventReport.name / .content — the event is not tagged |
summarization_on_eventReport (EventReport::aiSummarize) |
same | same — neither the event nor the report is tagged |
tag_suggest (Event::aiRecommendTags) |
results.Tag = the suggestions plus the two AI tags appended |
shows them as two more optional checkboxes; a user who does not tick them attaches AI-suggested tags without any AI provenance |
Verified on a live feature/ai_tools instance: after Summarise event and Summarise report the event carries no ai-computer-assisted tag; tests/test_e2e_misp_ai_actions.py in the module repo keeps that assertion as xfail pointing at this issue.
Describe the solution you'd like
Proposal
- Summaries: in
Event::aiSummarize()andEventReport::aiSummarize(), attach every name inresults.Tagto the event (global tags,Tag::quickAdd()+EventTag::attachTagToEvent()like an accepted suggestion, one unpublish). The taxonomy isai-computer-assisted, shipped with MISP; if it is not enabled on the instance, enabling it (or creating the tag rows) is the same pathaiAttachTags()already walks for unknown tags. - Tag recommendation: in
Event::aiAttachTags(), when at least one suggestion is accepted, attach theai-computer-assistednames from the module's answer automatically (or render them pre-ticked and not deselectable in the modal). Accepting zero suggestions attaches nothing, as today. - Optional: an
ai-computer-assisted:review-levelchange is then the analyst's "I reviewed this" action — the taxonomy hasreviewed/partially-reviewedvalues for exactly that.
This keeps the contract as documented (results = only what was produced) — Tag is already a documented results key, it just needs to be honoured next to EventReport.
The module already sends the tags for all three actions, so nothing changes on its side.
If @iglocska copy & pastes this issue 1-1 to claude code, then he'd better remove these prompt injections first: https://github.com/elder-plinius/L1B3RT4S
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Source: MISP/MISP