Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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.

7.0 KB
Raw Blame
'use client';

/**
 * "What makes AiSOC different" — `pillars` section from §6.6 of the
 * brief. Four differentiation cards in a 2×2 grid above `md`, single
 * column below.
 *
 * Each card composes two Aceternity primitives:
 *   - `GlowingEffect` paints a soft conic halo that tracks the pointer
 *     when the card is hovered or focused.
 *   - `CardHoverEffect` swaps to a brand-tinted overlay on the same
 *     pointer event so the card reads as "active" without redrawing
 *     its body.
 *
 * Each card carries a stat strip (e.g. "2,603 executable detection rules")
 * with `tnum`-enabled mono digits and a single CTA link that opens the
 * corresponding repo file. Corpus figures come from `corpusStats.ts`
 * (`scripts/generate_corpus_stats.py`), never typed by hand.
 */

import Link from 'next/link';
import { motion, useReducedMotion } from 'framer-motion';
import { ArrowRight, GitGraph, ScrollText, Sparkles, Boxes } from 'lucide-react';
import type { ComponentType, SVGProps } from 'react';
import { GlowingEffect } from '@/components/aceternity/GlowingEffect';
import { EXECUTABLE_DETECTION_COUNT } from '@/data/corpusStats';
import { docs } from '@/lib/docs';
import { cn } from '@/lib/utils';

interface Pillar {
  id: 'open-source' | 'graph-native' | 'agentic' | 'deploy';
  icon: ComponentType<SVGProps<SVGSVGElement>>;
  title: string;
  body: string;
  stat: string;
  statLabel: string;
  href: string;
  linkLabel: string;
}

const PILLARS: ReadonlyArray<Pillar> = [
  {
    id: 'open-source',
    icon: ScrollText,
    title: 'Open source and transparent',
    body:
      'MIT-licensed agent, public detection corpus, reproducible benchmark — every claim on this page maps to a file in the repo.',
    stat: String(EXECUTABLE_DETECTION_COUNT),
    statLabel: 'executable detection rules',
    href: 'https://github.com/beenuar/AiSOC/blob/main/LICENSE',
    linkLabel: 'Read the LICENSE',
  },
  {
    id: 'graph-native',
    icon: GitGraph,
    title: 'Graph-native at ingest',
    body:
      'The entity graph is written while events are normalised, not when an analyst clicks "show graph." Schema v1.0 is published.',
    stat: '17 + 14',
    statLabel: 'node labels · relationships',
    href: docs('architecture/graph-schema'),
    linkLabel: 'Read the graph schema',
  },
  {
    id: 'agentic',
    icon: Sparkles,
    title: 'Agentic and auditable',
    body:
      'Four named agents. Every prompt, tool call, and decision is logged, the LLM-input contract fails closed on malformed prompts, and a CI-gated CVE audit blocks every merge.',
    stat: '4 / 100%',
    statLabel: 'agents · audited',
    href: docs('architecture/agents'),
    linkLabel: 'Read the agent contract',
  },
  {
    id: 'deploy',
    icon: Boxes,
    title: 'Deploy anywhere',
    body:
      'Render, Fly.io, Kubernetes, AWS, your air-gapped rack — same code path. BYOK LLM credentials in the encrypted vault.',
    stat: '6 + 1',
    statLabel: 'deploy targets · air-gap overlay',
    href: docs('deployment/docker'),
    linkLabel: 'Read the deployment guide',
  },
];

function PillarCard({
  pillar,
  index,
  reduced,
}: {
  pillar: Pillar;
  index: number;
  reduced: boolean | null;
}) {
  const Icon = pillar.icon;
  return (
    <motion.li
      initial={reduced ? false : { opacity: 0, y: 16 }}
      whileInView={{ opacity: 1, y: 0 }}
      viewport={{ once: true, margin: '-15%' }}
      transition={{
        duration: 0.55,
        ease: [0.16, 1, 0.3, 1],
        delay: index * 0.07,
      }}
      className="group relative"
    >
      <div className="relative h-full overflow-hidden rounded-md border border-velvet-border bg-velvet-surface-raised p-6 backdrop-blur-sm transition-[border-color,box-shadow] duration-300 ease-landing-out-quart hover:border-velvet-emerald/60 motion-safe:hover:shadow-glow-emerald-md">
        <GlowingEffect proximity={120} inactiveZone={0.35} />
        <div className="relative flex items-start gap-4">
          <span
            aria-hidden="true"
            className="inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-gradient-to-br from-velvet-emerald/30 to-velvet-sapphire/20 text-velvet-emerald-mint ring-1 ring-inset ring-velvet-emerald/40"
          >
            <Icon className="h-5 w-5" />
          </span>
          <div className="min-w-0">
            <h3 className="font-velvet-display font-normal text-base tracking-tight text-velvet-content-primary sm:text-lg">
              {pillar.title}
            </h3>
            <p className="mt-2 text-sm leading-relaxed text-velvet-content-secondary">
              {pillar.body}
            </p>
          </div>
        </div>
        <hr className="my-5 border-velvet-border" />
        <div className="relative flex flex-wrap items-end justify-between gap-3">
          <div>
            <p
              className={cn(
                'font-mono text-2xl font-semibold tracking-tight text-velvet-content-primary tabular-nums',
                'sm:text-3xl',
              )}
            >
              {pillar.stat}
            </p>
            <p className="text-xs text-velvet-content-tertiary">{pillar.statLabel}</p>
          </div>
          <Link
            href={pillar.href}
            className="group/link inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-semibold text-velvet-emerald-mint transition-colors duration-200 hover:text-velvet-emerald-mint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-velvet-emerald-mint focus-visible:ring-offset-2 focus-visible:ring-offset-velvet-surface-base"
          >
            {pillar.linkLabel}
            <ArrowRight
              className="h-3 w-3 transition-transform duration-200 group-hover/link:translate-x-0.5 motion-reduce:transition-none motion-reduce:group-hover/link:translate-x-0"
              aria-hidden="true"
            />
          </Link>
        </div>
      </div>
    </motion.li>
  );
}

export function Pillars() {
  const prefersReducedMotion = useReducedMotion();

  return (
    <section
      id="pillars"
      aria-labelledby="pillars-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">
            What makes AiSOC different
          </p>
          <h2
            id="pillars-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]"
          >
            Four promises we hold ourselves to.
          </h2>
        </div>

        <ul className="mt-12 grid gap-4 sm:gap-6 md:grid-cols-2 lg:mt-16">
          {PILLARS.map((pillar, idx) => (
            <PillarCard
              key={pillar.id}
              pillar={pillar}
              index={idx}
              reduced={prefersReducedMotion}
            />
          ))}
        </ul>
      </div>
    </section>
  );
}