Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

zanzibar-index

Latest version: v0.1.3

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: averykhoo
0 Stars
0 Forks
6 Versions
644 Downloads
Python Repo language

Scan summary

zanzibar-index was last scanned on 25 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 644 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 25 Nov 2026 No rules fired
0.1.2 31 Oct 2026 No rules fired
0.1.1 30 Oct 2026 No rules fired
0.1.0 29 Oct 2026 Not shown
0.0.5 15 Oct 2026 Not shown

No rules fired in 0.1.3

Findings

Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

zanzibar-index

Zanzibar-style relationship-based access control (ReBAC) for Python, stored in SQLite or PostgreSQL through SQLModel. You write your permission model in a subset of the OpenFGA modelling language (schema 1.1, including and and but not), record relationships such as "alice is a member of eng", and ask questions such as "can alice view this document?" and "who can view it?". The package is not affiliated with Google or OpenFGA.

Two backends give the same answers with opposite cost models. The set engine stores only the raw tuples and computes each answer when you ask; the graph index stores every implied relationship ahead of time, so a check is a few indexed lookups and the work moves to writes.

Status: alpha, research code, no support promised. It is heavily tested but has never run in production, it has no performance target, and the API may change in any 0.x release. Issues and pull requests are welcome; answers are best-effort.

Install

pip install zanzibar-index              # SQLite
pip install "zanzibar-index[postgres]"  # adds psycopg2-binary for PostgreSQL

Python 3.13 or later. The import name is zanzibar.

Quickstart

from sqlmodel import SQLModel, Session, create_engine
from zanzibar import Store

SCHEMA = """
model
  schema 1.1
type user
type group
  relations
    define member: [user, group#member]
type doc
  relations
    define banned: [user]
    define viewer: [user, group#member] but not banned
"""

engine = create_engine("sqlite:///perms.db")
SQLModel.metadata.create_all(engine)   # creates the zanzibar_* tables

with Session(engine) as session:
    store = Store(session, "my-app", schema=SCHEMA)
    # add_tuple(user, relation, object), in OpenFGA's "type:name[#relation]" form
    store.add_tuple("user:alice", "member", "group:eng")
    store.add_tuple("user:bob", "member", "group:eng")
    store.add_tuple("group:eng#member", "viewer", "doc:d1")   # every member of eng
    print(store.check("user:alice", "viewer", "doc:d1"))      # True
    print(store.check("user:carol", "viewer", "doc:d1"))      # False

    store.add_tuple("user:bob", "banned", "doc:d1")
    print(store.check("user:bob", "viewer", "doc:d1"))        # False
    print(store.check("user:alice", "viewer", "doc:d1"))      # True

Each write commits and returns a freshness token. A store's schema is write-once: reopening with Store(session, "my-app") reads the stored one.

Documentation

The user documentation is at https://averykhoo.github.io/graph-reachability-zanzibar-index/:

Before a first deploy, read the guides to async mode and freshness tokens, runtime checks in production, pruning the change outbox, and the exceptions reference.

License

Apache-2.0. See LICENSE in the source repository.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases zanzibar-index

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229