Skip to content

Bug: InQuest hash error message uses undefined variable #3113

@rootp1

Description

@rootp1

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions