TheHive-Project / TheHive-Project/Cortex

Cortex Rate Limit seems not to work

Open
#293 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

I set a rate limit of 4 requests per minute for the Virus Total Get Report analyzer. (Because this is the free API limit)
When I now mark 8 URL observables in TheHive and start the analyzer I expected cortex to analyze 4 of them and queue the others in order to analyze those after one minute.
Instead all 8 jobs are started instantly and 4 of them fail because of the API limit.

Am I using this feature wrong or is it not working?
This is my setup:
image

Any help is appreciated!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the configured four-requests-per-minute limit with the VirusTotal Get Report analyzer and eight URL observables in TheHive, using the setup shown in the issue. Trace the rate-limit handling and job scheduling to determine why all eight jobs start immediately; done means excess jobs wait and run after the limit window instead of failing from the API limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.