Skip to content

DNS analysis errors in visualizers and Quad9 #2959

@mlodic

Description

@mlodic

What happened

During an analysis via the DNS playbook some errors arose.
1 - Quad9 unmanaged CNAME type
2 - visualizers type error and key error

Environment

IntelOwl version: last develop version

Error messages and logs

2025-08-18 20:26:29,235 - api_app.classes - log_error - ERROR - (Quad9DNSResolver, job: #42). Unexpected error: ''CNAME' object has no attribute 'address''
Traceback (most recent call last):
  File "/opt/deploy/intel_owl/api_app/classes.py", line 297, in start
    _result = self.run()
              ^^^^^^^^^^
  File "/opt/deploy/intel_owl/api_app/analyzers_manager/observable_analyzers/dns/dns_resolvers/quad9_dns_resolver.py", line 54, in run
    resolutions.extend([resolution.address for resolution in answer])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/deploy/intel_owl/api_app/analyzers_manager/observable_analyzers/dns/dns_resolvers/quad9_dns_resolver.py", line 54, in <listcomp>
    resolutions.extend([resolution.address for resolution in answer])
                        ^^^^^^^^^^^^^^^^^^
AttributeError: 'CNAME' object has no attribute 'address'
2025-08-18 20:26:29,352 - api_app.visualizers_manager.classes - wrapper - ERROR - string indices must be integers, not 'str'
Traceback (most recent call last):
  File "/opt/deploy/intel_owl/api_app/visualizers_manager/decorators.py", line 24, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/deploy/intel_owl/api_app/visualizers_manager/visualizers/dns.py", line 68, in _dns_resolution
    value=[
          ^
  File "/opt/deploy/intel_owl/api_app/visualizers_manager/visualizers/dns.py", line 71, in <listcomp>
    dns_resolution["data"]
    ~~~~~~~~~~~~~~^^^^^^^^
TypeError: string indices must be integers, not 'str'
2025-08-18 20:26:29,392 - api_app.visualizers_manager.classes - wrapper - ERROR - 'resolutions'
Traceback (most recent call last):
  File "/opt/deploy/intel_owl/api_app/visualizers_manager/decorators.py", line 24, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/deploy/intel_owl/api_app/visualizers_manager/visualizers/dns.py", line 65, in _dns_resolution
    disable_element = not analyzer_report.report["resolutions"]
                          ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'resolutions'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions