Cybersecurity

Cyber

Cybersecurity and virtual patching

Source

See the Sphinx changelog for published versions, changes, and release-specific upgrade guidance.

Eden's cybersecurity model separates four approaches: network-based, policy-based, module-based and client-based remediation. They differ in where enforcement runs, what information it can inspect and which effects it can prevent. A deployment can combine them.

In the inline policy/module path, a protocol adapter inspects a request before the protected backend receives it. A prepared structural policy selects an action, and Eden rejects the request or admits one continuation. Complex logic can run in a separately compiled Rust worker while Eden retains upstream connections, credentials and authorization.

Availability: the remediation profiles, Rust SDK and module activation APIs below are preview contracts checked on November 6, 2026. Implementation tests exist; full Runtime isolation, end-to-end CVE protection, performance qualification and independent customer adoption remain incomplete. These interfaces are not a general-availability promise. Confirm the exact build and qualified profile before using them. Existing identity, governance and data protection controls are covered in the Security overview.

Four remediation approaches

ApproachEnforcement locationWhat it changesMain boundary
Network-basedManaged network path and supported packet/socket/connection hooks.Which traffic or connections can reach a protected resource, or the governed route they must take.Actual hook ordering, original host/workload scope and bypass coverage; no implicit application-body inspection.
Policy-basedProtocol-aware gateway using a prepared declarative rule.Whether a method, path, header, field or other supported request structure is admitted.Only the selected protocol/parser/profile is covered.
Module-basedSeparately compiled Rust worker called by Eden.Bounded custom validation and permitted transformations over declared captures.The host validates every proposal and retains final effect authority.
Client-basedCalling application or its qualified client integration.Request construction, validation or normalization before the caller sends it.Covers participating clients; it cannot establish server authorization or stop a bypassing client by itself.

Read Remediation approaches for execution flows, examples, selection guidance and the current support status of each. Network and client profiles need their own deployment qualification; HTTP policy or Rust SDK tests do not establish their coverage.

Policy and module request path

The control plane validates and prepares declarations outside the request path. The serving path uses the endpoint type and analyzer fingerprint to select a verified structural entry in a ShardMap-backed tree. A fingerprint classifies a request structure; it is neither a tenant identity nor permission to execute. Preparation resolves the typed native action or immutable module reference. Request processing does not compile or download missing policies.

ComponentOwns
Management APIAuthenticated organization scope, configuration permission and publication preconditions.
Protocol adapterParsing, completeness, operation/path semantics, capture extraction and valid mutation/serialization.
Prepared policyImmutable selector, action, parser contract and binding revisions.
Runtime and SDK hostOriginal worker identity, bounded RPC, current grants and invocation lifetime.
Customer moduleComputation over declared captures; an untrusted decision proposal.
Gateway effect boundaryCurrent base authorization, binding validity, credentials and upstream dispatch.

A module receives no backend capability handles. Its trait implementation runs inside the worker process; Eden does not load a customer Rust dynamic library or deserialize a trait object. The Rust type system is not the isolation boundary. Runtime must independently enforce process, filesystem, network, CPU and memory restrictions. A compiled module, an accepted manifest or SDK readiness alone does not prove those restrictions.

Traffic must traverse the protected listener. Direct backend access bypasses this decision point. Use network placement and backend access controls to make the intended path enforceable; a matching policy cannot secure an unobserved path.

Supported preview profiles

ProfileImplemented decision/input boundaryLimits
http-header-presence-v1Native rejection when a declared header occurs in a complete HTTP/1 request.Presence only, case insensitive; no header-value inspection or body mutation.
http-structure-v1Native method/path-scoped deny, header absence, media-type requirements and JSON root-member absence.Bounded unary HTTP/1; complete supported JSON input where required.
http-module-v1Structural selection of an admitted Rust module with explicit captures and validated root-member mutations.Dedicated remediation worker; current artifact, application and binding authority required.
http1-headers-v1Module input contract for method, path and declared header-presence captures.No header values, query values or implicit body disclosure.
http1-json-root-v1Module input contract adding root-member presence and explicitly granted JSON values.Complete unencoded JSON object with unique decoded root names.

The first three names are deployment profiles; the last two describe module inputs. They are not interchangeable configuration values. The Service's http-remediation Cargo feature enables the HTTP integration; it does not establish deployment readiness or a security qualification.

Redis has a separate native adapter and redis-remediation feature. A redis-command-v1 manifest input name does not establish Redis module execution support. PostgreSQL, MySQL, MongoDB, DB2, Kafka, LLM and Agent traffic each require their own implemented and qualified adapter. Do not extrapolate HTTP coverage to other protocols. Streaming, multipart, response hooks and arbitrary binary/session traffic are outside the unary HTTP profile documented here.

Native policy example

This inert example rejects POST /records when its JSON object contains a root member named data. It demonstrates request admission, not a CVE protection. No worker artifact is needed for this native requirement.

json
{
  "version": 1,
  "profile": "http-structure-v1",
  "policy": {
    "version": 1,
    "rules": [
      {
        "scope": { "methods": ["POST"], "path": "/records" },
        "require": { "kind": "json_members_absent", "members": ["data"] }
      }
    ]
  }
}

Save the declaration as remediation.json. On a preview build supporting this profile, use the existing Interlays API. An interlay is the Eden-managed listener bound to the protected endpoint. Set EDEN_API to your Service API base, including /api/v1, EDEN_TOKEN to a token with the required organization Configure permission, and INTERLAY to its ID or UUID.

bash
curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer ${EDEN_TOKEN}" \
  -H 'X-Eden-Verbose: true' \
  "${EDEN_API}/interlays/${INTERLAY}" > interlay.json

# PATCH replaces the settings object: preserve its other existing fields.
jq --slurpfile policy remediation.json \
  '{settings: (.settings + {remediation: $policy[0]})}' \
  interlay.json > patch.json

curl --fail-with-body --silent --show-error --request PATCH \
  -H "Authorization: Bearer ${EDEN_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data-binary @patch.json \
  "${EDEN_API}/interlays/${INTERLAY}"

The verbose GET returns the interlay object directly. Inspect it before applying a change. The minimal native example assumes this interlay has no existing module-publication fence. If it has one, retain the server-owned publication data and include the current preconditions described below. Do not automatically replay a failed mutation.

Request body at POST /recordsExpected policy result
{"input_value":"hello"}Continue to the original backend.
{"input_value":"hello","data":null}Reject with HTTP 403. Presence includes null.
Malformed JSON, duplicate decoded root names or unsupported encodingRefuse the required JSON inspection.

The backend still determines the business response for an admitted request. Sending traffic directly to that backend does not exercise the policy.

Scope and parsing semantics

methods admits GET, HEAD, OPTIONS, POST, PUT, PATCH and DELETE; an empty list selects all ordinary methods supported by the adapter. path is an absolute canonical path. A * segment matches exactly one nonempty segment; descendants: true includes descendants at a segment boundary. The query string does not participate in path matching. One trailing slash is equivalent.

Encoded paths, repeated slashes, dot segments, matrix parameters, backslashes, non-ASCII paths and other ambiguous aliases are refused by this profile rather than normalized into broader coverage. The structural policy admits one to eight rules, subject also to the finite shared observation budget. A JSON absence requirement admits one to eight distinct root-member names. Names are decoded and case sensitive; nested objects are not selected by a root-member name.

Header absence checks every occurrence, regardless of name casing or value. Media-type constraints select explicit types without wildcards; they do not establish multipart provenance or validate a body format on their own.

Native constraint reference

The http-structure-v1 implementation has four native requirement types. These are policy building blocks, separate from the Rust module's three Continue/Reject/Mutate outcomes. Every matching rule is mandatory; a request must satisfy all applicable requirements before it can continue.

RequirementWhat changes in the request pathWhen to use it
denyReject the selected operation before upstream dispatch.Temporarily close a vulnerable method/path while retaining unrelated operations.
header_absentReject if the named header occurs, including duplicate or differently cased occurrences.Forbid an unsafe override signal without depending on its value.
json_members_absentRequire a complete JSON object without the named decoded root members. Reject a violation rather than remove the member.Forbid caller-controlled inputs such as a root executable/configuration override.
media_typeReject when the request's media type is outside the explicit allowed set.Restrict a route to an expected format; combine with structural validation where body semantics matter.

The following objects are individual entries in policy.rules, not complete PATCH requests. Use the versioned envelope and settings-preserving publication procedure above.

Deny a selected operation

json
{
  "scope": { "methods": ["POST"], "path": "/legacy-import" },
  "require": { "kind": "deny" }
}

This contains exposure by making that operation unavailable. It also rejects legitimate requests to the selected operation; it is not a behavior-preserving repair. Other paths still follow their own authorization and policy.

Forbid a header

json
{
  "scope": { "path": "/", "descendants": true },
  "require": { "kind": "header_absent", "name": "x-unsafe-override" }
}

The rule checks presence, not a substring or regular expression over the value. An empty value still counts as presence. It does not strip the header and forward.

Forbid JSON root members

json
{
  "scope": { "methods": ["POST"], "path": "/records" },
  "require": { "kind": "json_members_absent", "members": ["data"] }
}

Both {"data":null} and {"data":{}} violate this rule. A nested {"options":{"data":null}} does not contain a root data member. An empty body is refused by default; set allow_empty_body: true only when the operation actually permits absent input. To remove a field while continuing, use an explicitly authorized Rust Mutate proposal instead of this native absence rule.

Restrict the media type

json
{
  "scope": { "methods": ["POST"], "path": "/records" },
  "require": { "kind": "media_type", "allowed": ["application/json"] }
}

This is a format constraint. It does not prove that the JSON is valid or safe, and it does not inspect multipart provenance. Add the appropriate structural requirement or supported module input contract for the content being protected.

Use native constraints for invariants expressible in this finite declaration. Use a Rust module when the supported captures require more involved validation or an explicitly permitted root-member transformation. Both paths retain the same host-owned authorization and upstream effect boundary. Neither mechanism creates support for a protocol/stage absent from the capability matrix.

Rust modules and artifact identity

Use a module when explicit captures and permitted transformations are needed. The Rust remediation SDK guide describes the trait, lifecycle, build command, example and limits.

The immutable RemediationModuleManifest declares schema_version, module_id, module_version, entrypoint, sdk, stage, inputs, permissions and limits. Its SDK value is ednp-1.1-remediation-v1 and the current stage is before_upstream. Input declarations bind a parser contract digest to named capture sources. Optional claimed_provenance is customer-supplied metadata, not a verified signature or build attestation.

Keep these identities distinct:

IdentityMeaning
Image SHA-256Immutable stored OCI image identity.
Module SHA-256Digest of the validated typed module manifest. It is not a raw executable hash.
Application revisionSpecific Runtime application revision admitting that image and worker.
Parser and pattern revisionsExact interpretation, selectors and capture contract.
Binding revisionPrepared selector/settings/grants snapshot used for this request.
Worker incarnationOriginal live worker process selected by Runtime.

Storing an image does not activate protection. A binding must match the admitted image and module, installed entrypoint, supported parser contract, current tenant, application revision and live SDK authority. Requested permissions are ceilings; the host can reduce them. A module cannot grant itself capture disclosure or permission to change a field.

Publication, observed state and rollback

The preview control path uses GET and PATCH /api/v1/interlays/{interlay}. Both require organization Configure permission in the remediation implementation. For module bindings, request the verbose GET representation and read remediation_status.configuration_etag. Use that exact strong token in If-Match, together with a fresh bounded Idempotency-Key, when publishing.

ResponseMeaning and client action
428Module publication is missing If-Match. Read current configuration.
412The predecessor changed. Reload and reassess the intended update.
409The immediately recorded publication operation was reused. Inspect current state before deciding what to do.
400Malformed/unsupported declaration, invalid key or attempted replacement of server-owned publication data.

Idempotency-Key is 1–128 visible ASCII characters for this publication path. Do not assume a retry returns a cached successful response. The server owns remediation_publication and checks the durable predecessor under the database write lock. The fence also applies when disabling or replacing a prior module configuration with a native policy.

An accepted management response describes saved configuration. Read verbose observed state again before attributing traffic to it:

remediation_status.stateInterpretation
disabledNo remediation is configured for the observed local state.
stoppedA declaration exists without a running local listener.
unavailableSaved/live/prepared state or current module authority cannot be reconciled.
readyThis local listener has a matching prepared policy and passes the applicable current module admission read.

scope is local_interlay. Compare desired_sha256 with effective_sha256; the latter is absent when effective state cannot be established. A runtime_revision is a local generation that can reset after restart. Pair it with the serving node identity and configuration digest. ready is a point-in-time local observation, not a fleet rollout receipt, future lease or CVE proof.

Rollback means a new authorized publication of a previously retained declaration and immutable artifact using the current predecessor fence. Revalidate its compatibility and worker authority. Do not restore an old response token over a newer controller's update. Disabling a control changes the protection boundary; it is not evidence that an earlier request had no effects.

Failure behavior and qualification

Required inspection cannot silently become Continue. Partial/unsupported input, unknown required capabilities, stale authority, malformed decisions, invalid mutations, deadline expiry and worker failure must refuse the required path. Cancellation cannot undo an upstream operation already admitted. Retrying an uncertain business operation may duplicate effects.

Validate protection with an independent backend oracle: rejected requests cause zero protected-operation effects, continued requests cause exactly one, and mutated requests cause exactly the permitted altered effect. Exercise ordinary traffic, malformed/ambiguous inputs, revocation, wrong-tenant scope, worker exit, timeouts and changes racing with an invocation. Keep the original application and vulnerable version fixed when testing a virtual-patch claim.

SDK/process conformance, image admission, local policy readiness, native isolation, performance and actual vulnerability reproduction are separate evidence. A vendor advisory or catalogue listing does not establish that a particular deployment is protected. Vendor upgrades remain the source of permanent vulnerability fixes.

SDK telemetry records bounded outcome, duration, byte counts, queue depth and request/revision identifiers. It omits bodies, header values, SQL, credentials and returned values. Do not substitute a policy-match count for measured backend effects or an active protection receipt.

Implementation references

These pinned preview sources define the contracts described here; they may require repository access. They are not release or qualification certificates.

Help improve Eden Docs

Find something unclear or incomplete? Review the source and propose an update.

View on GitLab Updated November 23, 2026