mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-10-20 06:27:31 +02:00
feat(web+report): Wiz-style attack path nodes, inline finding details, PDF formatting
- Graph: circular SVG-icon nodes with colored rings by entity type (Host, Finding, Impact, Credential, etc.) — Wiz/Orca visual style - Graph: per-finding inline detail panel with CWE/CVSS/OWASP/MITRE cards instead of modal popup - Graph: legend uses colored dots matching node ring colors - Settings: fix LLM Provider Keys modal using correct CSS classes (modal-head/modal-foot instead of modal-header/modal-footer) - Report PDF: test accounts rendered as bulleted list instead of run-on paragraph; impact/remediation preserve paragraph breaks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UqW6BbQgqGkEDn3RYuCVoM
This commit is contained in:
1 parent
f796547803
commit
edc3d83c64
5 files changed
+196
-88
No files matched your search
+66
-40
@@ -657,7 +657,7 @@ textarea { resize: vertical; min-height: 72px; }
|
||||
.modal-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--border); }
|
||||
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
|
||||
.modal-head .title { font-size: var(--fs-lg); font-weight: 600; }
|
||||
.modal-sub { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-faint); margin-top: 2px; }
|
||||
.modal-head .modal-sub { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-faint); margin-top: 2px; }
|
||||
.modal-tabs { display: flex; gap: var(--sp-1); padding: 0 var(--sp-5); border-bottom: 1px solid var(--border); }
|
||||
.modal-tab { padding: var(--sp-3) var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-faint); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
|
||||
.modal-tab.active { color: var(--text); border-bottom-color: var(--accent); }
|
||||
@@ -668,15 +668,14 @@ textarea { resize: vertical; min-height: 72px; }
|
||||
.field-status.ok { color: var(--sev-low-fg); }
|
||||
.field-status.bad { color: var(--sev-critical-fg); }
|
||||
|
||||
.provider-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); position: relative; }
|
||||
.provider-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
|
||||
.provider-row:last-child { border-bottom: none; }
|
||||
.provider-row .p-name { flex: none; width: 150px; font-size: var(--fs-sm); font-weight: 500; }
|
||||
.provider-row .p-kind { flex: none; width: 74px; font-size: var(--fs-2xs); text-transform: uppercase; color: var(--text-faint); font-family: var(--mono); }
|
||||
.provider-row .p-status { flex: 1; font-size: var(--fs-2xs); color: var(--text-faint); }
|
||||
.provider-row .p-status.configured { color: var(--sev-low-fg); font-weight: 600; }
|
||||
.provider-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); flex: none; }
|
||||
.provider-row .dot.set { background: var(--sev-low-fg); }
|
||||
.provider-row .btn-config { flex: none; }
|
||||
.provider-row .p-name { flex: none; width: 160px; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.provider-row .p-kind { flex: none; width: 64px; font-size: var(--fs-2xs); text-transform: uppercase; color: var(--text-faint); font-family: var(--mono); }
|
||||
.provider-row input { flex: 1; min-width: 0; }
|
||||
.provider-row .btn { flex: none; }
|
||||
.key-verify { flex: none; font-size: var(--fs-2xs); font-weight: 700; min-width: 60px; }
|
||||
.key-verify.ok { color: var(--sev-low-fg); }
|
||||
.key-verify.bad { color: var(--sev-critical-fg); }
|
||||
@@ -973,37 +972,65 @@ body.resizing-ns { user-select: none; cursor: ns-resize; }
|
||||
.ts-step { font-family: var(--mono); font-size: var(--fs-xs); }
|
||||
.ts-action { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }
|
||||
|
||||
/* graph (web + internal network) */
|
||||
/* graph (web + internal network) — Wiz-style attack path visualization */
|
||||
.gm-wrap { position: relative; height: 640px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: grab;
|
||||
background-color: var(--surface-2); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; }
|
||||
background-color: var(--surface); background-image: radial-gradient(var(--border) .5px, transparent .5px); background-size: 24px 24px; }
|
||||
.gm-wrap.dragging { cursor: grabbing; }
|
||||
.gm-wrap[hidden] { display: none; }
|
||||
.gm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
|
||||
.gm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
|
||||
.gm-e { fill: none; stroke-width: 1.4; opacity: .55; }
|
||||
.gm-e.gm-trav { stroke-width: 2; opacity: .85; }
|
||||
.gm-e { fill: none; stroke-width: 2; opacity: .6; }
|
||||
.gm-e.gm-trav { stroke-width: 2.5; opacity: .85; }
|
||||
.gm-e.es-confirmed { stroke: var(--sev-low-fg); }
|
||||
.gm-e.es-needs_validation { stroke: var(--sev-medium-fg); stroke-dasharray: 6 4; }
|
||||
.gm-e.es-hypothesis { stroke: var(--text-faint); stroke-dasharray: 2 4; }
|
||||
.gm-e.es-needs_review { stroke: var(--sev-info-fg); stroke-dasharray: 4 3; }
|
||||
.gm-stage.focusing .gm-e { opacity: .12; }
|
||||
.gm-stage.focusing .gm-e.hl { opacity: 1; stroke-width: 2.6; }
|
||||
.gm-node { position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-left: 4px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 8px; cursor: pointer; overflow: hidden; box-shadow: 0 1px 0 var(--border); }
|
||||
.gm-node:hover { border-color: var(--text-dim); }
|
||||
.gm-node.sel { outline: 2px solid var(--focus-ring); }
|
||||
.gm-node-h { display: flex; align-items: center; gap: 5px; }
|
||||
.gm-lbl { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--text-faint); }
|
||||
.gm-node .sev { font-size: var(--fs-2xs); padding: 0 5px; }
|
||||
.gm-crit { color: var(--sev-critical-fg); font-size: var(--fs-xs); }
|
||||
.gm-node-t { font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
|
||||
.gk-asset { border-left-color: var(--sev-info-fg); }
|
||||
.gk-surface { border-left-color: var(--text-faint); }
|
||||
.gk-weak { border-left-color: var(--sev-high-fg); }
|
||||
.gk-step { border-left-color: var(--accent); }
|
||||
.gk-cred { border-left-color: var(--sev-medium-fg); }
|
||||
.gk-impact { border-left-color: var(--sev-critical-fg); background: var(--sev-critical-bg); }
|
||||
.gk-meta { border-left-color: var(--border); opacity: .8; }
|
||||
.gm-leg { font-size: var(--fs-xs); padding: 3px 8px 3px 6px; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-xs); background: var(--surface); color: var(--text-dim); }
|
||||
.gm-stage.focusing .gm-e { opacity: .1; }
|
||||
.gm-stage.focusing .gm-e.hl { opacity: 1; stroke-width: 3; }
|
||||
/* Circular node — Wiz/Orca style */
|
||||
.gm-node { position: absolute; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
|
||||
.gm-node:hover .gm-circle { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
|
||||
.gm-node.sel .gm-circle { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.gm-circle { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; position: relative; }
|
||||
.gm-circle svg { width: 26px; height: 26px; }
|
||||
.gm-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--surface); }
|
||||
.gm-node-label { font-size: var(--fs-xs); font-weight: 500; color: var(--text); text-align: center; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
|
||||
.gm-node-sub { font-size: var(--fs-2xs); color: var(--text-faint); text-align: center; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
/* Color rings by kind */
|
||||
.gk-internet .gm-circle { border-color: #4da6ff; background: #e8f4fd; }
|
||||
.gk-asset .gm-circle { border-color: #4da6ff; background: #e8f4fd; }
|
||||
.gk-surface .gm-circle { border-color: #f59e0b; background: #fef3c7; }
|
||||
.gk-weak .gm-circle { border-color: #ef4444; background: #fef2f2; }
|
||||
.gk-step .gm-circle { border-color: #8b5cf6; background: #f3e8ff; }
|
||||
.gk-cred .gm-circle { border-color: #10b981; background: #ecfdf5; }
|
||||
.gk-impact .gm-circle { border-color: #ef4444; background: #fef2f2; }
|
||||
.gk-meta .gm-circle { border-color: var(--border); background: var(--surface-2); }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .gk-internet .gm-circle { border-color: #60a5fa; background: rgba(96,165,250,.12); }
|
||||
:root:not([data-theme="light"]) .gk-asset .gm-circle { border-color: #60a5fa; background: rgba(96,165,250,.12); }
|
||||
:root:not([data-theme="light"]) .gk-surface .gm-circle { border-color: #fbbf24; background: rgba(251,191,36,.12); }
|
||||
:root:not([data-theme="light"]) .gk-weak .gm-circle { border-color: #f87171; background: rgba(248,113,113,.12); }
|
||||
:root:not([data-theme="light"]) .gk-step .gm-circle { border-color: #a78bfa; background: rgba(167,139,250,.12); }
|
||||
:root:not([data-theme="light"]) .gk-cred .gm-circle { border-color: #34d399; background: rgba(52,211,153,.12); }
|
||||
:root:not([data-theme="light"]) .gk-impact .gm-circle { border-color: #f87171; background: rgba(248,113,113,.12); }
|
||||
}
|
||||
:root[data-theme="dark"] .gk-internet .gm-circle { border-color: #60a5fa; background: rgba(96,165,250,.12); }
|
||||
:root[data-theme="dark"] .gk-asset .gm-circle { border-color: #60a5fa; background: rgba(96,165,250,.12); }
|
||||
:root[data-theme="dark"] .gk-surface .gm-circle { border-color: #fbbf24; background: rgba(251,191,36,.12); }
|
||||
:root[data-theme="dark"] .gk-weak .gm-circle { border-color: #f87171; background: rgba(248,113,113,.12); }
|
||||
:root[data-theme="dark"] .gk-step .gm-circle { border-color: #a78bfa; background: rgba(167,139,250,.12); }
|
||||
:root[data-theme="dark"] .gk-cred .gm-circle { border-color: #34d399; background: rgba(52,211,153,.12); }
|
||||
:root[data-theme="dark"] .gk-impact .gm-circle { border-color: #f87171; background: rgba(248,113,113,.12); }
|
||||
.gm-sev-badge { position: absolute; top: -2px; left: -2px; font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 1px 5px; border-radius: 8px; }
|
||||
.gm-leg { font-size: var(--fs-xs); padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
|
||||
.gm-leg .gm-leg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid; }
|
||||
.gm-leg.gk-internet .gm-leg-dot { border-color: #4da6ff; }
|
||||
.gm-leg.gk-asset .gm-leg-dot { border-color: #4da6ff; }
|
||||
.gm-leg.gk-surface .gm-leg-dot { border-color: #f59e0b; }
|
||||
.gm-leg.gk-weak .gm-leg-dot { border-color: #ef4444; }
|
||||
.gm-leg.gk-step .gm-leg-dot { border-color: #8b5cf6; }
|
||||
.gm-leg.gk-cred .gm-leg-dot { border-color: #10b981; }
|
||||
.gm-leg.gk-impact .gm-leg-dot { border-color: #ef4444; }
|
||||
.gm-leg-sep { width: 1px; height: 18px; background: var(--border); }
|
||||
.gm-edge-leg { font-size: var(--fs-xs); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
|
||||
.gm-edge-leg::before { content: ""; width: 22px; border-top: 2px solid; }
|
||||
@@ -1106,12 +1133,6 @@ a.deliv-card:hover { border-color: var(--accent); }
|
||||
.moves li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0; }
|
||||
.moves details summary { cursor: pointer; font-size: var(--fs-xs); color: var(--accent); margin-top: 4px; }
|
||||
|
||||
.gm-leg.gk-asset { border-left-color: var(--sev-info-fg); }
|
||||
.gm-leg.gk-surface { border-left-color: var(--text-faint); }
|
||||
.gm-leg.gk-weak { border-left-color: var(--sev-high-fg); }
|
||||
.gm-leg.gk-step { border-left-color: var(--accent); }
|
||||
.gm-leg.gk-cred { border-left-color: var(--sev-medium-fg); }
|
||||
.gm-leg.gk-impact { border-left-color: var(--sev-critical-fg); background: var(--surface); }
|
||||
.panel-toolbar .input-sm { width: 200px; flex: 0 0 auto; }
|
||||
.panel-toolbar select.input-sm { width: 150px; }
|
||||
.panel-toolbar .search-wrap { flex: 1 1 260px; max-width: 420px; }
|
||||
@@ -1128,10 +1149,15 @@ a.deliv-card:hover { border-color: var(--accent); }
|
||||
.gfl-item .gfl-sev { font-size: var(--fs-2xs); font-weight: 700; flex: none; padding: 1px 5px; border-radius: var(--radius-xs); }
|
||||
.gfl-item .gfl-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
|
||||
.graph-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
|
||||
.gm-finding-desc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-2); flex: none; }
|
||||
.gm-finding-desc .fd-header { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
|
||||
.gm-finding-desc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-4); margin: 0 0 var(--sp-2); flex: none; max-height: 320px; overflow-y: auto; }
|
||||
.gm-finding-desc .fd-header { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
|
||||
.gm-finding-desc .fd-title { font-weight: 600; font-size: var(--fs-base); }
|
||||
.gm-finding-desc .fd-body { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.5; }
|
||||
.gm-finding-desc .fd-body p { margin: 4px 0; }
|
||||
.gm-finding-desc .fd-meta { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--text-faint); }
|
||||
.gm-finding-desc .fd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
|
||||
.gm-finding-desc .fd-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); }
|
||||
.gm-finding-desc .fd-card-label { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 600; }
|
||||
.gm-finding-desc .fd-card-value { font-size: var(--fs-sm); font-weight: 500; margin-top: 2px; font-family: var(--mono); }
|
||||
.gm-finding-desc .fd-section { margin-bottom: var(--sp-3); }
|
||||
.gm-finding-desc .fd-section:last-child { margin-bottom: 0; }
|
||||
.gm-finding-desc .fd-section-title { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-bottom: var(--sp-1); }
|
||||
.gm-finding-desc .fd-section p { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.6; margin: 0; }
|
||||
@media (max-width: 760px) { .graph-finding-list { width: 160px; } }
|
||||
Reference in new issue
Block a user