Skip to content

Security: DyadicOrg/dyadic-lang

Security

SECURITY.md

Security Policy

Threat Model and Language Security Model

Dyadic is designed around explicit, inspectable authority boundaries serialized through canonical dyadic.ir/1:

  • Pure vs. Effectful Separation (fn vs. fx / workflow): Pure fn declarations cannot invoke host capabilities, perform I/O, or access ambient external state.
  • Closed Capabilities (cap): Capabilities carry explicit risk levels (read < safe < mutate < danger) and resource constraints (hosts, paths, commands). Execution requires enclosing signatures (with [...]), policy rules (.dys), and single-use execution leases.
  • Taint Tracking (Tainted<T>): Untrusted external inputs are tracked statically and cannot flow into mutate or danger sinks without verify(...) or explicit require approval.
  • Fail-Closed Write-Ahead Audit: Under mode enforce and audit write_ahead, mutating operations append hash-chained RFC 8785 canonical records (dyadic.blackbox.bundle/1) signed with Ed25519 before external dispatch.
  • Host Isolation: fs operations confine accesses inside the configured sandbox root, and shell.exec is denied unless explicitly enabled (--shell) and matched against declared commands prefixes.

Supported Versions

Security fixes are backported to the latest minor release on the main branch.

Version Supported
main / latest v0.1.x Yes
Older pre-release snapshots No

Reporting a Vulnerability

Please do not report security vulnerabilities in public GitHub issues, pull requests, or discussions.

Instead, please report security issues privately using GitHub Security Advisories ("Report a vulnerability" under the repository's Security tab). When submitting a report, please include:

  1. Affected component (internal/types, internal/ir, internal/runtime, internal/vm, internal/wasm, internal/blackbox, CLI, or standard library).
  2. A minimal .dy / .dyw / .dyc reproduction or proof-of-concept.
  3. Expected invariant versus observed behavior, and potential security impact.

Maintainers aim to acknowledge reports promptly, validate fixes against reproducible test cases, and coordinate disclosure once a patched release is available.

There aren't any published security advisories