TheHive-Project / TheHive-Project/Cortex

Job timeouts for Cortex do not work

Open
#257 2 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

Request Type

Bug

Work Environment
Question Answer
OS version (server) Ubuntu
OS version (client) Ubuntu
Cortex version / git hash 3.0.0-1
Package Type Docker
Browser type & version Chrome
Problem Description

When running analyzers which have a timeout configured , the timeout is not applied and Cortex freezes until the job actually ends (that is , if it ever ends)

Steps to Reproduce

1)Configure The Virus Total analyzer with timeout of 3 minutes
2)Run VT GetReport3_0 on google.com (this takes a really long time)
3) Check Cortex logs : The analyzer starts + mentions timeout of 3 minutes
4) In my case Even when the timeout is long surpassed , the job is not killed and Cortex Freezes for about 12 minutes until response VT is received

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

Reproduce the timeout using the VirusTotal analyzer's VT GetReport3_0 entry point with a three-minute limit, then inspect the Cortex logs around job execution. Done means the job is killed when the configured timeout expires instead of waiting for the analyzer response or freezing Cortex.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, 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.