diff --git a/AppImage/components/security.tsx b/AppImage/components/security.tsx index de0d0e5e..88e55934 100644 --- a/AppImage/components/security.tsx +++ b/AppImage/components/security.tsx @@ -864,6 +864,10 @@ export function Security() { const now = new Date().toLocaleString() const logoUrl = `${window.location.origin}/images/proxmenux-logo.png` + const actionableWarnings = report.warnings.length - (report.proxmox_expected_warnings ?? 0) + const actionableSuggestions = report.suggestions.length - (report.proxmox_expected_suggestions ?? 0) + const totalExpected = (report.proxmox_expected_warnings ?? 0) + (report.proxmox_expected_suggestions ?? 0) + return `
@@ -871,250 +875,277 @@ export function Security() {ProxMenux Monitor - Lynis System Audit
- This automated security audit was performed on host ${report.hostname || "Unknown"} + Audit of ${report.hostname || "Unknown"} running ${report.os_fullname || `${report.os_name} ${report.os_version}`.trim() || "Unknown OS"} (Proxmox VE). - A total of ${report.tests_performed} tests were executed, - resulting in ${report.warnings.length} warning(s) - and ${report.suggestions.length} suggestion(s) for improvement. + ${report.tests_performed} tests executed. + ${actionableWarnings > 0 ? `${actionableWarnings} actionable warning(s)` : 'No actionable warnings'} + and ${actionableSuggestions} actionable suggestion(s). + ${totalExpected > 0 ? `${totalExpected} findings are expected behavior in Proxmox VE.` : ""}
+ ${hasAdjustment ? ` +Issues that require immediate attention and may represent security vulnerabilities.
+Issues that require attention and may represent security vulnerabilities.
${report.warnings.length === 0 ? - 'Recommended improvements to strengthen your system's security posture.${(report.proxmox_expected_suggestions ?? 0) > 0 ? ` ${report.proxmox_expected_suggestions} items are expected behavior in Proxmox VE.` : ""}
+Recommended improvements to strengthen security.${(report.proxmox_expected_suggestions ?? 0) > 0 ? ` ${report.proxmox_expected_suggestions} are expected in Proxmox VE.` : ""}
${report.suggestions.length === 0 ? - 'Complete list of all security checks performed during the audit, organized by category.
+All security checks performed, organized by category.
${report.sections.map((section, sIdx) => ` -| Check | -Status | -
|---|
| Check | Status |
|---|---|
| ${check.name}${check.detail ? ` (${check.detail})` : ""} | -${check.status} | + const cls = isWarn ? ' class="warn"' : isSugg ? ' class="sugg"' : "" + return `
| ${check.name}${check.detail ? ` (${check.detail})` : ""} | +${check.status} |