Skip to main content Switch to mobile version catalogrisk 0.1.0 Weakest-link risk for AI agent tool catalogs: catalog vulnerability, effective independent decisions, tolerable error rate
pip install catalogrisk Copy PIP instructions
Reporting per-attack blocking makes a tool catalog look safer than it is.
If each of M independently written tool policies is wrong with probability p, per-attack blocking stays at 1 - p. But the chance that the catalog contains at least one open exfiltration path is 1 - (1 - p)^M, and that number climbs quickly as catalogs grow.
catalogrisk computes the numbers an evaluation should report alongside blocking:
the effective number of independent decisions when one author's errors are correlated
the tolerable per-policy error rate for a target catalog risk
It is the companion code to:
Karthik Karunanithi. Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests. arXiv:2611.31338, 2026. Poster at the Third Workshop on Agents in the Wild, NeurIPS 2026. https://arxiv.org/abs/2611.31338
pip install catalogrisk # once published to PyPI pip install git+https://github.com/karthikknidhi/catalogrisk The package uses only the standard library and needs Python 3.9 or later.
catalogrisk --p 0.08 --tools 200 --rho 0.45 Catalog of 200 tools (60 sensitive sources), per-policy error 0.080, rho 0.45 per-attack blocking 92.0% catalog vulnerability 35.2% (independent: 99.3%) effective independent choices 5.2 tolerable error rate @ eps=0.05 0.00983 from catalogrisk import report, estimate_rho rho, D, pbar = estimate_rho([0, 0, 0, 0, 4, 2, 11, 10, 12, 15, 16, 0, 3, 9, 17], s=19) print(report(p=0.08, tools=200, rho=rho)) You can estimate rho from your own authoring data. Give estimate_rho the number of over-permissioned sources each author (person or model) produced, out of s sensitive sources.
An evaluation of manifest-based controls should report four things together:
catalog vulnerability at realistic catalog sizes
the sink coverage of the tests
paper-artifacts/ contains the camera-ready supplement:
the deterministic catalog sweep
the 15-model authoring pilot
the 114 real MCP tools with expert-written rules
It also includes the pinned ChainCaps engine under its upstream MIT license. See paper-artifacts/README.txt.
tests/test_paper_numbers.py checks this package against values reported in the paper.
@article{karunanithi2026perattack, title = {Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests}, author = {Karunanithi, Karthik}, journal = {arXiv preprint arXiv:2611.31338}, year = {2026}, note = {Poster, Third Workshop on Agents in the Wild (AIWILD), NeurIPS 2026} } License
MIT, except paper-artifacts/chaincaps-code/, which keeps its upstream license.
Author: Karthik Karunanithi
Both files in this release have provenance metadata.
ai-agents mcp tool-use security manifests information-flow-control
License OSI Approved :: MIT License
Programming Language Python :: 3
Release files for catalogrisk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 12.1 kB
Release files / catalogrisk-0.1.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Release files / catalogrisk-0.1.0-py3-none-any.whl
Security for catalogrisk 0.1.0
Both files in this release have been uploaded with provenance metadata.
With provenance catalogrisk-0.1.0.tar.gz Nov 25, 2026
With provenance catalogrisk-0.1.0-py3-none-any.whl Nov 25, 2026
Attestation for catalogrisk-0.1.0.tar.gz
Attestation for catalogrisk-0.1.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 25, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




