OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.45k stars 947 forks source link

Enroll "System" users automatically in a specific group, for better control on feed and connector ingestion #9105

Open labo-flg opened 1 day ago

labo-flg commented 1 day ago

Description

With the auto_membership flag set on a group, users created will automatically be set as member of this group when created. This is particularly useful for SSO enrollment, where users are created on demand automatically.

This mechanics has a significant drawback when it comes to "system" users, i.e. users set as authors of knowledge when ingesting data through connectors or feeds.

If your strategy is to give auto_membership on an administrator group, with BYPASS capabilities and / or a confidence level of 100, then you might be creating "System" users with inadequat privileges.

In these conditions, you could end up starting an ingestion feed with a user with a confidence of 100, effectively overwriting everything already on the platform. It will also set naturally the new data as having a confidence of 100, preventing any other data source to make change. The consequences could be dire.

Solution

We envision a two-fold solution: