Scan your whole stack
Are you using tezca?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0
tezca was last scanned on 24 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
Zero-dependency, hash-chained cryptographic forensic ledger for autonomous AI agents.
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.
When an autonomous AI agent executes database mutations, financial transfers, code modifications, or processes regulated PII, standard application logs and observability platforms are insufficient:
tezca solves this with classical cryptography, local-first execution, and zero runtime dependencies.
[ 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 │
└─────────────────────────┘
| 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 |
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 |
pip install tezca
tezca requires Python 3.9+ and has zero third-party dependencies.
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}")
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']}")
@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")
@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)
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]})
tezca includes a built-in enterprise CLI for audits, incident response, and CI/CD pipelines:
tezca verify audit.db
[OK] 1,420 events verified.
[OK] Chain integrity: INTACT (Genesis: 00000000... -> Latest: e4b219af...)
tezca tail audit.db -n 5
.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
tezca verify-proof event_42.tezcaproof
[OK] Proof verified: Receipt #42 is cryptographically sealed.
[OK] Merkle Root: 0bc8e92e178936f47081d43e...
[OK] Event Hash: b51f283543dc5a13373e...
To guarantee cross-platform immutability, tezca canonicalizes JSON payloads by sorting dictionary keys lexicographically, eliminating arbitrary whitespace, and enforcing standard UTF-8 representations.
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.
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.
| 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. |
We welcome contributions from the global engineering community! Please read our Contributing Guidelines and Security Policy before submitting pull requests.
tezca is open-source software licensed under the Apache License 2.0. See LICENSE for details.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.