Skip to content

fix(analyzers): raise configuration exception for non-email GENERIC observables in HudsonRock. Closes #3647#3655

Open
Nehall1 wants to merge 6 commits intointelowlproject:masterfrom
Nehall1:fix/hudsonrock-generic-crash
Open

fix(analyzers): raise configuration exception for non-email GENERIC observables in HudsonRock. Closes #3647#3655
Nehall1 wants to merge 6 commits intointelowlproject:masterfrom
Nehall1:fix/hudsonrock-generic-crash

Conversation

@Nehall1
Copy link
Copy Markdown
Contributor

@Nehall1 Nehall1 commented Apr 19, 2026

Description

When the HudsonRock analyzer is given a GENERIC observable that is not an email, the analyzer currently skips the network request but attempts to call response.raise_for_status() on an empty dictionary, fatally crashing the worker.

This PR resolves the bug by explicitly raising an AnalyzerConfigurationException when an invalid GENERIC observable is provided.

  • Added else fallback clause in hudsonrock.py
  • Added test_invalid_generic_raises_exception to HudsonRock's test suite to assert the exception.

Closes #3647

Type of change

  • Bug fix / Maintenance (non-breaking change which fixes an issue or removes deprecated code)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read and understood the rules about how to Contribute to this project
  • The pull request is for the branch develop
  • I have added Tests for my changes
  • Unittests are passing with my changes
  • Linters/Formatters (black, flake8, isort) are passing with my changes
  • I have added Documentation for my changes
  • I have rebased my changes on the latest updates in the repository
  • I haven't changed the original code heavily

ayushgupta704 and others added 5 commits April 7, 2026 16:56
…oject#3624)

* updated PR automation Slow run to avoid executing all the optional containers

* update history routing constants to fix broken tabs

---------

Co-authored-by: Daniele Rosetti <55402684+drosetti@users.noreply.github.com>
Co-authored-by: Matteo Lodi <30625432+mlodic@users.noreply.github.com>
…project#3621) (intelowlproject#3625)

* fix: patch peframe tostring() for Python 3.9+ compatibility (intelowlproject#3621)

* add comment explaining peframe tostring patch
…lowlproject#3571 (intelowlproject#3579)

* fix(connectors): eliminate N+1 HTTP requests in MISP connector

* test(connectors): add unit tests for MISP bulk add_event
* refactor: remove Greynoise_Labs analyzer

* chore: delete associated periodic tasks
@Nehall1 Nehall1 force-pushed the fix/hudsonrock-generic-crash branch 3 times, most recently from afb9f6c to dd190bf Compare April 19, 2026 05:53
@Nehall1 Nehall1 force-pushed the fix/hudsonrock-generic-crash branch from dd190bf to 6480eba Compare April 19, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] HudsonRock analyzer crashes when GENERIC observable is not an email

5 participants