margin-bottom: 20px; flex-wrap: wrap; } .btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 0.9rem; } .btn-primary { background: #fff; color: #667eea; box-shadow: 0 4px 15px rgba(0,0,0,0.2); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); } .btn-secondary { background: transparent; color: white; border: 2px solid white; } .btn-secondary:hover { background: white; color: #667eea; } main { background: white; margin-top: -30px; border-radius: 20px 20px 0 0; box-shadow: 0 -5px 30px rgba(0,0,0,0.1); position: relative; z-index: 1; min-height: calc(100vh - 200px); } .content { padding: 40px; } .header { text-align: center; border-bottom: 3px solid #007acc; padding-bottom: 20px; margin-bottom: 30px; } .header h1 { color: #007acc; margin-bottom: 10px; } .score-badge { display: inline-block; padding: 10px 20px; border-radius: 25px; font-weight: bold; font-size: 1.2em; } .score-excellent { background-color: #d4edda; color: #155724; } .score-good { background-color: #d1ecf1; color: #0c5460; } .score-fair { background-color: #fff3cd; color: #856404; } .score-poor { background-color: #f8d7da; color: #721c24; } .severity-critical { color: #dc3545; font-weight: bold; } .severity-high { color: #fd7e14; font-weight: bold; } .severity-medium { color: #ffc107; font-weight: bold; } .severity-low { color: #28a745; } .severity-info { color: #17a2b8; } .finding { border: 1px solid #ddd; border-radius: 8px; margin: 15px 0; padding: 20px; background-color: #f8f9fa; } .finding-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .finding-id { background-color: #007acc; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.9em; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; } .stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; } .stat-number { font-size: 2em; font-weight: bold; color: #007acc; } table { width: 100%; border-collapse: collapse; margin: 20px 0; } th, td { border: 1px solid #ddd; padding: 12px; text-align: left; } th { background-color: #f2f2f2; font-weight: bold; } @media (max-width: 768px) { .logo { font-size: 2rem; } .tagline { font-size: 1rem; } .nav-buttons { flex-direction: column; align-items: center; } .content { padding: 20px; } }

OSVM Security Audit Report

Generated: {{ timestamp }}

Version: {{ version }}

Security Score: {{ summary.security_score }}/100

Compliance Level: {{ summary.compliance_level }}

{{ summary.total_findings }}
Total Findings
{{ summary.critical_findings }}
Critical
{{ summary.high_findings }}
High
{{ summary.medium_findings }}
Medium
{% if has_critical or has_high %}
⚠️ Warning: This audit identified {{ total_serious }} critical or high severity findings that require immediate attention.
{% endif %}

System Information

ComponentVersion
Rust{{ system_info.rust_version }}
Solana{{ system_info.solana_version | default(value="Not installed") }}
OS{{ system_info.os_info }}
Architecture{{ system_info.architecture }}

Security Findings

{% for category, findings in categorized_findings %}

{{ category }} ({{ findings | length }} findings)

{% for finding in findings %}

{{ finding.title }}

{{ finding.id }} {{ finding.severity }}

Description: {{ finding.description }}

Impact: {{ finding.impact }}

Recommendation: {{ finding.recommendation }}

{% if finding.cwe_id or finding.cvss_score %}

{% if finding.cwe_id %}CWE ID: {{ finding.cwe_id }} {% endif %} {% if finding.cvss_score %}CVSS Score: {{ finding.cvss_score }}{% endif %}

{% endif %} {% if finding.code_location %}

Code Location: {{ finding.code_location }}

{% endif %} {% if finding.references %}

References:

{% endif %}
{% endfor %} {% endfor %} {% if deeplogic_findings %}

🧠 DeepLogic AI Analysis

AI-Powered Logical Vulnerability Analysis

The following findings represent complex logical vulnerabilities detected through advanced AI analysis, including problematic code identification and suggested remediation.

{% for analysis in deeplogic_findings %}

🧠 {{ analysis.title }}

{{ analysis.category }} {{ analysis.severity }} Confidence: {{ (analysis.confidence_score * 100) | round }}%
🤖 AI-Powered Analysis:

{{ analysis.ai_powered_analysis }}

⚠️ Risk Scenario:

{{ analysis.risk_scenario }}

🔴 Problematic Code ({{ analysis.problematic_code.file_path }}:{{ analysis.problematic_code.start_line }}-{{ analysis.problematic_code.end_line }}):
{{ analysis.problematic_code.content }}
🟢 Suggested Fix:
{{ analysis.suggested_fix.content }}
💡 Explanation of Fix:

{{ analysis.explanation_of_fix }}

{% if analysis.additional_considerations %}
🔧 Additional Considerations:
    {% for consideration in analysis.additional_considerations %}
  • {{ consideration }}
  • {% endfor %}
{% endif %}
{% endfor %} {% endif %}

Security Recommendations

    {% for recommendation in recommendations %}
  1. {{ recommendation }}
  2. {% endfor %}

Compliance Notes

Audit Statistics

MetricValue
Total Findings{{ statistics.total_findings }}
Findings with CWE{{ statistics.findings_with_cwe }}
Findings with CVSS{{ statistics.findings_with_cvss }}
Unique Categories{{ statistics.unique_categories }}
Average CVSS Score{{ statistics.average_cvss_score | round(precision=1) }}
Coverage Percentage{{ statistics.coverage_percentage | round(precision=1) }}%

Generated by OSVM Security Audit System

End of Report