Skip to main content

Sensitivity Ratchet SDK — irreversible permission narrowing for AI agents

Project description

agent-iam-ratchet

Sensitivity Ratchet SDK — irreversible permission narrowing for AI agents.

Install

pip install agent-iam-ratchet

With framework integrations:

pip install 'agent-iam-ratchet[langchain]'
pip install 'agent-iam-ratchet[crewai]'
pip install 'agent-iam-ratchet[openai-agents]'

Quick Start

from agent_iam_ratchet import RatchetSession, Sensitivity

session = RatchetSession(scopes=["read:*", "write:*", "delete:*", "execute:*"])

# Agent reads a confidential document
session.access(Sensitivity.CONFIDENTIAL)
print(session.effective_scopes)
# {'read:*', 'write:*'} — delete and execute permanently removed

# Agent reads restricted data
session.access(Sensitivity.RESTRICTED)
print(session.effective_scopes)
# {'read:*'} — only reads remain

# Irreversible — even accessing public data won't restore permissions
session.access(Sensitivity.PUBLIC)
print(session.effective_scopes)
# {'read:*'} — still read-only

Why?

AI agents that access sensitive data can exfiltrate it by writing to lower-sensitivity channels. The sensitivity ratchet prevents this by permanently narrowing permissions after sensitive data access.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_iam_ratchet-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_iam_ratchet-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_iam_ratchet-0.1.0.tar.gz.

File metadata

  • Download URL: agent_iam_ratchet-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agent_iam_ratchet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8200cb6170bfc504e86b8eee54fb1651e59f254f571e643409426694ed3b177e
MD5 548cf0d624decb32de20bd688fb0e492
BLAKE2b-256 c566b39dc7d0812c637698802f060fb815f141cac97582b469dad1a5f05ae719

See more details on using hashes here.

File details

Details for the file agent_iam_ratchet-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_iam_ratchet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254410851edec9170ec76b8af5f077276dcbad477b692f8df7ebbc4f0abe1278
MD5 fc6a11a9a643862e8f53ac303eefc06b
BLAKE2b-256 f73017643260279a2ab4ebc4cd0fdd3c68e89c5752c8740b12129b4b98b6fac2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page