Analyser Yeti wrong api request
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
Environment
- OS: Ubuntu
- IntelOwl version: [v5.2.3]
What did you expect to happen
Can query yeti
How to reproduce your issue
Error messages and logs
I think it would be enough for you to just add "api/v2" in the URL name.
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
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
see also the open api json file from YETI
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.
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.
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?
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.
A fix has been added, I'll keep this open until we have a review from a user that confirms that this works
@sanjib2006 can you please review this so I can close the issue? thanks!
@mlodic This issue can be closed safely.
I checked an observable already present in my local instance.