Repository navigation
Description
Environment
- OS: Windows 10 Pro x64, build 19045 (22H2), NTFS
rea-agents6.8.0 (installed addonnative/windows/build/rea-windows-x64.node, 929,696 bytes)- Node.js 24.22.1
- JDK 21 (Microsoft OpenJDK)
- Ghidra 12.1.4 —
support/analyzeHeadless.batruns fine standalone - JADX CLI 1.5.6 — runs fine standalone
- Process runs at Medium integrity; not elevated (
whoami /groupsshowsMandatory Label\Medium Mandatory Level, noGroup ownermarker onBUILTIN\Administrators)
Note: I first added context to #5237 and stated Windows 11 there. That was wrong — this host is Windows 10 build 19045. This issue is the corrected version.
Symptom
doctor --provider ghidra fails the native self-test before any Ghidra or JADX call is made:
REA Windows native self-test failed: Private object requires a present protected DACL
[%TEMP%\rea-native-probe-...] (Win32 5): Access is denied.
ghidra-java is the only failing check; everything else passes (Ghidra 12.1.4 detected, analyzeHeadless resolves, decompile.exe x86_64, JDK 21). Changing TEMP/TMP to a second location on another drive produces the exact same error, so the Temp directory itself does not appear to be the variable.
Where it actually fails
Reading verifyPrivate in native/windows/src/filesystem.cc:
if (code != ERROR_SUCCESS) throw Failure("Read private DACL by handle failed", path, code);
// owner check …
require(acl != nullptr && (control & SE_DACL_PRESENT) != 0 &&
(!root || (control & SE_DACL_PROTECTED) != 0),
"Private object requires a present protected DACL", path, ERROR_ACCESS_DENIED);
require(acl->AceCount == 2, "Private DACL contains unexpected trustees", ...);- This is not the
Delete owned object by handle failedsignature from [Bug] Windows native authority self-test fails on real Windows: "Delete owned object by handle failed" (Win32 5), and leaves probe directories behind #1701 / [Windows x64] Every provider-backed operation fails with "Delete owned object by handle failed (Win32 5)" #2196. On 6.8.0 the self-test reachesverifyPrivatebefore cleanup runs. GetSecurityInfoappears to succeed; otherwise the first line would raiseRead private DACL by handle failed. The failure is theSE_DACL_PROTECTEDguard, and theWin32 5in the message is the constant passed toFailure(...), not a return value from the failing API.- The earlier delete-path fixes (fix(windows): retain failed native inspection ownership #1826, merged 2026-10-11; fix(native/windows): share FILE_SHARE_DELETE so owned objects can be marked delete-pending #2445, merged 2026-10-13) are already included in 6.8.0 (published 2026-10-25), and the local addon binary contains all six native failure strings.
Host-side experiments
Both run on this host, same user, same TEMP location; no residual objects left behind.
A — create a directory, then apply a protected DACL through Win32 ACL APIs
SET_ACL_OK
Protected=True
ACE: NT AUTHORITY\SYSTEM | FullControl
ACE: <current-user> | FullControl
B — create the directory with a protected DACL at creation time, mirroring the shape of createRelative (SECURITY_ATTRIBUTES + D:P(...) SDDL), then read the descriptor back immediately with GetNamedSecurityInfo, no delay:
SDDL_CONVERT=True
CREATE_WITH_DACL=True
READBACK_IMMEDIATE_rc=0 (ERROR_SUCCESS, no delay)
READBACK_DELAYED_rc=0
PROTECTED=True
So on this Windows 10 host a directory created with a protected DACL keeps SE_DACL_PROTECTED and is readable back immediately. I could not reproduce the guard failure through the documented Win32 path, so this is offered as a host-comparison data point rather than a claim about the cause.
Open question
createRelative builds an absolute security descriptor (InitializeSecurityDescriptor / SetSecurityDescriptorDacl / SetSecurityDescriptorControl) and passes it via OBJECT_ATTRIBUTES.SecurityDescriptor to NtCreateFile. If the descriptor format expected at that boundary differs from what this host accepts, SE_DACL_PROTECTED could be dropped while the create still reports FILE_CREATED. I have not verified this and am not claiming it is the cause.
Impact
On this host the Ghidra and JADX providers are both unusable because of this guard. The IDA provider works, since it does not go through the Windows native runtime.
Request
Sanitized diagnostics for the readback: AceCount, whether SE_DACL_PRESENT / SE_DACL_PROTECTED were observed, and whether the created descriptor differs from the supplied one. That would let this be resolved with host-specific data rather than guesswork.
Activity
liziye627-design commentedon Nov 13, 2026
Diagnostic only, in #10318. When the existing protected-DACL guard fails, the message now includes the readback present/protected bits, ACE count, root flag, and whether those two bits differ from the descriptor setup supplies. The guard, Win32 5, and creation path are unchanged, so this does not make the self-test pass. The addon was not rebuilt here.
lbchs5343 commentedon Nov 15, 2026
Correction from the reporter: this is not fixed by 6.9.0.
Before writing this, I re-ran both versions on the same host, same environment (same TEMP, same JDK/Ghidra paths, non-elevated Medium integrity). Both pass now:
ghidra-native_authorityVerified Windows native Job Object, private DACL, and reparse-safe handle controls; local NTFS only.Verified Windows native Job Object, private DACL, and reparse-safe handle controls; local NTFS/ReFS only.The differing detail strings confirm each run used its own version's doctor code rather than a shared install. The packaged addons also differ (929,696 vs 930,723 bytes). So 6.8.0, which failed on 2026-11-12/13 with
Private object requires a present protected DACL, now passes unchanged.What changed on the host
LastBootUpTimeis 2026-11-14 11:26 — a reboot happened after the failing reports.ntoskrnl.exeandkernel32.dllare dated 2026-10-16.BUILTIN\Administratorsshows deny-only, not group owner).D:\tools\rea\tempon NTFS, with inheritedAuthenticated Users:(OI)(CI)(M).The reboot is the only delta I can observe. That is consistent with your "host-dependent" framing: some state persisted across the earlier runs and was cleared by the reboot. I could not identify which state, and it is gone now, so I can no longer capture the readback bits #10318 would print.
Two consequences
rea-agents-6.8.0andrea-agents-6.9.0, the onlynative/windows/src/filesystem.ccchanges are ReFS authority admission (feat(native): support ReFS filesystem authority #10086) and theruntime_write_transientoperation.verifyPrivateand the private-DACL creation path are identical in both tags.Should this stay open as a host-state report, or would you rather close it and keep the remaining unknown tracked in #8700? I can keep this host available for a specific probe if that helps.