Open nino-filigran opened 3 weeks ago
After some testing, it seems we have an issue with events created in streams. Consider using organization sharing, when we add an entity or an observable in a report, there is a event in the stream to tell "Share this entity with the organization". But when adding a relationship, there is no such event.
For example:
In a platform using organization sharing
- create a stream listening to label 'aaa'
- create a report with label 'aaa'
- share this report with
- add a malware to this report
- add a threat actor group to this report
- create a relationship 'uses' between the malware and the threat actor group
- look the stream
You have an update event "adds 'YOUR ORGA' in 'Shared with'"
for the malware and the TAG but not for the relationship.
Here a trace of the stream I had executing the scenario above: stream.txt (I added some comments to ease the read)
First step is to analyze and fix this issue.
To add extra information, some elements are not concerned by organization sharing, you can find the list in the array STIX_ORGANIZATIONS_UNRESTRICTED
. It's the case for ref relationships for example. But in our scenario 'uses' is not a ref so we should have an event in the stream.
Its a design choice to not auto share the SRO. No to be requalified and discussed as a feature request
After discussion, the issue is the following:
Description
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
You should see all entities, observables and relations (assuming you have the correct marking)
Actual Output
Relations are missing & some entities too.
Additional information
Screenshots (optional)