Analyzer marked SUCCESS even when data model creation fails
Location
File: api_app/analyzers_manager/classes.py
Method: BaseAnalyzerMixin.after_run_success()
Description
In BaseAnalyzerMixin.after_run_success(), the report status is set to SUCCESS before calling create_data_model(). If data model creation fails, the report status remains SUCCESS even though a required post-processing step did not complete.
The current code flow is:
super().after_run_success(...)sets report status to SUCCESScreate_data_model()is called in a try-except block- If
create_data_model()raises an exception, it is logged and the error is added tojob.errors, but the report status is not updated
Trigger
This occurs when create_data_model() raises an exception during data model creation. Common causes may include mapping failures, database errors, or validation issues during data model construction.
Observed Behavior
When data model creation fails:
- Analyzer report status remains
SUCCESS - Normalized data model is not created
- Error message is logged and stored in
job.errors - Downstream components may operate on incomplete data
Expected Behavior
When data model creation fails after a successful analyzer run, either:
- The report status should reflect the partial failure, or
- The failure should be clearly indicated in the report status
This ensures the report status accurately reflects the completion state of all required steps.
Impact
Data models are used by:
- Engine modules for post-processing and correlation
- Pivot plugins that extract values from normalized data
- Connectors that export structured intelligence
When data models are missing, these components may produce incomplete or incorrect results, which may lead to misleading threat intelligence.
Why This Matters
IntelOwl analyzers follow a defined lifecycle contract where after_run_success() should indicate full completion including post-processing. Marking a report as SUCCESS when data model creation fails breaks this contract and makes partial failures harder to detect during operations.
Notes
The appropriate behavior (how to reflect partial success in status) is open for discussion. The goal is to maintain lifecycle contract consistency while clearly indicating completion state.
Data models were introduced at a later time and are still considered optional. So this is actual intended behavior
Thanks for the clarification, that makes sense 👍 I understand that data models are optional and this behavior is intended.
Appreciate you taking the time to explain the context. I’ll keep this in mind while looking at other parts of the pipeline.
Thanks again.