{% extends "securityaudit/base.html" %} {% load securityaudit_extras %} {% block securityaudit_content %}

Audit #{{ run.id }}

{% if can_rerun or can_requeue or can_delete or can_stop or can_generate_link or can_view_summary %}
{% if can_stop %}
{% csrf_token %}
{% endif %} {% if can_rerun %}
{% csrf_token %}
{% endif %} {% if can_requeue %} {% endif %} {% if can_delete %}
{% csrf_token %}
{% endif %} {% if can_generate_link or can_view_summary %} {% endif %}
{% endif %} {% if can_generate_link and generated_link_url %}
Generated shareable link (expires in {{ summary_link_expiry_hours }}h): {{ generated_link_url }}
{% endif %}
Target
{% if run.target.target_type == "individual" %} {{ target_affiliations.character_name|default:run.target }} {% else %} {{ target_affiliations.corp_name|default:run.target }} {% endif %}
Corporation
{% if target_affiliations.corp_logo_url %} {% endif %} {{ target_affiliations.corp_name|default:"-" }}
Alliance
{% if target_affiliations.alliance_logo_url %} {% endif %} {{ target_affiliations.alliance_name|default:"-" }}
Status {{ run.get_status_display }}
Risk {{ run.risk_level|title }} ({{ run.risk_score }})
Summary {{ summary_text|default:"-" }}
Initiated by
{% if started_by_portrait %} {% endif %} {{ started_by_name }}
Missing scopes {% if run.missing_scopes == '[]' or run.missing_scopes == 'None' or run.missing_scopes == 'null' %}{% else %}{{ run.missing_scopes }}{% endif %}
Error {% if run.error_message == 'None' or run.error_message == 'null' %}{% else %}{{ run.error_message }}{% endif %}
{{ run.progress_message|default:"Pending" }} {{ run.progress_percent }}%
{{ run.progress_details|json_script:"initial-progress-details" }}
{% if disclosed_alts %}
Disclosed Alts {{ disclosed_alts|length }}
{% for alt in disclosed_alts %}
{{ alt.character_name }} {% if alt.is_target %} Main {% endif %}
{% endfor %}
{% endif %} {% if capital_ship_observations %}
Observed Capital Ships
{% for category in capital_ship_observations %}
{{ category.label }} {{ category.total_owned_count }}
{% for ship in category.ships %}
{% if ship.total_owned_count %} {{ ship.total_owned_count }} {% endif %}
    {% for char in ship.characters %}
  • {{ char.character_name }} (zKill: {{ char.observation_count }}{% if char.first_seen %}, first {{ char.first_seen|date:"Y-m-d" }}{% endif %}{% if char.last_seen %}, last {{ char.last_seen|date:"Y-m-d" }}{% endif %}{% if char.asset_count %}, assets: {{ char.asset_count }}{% endif %}{% if char.is_current_ship %}, ACTIVE{% endif %}{% if char.contract_count %}, contracts: {{ char.contract_count }}{% endif %}{% if char.market_order_count %}, sell orders: {{ char.market_order_count }}{% endif %})
  • {% endfor %}
{% endfor %}
{% endfor %}
{% endif %} {% if child_runs %}
Audited Corporation Members
{% for child in child_runs %} {% endfor %}
Character Status Risk
{% if child.portrait_url %} {% endif %} {{ child.character_name }}
{{ child.status_display }} {{ child.risk_level|title }} ({{ child.risk_score }}) View
{% endif %} {% if can_view_summary %}
Summary Viewers
{% if summary_views %} {% else %}

No views recorded yet.

{% endif %}
{% endif %}
Findings
{% for finding in findings %} {% if finding.prepared_evidence %} {% endif %} {% empty %} {% endfor %}
Type Severity Title Details Impact
{{ finding.get_finding_type_display }} {{ finding.severity|title }} {{ finding.title }}

{{ finding.details }}

{% if finding.prepared_evidence %} {% endif %}
{{ finding.score_impact }}
    {% for item in finding.prepared_evidence %}
  • {% if item.key == "counterparty_character_id" %} {% with cp=counterparty_by_id|get:item.value %} {% if cp %}
    {% if cp.portrait_url %} {% endif %}
    {{ cp.character_name }} {% if cp.is_declared_alt %} Declared Alt {% endif %} {% if cp.memberaudit_url %}MemberAudit{% endif %} {% if cp.zkill_url %}zKill{% endif %}
    {% else %} {{ item.key }}: {{ item.value }} {% endif %} {% endwith %} {% elif item.key == "collusion_killmail_ids" %} {% if item.collusion_killmail_links %}
      {% for link in item.collusion_killmail_links %}
    • {{ link.date }} — {{ link.url }} {% if link.matches %} {% for match in link.matches %} {% if match.image_url %} {% endif %} {% endfor %} {% endif %}
    • {% endfor %}
    {% else %} none {% endif %} {% elif item.key == "matched_enemy_or_blacklist_entities" %} {{ item.key }}: {% if item.matched_entities %}
    {% for entity in item.matched_entities %}
    {% if entity.image_url %} {% endif %} {{ entity.name }} ({{ entity.source }} {{ entity.entity_type }} #{{ entity.entity_id }})
    {% endfor %}
    {% else %} none {% endif %} {% elif item.key == "awox_killmails" %} {% if item.awox_kill_links %}
    {% for link in item.awox_kill_links %} {% endfor %}
    Date Kind Victim Ship Value Damage Audited Char Score
    {{ link.date }} {% if link.zkill_url %}
    zKill {% endif %}
    {{ link.kind_label }} {% if link.friendly_path == 'blue_scouting' and link.friendly_link_char_name %}
    via {{ link.friendly_link_char_name }} ({{ link.friendly_link_type }})
    {% endif %}
    {% if link.victim_image_url %} {% endif %} {{ link.victim_name }}
    {{ link.victim_ship_name }} {{ link.zkb_value|floatformat:0 }} ISK {{ link.damage_share_pct|floatformat:2 }}% {% if link.final_blow %}FB{% endif %}
    {{ link.attacker_count }} attackers{% if link.enemy_attackers_present %} (hostiles){% endif %}
    {{ link.audited_char_name }} {% if link.audited_contributors|length > 1 %}
    +{{ link.audited_contributors|length|add:"-1" }} audited contributor(s) {% endif %} {% if link.weapon_name %}
    {{ link.weapon_name }}{% endif %}
    {{ link.kill_score }}
    {% else %} none {% endif %} {% elif item.key == "enemy_connection" %} {% with ec=item.enemy_connection %} {% if ec %}
    {% if ec.image_url %} {% endif %}
    {{ ec.name }}
    {% if ec.corp_id %} {{ ec.corp_name }} {% endif %} {% if ec.alliance_id %} {{ ec.alliance_name }} {% endif %}
    {% else %} none {% endif %} {% endwith %} {% elif item.key == "total_isk" %} {{ item.key }}: {{ item.value|format_isk }} {% elif item.key == "hop_window" %} {{ item.value|safe }} {% else %} {{ item.key }}: {{ item.value }} {% endif %}
  • {% endfor %}
No findings.
Counterparties
{% for cp in counterparty_rows %} {% if cp.notes %} {% endif %} {% empty %} {% endfor %}
Type Counterparty Affiliation Relationship Amount Events Details
{{ cp.type }}
{% if cp.portrait_url %} {% endif %}
{{ cp.character_name|default:"Unknown" }} {% if cp.is_declared_alt %} Declared Alt {% endif %}
{% if cp.memberaudit_url %}MemberAudit{% endif %} {% if cp.zkill_url %}zKill{% endif %}
{{ cp.corp_name|default:"-" }}{% if cp.alliance_name %} / {{ cp.alliance_name }}{% endif %} {{ cp.relationship }} {% if cp.total_amount %}{{ cp.total_amount|format_isk }}{% else %}-{% endif %} {{ cp.event_count }} {% if cp.notes %} {% else %}-{% endif %}
{{ cp.notes|safe }}
No counterparties.
{% if run.target.target_type == "individual" %}
Corp History

Red rows are part of a corp-hopping window (at least {{ corp_hop_count_threshold }} changes within {{ corp_hop_window_days }} days).

{% for row in corp_history %} {% empty %} {% endfor %}
Corporation Start Date End Date Duration
{% if row.logo_url %}{% else %}-{% endif %} {{ row.corp_name }} {% if row.npc %}NPC{% endif %} {{ row.start_date_str|default:"-" }} {{ row.end_date_str|default:"-" }} {% if row.duration_days is not None %}{{ row.duration_days }} day{{ row.duration_days|pluralize }}{% else %}-{% endif %}
No corporation history available.
{% endif %} {% if can_requeue %} {% endif %} {% endblock %}