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

fieldseal

Latest version: v0.2.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: manuerumx
1 Stars
0 Forks
1 Versions
31 Downloads
Python Repo language

Scan summary

fieldseal was last scanned on 1 Dec 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: No rules fired in version 0.2.0.
  • Downloads: 31 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 1 Dec 2026 No rules fired

No rules fired in 0.2.0

Findings

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

README

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

fieldseal (Python core)

Field-level encryption for Python applications, with a format that other languages can read.

Experimental release: not independently reviewed, not for production data. The cryptographic design this package implements has not been reviewed by anyone outside the project. It is pre-1.0: the stored format may change before 1.0, and data written with it now may have to be re-encrypted if review changes a construction. Writing refuses until you explicitly arm provisional use (spec §4.8). This release is for evaluation and feedback; the terms it is published under are in PRD §8.

fieldseal encrypts individual values, such as a column in a database row, inside your application, so the database and its backups hold only ciphertext. It also derives blind indexes, short keyed hashes that let you find a row by an encrypted value without decrypting the whole table.

It is the Python core of Fieldseal, an open specification for field-level encryption. What it writes, the TypeScript core can read, and the reverse. Most applications use it through an ORM adapter instead: fieldseal-django for Django.

Features

  • Authenticated encryption with key commitment. AES-256-GCM, with a fresh key derived for every value, and a commitment that makes decrypting under the wrong key fail instead of producing garbage.
  • Context binding. Each value is bound to its table, column and, if you use one, tenant. Moving a ciphertext to another column or tenant makes it fail to decrypt.
  • Blind indexes for equality lookups, with Argon2id or HMAC-SHA-512 and three normalizers (case-insensitive, exact, digits only).
  • Key rotation. Several key versions can be valid at once, and rotate() re-encrypts a value under the active one.
  • KMS-backed keys, unwrapped ahead of time so encryption and decryption never wait on the network.
  • Cross-language. The same test vectors pin this core and the TypeScript core, and CI checks on every run that each decrypts what the other wrote.

Requirements

Python 3.10 or later. The cryptography comes from cryptography (AES-GCM, HKDF, HMAC) and, for Argon2id blind indexes, argon2-cffi.

Install

pip install "fieldseal[argon2]"

The argon2 extra is needed for Argon2id blind indexes, which is what the specification requires for guessable values such as email addresses. Without it, the first Argon2id derivation raises ModuleNotFoundError. Leave it out only if you use no blind indexes, or only HMAC-SHA-512 ones.

Quickstart

import secrets, uuid
from fieldseal import Fieldseal, FieldContext, IndexDeclaration
from fieldseal.keyprovider import StaticKeyProvider

# Evaluation only: keys held in memory, no KMS. See "Keys" below.
keys = StaticKeyProvider(
    key_id=secrets.token_bytes(16),
    tenant_dek=secrets.token_bytes(32),
    tenant_index_key=secrets.token_bytes(32),
)

# Fixed identifiers for the table and column. Never derive them from names.
USERS = uuid.UUID("a3e1f7c2-5b94-4d08-b6e3-9f2a7c1d4e85").bytes
EMAIL = uuid.UUID("0c9e4b7a-2d15-4f6e-8a3b-1e7d5c9f2a64").bytes

fs = Fieldseal(
    key_provider=keys,
    allowed_suites={0xFF01},
    write_suite=0xFF01,
    indexes=[IndexDeclaration(
        table_uuid=USERS, column_uuid=EMAIL,
        suite_id=0xFF01,   # the index's own suite, required; see "Blind indexes"
        idf="argon2id", normalize="nfc-casefold-v1",
        truncate_bits=15, projected_population=100_000,
    )],
    arm_provisional_suites=True,   # writing refuses without it; see the warning above
)

ctx = FieldContext(table_uuid=USERS, column_uuid=EMAIL)

envelope = fs.encrypt(b"ada@example.com", ctx)    # 126 bytes: 111 + the value
fs.decrypt(envelope, ctx)                          # b'ada@example.com'
fs.is_ciphertext(envelope)                         # True, without decrypting

index = ctx.for_index("exact")
fs.blind_index("Ada@Example.com", index)           # 2 bytes; the same as for "ada@example.com"

fs.rotate(envelope, ctx)                           # a fresh envelope under the active key

Store envelope in the encrypted column and the blind-index value in a sibling column; Blind indexes below explains how to look values up.

Blind indexes

A blind index is what makes an encrypted column searchable. Next to each encrypted value, you store a short keyed hash of it: blind_index(value, ctx.for_index(index_id)). To find a value, derive its hash the same way, select the rows whose index column matches, then decrypt each candidate and compare. The hash is deliberately truncated, so unrelated values share hashes and the query returns a few rows that do not match; the comparison is what makes the answer correct. The ORM adapters do this for you.

Each index is declared up front in indexes=[IndexDeclaration(...)]. An invalid declaration is refused when the Fieldseal client is built, not at the first lookup. Choose the options before the first write: changing idf, argon2, normalize, truncate_bits, index_id, suite_id or index_key_version later changes every stored hash, so the index has to be rebuilt.

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 fieldseal

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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?

Frame 2085668439 (1)
Group 1261154229