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.

fix(qa): ISSUE-002 — add destructuring defaults for purple-team coverage data

Beenu Arora1bf6aa48a078
diff --git a/apps/web/src/app/(app)/purple-team/page.tsx b/apps/web/src/app/(app)/purple-team/page.tsx
index c029cad35..992eca113 100644
--- a/apps/web/src/app/(app)/purple-team/page.tsx
+++ b/apps/web/src/app/(app)/purple-team/page.tsx
@@ -245,7 +245,11 @@ function CoverageHeatmap() {
}
const resolved = data ?? MOCK_COVERAGE
- const { summary, tactics, techniques } = resolved
+ const {
+ summary = MOCK_COVERAGE.summary,
+ tactics = MOCK_COVERAGE.tactics,
+ techniques = MOCK_COVERAGE.techniques,
+ } = resolved
// Index drift status by technique_id for O(1) lookup while rendering cells.
const driftByTid = new Map<string, DriftTechnique>()