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
fix(web): stop serving a fabricated case study, and drop a duplicate nav entry (#886)
Beenu Arorad704c25b987a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 625c05a82..00e71d504 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -659,6 +659,36 @@ number is the one the requirement is sized against.### Fixed+- **`/customers/example` published a fabricated case study on the public+ site.** `generateStaticParams` pre-rendered every file in+ `apps/web/content/customers/`, and `getCustomerBySlug` never consulted the+ `draft` flag, so the template shipped as scaffolding was built into the+ static output and served: a company that does not exist, invented+ before/after numbers, a quote attributed to a role at it, and a claim that a+ SOC 2 Type II auditor closed three named controls. The index page was+ correct — it filters drafts — which is what made this invisible: the+ fabrication was reachable only by its own URL, and by search engines.++ Drafts are now excluded from pre-rendering, and resolve by slug only outside+ production so an author can still preview their own work. Verified against+ the build output rather than the source: the study appears in no file under+ `.next/`, only the index route is generated, and the sitemap lists+ `/customers` alone.++ The index itself asserted customers exist when none do. Its metadata read+ "Reference customers running AiSOC in production", its Open Graph+ description promised "the before/after metrics each team reports", and its+ heading read "Teams running AiSOC in production." — all published while the+ published-study count was zero. The page now says so plainly and points at+ the real screenshots and the repository instead.++- **A duplicate "Investigation Chat" entry in the console sidebar.** It pointed+ at `/investigate`, which permanently redirects to `/hunt` — a route the+ sidebar already lists — so the entry advertised a surface that was collapsed+ into Hunt, and whose component was removed as fabricated. Clicking it landed+ on Hunt with the highlight on a different item than the one clicked.++- **The `Public papers (regenerate PDFs)` workflow could never succeed on`main`, and its design hid that from everyone opening a PR.** Its final steppushed refreshed PDFs directly to `main`, which stopped being possible whendiff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.tsindex c4b7818fb..ce4e94a6b 100644--- a/apps/web/next-env.d.ts+++ b/apps/web/next-env.d.ts@@ -1,6 +1,7 @@/// <reference types="next" />/// <reference types="next/image-types/global" />-import "./.next/dev/types/routes.d.ts";+import "./.next/types/routes.d.ts";+import "./.next/types/root-params.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/apps/web/src/app/(marketing)/customers/page.tsx b/apps/web/src/app/(marketing)/customers/page.tsxindex b465ac913..ee1548c31 100644--- a/apps/web/src/app/(marketing)/customers/page.tsx+++ b/apps/web/src/app/(marketing)/customers/page.tsx@@ -10,14 +10,14 @@ import { listCustomers } from '@/lib/customers';*/export const metadata: Metadata = {- title: 'Customers — AiSOC',+ title: 'Case studies — AiSOC',description:- 'Reference customers running AiSOC in production: who they are, the security challenge, and the measurable outcome.',+ 'Published AiSOC case studies. Each one is an MDX file in the repository, written from numbers the team running it reported.',alternates: { canonical: '/customers' },openGraph: {- title: 'Customers — AiSOC',+ title: 'Case studies — AiSOC',description:- 'Real-world AiSOC deployments and the before/after metrics each team reports.',+ 'Published AiSOC case studies, each contributed as a file in the repository.',type: 'website',},};@@ -34,16 +34,17 @@ export default function CustomersIndexPage() {<section className="px-6 pt-32 pb-12"><div className="mx-auto max-w-5xl"><span className="text-xs font-semibold uppercase tracking-wider text-brand-300">- Customers+ Case studies</span><h1 className="mt-3 text-4xl font-bold tracking-tight text-white md:text-5xl">- Teams running AiSOC in production.+ {hasStudies+ ? 'Teams running AiSOC in production.'+ : 'No case studies published yet.'}</h1><p className="mt-5 max-w-2xl text-lg leading-relaxed text-gray-400">- Each case study below is a single MDX file in the repo. The- challenge, the before/after numbers, and the analyst quote are- taken directly from the customer — no marketing rewrite, no- unverifiable vendor metrics.+ {hasStudies+ ? 'Each case study below is a single MDX file in the repository. The challenge, the before/after numbers, and the analyst quote come from the team that ran it — no marketing rewrite, no unverifiable vendor metrics.'+ : 'This page lists case studies contributed as files in the repository, written from numbers the team running AiSOC reported. Nobody has published one yet, so rather than fill the space we are saying so.'}</p></div></section>@@ -110,13 +111,31 @@ export default function CustomersIndexPage() {})}</div>) : (- <div className="rounded-2xl border border-white/10 bg-white/[0.02] p-10 text-center">- <p className="text-sm text-gray-400">- No published customer stories yet. Drop an MDX file into{' '}+ <div className="rounded-2xl border border-white/10 bg-white/[0.02] p-10">+ <p className="max-w-2xl text-sm leading-relaxed text-gray-400">+ AiSOC is an open-source project, so the deployments we know+ about are the ones people tell us about. If you are running it,+ a case study is a pull request adding one file under{' '}<code className="rounded bg-white/5 px-1.5 py-0.5 font-mono text-xs text-gray-200">apps/web/content/customers/- </code>{' '}- to publish one.+ </code>+ . In the meantime, the{' '}+ <Link+ href="/#product"+ className="text-brand-300 underline underline-offset-2 hover:text-brand-200"+ >+ screenshots on the home page+ </Link>{' '}+ are captures of a real stack, and everything behind them is in{' '}+ <a+ href="https://github.com/beenuar/AiSOC"+ target="_blank"+ rel="noreferrer"+ className="text-brand-300 underline underline-offset-2 hover:text-brand-200"+ >+ the repository+ </a>+ .</p></div>)}diff --git a/apps/web/src/components/layout/Sidebar.tsx b/apps/web/src/components/layout/Sidebar.tsxindex 90a1978f8..9ed180dde 100644--- a/apps/web/src/components/layout/Sidebar.tsx+++ b/apps/web/src/components/layout/Sidebar.tsx@@ -243,11 +243,6 @@ const navSections: NavSection[] = [href: '/copilot',icon: <SparklesIcon />,},- {- label: 'Investigation Chat',- href: '/investigate',- icon: <SparklesIcon />,- },{label: 'Coverage Advisor',href: '/coverage-advisor',diff --git a/apps/web/src/lib/customers.ts b/apps/web/src/lib/customers.tsindex 26b57e993..ed8396927 100644--- a/apps/web/src/lib/customers.ts+++ b/apps/web/src/lib/customers.ts@@ -109,9 +109,8 @@ function parseFile(filename: string): CustomerStudy {}/**- * List every case study on disk. `includeDrafts` is true by default for- * detail-page resolution (GTM should be able to preview a draft directly via- * its slug); the index page passes `false` so drafts stay private.+ * List every case study on disk. Callers that render anything publicly pass+ * `false`, so an unpublished study stays unpublished.*/export function listCustomers(includeDrafts = true): CustomerStudy[] {const studies = readDir().map(parseFile);@@ -126,16 +125,33 @@ export function listCustomers(includeDrafts = true): CustomerStudy[] {});}+/**+ * Resolve one case study, refusing drafts outside development.+ *+ * A draft is unpublished content, and the template shipped in this directory+ * is fabricated end to end — a company that does not exist, invented+ * before/after numbers, and a quote attributed to a role at it. Serving that+ * from a public deployment states it as fact, so a draft resolves only where+ * someone is previewing their own work.+ */export function getCustomerBySlug(slug: string): CustomerStudy | null {for (const ext of ['mdx', 'md'] as const) {const file = path.join(CONTENT_DIR, `${slug}.${ext}`);if (fs.existsSync(file)) {- return parseFile(`${slug}.${ext}`);+ const study = parseFile(`${slug}.${ext}`);+ if (study.frontmatter.draft && process.env.NODE_ENV === 'production') {+ return null;+ }+ return study;}}return null;}+/**+ * Slugs to pre-render. Drafts are excluded so an unpublished study is never+ * built into the static output, where nothing downstream could withhold it.+ */export function listCustomerSlugs(): string[] {- return readDir().map((name) => name.replace(/\.(mdx|md)$/u, ''));+ return listCustomers(false).map((study) => study.slug);}