Skip to content

security: derive the real signed payload in obli-pkg verify path #60

Open

Description

@hyperpolymath

The package verify path is an explicit MVP stub: placeholder payload (mock_message = pkg_content) and zeroed test-signature fallbacks (left by #56 with a TODO(security)). A real scheme signs the package bytes excluding the embedded signature blocks. Source: ffi/zig/src/obli-pkg.zig:377.

https://claude.ai/code/session_01GJatEm2TVFSTBEkKXmserJ

Activity

  1. hyperpolymath commented on Aug 4, 2026

    @hyperpolymath
    OwnerAuthor

    Premise update (measured 2026-08-04): the original defect here — mock_message = pkg_content placeholder payload + zeroed test-signature fallbacks — is partially fixed already: deriveSignedPayload now genuinely strips SIGNATURE: envelope lines to reconstruct the signed bytes, and missing keys/signatures fail closed.

    PR #109 closes the four remaining fail-open gaps: zero-padded short key files, uninitialised base64-decode tails passed to OQS_SIG_verify, mid-line vs line-start SIGNATURE: parser asymmetry, and the /tmp HOME fallback (plus an invalid free on that path).

    This issue is now rescoped to what's still missing:

    • a signer producing real SIGNATURE:<name>:<base64> blocks over the canonical payload (nothing in the repo emits them yet, so verify can only fail closed)
    • end-to-end sign→verify test vectors for all three schemes (Dilithium5, SPHINCS+, Ed25519)
    • a real key-distribution/trust-root story to replace ~/.obli-pkg/keyring/ test keys
  2. added
    chore
    on Aug 27, 2026
  3. added
    priority:p1
    scope:repo
    status:ready
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    chorepriority:p1scope:reposecuritystatus:ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions