{%- extends "_layout.html" %} {%- block content %}

{{ hawat_view_title }}


{% if item['Description'] %}{{ item['Description'] }} {{ item.get_id() }}{% else %}{{ item.get_id() }}{% endif %}

{%- if item['Note'] %}

{{ item['Note'] }}

{%- endif %}

{{ gettext('Event detected:') }} {{ babel_format_datetime(item.get_detect_time()) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.get_detect_time()) }}) | {{ gettext('Event stored:') }} {{ babel_format_datetime(item.get_storage_time()) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.get_storage_time()) }})

{{ gettext('Event severity:') }} {{ macros_site.render_event_label_severity(item, True) }}
{{ gettext('Event class:') }} {% if item.get_class() %}{{ item.get_class() }}{% else %}{{ gettext('-- undisclosed --') }}{% endif %}

{{ gettext('General properties') }}

{%- set tmpval = item.get_jpath_value('CreateTime') %} {%- if tmpval %} {%- endif %}
{{ gettext('ID:') }} {{ gettext(item.get_id()) }}
{{ gettext('Detection time:') }} {{ babel_format_datetime(item.get_detect_time()) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.get_detect_time()) }})
{{ gettext('Creation time:') }} {{ babel_format_datetime(tmpval) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - tmpval) }})
{{ gettext('Creation delay:') }} {{ babel_format_timedelta(tmpval - item.get_detect_time()) }}
{{ gettext('Storage time:') }} {{ babel_format_datetime(item.get_storage_time()) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.get_storage_time()) }})
{{ gettext('Storage delay:') }} {{ babel_format_timedelta(item.get_storage_time() - item.get_detect_time()) }}
{{ gettext('Categories:') }} {{ macros_site.render_event_search_widget_category(item.get_categories()) }}
{{ gettext('Event severity:') }} {{ macros_site.render_event_label_severity(item, True) }}
{{ gettext('Event class:') }} {% if item.get_class() %}{{ item.get_class() }}{% else %}{{ gettext('-- undisclosed --') }}{% endif %}
{{ gettext('Abuse groups:') }} {{ macros_site.render_event_search_widget_group(item.get_abuses()) }}
{%- for node_type in [['Source', gettext('Sources')], ['Target', gettext('Targets')]] %} {%- set tmpval = item.get_jpath_values(node_type[0]) %} {%- if tmpval %}

{{ node_type[1] }}

    {%- for subitem in tmpval %}
  • {%- if 'IP4' in subitem %} IP4: {{ macros_site.render_event_search_widget_hostaddr(subitem['IP4']) }} {%- endif %} {%- if 'IP6' in subitem %} IP6: {{ macros_site.render_event_search_widget_hostaddr(subitem['IP6']) }} {%- endif %} {%- if 'Port' in subitem %} Port: {{ macros_site.render_event_search_widget_hostport(subitem['Port']) }} {%- endif %} {%- if 'Proto' in subitem %} Proto: {{ macros_site.render_event_search_widget_protocol(subitem['Proto']) }} {%- endif %} {%- if 'Type' in subitem %} Type: {{ macros_site.render_event_search_widget_hosttype(subitem['Type']) }} {%- endif %}
  • {%- endfor %}
{%- endif %} {%- endfor %} {%- set tmpval = item.get_jpath_values('Node') %} {%- if tmpval %}

{{ gettext('Detectors') }}

    {%- for subitem in tmpval | reverse %}
  • {%- if not loop.first %}{%- endif %} {%- if 'Name' in subitem %} Name: {% if loop.first %}{{ macros_site.render_event_search_widget_detector([subitem['Name']]) }}{% else %}{{ subitem['Name'] }}{%- endif %} {%- endif %} {%- if 'SW' in subitem %} SW: {{ subitem['SW'] | join(', ') }} {%- endif %} {%- if 'Type' in subitem %} Type: {{ subitem['Type'] | join(', ') }} {%- endif %} {%- if not loop.first %}{%- endif %}
  • {%- endfor %}
{%- endif %}

{{ item.to_json(indent = 4, sort_keys = True) }}
{%- endblock content %}