Repository navigation
Read garak reports and line them up with RAGProbe by OWASP risk - #66
Merged
Merged
Conversation
ragprobe security garak REPORT.jsonl reads a garak run's report, maps its OWASP v1.1 tags to the 2025 risks, counts each probe once by its worst detector, and with --with puts garak's model-level results beside RAGProbe's app-level scorecard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ragprobe security garak REPORT.jsonl: it reads a garak run's report and lines garak's results up with RAGProbe's, one row per OWASP risk.garak tests the model; RAGProbe tests the app around it (documents, tools, defences). With
--with reports/security.json, the two sit side by side, so the model layer and the app layer can be read in one table.How garak's numbers are read
failsare hits. Nothing is re-scored;nonesstay out of the rate, as in garak.Checked
test.Repeatgenerator):web_injectiongives 349/626 for LLM02 and LLM05, the same as summing each probe's worst detector by hand from the report'sevallines.tests/test_garak_report.py: the v1.1 to 2025 mapping, a probe with two detectors counted once, an older report with onlypassed/total, a malformed line, a file with no results, the side-by-side table, and the command end to end.security garakjoins the missing-file test intests/test_cli_errors.py.docs/garak.mdexplains the mapping and what the two columns can and can't be compared on; the README and CHANGELOG link it.