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-threatintel"
version = "0.1.0"
description = "AiSOC Threat Intelligence Feed Service — TAXII/STIX/MISP/OTX ingestion"
authors = ["Beenu Arora <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
# 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"
httpx = "^0.26.0"
redis = {extras = ["hiredis"], version = "^5.0.1"}
taxii2-client = "^2.3.0"
stix2 = "^3.0.1"
apscheduler = "^3.10.4"
opensearch-py = {extras = ["async"], version = "^2.7.0"}
qdrant-client = {extras = ["fastembed"], version = "^1.9.0"}
neo4j = "^5.19.0"
structlog = "^24.1.0"
prometheus-client = "^0.19.0"
python-dateutil = "^2.8.2"
aiokafka = "^0.10.0"
mmh3 = "^4.1.0"
[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"
# 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"
# Phase 2.2 — coverage floor for CI gate.
#
# Measured baseline at the time of introduction: 25%. Floor is
# set at 23% (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 = 23
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]