Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
'use client';
/**
* "Four agents, one workflow" — `solution` section from §6.4 of the
* brief. The most animation-heavy piece on the page; everything in it
* is built to flatten gracefully under `prefers-reduced-motion`.
*
* Layout (desktop ≥ 1024 px):
*
* ┌────────┐ ┌────────┐ ┌────────┐ ┌─────────┐
* │ Detect │ → │ Triage │ → │ Hunt │ → │ Respond │
* └────────┘ └────────┘ └────────┘ └─────────┘
*
* The arrows are three `AnimatedBeam` instances anchored on real DOM
* refs (the card edges) so the curve auto-recomputes on resize. Each
* beam fires a brand-tinted comet on a 3 s loop with a 700 ms phase
* shift so the four-agent narrative reads as a *pipeline*, not four
* independent boxes.
*
* Mobile (< 1024 px): cards stack vertically and the beams are
* suppressed (the comet only renders when the layout is horizontal —
* the curvature math doesn't translate cleanly to a column layout).
*/
import { motion, useReducedMotion } from 'framer-motion';
import { ScanSearch, Sparkles, Telescope, ShieldCheck } from 'lucide-react';
import {
type ComponentType,
type SVGProps,
useRef,
useState,
useEffect,
} from 'react';
import { AnimatedBeam } from '@/components/magicui/AnimatedBeam';
import { cn } from '@/lib/utils';
interface Agent {
id: 'detect' | 'triage' | 'hunt' | 'respond';
label: string;
job: string;
capabilities: string;
runsOn: string;
icon: ComponentType<SVGProps<SVGSVGElement>>;
accent: string;
}
const AGENTS: ReadonlyArray<Agent> = [
{
id: 'detect',
label: 'Detect',
job: 'Fuse raw signals into incidents.',
capabilities: 'fusion · entity-risk (RBA) · native detections',
runsOn: 'Deterministic · no LLM required',
icon: ScanSearch,
accent: 'from-velvet-emerald/20 to-velvet-emerald-light/20 ring-velvet-emerald-mint/30 text-velvet-emerald-mint',
},
{
id: 'triage',
label: 'Triage',
job: 'Decide what matters and how urgent.',
capabilities:
'LLM auto-triage · phishing · identity · cloud · insider',
runsOn: 'OpenAI · Anthropic · Azure · Bedrock · Ollama · BYO endpoint',
icon: Sparkles,
accent:
'from-velvet-sapphire/20 to-velvet-emerald-light/20 ring-velvet-sapphire/30 text-velvet-sapphire-soft',
},
{
id: 'hunt',
label: 'Hunt',
job: 'Ask new questions across the data.',
capabilities: 'NL → ES|QL · KQL · SPL · scheduled YAML hunts',
runsOn: 'Cloud LLM or local model',
icon: Telescope,
accent:
'from-velvet-emerald/20 to-velvet-emerald-light/20 ring-velvet-emerald-mint/30 text-velvet-emerald-mint',
},
{
id: 'respond',
label: 'Respond',
job: 'Plan containment, gate execution, approve via ChatOps.',
capabilities: 'response planner · SOAR exec · approvals',
runsOn: 'L0–L4 maturity dial, dry-run by default',
icon: ShieldCheck,
accent:
'from-velvet-warning/20 to-velvet-emerald-light/20 ring-velvet-warning/30 text-velvet-warning',
},
];
function AgentCard({
agent,
index,
innerRef,
}: {
agent: Agent;
index: number;
innerRef: React.RefObject<HTMLDivElement | null>;
}) {
const Icon = agent.icon;
return (
<motion.div
ref={innerRef}
initial={{ opacity: 0, y: 16 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-15%' }}
transition={{
duration: 0.5,
ease: [0.16, 1, 0.3, 1],
delay: index * 0.08,
}}
className={cn(
'group relative flex h-full flex-col gap-3 rounded-2xl border border-velvet-border bg-velvet-surface-raised/70 p-5 backdrop-blur-sm',
'transition-transform duration-300 ease-landing-out-quart hover:-translate-y-1 hover:border-velvet-emerald/40',
'focus-within:-translate-y-1 focus-within:border-velvet-emerald/40',
)}
>
<div className="flex items-center gap-3">
<span
aria-hidden="true"
className={cn(
'inline-flex h-9 w-9 items-center justify-center rounded-lg bg-gradient-to-br ring-1 ring-inset',
agent.accent,
)}
>
<Icon className="h-4 w-4" />
</span>
<h3 className="font-velvet-display font-normal text-base tracking-tight text-velvet-content-primary">
{agent.label}
</h3>
<span
aria-hidden="true"
className="ml-auto inline-flex items-center justify-center rounded-md border border-velvet-border bg-velvet-surface-raised/60 px-2 py-0.5 font-mono text-[10px] uppercase tracking-[0.12em] text-velvet-content-tertiary"
>
0{index + 1}
</span>
</div>
<p className="text-sm font-medium leading-snug text-velvet-content-primary">
{agent.job}
</p>
<dl className="mt-auto space-y-2 text-xs">
<div>
<dt className="font-semibold uppercase tracking-[0.12em] text-velvet-content-tertiary">
Capabilities
</dt>
<dd className="mt-1 leading-relaxed text-velvet-content-secondary">
{agent.capabilities}
</dd>
</div>
<div>
<dt className="font-semibold uppercase tracking-[0.12em] text-velvet-content-tertiary">
Runs on
</dt>
<dd className="mt-1 leading-relaxed text-velvet-content-tertiary">{agent.runsOn}</dd>
</div>
</dl>
</motion.div>
);
}
export function SolutionAgents() {
const containerRef = useRef<HTMLDivElement | null>(null);
const detectRef = useRef<HTMLDivElement | null>(null);
const triageRef = useRef<HTMLDivElement | null>(null);
const huntRef = useRef<HTMLDivElement | null>(null);
const respondRef = useRef<HTMLDivElement | null>(null);
const cardRefs = [detectRef, triageRef, huntRef, respondRef];
const prefersReducedMotion = useReducedMotion();
const [isHorizontal, setIsHorizontal] = useState(false);
useEffect(() => {
if (typeof window === 'undefined') return;
const mq = window.matchMedia('(min-width: 1024px)');
const onChange = () => setIsHorizontal(mq.matches);
onChange();
mq.addEventListener('change', onChange);
return () => mq.removeEventListener('change', onChange);
}, []);
return (
<section
id="solution"
aria-labelledby="solution-heading"
className="relative py-20 sm:py-24 lg:py-28"
>
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div className="mx-auto max-w-3xl text-center">
<p className="text-xs font-semibold uppercase tracking-[0.18em] text-velvet-emerald-mint">
Four agents, one workflow
</p>
<h2
id="solution-heading"
className="font-velvet-display font-normal mt-3 text-3xl tracking-tight text-velvet-content-primary sm:text-4xl lg:text-[40px] lg:leading-[1.15] lg:tracking-[-0.015em]"
>
One agent for each stage of an incident.
</h2>
<p className="mt-4 text-base leading-relaxed text-velvet-content-secondary sm:text-lg">
AiSOC ships exactly four named agents — Detect, Triage, Hunt, and
Respond. Each one has a fixed job, a published capability list,
and a replayable audit trail. Sub-agents (phishing, identity,
cloud, insider) are capabilities of Triage, never separate brands.
</p>
</div>
<div ref={containerRef} className="relative mt-12 lg:mt-16">
{/* Cards live in their own z-10 wrapper; the AnimatedBeam SVG
siblings below sit at z-0 so the velvet-surface-raised cards
(which the framer-motion `transform` promotes to their own
stacking contexts, e.g. via `hover:-translate-y-1`) cleanly
occlude the beam. Without the explicit split, both cards and
beams resolved at z-auto and DOM order put the beams on top. */}
<div className="relative z-10 grid gap-4 sm:gap-6 lg:grid-cols-4">
{AGENTS.map((agent, i) => (
<AgentCard
key={agent.id}
agent={agent}
index={i}
innerRef={cardRefs[i]}
/>
))}
</div>
{isHorizontal && !prefersReducedMotion && (
<>
<AnimatedBeam
className="z-0"
containerRef={containerRef}
fromRef={detectRef}
toRef={triageRef}
duration={3}
delay={0}
curvature={0}
/>
<AnimatedBeam
className="z-0"
containerRef={containerRef}
fromRef={triageRef}
toRef={huntRef}
duration={3}
delay={0.7}
curvature={0}
// VelvetEdge funnel: triage → hunt is a sapphire → mint
// beam (informational handoff).
gradientStart="#1E3A8A"
gradientStop="#34D399"
/>
<AnimatedBeam
className="z-0"
containerRef={containerRef}
fromRef={huntRef}
toRef={respondRef}
duration={3}
delay={1.4}
curvature={0}
// hunt → respond escalates to ruby (urgent action) so the
// colour signals the L2/L3 hand-off without breaking the
// two-jewel-tone-per-beam rule.
gradientStart="#34D399"
gradientStop="#9F1239"
/>
</>
)}
</div>
</div>
</section>
);
}