Skip to content

armgit / ARES

Public Imported from GitHub
0

ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.

feat(graph): modernize tactical pivot graph, animated firewall flames, and inspector drawer

Mafifrizib81ed79f4418
diff --git a/README.md b/README.md
index 1decc48..ae1fd04 100644
--- a/README.md
+++ b/README.md
@@ -186,29 +186,35 @@ The ARES Platform features a high-performance, responsive operator dashboard eng
---
-### 5. Multi-Vector Pivot Graph & Cobalt Strike Beacon Terminal Dock
+### 5. Multi-Vector Pivot Graph & ARES Beacon Terminal Console
-*Interactive Cobalt Strike-styled hierarchical lateral pivot topology graph paired with a real-time multi-tabbed Beacon session terminal console.*
+*Interactive hierarchical lateral pivot topology graph with perimeter firewall flame effects, slide-over Tactical Inspector Drawer, and a real-time docked Beacon session terminal console.*
<div align="center">
-![ARES Multi-Vector Pivot Graph & Cobalt Strike Beacon Terminal Console](docs/assets/screenshots/dashboard-graph.png)
+![ARES Multi-Vector Pivot Graph & Interactive Beacon Terminal Console](docs/assets/screenshots/dashboard-graph.png)
-*Cobalt Strike Hierarchical Pivot Graph & Docked Beacon Terminal Console - Live enterprise campaign topology (`Operation Titan Shield`), multi-hop lateral pivot routes, dynamic privilege borders (SYSTEM * / ADMIN / BEACON), and real-time interactive command terminal.*
+*ARES Tactical Pivot Graph & Interactive Beacon Terminal Console - Live enterprise campaign topology (`Kali test`), perimeter ingress firewall with animated flames, Linux/Windows compromised footholds, slide-over Tactical Inspector Drawer, and real-time interactive beacon terminal.*
</div>
- **The Problem Solved**: Translates raw active directory vulnerabilities and compromised footholds into visual, navigable lateral pivot chains while providing offensive operators an immediate interactive command console without switching windows.
- **Key Capabilities**:
- - **Hierarchical Enterprise Pivot Graph**: Strict left-to-right adversary traversal topology showing perimeter ingress firewall (`K8S-INGRESS-01`), initial foothold workstations (`WS-FIN-042`, `AWS-IMDS-GW`), internal database and file servers (`SQL01`, `FS01`), and high-value Active Directory Domain Controllers (`DC01`).
- - **Authentic Visual Privilege Semantics**: Dynamic glowing border indicators reflecting actual compromise tiers - Crimson `SYSTEM *` for Tier-0 Domain Controllers, Amber `ADMIN` for internal servers, Cyan `BEACON` for compromised user workstations, and Red Brick Firewall nodes for perimeter ingress.
+ - **Hierarchical Enterprise Pivot Graph**: Strict left-to-right adversary traversal topology showing perimeter ingress firewall (`PERIMETER INGRESS 0.0.0.0/0`), initial foothold workstations and services, internal servers, and high-value Active Directory Domain Controllers (`DC01`).
+ - **Perimeter Ingress Firewall with Animated Flames**: Dedicated perimeter boundary node featuring an ambient breathing aura and multi-layered CSS animated flame particle effects above a classic red brick firewall icon, designating the external ingress boundary.
+ - **Slide-Over Tactical Inspector Drawer**: Instant deep-dive host and lateral traversal intelligence panel:
+ - **Live Compromise & OS State**: Real-time status indicators (`COMPROMISED (ACTIVE)` vs `RECON TARGET`), OS detection, and perimeter access ports (e.g. `22/TCP`).
+ - **Confirmed Vulnerabilities & Findings**: Full-fidelity finding titles without premature truncation, MITRE ATT&CK technique badges (e.g. `T1548.001`, `T1552.001`), and pattern summaries.
+ - **Intelligent Finding Deduplication**: Redundant finding records on the same target are automatically grouped with instance multipliers (`×4`, `×3`) to preserve a clean, high-signal view.
+ - **Unified Dark Scrollbar**: Single sleek custom scrollbar matching the dark theme, eliminating nested OS scrollbars.
+ - **Authentic Visual Privilege Semantics**: Dynamic glowing border indicators reflecting actual compromise tiers - Crimson `SYSTEM *` for Tier-0 Domain Controllers and root access, Amber `ADMIN` for internal servers, Cyan `BEACON` for compromised user workstations, and Red Brick Firewall nodes for perimeter ingress.
- **Organic Cubic Bezier Routing & Telemetry Stream**: Fluid vector curves with directional arrowheads and animated glowing particle pulses visualizing live command-and-control and pivot traffic.
- **Persistent Click-to-Lock Pathway Tracking**: Click any node to instantly freeze its upstream compromise lineage and downstream lateral reachability, complete with a tactical HUD banner (`• PATHWAY LOCKED: [HOST] | N NODES | N HOPS`). Freely zoom and pan across complex topologies without losing situational focus.
- **Docked Multi-Row Beacon Terminal Console (`CobaltSessionDock`)**:
- **Dual-Row Java Swing Session Tabs**: Automatic focus and session switching when clicking nodes on the canvas.
- - **Cobalt Strike Status Bar**: Real-time privilege context (`[HOST] operator` or `[DC01] SYSTEM *`) and heartbeat interval (`last: 2s`).
+ - **Real-Time Status Bar**: Privilege context (`[HOST] root` or `[DC01] SYSTEM *`) and heartbeat interval (`last: 2s`).
- **Interactive Command Prompt (`beacon>`)**:
- - `whoami`: Resolves integrity level and active user context (`TARGET\SYSTEM *`).
+ - `whoami`: Resolves integrity level and active user context (`TARGET\SYSTEM *` or `root`).
- `hashdump` / `creds`: Harvests and displays cached NTLM SAM/LSA hashes.
- `ps` / `process`: Enumerates active process trees and resolves parent PIDs.
- `ppid <pid>`: Tasks beacon to spoof parent process IDs for EDR evasion.
diff --git a/ares/api/graph.py b/ares/api/graph.py
index 3d26a36..2f9b1c5 100644
--- a/ares/api/graph.py
+++ b/ares/api/graph.py
@@ -640,14 +640,14 @@ def build_campaign_graph(
add_node(APIGraphNode(
id = find_node_id,
type = "finding",
- label = f"[{sev.upper()}]\n{title[:30]}",
+ label = title,
data = {
"title": title,
"severity": sev,
"mitre_technique": getattr(finding, "mitre_technique", ""),
"mitre_tactic": getattr(finding, "mitre_tactic", ""),
"module_id": getattr(finding, "module_id", ""),
- "description": getattr(finding, "description", "")[:200],
+ "description": getattr(finding, "description", "")[:1000],
},
color = _SEVERITY_COLORS.get(sev, "#6c757d"),
shape = "triangle",
@@ -849,16 +849,23 @@ def merge_durable_attack_graph(
node_id = f"artifact:{raw_id}"
node_map[raw_id] = node_id
node_type = str(raw_node.get("type") or "artifact")
+ props = _safe_graph_data(raw_node.get("properties", {}))
+ node_data = {
+ "risk": raw_node.get("risk", 0.0),
+ "is_target": bool(raw_node.get("is_target", False)),
+ "properties": props,
+ "source": "durable_artifact_graph",
+ }
+ if node_type == "finding":
+ node_data["title"] = raw_label
+ node_data["severity"] = props.get("severity") or raw_node.get("severity", "info")
+ node_data["mitre_technique"] = props.get("mitre_technique", "")
+ node_data["description"] = props.get("description", "")
nodes.append(APIGraphNode(
id=node_id,
type=node_type,
label=raw_label,
- data={
- "risk": raw_node.get("risk", 0.0),
- "is_target": bool(raw_node.get("is_target", False)),
- "properties": _safe_graph_data(raw_node.get("properties", {})),
- "source": "durable_artifact_graph",
- },
+ data=node_data,
color=str(raw_node.get("color") or "#64748b"),
shape="diamond" if bool(raw_node.get("is_target", False)) else "circle",
size=24 if bool(raw_node.get("is_target", False)) else 18,
diff --git a/docs/README.md b/docs/README.md
index f4812e2..1e42880 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -40,7 +40,7 @@ The documentation is organized into six functional pillars:
| Document | Description | Target Audience |
| --- | --- | --- |
| [frontend.md](frontend.md) | React 18 + Vite dashboard architecture, Web Locks, session management, and state coordination. | Frontend Engineers |
-| [dashboard-guide.md](dashboard-guide.md) | Complete operational cockpit guide: campaigns, modules, telemetry, and live telemetry. | Red Team Operators |
+| [dashboard-guide.md](dashboard-guide.md) | Complete operational cockpit guide: campaigns, modules, tactical pivot graph & beacon console, and live telemetry. | Red Team Operators |
### Release and Community
| Document | Description | Target Audience |
diff --git a/docs/assets/screenshots/dashboard-graph.png b/docs/assets/screenshots/dashboard-graph.png
index 3d5ce71..4a50aeb 100644
Binary files a/docs/assets/screenshots/dashboard-graph.png and b/docs/assets/screenshots/dashboard-graph.png differ
diff --git a/docs/dashboard-guide.md b/docs/dashboard-guide.md
index f6d0f7c..cde978f 100644
--- a/docs/dashboard-guide.md
+++ b/docs/dashboard-guide.md
@@ -72,8 +72,7 @@ keys, bearer tokens, or sensitive report URLs.
| Overview (Standby / Zero-State) | `docs/assets/screenshots/dashboard-overview-empty.png` | Clean onboarding hero, platform readiness strip, and initialization quick actions. |
| Overview (Active Telemetry) | `docs/assets/screenshots/dashboard-overview.png` | Health, telemetry cards, confirmed findings, and campaign summary. |
| Campaigns | `docs/assets/screenshots/dashboard-campaigns.png` | Campaign creation, target/scope input, and management actions. |
-| Modules | `docs/assets/screenshots/dashboard-modules-catalog.png` | Module catalog filters, OPSEC labels, campaign selection, and parameter forms. |
-| Graph & Beacon Console | `docs/assets/screenshots/dashboard-graph.png` | Cobalt Strike Hierarchical Pivot Graph & docked dual-row Beacon session terminal with real-time command execution and privilege status. |
+| Graph & Beacon Console | `docs/assets/screenshots/dashboard-graph.png` | ARES Tactical Pivot Graph, Perimeter Ingress with animated flames, slide-over Tactical Inspector Drawer, & docked Beacon session terminal. |
| Reports | `docs/assets/screenshots/dashboard-reports.png` | Campaign report generation and artifact list. |
## Dashboard Shell
@@ -322,30 +321,36 @@ artifact count without a full page reload. If deletion fails, the page keeps
the row and shows an error notice. When no reports remain, the Library shows
the clean empty state: `No reports generated for this campaign yet.`
-### Graph & Cobalt Strike Beacon Terminal Dock
+### Graph & ARES Beacon Terminal Console
-Purpose: understand lateral pivot relationships, trace multi-hop compromise routes, and interact with compromised hosts directly from a docked Beacon terminal console.
+Purpose: understand lateral pivot relationships, trace multi-hop compromise routes, inspect tactical host vulnerabilities in a slide-over drawer, and interact with compromised hosts directly from a docked Beacon terminal console.
-![Cobalt Strike Hierarchical Pivot Graph & Docked Beacon Session Terminal](assets/screenshots/dashboard-graph.png)
+![ARES Tactical Pivot Graph & Docked Beacon Session Terminal](assets/screenshots/dashboard-graph.png)
-*Cobalt Strike Hierarchical Pivot Graph & Docked Beacon Session Terminal Console - Live enterprise campaign topology (`Operation Titan Shield`), multi-hop lateral pivot routes, dynamic privilege styling, and interactive command execution.*
+*ARES Tactical Pivot Graph & Docked Beacon Session Terminal Console - Live enterprise campaign topology (`Kali test`), perimeter ingress firewall with animated flames, Linux/Windows compromised footholds, slide-over Tactical Inspector Drawer, and interactive command execution.*
#### Graph Topology & Navigation
- **Hierarchical Column Layout**:
- - **Left**: Perimeter gateways and uncompromised target findings (assets and services identified during initial reconnaissance).
- - **Center**: Active compromise footholds and intermediate pivot workstations (`10.10.10.198`, `DEVELOPER45`, etc.).
+ - **Left**: Perimeter Ingress firewall (`PERIMETER INGRESS 0.0.0.0/0`) with ambient breathing aura and multi-layered CSS animated flame particle effects above a classic red brick wall icon, clearly designating the external boundary.
+ - **Center**: Active compromise footholds and intermediate pivot workstations (`192.168.56.105`, `DEVELOPER45`, etc.).
- **Right**: High-value internal infrastructure, Active Directory Domain Controllers (`DC01`), and Crown Jewels.
- **Organic Bezier Connections & Particle Streams**: Replaces rigid 90-degree lines with fluid cubic curves, 22px vector directional arrowheads, and real-time streaming particle pulses indicating live C2/pivot communications.
- **Persistent Click-to-Lock Pathway Tracking**:
- Clicking any host locks its upstream compromise lineage (how the host was reached) and downstream lateral reachability (what other hosts can be compromised from it).
- A top HUD banner displays: `• PATHWAY LOCKED: [HOST] | N NODES | N HOPS` with quick pan/zoom persistence.
- To release the lock, click on the empty canvas, press `ESC`, or click the `[CLEAR TRACK [ESC]]` button on the banner.
+- **Slide-Over Tactical Inspector Drawer**:
+ - Clicking a host node opens the dedicated Tactical Inspector Drawer on the right.
+ - **Compromise & OS State**: Real-time status badge (`COMPROMISED (ACTIVE)` / `RECON TARGET`), detected operating system (e.g. `linux`), and perimeter access status (`1 Open Port`).
+ - **Discovered Perimeter Ports**: Lists open network ports detected during scanning (e.g. `22/TCP`).
+ - **Confirmed Vulnerabilities & Findings**: Displays confirmed vulnerability cards with full titles (no truncated parentheses), MITRE ATT&CK technique tags (e.g. `T1548.001`, `T1552.001`, `T1574.006`), and finding details. Redundant detections on the same host are automatically deduplicated and badged with instance counts (`×4`, `×3`).
+ - **Single Dark Scrollbar**: Clean 6px custom scrollbar integrated into the drawer body, eliminating double or nested scrollbars.
- **Operational Mode Toggle**:
- `Mode: LIVE CAMPAIGN`: Visualizes real-time scoped targets and discovered findings from the active engagement. Targets that have not yet been pivoted appear on the left with in-degree 0; active footholds with live pivot tunnels appear connected. Click `[Active Pivots Only]` on the toolbar to filter out unpivoted targets.
- `Mode: DEMO SAMPLE`: Loads the reference 9-node interconnected enterprise pivot topology showing multi-hop infiltration chains.
-#### Cobalt Strike Beacon Terminal Console (`CobaltSessionDock`)
+#### ARES Beacon Terminal Console (`CobaltSessionDock`)
Located directly below the graph canvas, the Beacon Terminal Dock provides a full operator console synchronized with the graph:
diff --git a/docs/frontend.md b/docs/frontend.md
index 3a62c92..8ab3d60 100644
--- a/docs/frontend.md
+++ b/docs/frontend.md
@@ -76,7 +76,7 @@ Then open `http://127.0.0.1:5173/dashboard/`.
- `/campaigns`: `List`, `Scope`, and `Findings` tabs for list/create/detail/delete, findings, CVSS, diff, restore, and dry-run plan actions
- `/modules`: `Catalog`, `Run Panel`, and `Results` tabs for catalog filters, backend-derived dynamic params, dry-run default, and execution output
- `/reports`: `Generate` tab for report creation; `Library` tab for listing artifacts, authenticated download, per-report delete, and Delete all/Clear library cleanup. Successful delete actions update rows and artifact counts without a full page reload.
-- `/graph`: `Entities`, `Attack Paths`, and `Ingest` tabs for graph review, attack paths, and BloodHound ingest
+- `/graph`: Interactive ARES Tactical Pivot Graph & Beacon Console (`Entities`, `Attack Paths`, and `Ingest` tabs) featuring perimeter ingress firewall with animated flames, click-to-lock pathway tracking, slide-over Tactical Inspector Drawer (with deduplicated vulnerability grouping and unified custom dark scrollbar), and multi-tabbed Beacon session terminal dock.
- `/templates`: `Templates` and `Plan Builder` tabs for listing templates and generating plans
- `/strategy`: `Objective`, `Active`, and `Result` tabs for active engagements and role-gated engagement start
- `/security`: `Account`, `API Keys`, and `Audit` tabs for profile, password change, API keys, audit, and users
diff --git a/frontend/src/features/graph/AnimatedFirewallFlames.tsx b/frontend/src/features/graph/AnimatedFirewallFlames.tsx
new file mode 100644
index 0000000..b8d17b9
--- /dev/null
+++ b/frontend/src/features/graph/AnimatedFirewallFlames.tsx
@@ -0,0 +1,90 @@
+/**
+ * ARES Tactical Visualizer - Animated Firewall Flames
+ * Organic, continuous looping flame animation and ember particles
+ * for the PERIMETER INGRESS node, preserving authentic boundary semantics.
+ */
+
+import React, { memo } from "react";
+
+export const AnimatedFirewallFlames = memo(function AnimatedFirewallFlames() {
+ return (
+ <g className="ares-firewall-flame-group">
+ <defs>
+ {/* Core Multi-Stop Fiery Gradient */}
+ <linearGradient id="aresFireGradientMain" x1="40" y1="0" x2="40" y2="36" gradientUnits="userSpaceOnUse">
+ <stop offset="0%" stopColor="#fef08a" stopOpacity="0.95" />
+ <stop offset="25%" stopColor="#f59e0b" stopOpacity="0.9" />
+ <stop offset="60%" stopColor="#f97316" stopOpacity="0.95" />
+ <stop offset="100%" stopColor="#dc2626" stopOpacity="1" />
+ </linearGradient>
+
+ {/* Outer Deep Crimson Fire Gradient */}
+ <linearGradient id="aresFireGradientOuter" x1="40" y1="4" x2="40" y2="36" gradientUnits="userSpaceOnUse">
+ <stop offset="0%" stopColor="#f97316" stopOpacity="0.8" />
+ <stop offset="40%" stopColor="#dc2626" stopOpacity="0.85" />
+ <stop offset="100%" stopColor="#991b1b" stopOpacity="0.95" />
+ </linearGradient>
+
+ {/* Hot Incandescent Core Gradient */}
+ <linearGradient id="aresFireGradientCore" x1="40" y1="8" x2="40" y2="34" gradientUnits="userSpaceOnUse">
+ <stop offset="0%" stopColor="#ffffff" stopOpacity="0.95" />
+ <stop offset="40%" stopColor="#fef08a" stopOpacity="0.9" />
+ <stop offset="100%" stopColor="#f59e0b" stopOpacity="0.8" />
+ </linearGradient>
+ </defs>
+
+ {/* Layer 1: Ambient Fire Aura (breathing back glow) */}
+ <ellipse
+ cx="40"
+ cy="22"
+ rx="32"
+ ry="18"
+ fill="url(#aresFireGradientOuter)"
+ className="ares-flame-ambient-aura"
+ />
+
+ {/* Layer 2: Outer Billowing Flames (Back layer, deep red/orange) */}
+ <path
+ d="M10 36 C6 26 12 14 18 8 C22 18 26 20 28 12 C32 4 40 1 48 8 C54 16 56 10 62 4 C68 12 72 24 66 36 Z"
+ fill="url(#aresFireGradientOuter)"
+ className="ares-flame-layer-back"
+ />
+
+ {/* Layer 3: Main Dynamic Flame Tongues (Staggered rhythmic flicker) */}
+ {/* Left Leaping Tongue */}
+ <path
+ d="M14 36 C10 27 16 16 22 10 C25 18 29 20 31 16 C33 24 24 32 20 36 Z"
+ fill="url(#aresFireGradientMain)"
+ className="ares-flame-tongue ares-flame-tongue-left"
+ />
+
+ {/* Center Roaring Plume */}
+ <path
+ d="M26 36 C28 22 34 8 40 2 C46 8 52 22 54 36 C46 34 34 34 26 36 Z"
+ fill="url(#aresFireGradientMain)"
+ className="ares-flame-tongue ares-flame-tongue-center"
+ />
+
+ {/* Right Leaping Tongue */}
+ <path
+ d="M44 36 C48 28 54 18 60 6 C64 14 66 22 62 36 Z"
+ fill="url(#aresFireGradientMain)"
+ className="ares-flame-tongue ares-flame-tongue-right"
+ />
+
+ {/* Layer 4: Intense White-Hot Inner Cores */}
+ <path
+ d="M32 36 C34 26 38 16 40 10 C42 16 46 26 48 36 Z"
+ fill="url(#aresFireGradientCore)"
+ className="ares-flame-core"
+ />
+
+ {/* Layer 5: Floating Ember Sparks */}
+ <circle cx="22" cy="14" r="1.2" fill="#fef08a" className="ares-ember ares-ember-1" />
+ <circle cx="38" cy="6" r="1.5" fill="#fde047" className="ares-ember ares-ember-2" />
+ <circle cx="50" cy="10" r="1.0" fill="#f97316" className="ares-ember ares-ember-3" />
+ <circle cx="30" cy="8" r="1.2" fill="#ffffff" className="ares-ember ares-ember-4" />
+ <circle cx="58" cy="12" r="1.0" fill="#fbbf24" className="ares-ember ares-ember-5" />
+ </g>
+ );
+});
diff --git a/frontend/src/features/graph/CobaltComponents.test.tsx b/frontend/src/features/graph/CobaltComponents.test.tsx
index 2b68c63..303cdc1 100644
--- a/frontend/src/features/graph/CobaltComponents.test.tsx
+++ b/frontend/src/features/graph/CobaltComponents.test.tsx
@@ -1,6 +1,8 @@
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { ReactFlowProvider } from "@xyflow/react";
import { afterEach, describe, expect, it } from "vitest";
import { CobaltSessionDock } from "./CobaltSessionDock";
+import { PivotFirewallNode } from "./CobaltStrikeNodes";
import {
adaptApiGraphToCobalt,
generateCobaltPivotTopology,
@@ -173,4 +175,52 @@ describe("Cobalt Strike Visualizer Components & Integration", () => {
expect(benchmark.nodes.some((n) => n.id === "node:dc01")).toBe(true);
});
});
+
+ describe("PivotFirewallNode (PERIMETER INGRESS)", () => {
+ it("renders animated firewall flames and authentic brick wall without dragon elements", () => {
+ const { container } = render(
+ <ReactFlowProvider>
+ <PivotFirewallNode
+ {...({
+ id: "node:firewall",
+ data: { label: "FIREWALL", subLabel: "Ingress / Egress", os: "firewall" },
+ selected: false,
+ type: "pivotFirewall",
+ zIndex: 1,
+ isConnectable: false,
+ positionAbsoluteX: 0,
+ positionAbsoluteY: 0,
+ dragging: false,
+ draggable: false,
+ selectable: true,
+ deletable: false,
+ } as any)}
+ />
+ </ReactFlowProvider>
+ );
+
+ // Verify node container and label
+ expect(container.querySelector(".cobalt-firewall-node")).toBeDefined();
+ expect(screen.getByText("FIREWALL")).toBeDefined();
+ expect(screen.getByText("Ingress / Egress")).toBeDefined();
+
+ // Verify authentic brick wall elements are intact
+ const brickRect = container.querySelector('rect[fill="#991b1b"]');
+ expect(brickRect).not.toBeNull();
+ const mortarLines = container.querySelectorAll("line");
+ expect(mortarLines.length).toBeGreaterThanOrEqual(7);
+
+ // Verify animated flames & embers are intact
+ expect(container.querySelector(".ares-firewall-flame-group")).not.toBeNull();
+ expect(container.querySelector(".ares-flame-ambient-aura")).not.toBeNull();
+ expect(container.querySelector(".ares-flame-tongue-center")).not.toBeNull();
+ expect(container.querySelector(".ares-ember-1")).not.toBeNull();
+
+ // Verify dragon character element is completely removed
+ expect(container.querySelector(".ares-cyber-dragon")).toBeNull();
+ expect(container.querySelector(".ares-dragon-body-tail")).toBeNull();
+ expect(container.querySelector(".ares-dragon-wing-left")).toBeNull();
+ });
+ });
});
+
diff --git a/frontend/src/features/graph/CobaltStrikeNodes.tsx b/frontend/src/features/graph/CobaltStrikeNodes.tsx
index 1a227a7..50ad3c8 100644
--- a/frontend/src/features/graph/CobaltStrikeNodes.tsx
+++ b/frontend/src/features/graph/CobaltStrikeNodes.tsx
@@ -1,5 +1,6 @@
import { Handle, Position, type NodeProps } from "@xyflow/react";
import { memo, type ReactNode } from "react";
+import { AnimatedFirewallFlames } from "./AnimatedFirewallFlames";
export interface PivotNodeData extends Record<string, unknown> {
label: string;
@@ -91,26 +92,30 @@ function LinuxTuxEmblem() {
/**
- * Brick Wall + Flames (Cobalt Strike Gateway / Firewall Node)
+ * Brick Wall + Animated Flames (Cobalt Strike Gateway / PERIMETER INGRESS Node)
*/
-export const PivotFirewallNode = memo(function PivotFirewallNode({ data, selected }: NodeProps) {
+export const PivotFirewallNode = memo(function PivotFirewallNode({ id, data, selected }: NodeProps) {
const nodeData = data as unknown as PivotNodeData;
+ const nodeId = id || (nodeData.id as string) || "node:firewall";
+
return (
- <div className={`cobalt-firewall-node${selected ? " selected" : ""}${nodeData.dimmed ? " dimmed opacity-30" : ""}${nodeData.isTracked ? " in-pathway" : ""}`}>
+ <div
+ className={`cobalt-firewall-node${selected ? " selected" : ""}${nodeData.dimmed ? " dimmed opacity-30" : ""}${nodeData.isTracked ? " in-pathway" : ""}`}
+ title="PERIMETER INGRESS / Firewall Gateway"
+ data-node-id={nodeId}
+ >
<Handle type="target" position={Position.Left} id="left-target" className="opacity-0 pointer-events-none" isConnectable={false} />
<Handle type="source" position={Position.Left} id="left-source" className="opacity-0 pointer-events-none" isConnectable={false} />
<Handle type="target" position={Position.Top} id="top-target" className="opacity-0 pointer-events-none" isConnectable={false} />
<Handle type="source" position={Position.Top} id="top-source" className="opacity-0 pointer-events-none" isConnectable={false} />
<div className="cobalt-firewall-brick">
- {/* Stylized Flames and Brickwork */}
+ {/* Animated Flames + Authentic Brick Wall (Firewall Boundary Barrier) */}
<svg className="w-20 h-16" viewBox="0 0 80 64" fill="none">
- {/* Flames behind wall */}
- <path
- d="M12 36C8 28 14 16 20 8C22 18 28 22 30 14C34 6 42 2 48 10C54 18 56 12 60 4C66 12 70 24 64 36H12Z"
- fill="url(#fireGradient)"
- />
- {/* Brick Wall Grid */}
+ {/* 1. Organic, looping animated flames behind the wall */}
+ <AnimatedFirewallFlames />
+
+ {/* 2. Authentic Brick Wall Grid (Firewall Boundary Barrier) */}
<rect x="10" y="32" width="60" height="28" rx="2" fill="#991b1b" stroke="#f87171" strokeWidth="1.5" />
{/* Mortar horizontal lines */}
<line x1="10" y1="41" x2="70" y2="41" stroke="#450a0a" strokeWidth="1.5" />
@@ -121,14 +126,6 @@ export const PivotFirewallNode = memo(function PivotFirewallNode({ data, selecte
<line x1="40" y1="41" x2="40" y2="50" stroke="#450a0a" strokeWidth="1.5" />
<line x1="25" y1="50" x2="25" y2="60" stroke="#450a0a" strokeWidth="1.5" />
<line x1="55" y1="50" x2="55" y2="60" stroke="#450a0a" strokeWidth="1.5" />
- {/* Flame gradient definition */}
- <defs>
- <linearGradient id="fireGradient" x1="40" y1="0" x2="40" y2="36" gradientUnits="userSpaceOnUse">
- <stop offset="0%" stopColor="#fef08a" />
- <stop offset="35%" stopColor="#f97316" />
- <stop offset="100%" stopColor="#dc2626" />
- </linearGradient>
- </defs>
</svg>
</div>
diff --git a/frontend/src/features/graph/GraphPage.tsx b/frontend/src/features/graph/GraphPage.tsx
index 0d583e6..d93b546 100644
--- a/frontend/src/features/graph/GraphPage.tsx
+++ b/frontend/src/features/graph/GraphPage.tsx
@@ -580,6 +580,7 @@ function CobaltGraphInner({
return (
<div className="cobalt-canvas-area" aria-label="Cobalt Strike Pivot Graph">
+
{/* Tactical Locked Pathway Tracking HUD Banner */}
{isLocked && trackedPathway && (
<div className="cobalt-track-hud" role="status" aria-live="polite">
@@ -639,6 +640,14 @@ function CobaltGraphInner({
onSelect(null);
} else {
onSelect({ kind: "node", value: selectedNode });
+
+ // TRIGGER LOGIC: Significant event - First-time pathway unlock to this host
+ const isFirewall =
+ selectedNode.type === "firewall" ||
+ selectedNode.id.includes("firewall") ||
+ selectedNode.id.includes("ingress");
+ if (!isFirewall) {
+ }
}
}
}}
@@ -845,11 +854,11 @@ export default function GraphPage({
</div>
)}
- {/* Authentic Cobalt Strike Desktop Window Title Bar */}
+ {/* Authentic Desktop Window Title Bar */}
<div className="cobalt-window-titlebar">
<div className="cobalt-window-title">
<Shield size={13} />
- <span>Cobalt Strike</span>
+ <span>ARES</span>
</div>
<div className="cobalt-window-controls">
<button
@@ -879,17 +888,17 @@ export default function GraphPage({
</div>
</div>
- {/* Classic Cobalt Strike Desktop Window Menu Bar */}
+ {/* Classic Desktop Window Menu Bar */}
<div className="cobalt-menubar">
<div className="cobalt-menubar-items">
<span
className="cobalt-menu-item font-bold"
onClick={() => setShowAboutDialog(true)}
- title="About Cobalt Strike C2 Visualizer Engine"
+ title="About ARES Tactical Visualizer Engine"
role="button"
tabIndex={0}
>
- Cobalt Strike
+ ARES
</span>
<span
className="cobalt-menu-item"
@@ -1353,7 +1362,7 @@ export default function GraphPage({
<div className="cobalt-dialog-overlay" onClick={() => setShowHelpDialog(false)}>
<div className="cobalt-dialog-window" style={{ width: "680px" }} onClick={(e) => e.stopPropagation()}>
<div className="cobalt-dialog-titlebar">
- <span>Cobalt Strike C2 - Operator Reference & Help Manual</span>
+ <span>ARES C2 - Operator Reference & Help Manual</span>
<button className="cobalt-win-btn close" onClick={() => setShowHelpDialog(false)} type="button">✕</button>
</div>
<div className="cobalt-dialog-body">
@@ -1528,7 +1537,7 @@ export default function GraphPage({
<div className="cobalt-dialog-overlay" onClick={() => setShowAboutDialog(false)}>
<div className="cobalt-dialog-window" style={{ width: "480px" }} onClick={(e) => e.stopPropagation()}>
<div className="cobalt-dialog-titlebar">
- <span>About ARES Cobalt Strike Visualizer Engine</span>
+ <span>About ARES Tactical Visualizer Engine</span>
<button className="cobalt-win-btn close" onClick={() => setShowAboutDialog(false)} type="button">✕</button>
</div>
<div className="cobalt-dialog-body">
@@ -1537,7 +1546,7 @@ export default function GraphPage({
<Shield size={24} />
</div>
<div>
- <div className="font-bold text-sm tracking-wide">ARES Cobalt Strike C2 Visualizer</div>
+ <div className="font-bold text-sm tracking-wide">ARES Tactical C2 Visualizer</div>
<div className="text-[10px] text-zinc-400 font-mono">v6.0 Enterprise Edition · Automated Red Team Engine</div>
</div>
</div>
diff --git a/frontend/src/features/graph/TacticalInspectorDrawer.tsx b/frontend/src/features/graph/TacticalInspectorDrawer.tsx
index e40a032..bd47bfe 100644
--- a/frontend/src/features/graph/TacticalInspectorDrawer.tsx
+++ b/frontend/src/features/graph/TacticalInspectorDrawer.tsx
@@ -1,25 +1,12 @@
-import { useState } from "react";
+import { useState, useMemo } from "react";
import { useNavigate } from "react-router-dom";
import {
- Server,
- Terminal,
ShieldAlert,
- ShieldCheck,
- Cpu,
- ArrowRight,
Copy,
CheckCircle2,
X,
- Activity,
- Flame,
- Zap,
- Lock,
Wifi,
- ExternalLink,
- Layers,
- Crosshair,
- Key,
- Share2
+ Layers
} from "lucide-react";
import type { SafeGraphNode, SafeGraphEdge } from "./graphModel";
import { inferCobaltNodeData } from "./graphModel";
@@ -60,6 +47,35 @@ export function TacticalInspectorDrawer({
const targetVal = targetIp || node?.label || "";
const isWindows = targetOs.toLowerCase().includes("win");
+ // Deduplicate and group findings to present a clean, high-signal list
+ const groupedFindings = useMemo(() => {
+ const map = new Map<string, { finding: Record<string, unknown>; count: number }>();
+ for (const f of findings) {
+ let cleanTitle = String(f.title ?? "").trim();
+ cleanTitle = cleanTitle.replace(/^\[(CRITICAL|HIGH|MEDIUM|LOW|INFO)\]\s*/i, "").trim();
+ if ((cleanTitle.endsWith(" on") || cleanTitle.endsWith(" on ")) && targetVal) {
+ cleanTitle = `${cleanTitle.trim()} ${targetVal}`;
+ }
+ if (/\(\d*\s*$/.test(cleanTitle)) {
+ cleanTitle = cleanTitle.replace(/\(\d*\s*$/, "").trim();
+ }
+ const sev = String(f.severity ?? "info").toLowerCase();
+ const tech = String(f.mitre_technique ?? "");
+ const desc = String(f.description ?? "").trim();
+ const key = `${cleanTitle.toLowerCase()}:::${sev}:::${tech}`;
+ const existing = map.get(key);
+ if (existing) {
+ existing.count += 1;
+ if (!existing.finding.description && desc) {
+ existing.finding.description = desc;
+ }
+ } else {
+ map.set(key, { finding: { ...f, title: cleanTitle, description: desc || null }, count: 1 });
+ }
+ }
+ return Array.from(map.values());
+ }, [findings, targetVal]);
+
const hasPrivescFinding = findings.some((f) => {
const title = String(f.title || f.label || "").toLowerCase();
const tech = String(f.mitre_technique || f.mitre || "");
@@ -215,309 +231,6 @@ export function TacticalInspectorDrawer({
</div>
)}
- {/* Execution Lifecycle & Action Plan */}
- {isNode && targetIp && (
- <div className="space-y-2">
- <div className="flex items-center justify-between pb-1 border-b border-zinc-800/60">
- <span className="text-[11px] font-sans font-semibold text-zinc-300 flex items-center gap-1.5">
- <Crosshair size={13} className="text-cyan-400" />
- Execution Plan
- </span>
- <span className="text-[10px] font-mono text-zinc-400">
- {isElevated ? "Stage 4 of 5" : isCompromised ? "Stage 3 of 5" : "Stage 1 of 5"}
- </span>
- </div>
-
- <div className="space-y-1.5">
- {/* STAGE 1: Service Recon */}
- <div className="p-2.5 rounded-sm border border-emerald-500/30 bg-emerald-950/20 hover:border-emerald-500/50 transition-colors flex items-center justify-between gap-3">
- <div className="flex items-center gap-2.5 min-w-0">
- <div className="p-1.5 rounded-sm bg-emerald-900/40 text-emerald-400 shrink-0">
- <Activity size={13} />
- </div>
- <div className="min-w-0">
- <strong className="text-[11px] font-mono text-emerald-300 block truncate">
- Stage 1: Service Recon
- </strong>
- <span className="text-[10px] text-zinc-400 block font-sans truncate">
- {openPorts.length > 0 ? `${openPorts.join(", ")}/TCP Active · Services identified` : "Perimeter discovered · Host reachable"}
- </span>
- </div>
- </div>
- <div className="flex items-center gap-2 shrink-0">
- <CheckCircle2 size={13} className="text-emerald-400" />
- <button
- type="button"
- onClick={() => handlePivotModule("network.service_detect", { ports: openPorts.join(",") || "22,80,443" })}
- className="text-[10px] font-mono text-zinc-400 hover:text-emerald-300 transition-colors"
- title="Re-run fingerprint scan"
- >
- Re-scan ↗
- </button>
- </div>
- </div>
-
- {/* STAGE 2: Foothold & Spray */}
- <div className={`p-2.5 rounded-sm border transition-colors flex items-center justify-between gap-3 ${
- isCompromised
- ? "border-emerald-500/30 bg-emerald-950/20 hover:border-emerald-500/50"
- : "border-zinc-800 bg-zinc-900/70 hover:border-zinc-700"
- }`}>
- <div className="flex items-center gap-2.5 min-w-0">
- <div className={`p-1.5 rounded-sm shrink-0 ${
- isCompromised ? "bg-emerald-900/40 text-emerald-400" : "bg-amber-900/40 text-amber-400"
- }`}>
- <Terminal size={13} />
- </div>
- <div className="min-w-0">
- <strong className={`text-[11px] font-mono block truncate ${
- isCompromised ? "text-emerald-300" : "text-zinc-200"
- }`}>
- Stage 2: {isWindows ? "Domain Authentication" : "SSH Foothold & Spray"}
- </strong>
- <span className="text-[10px] text-zinc-400 block font-sans truncate">
- {isCompromised
- ? "Session authenticated: \\kraii active"
- : (isWindows ? "Password spray across SMB & LDAP surface" : "Low-and-slow authentication audit on port 22")}
- </span>
- </div>
- </div>
- <div className="flex items-center gap-2 shrink-0">
- {isCompromised ? (
- <>
- <CheckCircle2 size={13} className="text-emerald-400" />
- <button
- type="button"
- onClick={() => handlePivotModule(
- isWindows ? "credential.pass_spray" : "credential.ssh_spray",
- isWindows
- ? { domain: "local" }
- : { target: targetVal, port: 22, users: ["root", "admin", "kali", "ubuntu", "kraii"], passwords: ["Password123!", "admin", "root", "toor", "kraii"] }
- )}
- className="text-[10px] font-mono text-zinc-400 hover:text-emerald-300 transition-colors"
- title="Re-run spray"
- >
- Pivot ↗
- </button>
- </>
- ) : (
- <button
- type="button"
- onClick={() => handlePivotModule(
- isWindows ? "credential.pass_spray" : "credential.ssh_spray",
- isWindows
- ? { domain: "local" }
- : { target: targetVal, port: 22, users: ["root", "admin", "kali", "ubuntu", "kraii"], passwords: ["Password123!", "admin", "root", "toor", "kraii"] }
- )}
- className="px-2 py-1 bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/40 rounded-sm text-amber-300 text-[10px] font-mono flex items-center gap-1 transition-colors"
- >
- <span>Execute</span>
- <ArrowRight size={11} />
- </button>
- )}
- </div>
- </div>
-
- {/* STAGE 3: Privilege Escalation */}
- <div className={`p-2.5 rounded-sm border transition-colors flex items-center justify-between gap-3 ${
- isElevated
- ? "border-emerald-500/30 bg-emerald-950/20 hover:border-emerald-500/50"
- : isCompromised
- ? "border-rose-600/40 bg-zinc-900/80 hover:border-rose-500/60"
- : "border-zinc-800/80 bg-zinc-900/30 opacity-60"
- }`}>
- <div className="flex items-center gap-2.5 min-w-0">
- <div className={`p-1.5 rounded-sm shrink-0 ${
- isElevated
- ? "bg-emerald-900/40 text-emerald-400"
- : isCompromised
- ? "bg-rose-900/40 text-rose-400"
- : "bg-zinc-800 text-zinc-500"
- }`}>
- <Flame size={13} />
- </div>
- <div className="min-w-0">
- <strong className={`text-[11px] font-mono block truncate ${
- isElevated ? "text-emerald-300" : isCompromised ? "text-zinc-200" : "text-zinc-400"
- }`}>
- Stage 3: Privilege Escalation
- </strong>
- <span className="text-[10px] text-zinc-400 block font-sans truncate">
- {isElevated
- ? "Root / System privilege confirmed"
- : isCompromised
- ? (isWindows ? "Token impersonation & AD ACL escalation" : "Sudo, SUID binaries & capabilities audit")
- : "Requires initial foothold session"}
- </span>
- </div>
- </div>
- <div className="flex items-center gap-2 shrink-0">
- {isElevated ? (
- <>
- <CheckCircle2 size={13} className="text-emerald-400" />
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "windows.token_impersonation" : "linux.privesc", isWindows ? {} : { host: targetVal, ssh_user: "kraii", ssh_port: 22 })}
- className="text-[10px] font-mono text-zinc-400 hover:text-emerald-300 transition-colors"
- title="Re-run privilege escalation"
- >
- Re-check ↗
- </button>
- </>
- ) : isCompromised ? (
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "windows.token_impersonation" : "linux.privesc", isWindows ? {} : { host: targetVal, ssh_user: "kraii", ssh_port: 22 })}
- className="px-2 py-1 bg-rose-500/10 hover:bg-rose-500/20 border border-rose-500/40 rounded-sm text-rose-300 text-[10px] font-mono flex items-center gap-1 transition-colors"
- >
- <span>Execute</span>
- <ArrowRight size={11} />
- </button>
- ) : (
- <div className="flex items-center gap-1 text-[10px] font-mono text-zinc-500">
- <Lock size={11} />
- <span>Locked</span>
- </div>
- )}
- </div>
- </div>
-
- {/* STAGE 4: Credential & Kerberos Harvesting */}
- <div className={`p-2.5 rounded-sm border transition-colors flex items-center justify-between gap-3 ${
- hasHarvestFinding
- ? "border-emerald-500/30 bg-emerald-950/20 hover:border-emerald-500/50"
- : isElevated
- ? "border-amber-600/40 bg-zinc-900/80 hover:border-amber-500/60"
- : "border-zinc-800/80 bg-zinc-900/30 opacity-60"
- }`}>
- <div className="flex items-center gap-2.5 min-w-0">
- <div className={`p-1.5 rounded-sm shrink-0 ${
- hasHarvestFinding
- ? "bg-emerald-900/40 text-emerald-400"
- : isElevated
- ? "bg-amber-900/40 text-amber-400"
- : "bg-zinc-800 text-zinc-500"
- }`}>
- <Key size={13} />
- </div>
- <div className="min-w-0">
- <strong className={`text-[11px] font-mono block truncate ${
- hasHarvestFinding
- ? "text-emerald-300"
- : isElevated
- ? "text-zinc-200"
- : "text-zinc-400"
- }`}>
- Stage 4: {isWindows ? "LSASS & Kerberos Roasting" : "Kerberos Ccache & SSSD"}
- </strong>
- <span className="text-[10px] text-zinc-400 block font-sans truncate">
- {hasHarvestFinding
- ? (isWindows ? "LSASS memory & credential loot harvested" : "Credential loot & filesystem secrets collected")
- : isElevated
- ? (isWindows ? "Harvest LSASS memory & ticket cache" : "Dump TGTs, ccache tickets & SSSD cache via root")
- : "Requires elevated root / system access"}
- </span>
- </div>
- </div>
- <div className="flex items-center gap-2 shrink-0">
- {hasHarvestFinding ? (
- <>
- <CheckCircle2 size={13} className="text-emerald-400" />
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "windows.lsass_dump" : (isWindows ? "linux.ccache_hunt" : "exfil.secrets_scan"), isWindows ? {} : { host: targetVal, ssh_user: "kraii" })}
- className="text-[10px] font-mono text-zinc-400 hover:text-emerald-300 transition-colors"
- title="Re-harvest credentials"
- >
- Re-harvest ↗
- </button>
- </>
- ) : isElevated ? (
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "windows.lsass_dump" : "linux.ccache_hunt", isWindows ? {} : { host: targetVal, ssh_user: "kraii" })}
- className="px-2 py-1 bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/40 rounded-sm text-amber-300 text-[10px] font-mono flex items-center gap-1 transition-colors"
- >
- <span>Harvest</span>
- <ArrowRight size={11} />
- </button>
- ) : (
- <div className="flex items-center gap-1 text-[10px] font-mono text-zinc-500">
- <Lock size={11} />
- <span>Locked</span>
- </div>
- )}
- </div>
- </div>
-
- {/* STAGE 5: Lateral Movement */}
- <div className={`p-2.5 rounded-sm border transition-colors flex items-center justify-between gap-3 ${
- hasLateralFinding
- ? "border-emerald-500/30 bg-emerald-950/20 hover:border-emerald-500/50"
- : isElevated
- ? "border-zinc-800 bg-zinc-900/70 hover:border-zinc-700"
- : "border-zinc-800/80 bg-zinc-900/30 opacity-60"
- }`}>
- <div className="flex items-center gap-2.5 min-w-0">
- <div className={`p-1.5 rounded-sm shrink-0 ${
- hasLateralFinding
- ? "bg-emerald-900/40 text-emerald-400"
- : isElevated
- ? "bg-cyan-900/40 text-cyan-400"
- : "bg-zinc-800 text-zinc-500"
- }`}>
- <Share2 size={13} />
- </div>
- <div className="min-w-0">
- <strong className={`text-[11px] font-mono block truncate ${
- hasLateralFinding
- ? "text-emerald-300"
- : isElevated
- ? "text-zinc-200"
- : "text-zinc-400"
- }`}>
- Stage 5: Lateral Movement
- </strong>
- <span className="text-[10px] text-zinc-400 block font-sans truncate">
- {hasLateralFinding
- ? "Lateral pivot active on target endpoint"
- : (isWindows ? "lateral.wmiexec / psexec to adjacent targets" : "persistence.scheduled_task & SSH pivoting")}
- </span>
- </div>
- </div>
- <div className="flex items-center gap-2 shrink-0">
- {hasLateralFinding ? (
- <>
- <CheckCircle2 size={13} className="text-emerald-400" />
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "lateral.wmiexec" : "lateral.ssh_pivot", { target: targetVal })}
- className="text-[10px] font-mono text-zinc-400 hover:text-emerald-300 transition-colors"
- title="Re-run lateral movement"
- >
- Re-pivot ↗
- </button>
- </>
- ) : isElevated ? (
- <button
- type="button"
- onClick={() => handlePivotModule(isWindows ? "lateral.wmiexec" : "persistence.scheduled_task", { target: targetVal })}
- className="px-2 py-1 bg-cyan-500/10 hover:bg-cyan-500/20 border border-cyan-500/40 rounded-sm text-cyan-300 text-[10px] font-mono flex items-center gap-1 transition-colors"
- >
- <span>Expand</span>
- <ArrowRight size={11} />
- </button>
- ) : (
- <div className="flex items-center gap-1 text-[10px] font-mono text-zinc-500">
- <Lock size={11} />
- <span>Locked</span>
- </div>
- )}
- </div>
- </div>
- </div>
- </div>
- )}
{/* Discovered Open Ports Matrix */}
{openPorts.length > 0 && (
@@ -554,34 +267,52 @@ export function TacticalInspectorDrawer({
<ShieldAlert size={11} className="text-rose-400" />
CONFIRMED VULNERABILITIES & FINDINGS ({findings.length})
</span>
- <div className="space-y-1 max-h-48 overflow-y-auto pr-1">
- {findings.map((f, idx) => {
+ <div className="space-y-2">
+ {groupedFindings.map(({ finding: f, count }, idx) => {
const sev = String(f.severity ?? "info").toLowerCase();
const sevBadge =
sev.includes("high") || sev.includes("crit")
- ? "bg-rose-950 text-rose-300 border-rose-800"
+ ? "bg-rose-950/90 text-rose-300 border-rose-800"
: sev.includes("med")
- ? "bg-amber-950 text-amber-300 border-amber-800"
+ ? "bg-amber-950/90 text-amber-300 border-amber-800"
: "bg-zinc-900 text-zinc-300 border-zinc-800";
+ const cleanTitle = String(f.title ?? `Finding #${idx + 1}`);
+ const desc = f.description ? String(f.description).trim() : null;
+
return (
<div
key={idx}
- className="p-2 bg-zinc-900/70 border border-zinc-800/80 rounded-sm space-y-1"
+ className="p-2.5 bg-zinc-900/80 border border-zinc-800 rounded-sm space-y-1.5 hover:border-zinc-700 transition-colors"
>
<div className="flex items-center justify-between gap-1 text-[10px] font-mono">
- <span className={`px-1 py-0.5 rounded border uppercase font-semibold ${sevBadge}`}>
- {sev}
- </span>
+ <div className="flex items-center gap-1.5">
+ <span className={`px-1.5 py-0.5 rounded border uppercase font-bold text-[9px] tracking-wide ${sevBadge}`}>
+ {sev}
+ </span>
+ {count > 1 && (
+ <span
+ className="px-1.5 py-0.2 rounded border border-zinc-700/80 bg-zinc-800/90 text-zinc-300 font-mono text-[9px]"
+ title={`${count} instances detected`}
+ >
+ ×{count}
+ </span>
+ )}
+ </div>
{Boolean(f.mitre_technique) && (
- <span className="text-zinc-500 border border-zinc-800 px-1 py-0.5 rounded">
+ <span className="text-zinc-300 bg-zinc-950 border border-zinc-700/80 px-1.5 py-0.5 rounded font-mono text-[10px]">
{String(f.mitre_technique)}
</span>
)}
</div>
- <h4 className="text-[11px] font-semibold text-zinc-200 leading-snug">
- {String(f.title ?? `Finding #${idx + 1}`)}
+ <h4 className="text-[12px] font-semibold text-zinc-100 leading-snug break-words">
+ {cleanTitle}
</h4>
+ {desc && (
+ <p className="text-[11px] text-zinc-400 font-sans leading-relaxed break-words">
+ {desc}
+ </p>
+ )}
</div>
);
})}
diff --git a/frontend/src/features/graph/graphCobalt.css b/frontend/src/features/graph/graphCobalt.css
index c9cc698..4aac539 100644
--- a/frontend/src/features/graph/graphCobalt.css
+++ b/frontend/src/features/graph/graphCobalt.css
@@ -1030,10 +1030,190 @@
.cobalt-inspector-body {
flex: 1;
overflow-y: auto;
+ overflow-x: hidden;
padding: 14px;
display: flex;
flex-direction: column;
gap: 14px;
+ scrollbar-width: thin;
+ scrollbar-color: #3f3f46 #090a0f;
}
+.cobalt-inspector-body::-webkit-scrollbar {
+ width: 6px;
+}
+
+.cobalt-inspector-body::-webkit-scrollbar-track {
+ background: #090a0f;
+}
+
+.cobalt-inspector-body::-webkit-scrollbar-thumb {
+ background: #3f3f46;
+ border-radius: 3px;
+}
+
+.cobalt-inspector-body::-webkit-scrollbar-thumb:hover {
+ background: #52525b;
+}
+
+/* ── PERIMETER INGRESS Animated Firewall Flames & Dragon Sentinel ──────────── */
+
+/* Ambient breathing aura behind the firewall brick */
+.ares-flame-ambient-aura {
+ animation: aresFlameAuraPulse 3s ease-in-out infinite;
+ transform-origin: 40px 22px;
+}
+
+@keyframes aresFlameAuraPulse {
+ 0%, 100% {
+ opacity: 0.65;
+ transform: scale(0.96);
+ }
+ 50% {
+ opacity: 0.95;
+ transform: scale(1.08);
+ }
+}
+
+/* Back billowing flame layer */
+.ares-flame-layer-back {
+ animation: aresFlameBackBillow 2.2s ease-in-out infinite alternate;
+ transform-origin: 40px 36px;
+}
+
+@keyframes aresFlameBackBillow {
+ 0% {
+ transform: scaleY(0.94) skewX(-1.5deg);
+ opacity: 0.85;
+ }
+ 50% {
+ transform: scaleY(1.04) skewX(1deg);
+ opacity: 0.95;
+ }
+ 100% {
+ transform: scaleY(0.97) skewX(-0.5deg);
+ opacity: 0.9;
+ }
+}
+
+/* Main Dynamic Flame Tongues (Leaping & Flickering naturally) */
+.ares-flame-tongue {
+ transform-origin: bottom center;
+}
+
+.ares-flame-tongue-left {
+ animation: aresFlameTongueLeft 1.6s ease-in-out infinite alternate;
+ transform-origin: 20px 36px;
+}
+
+@keyframes aresFlameTongueLeft {
+ 0% {
+ transform: scaleY(0.92) scaleX(0.95) rotate(-2deg);
+ opacity: 0.85;
+ }
+ 50% {
+ transform: scaleY(1.1) scaleX(1.05) rotate(1.5deg);
+ opacity: 1;
+ }
+ 100% {
+ transform: scaleY(0.98) scaleX(0.92) rotate(-1deg);
+ opacity: 0.9;
+ }
+}
+
+.ares-flame-tongue-center {
+ animation: aresFlameTongueCenter 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
+ transform-origin: 40px 36px;
+}
+@keyframes aresFlameTongueCenter {
+ 0% {
+ transform: scaleY(0.94) scaleX(0.96);
+ }
+ 40% {
+ transform: scaleY(1.12) scaleX(1.04);
+ }
+ 100% {
+ transform: scaleY(0.98) scaleX(0.98);
+ }
+}
+
+.ares-flame-tongue-right {
+ animation: aresFlameTongueRight 1.7s ease-in-out infinite alternate;
+ transform-origin: 58px 36px;
+}
+
+@keyframes aresFlameTongueRight {
+ 0% {
+ transform: scaleY(0.95) scaleX(0.92) rotate(2deg);
+ opacity: 0.88;
+ }
+ 50% {
+ transform: scaleY(1.08) scaleX(1.06) rotate(-1deg);
+ opacity: 1;
+ }
+ 100% {
+ transform: scaleY(0.92) scaleX(0.95) rotate(1deg);
+ opacity: 0.85;
+ }
+}
+
+/* Incandescent Hot Flame Core */
+.ares-flame-core {
+ animation: aresFlameCoreGlow 0.9s ease-in-out infinite alternate;
+ transform-origin: 40px 36px;
+}
+
+@keyframes aresFlameCoreGlow {
+ 0% {
+ opacity: 0.75;
+ transform: scaleY(0.92);
+ }
+ 100% {
+ opacity: 1;
+ transform: scaleY(1.08);
+ }
+}
+
+/* Floating Ember Sparks */
+.ares-ember {
+ animation: aresEmberDrift 2.4s ease-in infinite;
+ transform-origin: center center;
+}
+
+.ares-ember-1 { animation-delay: 0.1s; animation-duration: 2.2s; }
+.ares-ember-2 { animation-delay: 0.7s; animation-duration: 1.8s; }
+.ares-ember-3 { animation-delay: 1.2s; animation-duration: 2.5s; }
+.ares-ember-4 { animation-delay: 0.4s; animation-duration: 2.0s; }
+.ares-ember-5 { animation-delay: 1.6s; animation-duration: 2.3s; }
+
+@keyframes aresEmberDrift {
+ 0% {
+ transform: translateY(12px) scale(0.6);
+ opacity: 0;
+ }
+ 20% {
+ opacity: 1;
+ }
+ 70% {
+ opacity: 0.8;
+ }
+ 100% {
+ transform: translateY(-16px) scale(0.2) translateX(4px);
+ opacity: 0;
+ }
+}
+
+/* ── Accessibility: Respect prefers-reduced-motion ────────────────────────── */
+@media (prefers-reduced-motion: reduce) {
+ .ares-flame-ambient-aura,
+ .ares-flame-layer-back,
+ .ares-flame-tongue-left,
+ .ares-flame-tongue-center,
+ .ares-flame-tongue-right,
+ .ares-flame-core,
+ .ares-ember {
+ animation: none !important;
+ transition: none !important;
+ }
+}
diff --git a/frontend/src/features/graph/graphModel.test.ts b/frontend/src/features/graph/graphModel.test.ts
index 1212311..ea2c459 100644
--- a/frontend/src/features/graph/graphModel.test.ts
+++ b/frontend/src/features/graph/graphModel.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import type { AttackPath, CampaignGraph } from "../../api/types";
-import { filterGraph, getPathHighlight, isGraphEmpty, toSafeGraph } from "./graphModel";
+import { adaptApiGraphToCobalt, filterGraph, getPathHighlight, isGraphEmpty, toSafeGraph } from "./graphModel";
const payload: CampaignGraph = {
nodes: [
@@ -86,4 +86,36 @@ describe("graph model", () => {
expect(graph.nodes).toHaveLength(1);
expect(graph.edges).toHaveLength(1);
});
+
+ it("cleans dangling open parenthesis from truncated finding titles without stripping valid parentheses", () => {
+ const testGraph = toSafeGraph({
+ nodes: [
+ { id: "host:192.168.56.105", type: "host", label: "192.168.56.105", data: { ip: "192.168.56.105" } },
+ {
+ id: "finding:1",
+ type: "finding",
+ label: "Dangerous Linux Capabilities (",
+ data: { severity: "high", title: "Dangerous Linux Capabilities (" }
+ },
+ {
+ id: "finding:2",
+ type: "finding",
+ label: "Dangerous Linux Capabilities (3)",
+ data: { severity: "high", title: "Dangerous Linux Capabilities (3)" }
+ }
+ ],
+ edges: [
+ { source: "host:192.168.56.105", target: "finding:1", type: "finding" },
+ { source: "host:192.168.56.105", target: "finding:2", type: "finding" }
+ ]
+ });
+
+ const adapted = adaptApiGraphToCobalt(testGraph);
+ const hostNode = adapted.nodes.find((n) => n.id === "host:192.168.56.105");
+ expect(hostNode).toBeDefined();
+ const findings = (hostNode?.metadata?.findings ?? []) as Array<{ title: string }>;
+ expect(findings).toHaveLength(2);
+ expect(findings[0].title).toBe("Dangerous Linux Capabilities");
+ expect(findings[1].title).toBe("Dangerous Linux Capabilities (3)");
+ });
});
diff --git a/frontend/src/features/graph/graphModel.ts b/frontend/src/features/graph/graphModel.ts
index e657ffa..7f13282 100644
--- a/frontend/src/features/graph/graphModel.ts
+++ b/frontend/src/features/graph/graphModel.ts
@@ -543,12 +543,23 @@ export function adaptApiGraphToCobalt(
pid: inference.pid !== undefined ? inference.pid : null,
subLabel: inference.subLabel || null,
findingCount: hostFindings.length,
- findings: hostFindings.map((f) => ({
- title: f.label,
- severity: f.severity || "info",
- mitre_technique: f.metadata?.mitre_technique || f.metadata?.mitre || null,
- description: f.metadata?.description || null
- })),
+ findings: hostFindings.map((f) => {
+ let fullTitle = String(f.metadata?.title || f.label || "Finding").trim();
+ fullTitle = fullTitle.replace(/^\[(CRITICAL|HIGH|MEDIUM|LOW|INFO)\]\s*/i, "").trim();
+ const hostIp = String(f.metadata?.host || hostKey || n.label || "").trim();
+ if ((fullTitle.endsWith(" on") || fullTitle.endsWith(" on ")) && hostIp) {
+ fullTitle = `${fullTitle.trim()} ${hostIp}`;
+ }
+ if (/\(\d*\s*$/.test(fullTitle)) {
+ fullTitle = fullTitle.replace(/\(\d*\s*$/, "").trim();
+ }
+ return {
+ title: fullTitle,
+ severity: (f.metadata?.severity as string) || f.severity || "info",
+ mitre_technique: f.metadata?.mitre_technique || f.metadata?.mitre || null,
+ description: f.metadata?.description || null
+ };
+ }),
maxSeverity: (hasCrit || hasPrivesc) ? "critical" : hasHigh ? "high" : hostFindings.length > 0 ? "medium" : null,
}
};