IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

refactor(analyzers): store external datasets in DB tables instead of flat files

Open sanjib2006 opened this issue 8 months ago • 2 comments

Following up on the initial refactoring discussed in #2407 and partially implemented in PR #3427, we need to update more analyzers.

This issue tracks the remaining analyzers that require this refactoring.

Remaining Analyzers to Refactor

  • JA4_DB
  • Feodo_Tracker
  • Greynoise_Labs
  • Spamhaus_DROP
  • TweetFeed
  • MaxMindGeoIP
  • Stratosphere_Blacklist
  • FireHol_IPList

sanjib2006 avatar Mar 13 '26 10:03 sanjib2006

mlodic, I will continue working on this part as well, so please assign it to me.

sanjib2006 avatar Mar 14 '26 05:03 sanjib2006

Found a bug in JA4_DB File: api_app/analyzers_manager/observable_analyzers/ja4_db.py

# line 74-77
def run(self):
    reason = self.check_ja4_fingerprint(self.observable_name)
    if not reason:                          #--- bug
        return {"not_supported": reason}

check_ja4_fingerprint returns "" when the fingerprint is valid and then not reason becomes true so for valid fingerprints we get this

{
  "report": {
    "not_supported": ""
  },
  "data_model": null,
  "errors": [],
  "parameters": {}
}

FIX: change if not reason: to if reason: will do this while refactoring once assigned...

sanjib2006 avatar Mar 14 '26 07:03 sanjib2006