{% extends 'base.html' %} {% load fontawesome_5 %} {% load static %} {% block content %}
{% fa5_icon 'bars' %}

Scan

Description: {{ scan.description }}

Created by: {{ scan.user.username }}

Status: {{ scan.status }}

{% if scan.progress == 100 %}
{{ scan.progress }} %
{% else %}
{{ scan.progress }} %
{% endif %}

{% csrf_token %}
{% if scan.progress >= 40 %} Export {% fa5_icon 'download' %} {% endif %}

Application info
Icon {% if scan.icon %} embedded {% endif %}
App name {{ scan.apk_name }}
Package {{ scan.package }}
Version name {{ scan.version_name }}
Version code {{ scan.version_code }}
Min version {{ scan.min_sdk_version }}
Max version {{ scan.max_sdk_version }}
Target version {{ scan.target_sdk_version }}
Effective version {{ scan.effective_target_sdk_version }}
File size {{ scan.file_size }}
md5 {{ scan.md5 }}
sha256 {{ scan.sha256 }}
{% if scan.progress >= 40 %}
Security info
{% if settings.VIRUSTOTAL_ENABLED %} {% if antivirus_scan.malicious > 0 %} {% else %} {% endif %} {% endif %}
Number of findings {{ scan.findings }}
By Severity {% for severity, number in findings_by_severity.items %} {% if severity == 'Critical' %} {% elif severity == 'High' %} {% elif severity == 'Medium'%} {% elif severity == 'Low' %} {% else %} {% endif %} {% endfor %}
{{ severity }} {% fa5_icon 'exclamation-circle' color='black' %} {{ number }} {% fa5_icon 'exclamation-circle' color='red' %} {{ number }} {% fa5_icon 'exclamation-circle' color='orange' %} {{ number }}{% fa5_icon 'exclamation-circle' color='blue' %} {{ number }}{% fa5_icon 'check-circle' color='green' %} {{ number }}
Detections in VT {% fa5_icon 'shield-alt' color='red' %} {{ antivirus_scan.malicious }} {% fa5_icon 'shield-alt' color='green' %} {{ antivirus_scan.malicious }}
{% endif %}
Permissions
{% for p in permissions %} {% if p.severity == 'HI' %} {% elif p.severity == 'ME' %} {% else %} {% endif %} {% endfor %}
ID Name Type Severity Status
{{ forloop.counter }} {{ p.permission.name }} {{ p.permission.type }} {{ p.get_severity_display }} {% fa5_icon 'exclamation-circle' color='red' %}{% fa5_icon 'exclamation-circle' color='orange' %}{% fa5_icon 'check-circle' color='green' %}
{% if activities %}
Activities
{% for a in activities %} {% if a.main %} {% else %} {% endif %} {% endfor %}
ID Name Main
{{ a.id }} {{ a.name }} {% fa5_icon 'check-circle' color='green' %}{% fa5_icon 'times-circle' color='red' %}
{% endif %} {% if components_intents %}
Components
{% for component, intents in components_intents %} {% endfor %}
ID Type Name Intents
{{ component.id }} {{ component.type }} {{ component.name }} {% if intents %} {% for intent in intents %} {% endfor %}
ID Intent Action
{{ intent.id }} {{ intent.name }} {{ intent.action }}
{% endif %}
{% endif %} {% if certificates %}
Certificates
{% for certificate in certificates %} {% endfor %}
ID Version Subject Issuer Hash algorithm Signature algorithm Serial number Sha1 Sha256
{{ certificate.id }} {{ certificate.version }} {{ certificate.subject }} {{ certificate.issuer }} {{ certificate.hash_algorithm }} {{ certificate.signature_algorithm }} {{ certificate.serial_number }} {{ certificate.sha1 }} {{ certificate.sha256 }}
{% endif %} {% if settings.VIRUSTOTAL_ENABLED and antivirus_scan %}
Virus Total Scan
{% if antivirus_scan.link %} VT Link {% fa5_icon 'external-link-alt' %} {% endif %}
ID {{ antivirus_scan.identifier }}
Data {% if antivirus_scan.uploaded %} {% else %} {% endif %}
Type {{ antivirus_scan.type }}
Magic {{ antivirus_scan.magic }}
Reputation {{ antivirus_scan.reputation }}
UploadedYesNo
Date
Last scan date {{ antivirus_scan.date }}
First seen {{ antivirus_scan.first_seen }}
First submission {{ antivirus_scan.first_submission}}
Last submission {{ antivirus_scan.last_submission}}
Last scan
Malicious {{ antivirus_scan.malicious }}
Harmless {{ antivirus_scan.harmless }}
Suspicious {{ antivirus_scan.suspicious }}
Undetected {{ antivirus_scan.undetected }}
Timeout {{ antivirus_scan.timeout }}
Unsupported {{ antivirus_scan.unsupported }}
Type Unsupported {{ antivirus_scan.type_unsupported }}
Hashes
md5 {{ antivirus_scan.md5 }}
sha256 {{ antivirus_scan.sha256 }}
ssdeep {{ antivirus_scan.ssdeep }}
Votes
Harmless {{ antivirus_scan.votes_harmless }}
Malicious {{ antivirus_scan.votes_malicious }}
{% if antivirus %} {% for av in antivirus %} {% if av.result != null %} {% else %} {% endif %} {% endfor %}
ID Antivirus Version Category Result Update Detected Status
{{ av.id }} {{ av.name }} {{ av.version }} {{ av.category }} {{ av.result }} {{ av.update }} Yes {% fa5_icon 'check-circle' color='red' %}No {% fa5_icon 'times-circle' color='green' %}
{% endif %}
{% endif %} {% if findings or scan.progress >= 40 %}
Findings
New Finding

Number of findings: {{ scan.findings }}

{% csrf_token %} {% for category in categories %} {% with id=category.id %} {% if findings_ordered|lookup:id %} {% endif %} {% endwith %}{% endfor %}
ID Finding Number Findings
{{ category.id }} {{ category.default_name }} {{ findings_ordered| lookup:id|length }}
{% if settings.DEFECTDOJO_ENABLED %} {% endif %} {% for finding in findings_ordered|lookup:id %} {% if settings.DEFECTDOJO_ENABLED %} {% endif %} {% endfor %}
ID Severity File LN Line Status CWE RiskDojo ID
{{ finding.id }} {{ finding.get_severity_display }} {{ finding.path }} {{ finding.line_number }} {{ finding.line }} {{ finding.get_status_display }} {{ finding.cwe.cwe }} M{{ pattern.default_risk.risk }} {% if finding.defectdojo_id > 0 %} {{ finding.defectdojo_id }} {% else %} N/A{% endif %}
{% endif %} {% if all_practices and scan.progress >= 40 %}
Security Best Practices
{% for practice in all_practices %} {% endfor %}
Name Description Implementation
{{ practice.default_name }} {{ practice.default_description }} {% for finding in best_practices %} {% if finding.type.id == practice.id %} {% endif %} {% endfor %}
ID Path LN Line
{{ finding.id }} {{ finding.path }} {{ finding.line_number }} {{ finding.line }}
{% endif %} {% if files or scan.progress >= 40 %}
Files
{% for file in files %} {% if file.type == 'html' %} {% else %} {% endif %} {% endfor %}
ID Path Type
{{ file.id }}{{ file.name }}{{ file.name }} {{ file.type }}
{% endif %} {% if strings or scan.progress >= 40 %}
Strings
{% for string in strings %} {% endfor %}
ID Type Value Finding
{{ string.id }} {{ string.type }} {{ string.value }} {{ string.finding.id }}
{% endif %}
{% if database or scan.progress >= 40 %}
Databases
{% for table in database %} {% endfor %}
ID Table Data
{{ table.id }} {{ table.table }} {{ table.info }}
{% endif %}
{% fa5_icon 'chevron-up' %}
{% endblock %}