Files
agentic_security/pyproject.toml
Alexander Myasoedov 40bbb0397c fix(report): CLI and UI verdicts for the new scoring (#358)
Builds on the engine fix: failureRate is now the share of answered
attacks that worked, and errorRate is reported separately.

- CLI table shows "Attack Success" and "Errors" columns. A module where
  every prompt errored is ERROR instead of PASS.
- `agentic_security ci` judges each module on its final rates (it used
  to fail on early partial rates) and exits 1 for failures, 2 when a
  module got no answers, 0 otherwise.
- "Highest Risk Modules" lists only failing modules.
- Web UI: new "% Errors" column, ERR grade when nothing was answered,
  grades below D are E (was "?").
- Chart axis and download button relabelled.
- Version bump to 1.1.0: CI results flip for existing users.
2026-10-29 19:37:55 +02:00

101 lines
2.6 KiB
TOML

[project]
name = "agentic_security"
version = "1.1.0"
description = "Agentic LLM vulnerability scanner"
authors = [{ name = "Alexander Miasoiedov", email = "msoedov@gmail.com" }]
maintainers = [{ name = "Alexander Miasoiedov", email = "msoedov@gmail.com" }]
license = "Apache-2.0"
readme = "Readme.md"
requires-python = ">=3.15,<4.0"
keywords = [
"LLM vulnerability scanner",
"llm security",
"llm adversarial attacks",
"prompt injection",
"prompt leakage",
"prompt injection attacks",
"prompt leakage prevention",
"llm vulnerabilities",
"owasp-llm-top-10",
]
dynamic = ["dependencies"]
[project.optional-dependencies]
harness = [] # Reuses core dependencies; stable opt-in installation name.
[project.urls]
Homepage = "https://github.com/msoedov/agentic_security"
Repository = "https://github.com/msoedov/agentic_security"
Documentation = "https://github.com/msoedov/agentic_security/blob/main/README.md"
[project.scripts]
agentic_security = "agentic_security.__main__:main"
agesec = "agentic_security_harness.cli:main"
[tool.poetry]
packages = [{ include = "agentic_security", from = "." }, { include = "agentic_security_harness", from = "." }]
include = [{ path = "integrations", format = ["sdist", "wheel"] }]
[tool.poetry.dependencies]
fastapi = "^0.141.1"
uvicorn = "^0.38.0"
fire = "0.7.1"
loguru = "^0.7.3"
httpx = "^0.28.1"
cache-to-disk = "^2.0.0"
pandas = ">=1.4,<4.0"
datasets = "^4.4.1"
tabulate = ">=0.8.9,<0.10.0"
colorama = "^0.4.4"
matplotlib = "^3.10.7"
pydantic = "^2.12.5"
scikit-optimize = "^0.10.2"
scikit-learn = "^1.9.1" # bundled refusal_classifier models are pickled with 1.9.1
numpy = ">=1.24.3,<3.0.0"
jinja2 = "^3.1.4"
python-multipart = "^0.0.31"
tomli = "^2.3.0"
rich = "^14.2.0"
gTTS = "^2.5.4"
sentry_sdk = "^2.46.0"
orjson = "^3.11.4"
pyfiglet = "^1.0.4"
termcolor = "^3.2.0"
# garak = { version = "*", optional = true }
pytest-xdist = "^3.8.0"
anthropic = "^0.102.0"
openai = "^2.36.0"
[tool.poetry.group.dev.dependencies]
# Pytest
pytest = "^9.0.3"
pytest-asyncio = "^1.3.0"
inline-snapshot = "^0.31.1"
pytest-mock = "^3.15.1"
# Rest
black = ">=26.3.1,<27.0"
mypy = "^1.19.0"
pre-commit = "^4.5.0"
huggingface-hub = "^1.1.6"
# Docs
mkdocs = ">=1.4.2"
mkdocs-material = "^9.7.0"
mkdocstrings = "^1.0.0"
mkdocs-jupyter = ">=0.25.1"
[tool.ruff]
line-length = 120
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-m 'not slow'"
# addopts = "--durations=5 -m 'not slow' -n 3"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = "slow: marks tests as slow"