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
[tool.poetry]
name = "aisoc-slack-bot"
version = "0.1.0"
description = "AiSOC Slack bot — slash commands and approval flows for ChatOps-driven SOC operations"
authors = ["Beenu Arora <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
# Aligned with services/api. The previous `<0.137` cap held starlette at
# 1.0.0, which carries six advisories (PYSEC-2026-161/248/249/2280/2281),
# and because a stale poetry.lock kept this service out of the dependency
# scan entirely, nothing in CI ever said so (#650).
# Floor 0.117: below it a `-> None` handler under PEP 563 trips FastAPI's
# "204 must not have a response body" assert at import. One range for
# every service — see services/api/pyproject.toml for the measurement.
fastapi = ">=0.117,<0.162"
uvicorn = {extras = ["standard"], version = "^0.27.0"}
pydantic = "^2.5.0"
pydantic-settings = "^2.1.0"
slack-bolt = "^1.18.1"
slack-sdk = "^3.27.0"
# Required transitively by slack_bolt.async_app — declared explicitly so a
# resolver pruning unused deps doesn't break the FastAPI/Bolt adapter.
aiohttp = ">=3.9,<4.0"
httpx = ">=0.27,<0.29"
structlog = ">=24.1,<26.0"
# Phase B3 — durable approval-SLA timer store (app/services/timer_store.py).
# Optional at runtime (in-memory store is the fallback), but shipped so a
# DATABASE_URL-configured deployment gets restart-durable timers.
asyncpg = ">=0.29,<0.31"
[tool.poetry.group.dev.dependencies]
# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
# resolve together or not at all.
pytest = ">=9.0.3,<10.0"
pytest-asyncio = ">=1.0,<2.0"
# The CI job that runs this suite reads a coverage floor out of the
# `[tool.coverage.report]` table below, and the plugin that enforces it was
# installed by the workflow rather than declared here. A floor whose reader
# lives somewhere else is a floor that can be dropped by editing a file this
# service does not own.
pytest-cov = ">=5,<8"
respx = "^0.21.1"
# Same shape as services/api and services/osquery-tls rather than a third
# strictness level. `python_version` is pinned so the finding set does not
# move with whatever interpreter mypy happens to run on.
[tool.mypy]
python_version = "3.11"
strict = false
ignore_missing_imports = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
# Phase 2.2 — coverage floor for CI gate.
#
# Measured baseline at the time of introduction: 91%. Floor is
# set at 89% (current - 2pp) so flaky branch-execution variance
# doesn't break main, while still catching any real regression. Raise
# this number as the suite grows — never lower it without a written
# justification. The pyproject is consulted by
# `pytest --cov-config=pyproject.toml --cov=app` in CI.
#
# Why pyproject instead of pytest.ini: keeps the floor next to the
# dep constraint that produced it, so a bump in either is reviewed
# in the same diff.
[tool.coverage.run]
source = ["app"]
branch = true
[tool.coverage.report]
fail_under = 89
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]