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

tezca

Latest version: v0.4.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: buhozurdo
4 Versions
118 Downloads

Scan summary

tezca was last scanned on 24 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 118 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 24 Nov 2026 No rules fired
0.4.0b0 24 Nov 2026 No rules fired
0.4.0a0 24 Nov 2026 No rules fired
0.3.0 19 Nov 2026 Not shown

No rules fired in 0.4.0

Findings

Findings for v0.4.0. 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.4.0; other versions have their own rules, not their own score.

README

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

tezca

Zero-dependency, hash-chained cryptographic forensic ledger for autonomous AI agents.

PyPI version Python Versions License Zero Dependencies Coverage Type Checked

Named after Tezcatlipoca (the "Smoking Mirror") — the ancient obsidian mirror that reflects and preserves everything hidden.

tezca is a lightweight, pure-Python cryptographic ledger that creates mathematically sealed, tamper-evident receipts for every prompt, tool execution, LLM completion, and guardrail decision executed by autonomous AI agents.


The Black-Box Problem in Enterprise AI

When an autonomous AI agent executes database mutations, financial transfers, code modifications, or processes regulated PII, standard application logs and observability platforms are insufficient:

  1. Logs Can Be Mutated: Traditional log files and centralized dashboards can be modified, truncated, or re-written by attackers, rogue insiders, or misconfigured processes.
  2. SaaS Telemetry Leaks Context & Adds Latency: Sending full tool arguments, prompts, and system states to third-party cloud observability vendors creates regulatory risk (GDPR, HIPAA) and adds network latency.
  3. Auditors Demand Cryptographic Proof: Emerging compliance frameworks (EU AI Act Article 12, SOC 2 Type II CC6.8, NIST AI RMF) require verifiable, tamper-evident record-keeping that proves an agent's historical sequence of decisions without reliance on vendor trust.

tezca solves this with classical cryptography, local-first execution, and zero runtime dependencies.


Architectural Overview

[ Agent Action / Tool Invocation / LLM Prompt ]
                      │
                      ▼
   ┌─────────────────────────────────────┐
   │    Canonical JSON Serialization     │  <── Deterministic key sorting & UTF-8 formatting
   └──────────────────┬──────────────────┘
                      │
                      ▼
   ┌─────────────────────────────────────┐
   │      SHA-256 Hash Chain Link        │  <── H(Index + Timestamp + Event + Data + PrevHash)
   └──────────────────┬──────────────────┘
                      │
         ┌────────────┴────────────┐
         ▼                         ▼
   ┌───────────┐             ┌───────────┐
   │ HMAC-256  │             │  Binary   │
   │ Signature │             │  Merkle   │
   │  Sealing  │             │   Tree    │
   └─────┬─────┘             └─────┬─────┘
         │                         │
         └────────────┬────────────┘
                      ▼
         ┌─────────────────────────┐
         │ Portable .tezcaproof    │  <── Verifiable offline by external auditors
         │ Standalone Bundle       │
         └─────────────────────────┘

Feature Matrix: How Tezca Compares

Capability tezca OpenTelemetry LangSmith / Arize Traditional DB Logs
Cryptographic Hash Chaining Yes (SHA-256) No No No
Tamper-Evident Verification Yes (Mathematical) No No No
Author Non-Repudiation (HMAC) Yes No No No
Runtime Dependencies 0 (Stdlib only) 15+ packages 30+ packages 0 - 10+ packages
Network & Telemetry Overhead 0 ms (Local-first) Network bound SaaS network latency Minimal
Air-Gapped / Sovereign Deployments Yes Requires collector Cloud-dependent Yes
Standalone Offline Proofs (.tezcaproof) Yes (O(log N)) No No No
Regulatory Alignment EU AI Act Art. 12, SOC2 APM / Metrics only Debugging / Evals Ad-hoc

Performance SLA (Validated Microbenchmarks)

Engineered for zero-overhead integration into production microservices:

Operation Throughput / Latency Implementation Detail
Canonical Serialization 0.02 ms / call Pre-compiled deterministic encoder (json.JSONEncoder)
SQLite WAL Record Append < 0.25 ms / event PRAGMA synchronous=NORMAL, in-memory transaction lock
Buffered JSONL Append 0.004 ms / event 64KB RAM write buffer, $O(1)$ memory index
Chain Verification (500 events) 1.84 ms total Direct raw SQL cursor streaming without dict allocations
Tamper Forensic Scan 1.36 ms total Immediate early-exit upon first broken link or altered byte
Merkle Tree Proof Generation < 0.10 ms Binary heap representation, $O(\log N)$ sibling path traversal

Installation

pip install tezca

tezca requires Python 3.9+ and has zero third-party dependencies.


Quickstart

1. Recording Agent Events
from tezca import Ledger

# Initialize ledger (uses high-performance SQLite in WAL mode by default)
with Ledger("audit.db") as ledger:
    receipt = ledger.record(
        agent_id="finance-agent-01",
        event_type="tool_call",
        data={
            "action": "issue_refund",
            "order_id": "ord_9876",
            "amount_usd": 149.99,
            "recipient": "user@example.com"
        },
        metadata={
            "session_id": "sess_4f89a",
            "model": "gpt-4o"
        }
    )

    print(f"Sealed event #{receipt.index} with hash: {receipt.hash}")
    print(f"Cryptographically linked to prev_hash: {receipt.prev_hash}")
2. Verifying Chain Integrity Programmatically
from tezca import Ledger

with Ledger("audit.db") as ledger:
    is_valid, report = ledger.verify()

    if is_valid:
        print(f"[OK] Ledger intact: {report['verified_events']} events cryptographically verified.")
    else:
        print(f"[ALERT] Tamper detected at index {report['failed_at_index']}: {report['error']}")

Framework Integrations & Interceptors

Tool Function Decorator (@wrap_tool)

Automatically capture tool arguments, execution latency, and return values or exceptions:

from tezca import Ledger, wrap_tool

ledger = Ledger("audit.db")

@wrap_tool(ledger, agent_id="support-bot", tool_name="fetch_user_profile")
def fetch_profile(user_id: str):
    return {"id": user_id, "tier": "enterprise"}

# Executions and latency are automatically sealed in the ledger
profile = fetch_profile("usr_123")
LLM Completion Decorator (@wrap_completion)

Intercept and log prompts, model identifiers, token usage, and completions:

from tezca import Ledger, wrap_completion

ledger = Ledger("audit.db")

@wrap_completion(ledger, agent_id="support-bot", model="gpt-4o")
def call_llm(messages: list):
    return client.chat.completions.create(model="gpt-4o", messages=messages)
LangChain & LangGraph Native Callback Handler
from tezca import Ledger, TezcaCallbackHandler

ledger = Ledger("audit.db")
handler = TezcaCallbackHandler(ledger, agent_id="langchain-agent", session_id="sess_102")

# Pass handler into any LangChain runnable or LangGraph agent
agent.invoke({"input": "Analyze quarterly report"}, config={"callbacks": [handler]})

Forensic CLI

tezca includes a built-in enterprise CLI for audits, incident response, and CI/CD pipelines:

Verify Chain Integrity
tezca verify audit.db
[OK] 1,420 events verified.
[OK] Chain integrity: INTACT (Genesis: 00000000... -> Latest: e4b219af...)
Inspect Audit Tail
tezca tail audit.db -n 5
Export Standalone Proof Bundles (.tezcaproof)

Export an isolated cryptographic proof for event #42 that compliance officers can verify offline without access to your production database:

tezca proof audit.db 42 -o event_42.tezcaproof
Verify an Offline Proof Bundle
tezca verify-proof event_42.tezcaproof
[OK] Proof verified: Receipt #42 is cryptographically sealed.
[OK] Merkle Root: 0bc8e92e178936f47081d43e...
[OK] Event Hash:  b51f283543dc5a13373e...

Cryptographic Guarantees & Non-Repudiation

1. Deterministic Canonical Serialization

To guarantee cross-platform immutability, tezca canonicalizes JSON payloads by sorting dictionary keys lexicographically, eliminating arbitrary whitespace, and enforcing standard UTF-8 representations.

2. SHA-256 Recursive Chaining

Every receipt hash is defined recursively: $$\text{Hash}_i = \text{SHA256}\Big(\text{Index}_i \parallel \text{Timestamp}_i \parallel \text{AgentID}_i \parallel \text{EventType}_i \parallel \text{Data}_i \parallel \text{Metadata}i \parallel \text{Hash}{i-1}\Big)$$ where $\text{Hash}_0 = 0^{64}$ (Genesis Hash). Any alteration of past records changes all downstream hashes, triggering verification failure.

3. Binary Merkle Trees & HMAC Sealing

For high-volume auditing, receipts are aggregated into binary Merkle trees yielding a 64-character root hash. Optional HMAC-SHA256 signing binds each record to a verifiable private secret key, establishing legal non-repudiation.


Regulatory Compliance Mapping

Standard Section / Control How tezca Satisfies Requirement
EU AI Act Article 12 (Record-Keeping) Continuous, automatic logging of AI operations throughout lifecycle with cryptographic immutability.
SOC 2 Type II CC6.8 / CC7.2 (Audit Logs) Tamper-evident hash chaining prevents retroactive modification of security-sensitive audit trails.
HIPAA § 164.312(b) (Audit Controls) Verifiable, signed recording of PHI access, queries, and automated processing.
NIST AI RMF Govern 1.2 & Measure 2.5 Transparent tracking of provenance for all automated agent actions and decisions.

Contributing

We welcome contributions from the global engineering community! Please read our Contributing Guidelines and Security Policy before submitting pull requests.


License

tezca is open-source software licensed under the Apache License 2.0. See LICENSE for details.

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 tezca

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229