{% extends 'base.html' %} {% load ui_extras %} {% block content %}

Target{{ target_count|pluralize }} ({{ target_count }})

{{ form }}
{% pagination next_url previous_url %} {% if targets %} {% for target in targets %} {% with target.object as obj %} {% endwith %} {% endfor %}
Object Counters State Score Rules
{% if target.url %} {{ target.target_type_for_display }}
{{ target.identifier }}
{% else %} {{ target.identifier|default:"-" }} {% endif %} {% if target.target_type == "BINARY" %}
{{ obj.name }} {% if obj.cert_sha256 %}
signed by: {{ obj.cert_cn }} / {{ obj.cert_ou }} {% endif %} {% endif %} {% if target.target_type == "BUNDLE" %}
{{ obj.name }}
{{ obj.version|default:"-" }} / {{ obj.version_str|default:"-" }} {% endif %} {% if target.target_type == "METABUNDLE" %}
{{ obj.names|join:", " }} {% endif %} {% if target.target_type == "CERTIFICATE" %}
{{ obj.cn }}
{{ obj.ou }}
{{ obj.valid_from|date:"Y-m-d" }} → {{ obj.valid_until|date:"Y-m-d" }} {% endif %} {% if target.target_type == "TEAMID" %} {% if obj.organizations %}
Cert Org{{ obj.organizations|length|pluralize }}: {{ obj.organizations|join:", "}} {% endif %} {% endif %} {% if target.target_type == "CDHASH" or target.target_type == "SIGNINGID" %}
Filename{{ obj.file_names|length|pluralize }}: {{ obj.file_names|join:", " }} {% if obj.cert_cns %}
Cert CN{{ obj.cert_cns|length|pluralize }}: {{ obj.cert_cns|join:", " }} {% endif %} {% endif %}
Executed: {{ target.executed_count }}
Blocked: {{ target.blocked_count }}
Last seen: {{ target.last_seen }}
{% if target.min_state != target.max_state %} {{ target.min_state.label }} → {{ target.max_state.label }} {% else %} {{ target.min_state.label }} {% endif %} {% if target.min_score != target.max_score %} {{ target.min_score }} → {{ target.max_score }} {% else %} {{ target.min_score }} {% endif %} {{ target.rule_count }}
{% pagination next_url previous_url %} {% elif form.has_changed %} {% url 'santa:targets' as empty_results_url %} {% empty_results empty_results_url %} {% endif %} {% endblock %} {% block extrajs %} {% endblock %}