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.

1.0 KB
Raw Blame
-- Wave 1 (close the loop): measured record of repeat alerts auto-suppressed
-- from prior outcome memory. The auto-triage worker inserts one row each time a
-- new alert matches a trusted prior benign/false-positive disposition and is
-- auto-resolved without re-triage, so the compounding alert-reduction metric is
-- measured from real events rather than estimated.
--
-- Tenant isolation is at the query layer (every read filters by tenant_id),
-- consistent with the /hunts + /cases pattern; no RLS on this analytics table.
-- Idempotent + transactional.
BEGIN;

CREATE TABLE IF NOT EXISTS aisoc_outcome_suppressions (
    id            UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
    tenant_id     UUID NOT NULL,
    signature     TEXT NOT NULL,
    alert_id      UUID,
    disposition   TEXT NOT NULL,
    prior_author  TEXT NOT NULL DEFAULT 'ai',
    created_at    TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE INDEX IF NOT EXISTS idx_outcome_suppressions_tenant_time
    ON aisoc_outcome_suppressions (tenant_id, created_at DESC);

COMMIT;