Commit Graph
39 Commits
Author SHA1 Message Date
Alexander Myasoedov 2afd42d3b1 fix(scan): score leak detections as findings; send the many-shot attack
Addresses review on #359:
- pii / sandbox_escape (and plugins with detects_leak = True) no longer
  count as refusal votes. A leak is COMPLIED, or PARTIAL with a refusal.
- Many-shot scan builds the context with unscored warm-up requests, then
  always sends the dataset prompt and scores only that reply. Before, it
  could score a warm-up reply, and often never sent the attack.
2026-10-29 19:37:55 +02:00
Alexander Myasoedov 48349bbd12 fix(scan): score attacks that succeeded, not refusals (#358)
failureRate counted refusals and errors, so a model that refused every
attack scored 100% (grade E, CI fail) and one that complied with every
attack scored 0% (grade A, CI pass).

- process_prompt returns an Outcome (refused/complied/partial/error)
  instead of a bool. HTTP errors, request errors, bad JSON, empty
  replies and unexpected exceptions are all ERROR.
- failureRate = (complied + partial) / (refused + complied + partial).
  Errors are excluded and reported as the new errorRate field.
- Detectors get the reply text, not the stringified JSON envelope.
- Phrase matching ignores case and typographic apostrophes; topic words
  (illegal, unethical, OpenAI, Hello!, As an AI) removed from
  REFUSAL_MARKS; common refusal phrasings added.
- ml_classifier is off by default and loaded lazily.
- failures.csv now lists findings (complied/partial) with their outcome.
- Mock targets refuse ~80% instead of ~20%, so the demo still passes.
- ConcurrentExecutor trips its circuit breaker on ERROR outcomes.
2026-10-29 19:30:41 +02:00
Alexander Myasoedov 69e11e7d6d feat(update docs): 2026-10-19 17:35:15 +03:00
Alexander Myasoedov d0a78195ba chore: switch to Python 3.15 (#347)
Relock so every dependency installs from wheels on 3.15 (multiprocess and
pyyaml are pure-python sdists), allow pandas 3 and scikit-learn 1.9.
2026-10-18 19:12:42 +03:00
Alexander Myasoedov eab28edb52 feat(agentic_security_harness): 2026-10-18 18:09:43 +03:00
Alexander Myasoedov f286ebf21a fix: docs 2026-09-07 14:03:57 +03:00
Alexander Myasoedov c75df250c7 Merge pull request #343 from TianHengZhuang/main
docs: document module interface and add ModuleProtocol
2026-09-07 13:16:03 +03:00
TianHengZhuang 587cbe53f3 docs: fix external_module.md examples 2026-09-07 11:05:46 +08:00
Sabina8205 dd97599863 docs: add CLI reference and correct configuration filename 2026-09-02 19:21:07 +08:00
JackSpiece cb8bceb16a chore: delete MCP server and client (#308) 2026-06-10 21:30:07 +00:00
JackSpiece 92e3feb42d chore: remove leftover Agno artifacts (#307) 2026-06-10 20:48:26 +00:00
Alexander Myasoedov ead8f85836 feat(feat(refusal): detect Docker/K8s sandbox escape probes (#280)): 2026-06-04 18:28:12 +03:00
Alexander Myasoedov 1fa66bd292 Merge pull request #300 from JackSpiece/fix/mcp-client-usage-examples
docs: add MCP client usage examples
2026-06-03 15:01:02 +03:00
Carlos 312a4cee53 feat: add MCP+Agno integration docs and report chart tests 2026-05-30 12:16:06 -04:00
JackSpiece 72f0f63a89 docs: add MCP client usage examples 2026-05-19 19:16:11 +08:00
Edneam be7fb1f370 fix: keep PII detection separate from refusal metrics 2026-05-14 22:42:28 +05:30
Edneam 81d2ee76c7 feat: add PII leak detector 2026-05-14 22:18:22 +05:30
Alexander Myasoedov 2896974005 fix(pc): 2026-05-14 19:23:22 +03:00
Alexander Myasoedov 669169bd11 feat(vercel): 2026-05-14 19:19:44 +03:00
Alexander Myasoedov cb64a3b70c fix(script): 2026-05-14 19:16:51 +03:00
Alexander Myasoedov e2bf837e00 fix(docs): 2026-05-14 19:15:12 +03:00
Alexander Myasoedov 0fba1ccadf feat(docs/vercel.sh): 2026-05-14 19:14:09 +03:00
Alexander Myasoedov 3a3ac4421c fix(clean up): 2025-03-12 13:41:24 +02:00
Alexander Myasoedov 91ff3aa11f feat(add demo gif): 2025-03-12 12:38:32 +02:00
Alexander Myasoedov 2bc093cfc4 feat(add gif to repo): 2025-03-12 12:37:36 +02:00
Alexander Myasoedov c2671fd6f1 fix(minor docs update): 2025-03-09 21:23:13 +02:00
Alexander Myasoedov 51bb79aa6d feat(update docs): 2025-03-05 19:27:44 +02:00
Alexander Myasoedov 32e99006bf feat(update doc style): 2025-03-05 19:16:43 +02:00
Alexander Myasoedov 4ac912c5e5 fix(docs): 2025-02-11 15:38:04 +02:00
Alexander Myasoedov 851a0f03a8 feat(docs + pre commit): 2025-02-11 15:34:12 +02:00
Alexander Myasoedov eb27f7bbaa feat(add \Reinforcement Learning Optimization doc): 2025-02-07 01:02:12 +02:00
Alexander Myasoedov 1a3bcc22a7 feat(add stenography doc): 2025-01-26 12:35:16 +02:00
Alexander Myasoedov 5db9676837 feat(Add more docs for bayesian optimizer): 2025-01-26 12:29:29 +02:00
Alexander Myasoedov 259361d279 feat(Add pydantic-ai agent): 2025-01-25 12:50:02 +02:00
Alexander Myasoedov 31196f2071 feat(Update doc index): 2025-01-25 12:31:57 +02:00
Alexander Myasoedov b376b86b96 Merge pull request #98 from Praveenk8051/feat/add-documentation-for-module-extensions
Add Module class documentation and interface example
2025-01-25 12:29:32 +02:00
Alexander Myasoedov 50436e1f1d feat(Update docs): 2025-01-25 12:28:50 +02:00
Praveenk8051 33eb4f2625 feat(Add Module class documentation and interface example) 2025-01-25 07:39:54 +01:00
Alexander Myasoedov bc030f06a8 feat(add docs): 2025-01-15 11:32:11 +02:00