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
style(api): ruff format main.py (collapse wrapped calls to project line length)
Beenu Arora6592fe3dd3fc
diff --git a/services/api/app/main.py b/services/api/app/main.pyindex 8265e845b..33e42f267 100644--- a/services/api/app/main.py+++ b/services/api/app/main.py@@ -102,9 +102,7 @@ async def _demo_self_heal_bootstrap() -> None:from app.scripts.seed_demo import CANONICAL_REPLAY_SLUG # noqa: PLC0415async with AsyncSessionLocal() as session:- already_seeded = await session.scalar(- select(PublishedReplay.id).where(PublishedReplay.slug == CANONICAL_REPLAY_SLUG)- )+ already_seeded = await session.scalar(select(PublishedReplay.id).where(PublishedReplay.slug == CANONICAL_REPLAY_SLUG))if already_seeded:logger.info("demo bootstrap: canonical replay present — seed not needed")return@@ -175,9 +173,7 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:# synchronous path (local Postgres, no seed).demo_bootstrap_task: asyncio.Task | None = Noneif settings.AISOC_DEMO_MODE:- demo_bootstrap_task = asyncio.create_task(- _demo_self_heal_bootstrap(), name="demo_bootstrap"- )+ demo_bootstrap_task = asyncio.create_task(_demo_self_heal_bootstrap(), name="demo_bootstrap")logger.info("demo self-heal bootstrap scheduled")elif settings.is_dev:try: