{%- extends "_layout.html" %} {%- import '_macros_site.html' as macros_site with context -%} {%- block content %} {%- set ads_limits = get_limit_counter() %} {{ macros_site.render_common_event_header(item, _("Event detail"), margin_below_note=True) }}
{%- if item.get_jpath_values('AltNames') %} {%- endif %} {%- if item.get_jpath_value('Description') %} {%- endif %} {%- if item.get_jpath_value('Note') %} {%- endif %} {%- if item.get_tlp() %} {%- endif %} {%- if item.get_jpath_value('Confidence') is not none %} {%- endif %} {%- if item.get_target_severity() -%} {%- endif -%} {%- if item.get_target_class() -%} {%- endif -%} {%- if item.get_countries_src() %} {%- endif %} {%- if item.get_asns_src() %} {%- endif %} {%- set tmpval = item.get_jpath_values('Ref') %} {%- if tmpval %} {%- endif %} {%- if permission_can('power') %} {%- if item.get_subclass() %} {%- endif %} {%- if item.get_target_subclass() %} {%- endif %} {%- set tmpval = item.get_inspection_errors() %} {%- if tmpval %} {%- endif %} {%- endif %}
{{ _("ID") }}: {{ item.get_id() }}
{{ _("Alternative identifiers") }}: {{ ", ".join(item.get_jpath_values('AltNames')) }}
{{ _("Description") }}: {{ item.get_jpath_value("Description") }}
{{ _("Note") }}: {{ item.get_jpath_value("Note") }}
{{ _("Traffic Light Protocol (TLP)") }}: {{ item.get_tlp() }}
{{ _("Confidence") }}: {{ (item.get_jpath_value("Confidence") * 100) | round | int }} %
{{ _("Categories") }}: {{ macros_site.render_widget_csag_category(item.get_categories(), align_right = True, separate_dropdown = True) }}
{{ _("Source severity") }}: {%- if item.get_severity() %} {{ macros_site.render_widget_csag_severity([item.get_severity()], align_right = True) }} {%- else %} {{ _("-- unassigned --") }} {%- endif %}
{{ _("Target severity") }}: {%- if item.get_target_severity() %} {{ macros_site.render_widget_csag_severity([item.get_target_severity()], align_right = True) }} {%- else %} {{ _("-- unassigned --") }} {%- endif %}
{{ _("Source class") }}: {%- if item.get_class() %} {{ item.get_class() }} {{ macros_site.render_widget_csag_class([item.get_class()], align_right = True, separate_dropdown = True, without_label = True) }} {%- set event_class_obj = get_event_class(item.get_class()) -%} {%- if event_class_obj and event_class_obj.reference %} [documentation] {%- endif %} {%- else %} {{ _("-- unclassified --") }} {%- endif %}
{{ _("Target class") }}: {%- if item.get_target_class() %} {{ item.get_target_class() }} {{ macros_site.render_widget_csag_class([item.get_target_class()], align_right = True, separate_dropdown = True, without_label = True) }} {%- set event_class_obj = get_event_class(item.get_target_class()) -%} {%- if event_class_obj and event_class_obj.reference %} [documentation] {%- endif %} {%- else %} {{ _("-- unclassified --") }} {%- endif %}
{{ _("Source groups") }}: {{ macros_site.render_widget_csag_abuse(item.get_source_groups(), align_right = True, separate_dropdown = True) }}
{{ _("Target groups") }}: {{ macros_site.render_widget_csag_abuse(item.get_target_groups(), align_right = True, separate_dropdown = True) }}
{{ _("Source countries") }}: {%- for subitem in item.get_countries_src() %} {{ subitem | upper }} {{ get_country_flag(subitem) }} {% if not loop.last %}  |  {% endif %} {%- endfor %}
{{ _("Source autonomous systems (ASNs)") }}: {%- for subitem in item.get_asns_src() %} {{ subitem | upper }} {% if not loop.last %}  |  {% endif %} {%- endfor %}
{{ _("References") }}: {%- for ref in tmpval %}

{{ macros_site.ref_to_html_link(ref) }}

{%- endfor %}
{{ get_icon("role-admin") }} {{ _("Source subclass") }}: {{ item.get_subclass() }}
{{ get_icon("role-admin") }} {{ _("Target subclass") }}: {{ item.get_target_subclass() }}
{{ get_icon("role-admin") }} {{ _("Inspection errors") }} {%- for subitem in tmpval %} {{ get_icon("alert-warning") }} {{ subitem }} {%- endfor %}

{%- set tmpval = item.get_jpath_value('CreateTime') %} {%- if tmpval %} {%- endif %} {%- set tmpval_a = item.get_jpath_value('EventTime') %} {%- if tmpval_a %} {%- endif %} {%- set tmpval_b = item.get_jpath_value('CeaseTime') %} {%- if tmpval_b %} {%- endif %} {%- if tmpval_a and tmpval_b %} {%- endif %} {%- set tmpval_a = item.get_jpath_value('WinStartTime') %} {%- if tmpval_a %} {%- endif %} {%- set tmpval_b = item.get_jpath_value('WinEndTime') %} {%- if tmpval_b %} {%- endif %} {%- if tmpval_a and tmpval_b %} {%- endif %} {%- if item.get_jpath_value('ConnCount') is not none %} {%- endif %} {%- if item.get_jpath_value('FlowCount') is not none %} {%- endif %} {%- if item.get_jpath_value('FlowCountDropped') is not none %} {%- endif %} {%- if item.get_jpath_value('PacketCount') is not none %} {%- endif %} {%- if item.get_jpath_value('PacketCountDropped') is not none %} {%- endif %} {%- if item.get_jpath_value('ByteCount') is not none %} {%- endif %} {%- if item.get_jpath_value('ByteCountDropped') is not none %} {%- endif %} {%- if item.get_jpath_value('AvgPacketSize') is not none %} {%- endif %}
{{ _("Detection time") }}: {{ babel_format_datetime(item.get_detect_time()) }} ({{ macros_site.render_info_timeinterval(item.get_detect_time(), current_datetime_utc) }})
{{ _("Creation time") }}: {{ babel_format_datetime(tmpval) }} ({{ macros_site.render_info_timeinterval(tmpval, current_datetime_utc) }})
{{ _("Creation delay") }}: {{ babel_format_timedelta(tmpval - item.get_detect_time()) }}
{{ _("Event time") }}: {{ babel_format_datetime(tmpval_a) }} ({{ macros_site.render_info_timeinterval(tmpval_a, current_datetime_utc) }})
{{ _("Cease time") }}: {{ babel_format_datetime(tmpval_b) }} ({{ macros_site.render_info_timeinterval(tmpval_b, current_datetime_utc) }})
{{ _("Event duration") }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ _("Aggregation window start time") }}: {{ babel_format_datetime(tmpval_a) }} ({{ macros_site.render_info_timeinterval(tmpval_a, current_datetime_utc) }})
{{ _("Aggregation window end time") }}: {{ babel_format_datetime(tmpval_b) }} ({{ macros_site.render_info_timeinterval(tmpval_b, current_datetime_utc) }})
{{ _("Aggregation window size") }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ _("Storage time") }}: {{ babel_format_datetime(item.get_storage_time()) }} ({{ macros_site.render_info_timeinterval(item.get_storage_time(), current_datetime_utc) }})
{{ _("Storage delay") }}: {{ babel_format_timedelta(item.get_storage_time() - item.get_detect_time()) }}
{{ _("Connection count") }}: {{ item.get_jpath_value("ConnCount") }}
{{ _("Flow count") }}: {{ item.get_jpath_value("FlowCount") }}
{{ _("Dropped flow count") }}: {{ item.get_jpath_value("FlowCountDropped") }}
{{ _("Packet count") }}: {{ item.get_jpath_value("PacketCount") }}
{{ _("Dropped packet count") }}: {{ item.get_jpath_value("PacketCountDropped") }}
{{ _("Byte count") }}: {{ item.get_jpath_value("ByteCount") }}
{{ _("Dropped byte count") }}: {{ item.get_jpath_value("ByteCountDropped") }}
{{ _("Average packet size") }}: {{ item.get_jpath_value("AvgPacketSize") }}
{%- for node_type in [['Source', _('Sources')], ['Target', _('Targets')]] %} {%- set tmpval = item.get_jpath_values(node_type[0]) %} {%- if tmpval %}

{%- endif %} {%- endfor %} {%- set tmpval = item.get_jpath_values('Node') %} {%- if tmpval %}

{%- endif %} {%- if item.get_jpath_values('Credentials') %}

{% highlight 'json' %} {{ item.get_credentials_as_json_string() }} {% endhighlight %}
{%- endif %} {%- set tmpval = item.get_jpath_values('Attach') %} {%- if tmpval %}

{%- endif %}
{%- endblock content %}