IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

Analyser Yeti wrong api request

Open CyberAbwehr opened this issue 2 years ago • 10 comments

What happened

Error: "404 Client Error: Not Found for url: http://192.168.1.45/api/v2/observablesearch/"

api_app/analyzers_manager/observable_analyzers/yeti.py url = f"{self._url_key_name}/observablesearch/"

the request must be

Screenshot 2024-05-13 at 16-59-18 FastAPI - Swagger UI

Screenshot 2024-05-13 at 17-01-38 FastAPI - Swagger UI

Environment

  1. OS: Ubuntu
  2. IntelOwl version: [v5.2.3]

What did you expect to happen

Can query yeti

How to reproduce your issue

Error messages and logs

CyberAbwehr avatar May 13 '24 15:05 CyberAbwehr

I think it would be enough for you to just add "api/v2" in the URL name.

mlodic avatar May 14 '24 07:05 mlodic

Anyway I have just pushed a fix both for this analyzer and the connector in the develop branch. If you could please try whether that works or not, I don't have a local YETI instance:

  • I added "api/v2" in the URL composition in the analyzer
  • I added "api/v2" in the URL composition in the connector + the final missing "s" at the end

git checkout develop ./start test up -- --build

mlodic avatar May 14 '24 07:05 mlodic

We have two issues with YETI,

One is the connector #2120 Second the analyzer and here are many changes in the API to search for observable. #2309

YETI_schema_API_Observales_Search

see also the open api json file from YETI

yeti_openapi.json

CyberAbwehr avatar May 14 '24 07:05 CyberAbwehr

thanks for reporting but please remember that we rely on the community help and we are not here to maintain and solve all the use cases, we are not paid for that. So please, we are talking about few lines of python code and a yeti instance you already have in place, submit a pull request if possible. We don't have the time to do that on our own.

mlodic avatar May 14 '24 07:05 mlodic

This issue has been marked as stale because it has had no activity for 10 days. If you are still working on this, please provide some updates.

github-actions[bot] avatar Mar 09 '25 09:03 github-actions[bot]

Hi! I'd like to take a shot at fixing this. Looks like the endpoint needs to be updated to match the Yeti v2 API structure. Can I get this assigned to me?

Abhishek9639 avatar Feb 08 '26 19:02 Abhishek9639

Hi @mlodic , Thank you for pointing about the polluted commit history , If you’re okay with it, I can raise a new PR with a clean commit history. I’ll also include working screenshots as proof to ensure the changes function correctly.

Abhishek9639 avatar Feb 17 '26 14:02 Abhishek9639

A fix has been added, I'll keep this open until we have a review from a user that confirms that this works

mlodic avatar Feb 27 '26 17:02 mlodic

@sanjib2006 can you please review this so I can close the issue? thanks!

mlodic avatar Aug 13 '26 12:08 mlodic

@mlodic This issue can be closed safely.

Image

I checked an observable already present in my local instance.

sanjib2006 avatar Aug 14 '26 20:08 sanjib2006