Repository navigation
Description
Relevant area(s)
Windows
Brief description of your issue
On 2026-10-28 a Node-marker attempt using SDK 1.0.1 and its raw wire contract (version:"1.0.0") reached PSEC creation and failed before workload output. Containment was processcontainer, fallback.allowDaclMutation:false; the attempt performed no elevation, ACL/LABEL writes or host preparation. The failure-time caller integrity was not measured. The pinned SDK native CLI was used; --probe selected tier:"base-container" with needsDaclAugmentation:false, and --dry-run validated the request. The real run then failed:
failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070005)
This is an unexpected PSEC startup failure, not a claim of a confirmed SDK defect. allowDaclMutation:false is a fixed safety condition, not an asserted cause, and the probe reported that no DACL augmentation was required. This is integration-captured, not yet a standalone minimal reproducer; full fixture roots are redacted and the SDK-generated native payload was not recorded.
Main question: what supported non-mutating way identifies the access check that failed here? Secondary: do the docs name prerequisites for processcontainer PSEC with allowDaclMutation:false? Related but distinct: #1631 (documentation, session-0 batch-logon 0x80070002, OS 26200.9711), #1451 (launch-prerequisite docs), and #1576 (denied path under a missing parent, 0x80070003 — our denied file's parent exists). No shared root cause is asserted.
Steps to reproduce
Environment at failure: Windows x64, osRelease 10.0.26100, revision unknown; SDK 1.0.1 (npm, no commit); Node v24.22.1; raw wire 1.0.0; typedSdkUsed:false. A later read-only snapshot showed 26100.9711; that is not the failure-time revision.
- Create a fixture under an existing private temp root: two writable directories, one read-only directory, and one denied file outside the grants whose parent directory exists; plus writable and ungranted sibling files and read-only native-runtime and diagnostics roots. All paths pre-exist.
- Build the raw config with
containment:"processcontainer",fallback.allowDaclMutation:false, the fixture grants, and read-only runtime/diagnostics roots. The report retains selected config fields and a rendered dry-run command, not the full raw policy JSON. - Run
--probe(exit 0) and--dry-run(exit 0, "validation passed"). A rendered CLI command was captured with full roots redacted; the SDK-generated native payload was not recorded. - Launch the Node-marker workload via
wxc-exec.exe --config: exit4294967295, 71 ms, stdout 0 B, marker records 0, and the error below.
Expected behavior
Native PSEC creation succeeds with no DACL or LABEL changes, or MXC rejects before creation with an actionable preflight error that names the failing check and its contract. A fallback to a DACL-mutating or unconfined mode is not acceptable.
Actual behavior
Relevant excerpt from 274 B of stderr (the remainder is a backend_error JSON object repeating the same message):
failed to create the process security environment: CreateProcessSecurityEnvironment failed (HRESULT = 0x80070005)
Exit 4294967295, no signal, no timeout, no workload output or marker observed. Not recorded at failure: Win32 GetLastError, processmodel.dll version, caller token/privileges/environment, or OS revision. No dumps or traces are attached; this is not a security report or BSOD.
Activity
Max19970 commentedon Nov 6, 2026
Follow-up with a strict separation between our archived failure and independently reported direct-PSEC controls. No new PSEC execution, elevation, ACL/LABEL change, or fallback was performed for this follow-up.
Our failure-time evidence (2026-10-28)
10.0.26100, x64processmodel.dllversionQueryProcessSecurityEnvironmentSupportHRESULT / raw flagsbase-container, API present, andneedsDaclAugmentation:false; these are not raw QuerySupport flags.CreateProcessSecurityEnvironmentreturned0x80070005; workload stdout and marker records were both zero.1.0.1, raw wire1.0.0, explicitprocesscontainer,fallback.allowDaclMutation:false.A later read-only OS snapshot (2026-11-03) records 26100.9711. Current read-only DLL metadata records 10.0.26100.9711, with a file last-write timestamp of 2026-10-14. Neither retrospectively measures the October 28 caller or failure-time UBR/DLL version. We do not substitute a later Medium-caller observation for the original failure token.
The documented ProcessContainer floor for 24H2 is 26100.9278, below the later snapshot. Being above the documented floor does not identify the failing access check or exclude a build-specific OS defect.
Independent direct-Create controls
openai/codex#53650, direct-PSEC report documents a different host: Windows 26300.9711, System32
processmodel.dll10.0.26100.9711. Its raw QuerySupport returned S_OK / 0xF. Direct Create returned 0x80070005 both under the execution job and from an ordinary PowerShell with IsProcessInJob=false, TokenElevated=0, TokenElevationType=Limited, TokenIsAppContainer=0; no child was created. The follow-up reports the same result for populated as well as minimal policies.Thus job membership and elevation are not necessary for that independently observed symptom. These are not measurements from our host, and a matching HRESULT does not prove a shared underlying access check. #1485 separately reports working MXC 0.8 workloads on 26200.9457; it is not our direct-Create control. We have no available second 25H2/26H2 machine and have not run another experiment.
Standalone source
The accompanying minimal one-directory source is not compiled or run; it is supplied for review, not as a claimed new reproduction. It performs no child/payload launch and has no SDK, harness, ACL mutation or fallback.
This is the complete 40-line C++ source (Windows SDK / MSVC). Its embedded FlatBuffer is CPSE 1.0, file identifier
PSEC, exactly one RW rootC:\PsecRepro; capabilities, RO/deny vectors, network policy and 1.1-only fields are omitted. The folder must already exist. Omitted network policy is not presented as enforced deny. The public schema defines this layout; Create and Close are the documented API boundary. This intentionally minimal policy is not claimed to be the original unrecorded SDK-native payload.Actionable questions
E_ACCESSDENIEDwhen QuerySupport advertises support, including the independent unelevated/outside-job case above?We are keeping native execution disabled rather than treating a probe as proof of usable isolation or silently falling back.
Max19970 commentedon Nov 6, 2026
Issue #1648: correction to the direct-Create conclusion
The earlier broad inference that direct
CreateProcessSecurityEnvironmentis unusable on this host was too strong. Operator-run controls now show a 61-byte CPSE 1.0 direct Create succeeding, while the SDK's 160-byte native CPSE 1.0 path still returns0x80070005. The historical failure-time record remains as recorded; only the broader inference is corrected. The direct and SDK runs were not a same-process/same-caller control, so no cause is established.Operator-reported direct controls
QueryProcessSecurityEnvironmentSupportreturned0x00000000with raw support bits0xf.Exact 61-byte spec, one RW path
C:\PsecRepro, operator stdout:The
C:\control is malformed, not a valid volume-root test:specWithPath()hard-codes the header path length at 12 while writing a 3-byte path, producing a 52-byte buffer with a mismatched header. Its0x8007000dis therefore not evidence about valid root grants.The operator additionally reports
S_OKfor creation flags0and1(TERMINATE_ON_CLOSE), and for the 61-byte spec zero-padded to 160 bytes. These are reported results, not a reconstructed stdout transcript.Thus 160-byte size alone is insufficient to explain the SDK failure. Flags
0and1also both succeed with the minimal spec.SDK path
Operator-reported SDK debug: SDK 1.0.1, raw wire 1.0.0, native CPSE 1.0, 160 bytes, one RW path
<RW_ROOT>,ui.disable: true, commandcmd.exe /c echo PSEC_OK.--dry-runpassed validation and selectedbase-container. The real run logged:The same SDK path with
fallback.allowDaclMutation:falseand withfallback.allowDaclMutation:trueboth returned0x80070005; no child ran. These are operator reports; we did not rerun them.No raw SDK 160-byte buffer was captured by us, and the offline encoder byte review is still pending. Until that byte-level comparison exists, no field or offset is claimed as the cause.
Minimal SDK config used
{ "containment": "processcontainer", "fallback": { "allowDaclMutation": false }, "filesystem": { "readwritePaths": ["<RW_ROOT>"] }, "process": { "commandLine": "cmd.exe /c echo PSEC_OK", "cwd": "<RW_ROOT>" }, "ui": { "disable": true }, "version": "1.0.0" }The
allowDaclMutation:truevariant differs only in that fallback value and produced the same Create HRESULT.Actual 61-byte direct call
This is the operator's Koffi Create/Close shape, one spec, flags
0:Next measurement
A same-process, same-caller baseline with flags
0is sufficient; flags0/1are already ruled out as the differentiator. Run the exact 61-byte spec and the exact SDK-encoded 160-byte spec in that one process, capture both raw buffers and their hashes plus the decoded field trees, and compare before varying any single field.Questions
Tracking: #1648
Additional direct control in a different caller
The operator's successful direct calls above remain valid. A later diagnostic under DSH's current workspace-write Tool caller used the same exact 61-byte spec, loaded
C:/Windows/System32/processmodel.dllthrough Koffi, and obtained:The diagnostic stopped there: the reconstructed 160-byte buffer and all field-removal variants were not called. It therefore provides no evidence that any SDK field is the cause.
A separate read-only Node process under that current Tool policy reports integrity
S-1-16-4096(Low),TokenElevated=0,TokenElevationType=3(Limited), andIsProcessInJob=true. This is not a token capture from the preceding PSEC process. It was not used to elevate or change any token, job, file ACL, or label.The offline Rust/schema-derived reconstruction is 160 bytes, with one RW path,
disallow_win32k_system_calls=true,ui_restrictions=0x3ff, and a presentnetwork_policy.egresswhose default action is deny. Its actual Create result remains unmeasured here; the SDK's raw buffer was not captured, so byte identity is not asserted.This makes a controlled caller comparison necessary before blaming an encoded field. Is
E_ACCESSDENIEDan expected result for a Low-integrity caller of Create, and is the supported caller-integrity requirement documented?Max19970 commentedon Nov 6, 2026
Follow-up: direct CPSE 1.0 buffers accepted; SDK ProcessContainer launch still fails
This is a third follow-up and does not change the two earlier comments (#issuecomment-6674025945, #issuecomment-6675243575). The historical failure records remain as recorded.
Operator-reported direct public-ABI results
The same host ran our reconstructed 160-byte CPSE 1.0 buffer and all four field-removal variants through
CreateProcessSecurityEnvironment+CloseProcessSecurityEnvironment. That variant runner calls only Create/Close, not QuerySupport, and launches no children. All five returnedS_OK:The reconstructed buffer is source-derived from the pinned SDK encoder fields: native CPSE 1.0, exactly one RW path
<RW_ROOT>, UI mask0x3ff, empty capabilities, and present network policy with deny-default egress. It is not claimed byte-identical to the SDK's actual output; the actual SDK raw bytes were never captured.SDK minimal still fails on the same host
Operator-reported minimal SDK run: SDK 1.0.1, raw wire 1.0.0, native CPSE 1.0, 160-byte encoded spec, one RW path
<RW_ROOT>,ui.disable: true, command:{ "containment": "processcontainer", "fallback": { "allowDaclMutation": false }, "filesystem": { "readwritePaths": ["<RW_ROOT>"] }, "process": { "commandLine": "cmd.exe /c echo PSEC_OK", "cwd": "<RW_ROOT>" }, "ui": { "disable": true }, "version": "1.0.0" }The SDK dry-run passes validation and selects
base-container. The real SDK run logsprocess security environment spec built (PSEC 1.0, 160 bytes), then Create returns0x80070005. The same minimal run withfallback.allowDaclMutation: truealso returns0x80070005; neither run created a child. These are operator measurements; we did not rerun them.Separately, our DSH Tool's 61-byte baseline returned
0x80070005, and a separate current Tool-caller snapshot was Low integrity. This is not the operator's SDK result or a failure-time token capture.Public ABI note
QueryProcessSecurityEnvironmentSupporttakes a pointer to a 64-bit value (UINT64 *; pinned Rust*mut u64, secenv.rs#L110-L111). A 4-byte buffer is undersized even if only the low 32 bits are inspected. Any published repro should omit this Query or use an 8-byteUINT64buffer. This is a general ABI caution and does not explain the SDK Create HRESULT.What this changes
All tested direct CPSE 1.0 field variants are accepted by the OS on this host, including the full reconstructed 160-byte buffer. The remaining differential points investigation toward the SDK host-launch/preparation path at Create—the actual API arguments and bytes, loaded API/module, or caller context—rather than a simple rejection of these CPSE 1.0 fields. That is an investigation direction, not a proven root cause.
The SDK failure is at Create, before attaching the security-environment process attribute or calling
CreateProcessW. Those later steps were not reached and cannot explain this earlier HRESULT; a separate direct-launch prototype is not a successful SDK-launch measurement.Request
Please compare the SDK runner's exact Create-boundary parameters/buffer and caller context with the successful ordinary-process direct call. A same-host trace at that boundary, including caller integrity/job context and loaded
processmodel.dll, would distinguish an SDK argument/serialization difference from a calling-context requirement.Direct-launch prototype: additional caller-dependent result
A single standalone Koffi prototype was then run under the ordinary DSH Tool caller, without SDK/wxc, QuerySupport, escalation, ACL/LABEL changes, or retries. It used the unchanged reconstructed 160-byte buffer. Actual stdout:
{ "create": "0x80070005", "envNonnull": false, "envOwned": false, "ungrantedRelationship": "parent", "children": [], "verification": null, "environmentClosed": false, "ownedChildUnsettled": false, "stop": "CREATE_FAILED" }No environment handle was acquired, so no Close was due. No pipe, process-attribute attachment, or
CreateProcessWwas reached; no cmd child was created and neither filesystem-write test ran. Unlike the earlier Tool control, this prototype makes no QuerySupport call, so its result does not depend on the earlier Query out-buffer sizing issue.The operator's ordinary-caller Create/Close successes above still stand. Taken together, the results establish that the calling context must be controlled before attributing this to a policy field or claiming a working replacement launcher. The earlier Low/in-job Tool snapshot remains a separate-process observation, not a token capture from this prototype. The precise SDK/ordinary-caller differential is not yet identified.
Max19970 commentedon Nov 6, 2026
Controlled comparison: the operator's unchanged script fails 5/5 in the Tool caller
To remove differences between our launcher and the operator's direct ABI test, we ran the operator's original
psec-bisect.cjsonce, unchanged, using the requestedNODE_PATHand the same Node 24.22.1 executable. No preload, wrapper inside Node, source change, spec re-encoding, or input substitution was used. The script itself reads the existingwork/psec-repro/variants/*.binfiles and calls only publicCreateProcessSecurityEnvironment/CloseProcessSecurityEnvironment. No child payload is launched.Actual stdout under the ordinary DSH Tool policy:
The operator reports five
S_OKresults from this same script and these files in their ordinary terminal. Thus the Tool-side refusal is not specific to our direct-launch prototype. This comparison does not identify which caller property causes the refusal, nor does it explain the separate SDK CLI failure in the operator's terminal.Read-only current Tool-caller snapshot
After that unchanged run exited, a separate process using the same Node executable and current Tool policy queried its own token and job state. This is not a failure-time capture from the original script's PID. No further PSEC call was made during this snapshot.
S-1-16-4096/ RID4096IsProcessInJobtrueTokenRestrictedSidscount4IsTokenRestrictedtrueTokenIsAppContainerfalsefalseOpenThreadTokenreturnedERROR_NO_TOKEN(1008)These are observations, not proof that Low integrity, restricting SIDs, or job membership individually causes the failure. No ACL/LABEL, token, privilege, product, or policy changes were made. No retry, broker, controller, or further PSEC experiment follows this comparison. Previous comments are preserved.