{% extends "base.html" %} {% set active_page = "supply_chain" %} {% block title %}FaultRay - Supply Chain Analysis{% endblock %} {% block page_title %}Supply Chain Analysis{% endblock %} {% block page_subtitle %}Simulate supply chain attacks and package vulnerability propagation{% endblock %} {% block top_actions %} {% endblock %} {% block content %}

Supply Chain Risk

Lower is better
{% set sc_score = report.overall_risk_score if report else 0 %} {% if sc_score <= 30 %} {% set sc_class = "score-good" %} {% set sc_label = "Low Risk" %} {% elif sc_score <= 60 %} {% set sc_class = "score-warning" %} {% set sc_label = "Moderate" %} {% else %} {% set sc_class = "score-critical" %} {% set sc_label = "High Risk" %} {% endif %}
{{ "%.0f"|format(sc_score) }}
{{ sc_label }}

Package Summary

{% if report %}
{{ report.total_packages_analyzed }}
Packages Analyzed
{{ report.vulnerable_packages }}
Vulnerable
{{ report.compromised_packages }}
Compromised
{{ report.package_impacts|length }}
Impact Paths
{% else %}

Run the analysis to see results.

{% endif %}

Package Vulnerabilities

{% if report and report.package_impacts %} {% for pkg in report.package_impacts|sort(attribute='risk_score', reverse=true) %} {% endfor %} {% else %} {% endif %}
Package Version CVE Severity Risk Score Blast Radius Agent Hallucination Risk
{{ pkg.package_name }} {{ pkg.package_version }} {{ pkg.cve_id }} {% if pkg.severity == "critical" %} CRITICAL {% elif pkg.severity == "high" %} HIGH {% elif pkg.severity == "medium" %} MEDIUM {% else %} LOW {% endif %} {% if pkg.risk_score >= 7 %} {{ "%.1f"|format(pkg.risk_score) }}/10 {% elif pkg.risk_score >= 4 %} {{ "%.1f"|format(pkg.risk_score) }}/10 {% else %} {{ "%.1f"|format(pkg.risk_score) }}/10 {% endif %} {{ pkg.total_blast_radius }} component(s) {% if pkg.agent_hallucination_risk %} Yes {% else %} No {% endif %}
No data yet. Run analysis above.
{% if report and report.package_impacts %}

Attack Propagation Paths

{% for pkg in report.package_impacts %} {% if pkg.attack_path %}

{{ pkg.package_name }} ({{ pkg.cve_id }})

{{ pkg.severity|upper }}
{% for step in pkg.attack_path %}
{{ step }}
{% if not loop.last %} {% endif %} {% endfor %}
{% if pkg.recommendation %}
Recommendation: {{ pkg.recommendation }}
{% endif %}
{% endif %} {% endfor %}
{% endif %} {% if report and report.cross_layer_risks %}

Cross-Layer Risks

Supply chain vulnerabilities that may cause agent hallucinations
{% for risk in report.cross_layer_risks %}
{{ loop.index }}. {{ risk }}
{% endfor %}
{% endif %} {% if report and report.recommendations %}

Recommendations

{% for rec in report.recommendations %}
{{ loop.index }}. {{ rec }}
{% endfor %}
{% endif %}
{% endblock %}