IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

Bug: InQuest hash error message uses undefined variable

Open rootp1 opened this issue 11 months ago • 3 comments

Bug: InQuest hash error message uses undefined variable

Hey maintainers.... I was going through the codebase and noticed a small bug in the inquest.py.

What's happening:

In api_app/analyzers_manager/observable_analyzers/inquest.py, the InQuest.hash_type property is supposed to raise an AnalyzerRunException with a helpful message when a HASH observable has an unsupported length.

Instead, the exception message references an undefined variable (hash) in the f-string, which triggers a NameError and crashes the analyzer before it can return a proper IntelOwl error.

Why this matters:

  • Users get a confusing internal error (NameError) instead of a clear “unsupported hash type” message.
  • Breaks analysis runs for invalid inputs and makes debugging harder.

rootp1 avatar Dec 12 '25 12:12 rootp1

@mlodic @fgibertoni can you please take a look and assign this issue to me

rootp1 avatar Dec 12 '25 12:12 rootp1

@fgibertoni any updates on this issue

rootp1 avatar Dec 16 '25 15:12 rootp1

@mlodic @fgibertoni I worked on it in #3125

rootp1 avatar Dec 17 '25 20:12 rootp1