TheHive-Project / TheHive-Project/Cortex
Cortex Rate Limit seems not to work
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:

Any help is appreciated!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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