OpenCTI-Platform / opencti

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

[Max confidence level] Error "confidence insufficient" on Observable #7520

Open Lhorus6 opened 4 days ago

Lhorus6 commented 4 days ago

Description

When we run the JoeSandbox connector on an artifact, we get this error message:

"User max confidence level is insufficient to update this element"

Important information: there is no "confidence level" on Observables (and an Artifact is an Observable)...

However, some information was added on the Artefact. So it looks like the connector worked fine, but there's this error.

Environment

OCTI 6.2.0

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Open an Artefact,
  2. Run the Joe Sandbox connector.

Screenshots

Screenshot 2024-06-28 141156

helene-nguyen commented 1 day ago

@Lhorus6 Does the element_id that the connector is trying to update is an observable ?

Lhorus6 commented 1 day ago

@nino-filigran From my point of view, it's not a connector problem, but a platform problem. There is no confidence level on Observables, so why do we have this error?

labo-flg commented 23 hours ago

Yes this is very strange indeed ; I'm investigating on the backend side.

labo-flg commented 22 hours ago

I can confirm that the code is very clear about this: if the entity type has no confidence attribute in the data model (like Artifact), confidence check is always granted.

labo-flg commented 22 hours ago

like Helene said, could we verify if the element id in the error corresponds really to an Artifact ?

Lhorus6 commented 19 hours ago

I checked, this is the ID of the Indicator linked to the Artifact on which the connector is run 🤔

helene-nguyen commented 6 hours ago

@Lhorus6 Ok, so when you enrich the artifact, there are 2 behaviors: you can create new related entities or update the existing one if it already exists. This error show us that it cannot update the related indicator but could you tell us if the artifact has new informations?

Lhorus6 commented 1 hour ago

Yes, apparently he did two actions:

Screenshot 2024-07-03 121134