ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
refactor(graph): remove edge label clutter, eliminate jagged lightning overlay, and update README
Mafifrizi849c1aa50970
diff --git a/README.md b/README.mdindex a300e23..b9eebb1 100644--- a/README.md+++ b/README.md@@ -481,21 +481,9 @@ ARES implements 60+ modular adversary techniques natively mapped to the MITRE AT└─────────────────────┴─────────────────────┴─────────────────────┴─────────────────────┴──────────────────────────┘```-- **Active Directory Lab Suites**: Full SPN discovery, Kerberoasting (`ad.kerberoast`), AS-REP Roasting, ADCS Certificate Template abuse (ESC1 through ESC8), DCSync account replication, and BloodHound data generation.+- **Active Directory Lab Suites**: Full SPN discovery, Kerberoasting (`ad.kerberoast`), AS-REP Roasting, ADCS Certificate Template abuse and forged persistence (`ad.adcs`, `ad.ghost_forge`), DCSync account replication, and BloodHound data generation.- **Endpoint Posture Checkers**: Windows UAC Bypass methods, registry key persistence inspection, Linux container breakouts, and Sudo privilege enumeration.-- **Cloud Control Plane**: Multi-cloud identity auditing across AWS IAM, Azure Active Directory / Entra ID role assignments, and GCP IAM bindings.--### ⚡ In the Forge: Two Next-Gen Offensive Vectors Dropping Soon--Red teams don't lose engagements to passwords anymore—they lose them to token boundaries and cryptographic trust. We are finalizing local verification for two high-impact modules engineered to break modern hybrid architectures:--- **`cloud.phantom_token` — Hybrid Entra ID & Primary Refresh Token (PRT) Hijack**- - **The Attack Vector**: Bypasses MFA and Conditional Access by hijacking native Windows session token brokers directly into Microsoft 365 and Azure AD. One compromised workstation now proves full cloud tenant breach.- - **MITRE ATT&CK**: `T1528` (Steal Application Access Token) • `T1606` (Forge Web Credentials)--- **`ad.ghost_forge` — ADCS Cryptographic Identity & Kerberos PKINIT Takeover**- - **The Attack Vector**: Weaponizes misconfigured Active Directory Certificate templates into automated, passwordless Domain Admin persistence. Generates in-memory CSRs, enrolls certificates via MS-WCCE, and converts them to Kerberos TGTs via PKINIT (UnPAC-the-hash).- - **MITRE ATT&CK**: `T1649` (Steal/Forge Authentication Certificates) • `T1558` (Steal/Forge Kerberos Tickets)+- **Cloud Control Plane**: Multi-cloud identity auditing across AWS IAM, Azure Active Directory / Entra ID role assignments, GCP IAM bindings, and Hybrid PRT/Token hijacking (`cloud.phantom_token`).---diff --git a/frontend/src/features/graph/CobaltStrikeNodes.tsx b/frontend/src/features/graph/CobaltStrikeNodes.tsxindex 15e21b4..ad4e625 100644--- a/frontend/src/features/graph/CobaltStrikeNodes.tsx+++ b/frontend/src/features/graph/CobaltStrikeNodes.tsx@@ -1,5 +1,4 @@import { Handle, Position, type NodeProps } from "@xyflow/react";-import { Zap } from "lucide-react";import { memo, type ReactNode } from "react";export interface PivotNodeData extends Record<string, unknown> {@@ -89,37 +88,6 @@ function LinuxTuxEmblem() {);}-/**- * Jagged Red Lightning Electric Wireframe Frame for SYSTEM elevated nodes- * Authentic Cobalt Strike wireframe lightning frame- */-function CobaltRedLightningFrame() {- return (- <svg className="cobalt-lightning-svg" viewBox="0 0 136 106" fill="none">- {/* Top Left Jagged Bolt */}- <path d="M-8 -8 L6 2 L1 10 L16 12 L9 20 L22 22" stroke="#ff1111" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />- <path d="M-6 -6 L3 0 L-1 6 L12 8" stroke="#ffffff" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" />-- {/* Top Right Jagged Bolt */}- <path d="M144 -8 L130 2 L135 10 L120 12 L127 20 L114 22" stroke="#ff1111" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />- <path d="M142 -6 L133 0 L137 6 L124 8" stroke="#ffffff" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" />-- {/* Bottom Left Jagged Bolt */}- <path d="M-8 102 L8 92 L2 84 L18 82 L10 74 L24 72" stroke="#ff1111" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />- <path d="M-5 100 L4 94 L0 88 L14 84" stroke="#ffffff" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" />-- {/* Bottom Right Jagged Bolt */}- <path d="M144 102 L128 92 L134 84 L118 82 L126 74 L112 72" stroke="#ff1111" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />- <path d="M141 100 L132 94 L136 88 L122 84" stroke="#ffffff" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" />-- {/* Perimeter jagged red spark wireframe */}- <path d="M18 2 L38 -2 L54 2 L82 -2 L102 2 L118 0" stroke="#ff2222" strokeWidth="1.8" />- <path d="M3 18 L-2 42 L4 56 L-2 78 L4 90" stroke="#ff2222" strokeWidth="1.8" />- <path d="M133 18 L138 42 L132 56 L138 78 L132 90" stroke="#ff2222" strokeWidth="1.8" />- <path d="M18 104 L42 107 L68 104 L94 107 L118 104" stroke="#ff2222" strokeWidth="1.8" />- </svg>- );-}/*** Brick Wall + Flames (Cobalt Strike Gateway / Firewall Node)@@ -201,12 +169,22 @@ export const PivotComputerNode = memo(function PivotComputerNode({ data, selectescreenContent = <WindowsModernFlag />;}- const privilegeText =+ let privilegeText =isElevated ? "SYSTEM *" :privilege === "user" ? (nodeData.process || (nodeData.metadata?.user ? String(nodeData.metadata.user) : "BEACON")) :(nodeData.label || "TARGET");- const subText = nodeData.subLabel || nodeData.ip || nodeData.label || "10.0.0.1";+ if (privilegeText.length > 20) {+ privilegeText = privilegeText.slice(0, 18) + "…";+ }++ let subText = nodeData.subLabel || nodeData.ip || nodeData.label || "10.0.0.1";+ if (subText.includes("\n")) {+ subText = subText.split("\n")[1] || subText.split("\n")[0];+ }+ if (subText.length > 24) {+ subText = subText.slice(0, 22) + "…";+ }return (<div className={`cobalt-node-wrapper ${auraClass}${selected ? " selected" : ""}${nodeData.dimmed ? " opacity-30" : ""}`}>@@ -216,9 +194,6 @@ export const PivotComputerNode = memo(function PivotComputerNode({ data, selecte<Handle type="target" position={Position.Top} id="top-target" className="opacity-0" isConnectable={false} /><Handle type="source" position={Position.Top} id="top-source" className="opacity-0" isConnectable={false} />- {/* Jagged electric lightning halo around elevated SYSTEM beacons */}- {isElevated && <CobaltRedLightningFrame />}-{/* Monitor Display Unit */}<div className="cobalt-monitor-housing"><div className="cobalt-monitor-screen">@@ -240,7 +215,7 @@ export const PivotComputerNode = memo(function PivotComputerNode({ data, selecte{privilegeText}</span>{subText && (- <span className="cobalt-node-subtext" title={subText}>+ <span className="cobalt-node-subtext" title={nodeData.subLabel || nodeData.label || subText}>{subText}</span>)}diff --git a/frontend/src/features/graph/GraphPage.tsx b/frontend/src/features/graph/GraphPage.tsxindex b2a289d..43ab3fd 100644--- a/frontend/src/features/graph/GraphPage.tsx+++ b/frontend/src/features/graph/GraphPage.tsx@@ -132,25 +132,26 @@ function cobaltPivotLayout(// Count items per column to space verticallyconst colRows = new Map<number, number>();+ const isDemoTopology = nodes.length <= 9 && nodes.every((n) => Boolean(FIXED_COORDINATES[n.id]));const canvasNodes: CanvasNode[] = nodes.map((node, index) => {const inferred = inferCobaltNodeData(node);let x: number;let y: number;- if (FIXED_COORDINATES[node.id]) {+ if (isDemoTopology && FIXED_COORDINATES[node.id]) {x = FIXED_COORDINATES[node.id].x;y = FIXED_COORDINATES[node.id].y;} else {const col = columnLevels.get(node.id) ?? (index % 4);const row = colRows.get(col) ?? 0;colRows.set(col, row + 1);- x = 40 + col * 200;- y = 40 + row * 130;+ x = 50 + col * 220;+ y = 50 + row * 140;}const nodeType = inferred.os === "firewall" ? "pivotFirewall" : "pivotComputer";- const isNodeSelected = selectedNodeId ? node.id === selectedNodeId : node.id === "node:dev-child";+ const isNodeSelected = selectedNodeId ? node.id === selectedNodeId : false;return {id: node.id,@@ -218,15 +219,6 @@ function cobaltPivotLayout(}}- // Derive edge label from type/label metadata for protocol annotation- let edgeLabelText = edge.label || "";- if (!edgeLabelText) {- if (edgeClass === "cobalt-edge-smb") edgeLabelText = "\\pipe\\browser";- else if (edgeClass === "cobalt-edge-egress") edgeLabelText = "HTTPS 443";- else if (edgeClass === "cobalt-edge-session") edgeLabelText = "SSH 22";- else if (edgeClass === "cobalt-edge-reverse") edgeLabelText = "reverse";- }-return {id: edge.id,source: edge.source,@@ -236,20 +228,8 @@ function cobaltPivotLayout(type: "smoothstep",animated: isAnimated || isHighlighted,className: edgeClass,- label: edgeLabelText || undefined,- labelStyle: {- fill: edgeColor,- fontSize: 9,- fontFamily: "Consolas, monospace",- fontWeight: 600,- letterSpacing: "0.03em"- },- labelBgStyle: {- fill: "#0a0c10",- fillOpacity: 0.85- },- labelBgPadding: [4, 2] as [number, number],- labelBgBorderRadius: 1,+ // Edge labels removed per operator instructions: avoids clutter, overlaps, and unreadable thick text+ label: undefined,markerEnd: {type: MarkerType.ArrowClosed,width: 14,diff --git a/frontend/src/features/graph/graphCobalt.css b/frontend/src/features/graph/graphCobalt.cssindex a7f1e4c..44c513c 100644--- a/frontend/src/features/graph/graphCobalt.css+++ b/frontend/src/features/graph/graphCobalt.css@@ -305,17 +305,6 @@outline-offset: 4px;}-/* Jagged Red Lightning Frame SVG Overlay */-.cobalt-lightning-svg {- position: absolute;- top: -16px;- left: -18px;- width: 132px;- height: 104px;- pointer-events: none;- z-index: 6;-}-/* Inside CRT / LCD Screen Glass */.cobalt-monitor-screen {flex: 1;@@ -387,19 +376,25 @@font-size: 11px;line-height: 1.25;color: #ffffff;+ max-width: 140px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;text-shadow:1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,0 2px 4px #000;- white-space: nowrap;}.cobalt-node-privilege {display: block;font-weight: 700;letter-spacing: 0.02em;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}.cobalt-node-privilege.system {@@ -418,6 +413,9 @@display: block;font-size: 11px;color: #ffffff;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}/* ── Cobalt Firewall / Ingress Gateway Node ──────────────────────────────── */diff --git a/frontend/src/features/graph/graphModel.ts b/frontend/src/features/graph/graphModel.tsindex 6cf68a4..175336f 100644--- a/frontend/src/features/graph/graphModel.ts+++ b/frontend/src/features/graph/graphModel.ts@@ -270,7 +270,20 @@ export function inferCobaltNodeData(node: SafeGraphNode): CobaltNodeInference {const ip = typeof meta.ip === "string" ? meta.ip : typeof meta.host === "string" ? meta.host : undefined;const process = typeof meta.process === "string" ? meta.process : typeof meta.binary === "string" ? meta.binary : undefined;const pid = typeof meta.pid === "number" || typeof meta.pid === "string" ? meta.pid : undefined;- const explicitSubLabel = typeof meta.subLabel === "string" ? meta.subLabel : undefined;+ let explicitSubLabel = typeof meta.subLabel === "string" ? meta.subLabel : undefined;+ if (explicitSubLabel) {+ if (explicitSubLabel.includes("\n")) {+ explicitSubLabel = explicitSubLabel.split("\n")[1] || explicitSubLabel.split("\n")[0];+ }+ if (explicitSubLabel.length > 24) {+ explicitSubLabel = explicitSubLabel.slice(0, 22) + "…";+ }+ }++ let finalSubLabel = explicitSubLabel !== undefined ? explicitSubLabel : (ip || (pid ? `PID: ${pid}` : undefined));+ if (finalSubLabel && finalSubLabel.length > 24) {+ finalSubLabel = finalSubLabel.slice(0, 22) + "…";+ }return {os,@@ -279,7 +292,7 @@ export function inferCobaltNodeData(node: SafeGraphNode): CobaltNodeInference {ip,process,pid,- subLabel: explicitSubLabel !== undefined ? explicitSubLabel : (ip || (pid ? `PID: ${pid}` : undefined))+ subLabel: finalSubLabel};}