{"kind":"invocation","operation":"repair","path":"","status":"started","reason":"Inspect the requested paths, then repair the ACL problems this run can prove, before anything else is attempted.","details":{"paths":["G:\\WEB-SERVER\\htdocs\\AttendanceHub"],"allowRoot":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","outputDirectory":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery","recoveryRecord":""}} {"kind":"action","operation":"prepare_report","path":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery","status":"started","reason":"Create the recovery directory and a new JSONL report that keeps every record, because tool output is truncated to its tail.","details":{"id":1,"effect":"files"}} {"kind":"action","operation":"prepare_report","path":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery","status":"completed","reason":"Create the recovery directory and a new JSONL report that keeps every record, because tool output is truncated to its tail.","details":{"id":1,"effect":"files"}} {"kind":"action","operation":"initialize","path":"","status":"started","reason":"Load read-only access checks and DACL-only writes before inspecting permissions.","details":{"id":2,"effect":"none"}} {"kind":"action","operation":"initialize","path":"","status":"completed","reason":"Load read-only access checks and DACL-only writes before inspecting permissions.","details":{"id":2,"effect":"none"}} {"kind":"observation","operation":"caller","path":"","status":"read","reason":"The caller token determines effective access; unconfined execution does not imply elevation.","details":{"sid":"S-1-5-21-116348996-3273821939-2907815064-1001","integrity":"S-1-16-8192 (Medium)"}} {"kind":"observation","operation":"inspect_acl","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"read","reason":"Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.","details":{"lowLabel":null,"owner":"S-1-5-21-116348996-3273821939-2907815064-1001","writeDac":true,"acesOmitted":false,"errors":[],"aces":[{"sid":"S-1-5-32-544","type":"Allow","rights":"FullControl","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-544","type":"Allow","rights":"268435456","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-18","type":"Allow","rights":"FullControl","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"268435456","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-11","type":"Allow","rights":"Modify, Synchronize","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-11","type":"Allow","rights":"-536805376","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-545","type":"Allow","rights":"ReadAndExecute, Synchronize","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"-1610612736","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"}],"writeOwner":false}} {"kind":"observation","operation":"inspect_acl","path":"G:\\WEB-SERVER\\htdocs","status":"read","reason":"Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.","details":{"lowLabel":null,"owner":"S-1-5-32-544","writeDac":false,"acesOmitted":false,"errors":[],"aces":[{"sid":"S-1-5-11","type":"Allow","rights":"-536805376","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-11","type":"Allow","rights":"Modify, Synchronize","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"FullControl","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"268435456","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-544","type":"Allow","rights":"268435456","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-544","type":"Allow","rights":"FullControl","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"ReadAndExecute, Synchronize","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"-1610612736","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"}],"writeOwner":false}} {"kind":"observation","operation":"inspect_acl","path":"G:\\WEB-SERVER","status":"read","reason":"Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.","details":{"lowLabel":null,"owner":"S-1-5-21-116348996-3273821939-2907815064-1001","writeDac":true,"acesOmitted":false,"errors":[],"aces":[{"sid":"S-1-5-11","type":"Allow","rights":"FullControl","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"None"},{"sid":"S-1-5-32-544","type":"Allow","rights":"FullControl","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-544","type":"Allow","rights":"268435456","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-18","type":"Allow","rights":"FullControl","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"268435456","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-11","type":"Allow","rights":"Modify, Synchronize","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-11","type":"Allow","rights":"-536805376","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-545","type":"Allow","rights":"ReadAndExecute, Synchronize","inherited":true,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"-1610612736","inherited":true,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"}],"writeOwner":true}} {"kind":"observation","operation":"inspect_acl","path":"G:\\","status":"read","reason":"Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.","details":{"lowLabel":null,"owner":"S-1-5-32-544","writeDac":false,"acesOmitted":false,"errors":[],"aces":[{"sid":"S-1-5-11","type":"Allow","rights":"-536805376","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-11","type":"Allow","rights":"Modify, Synchronize","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"FullControl","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-18","type":"Allow","rights":"268435456","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-544","type":"Allow","rights":"268435456","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"},{"sid":"S-1-5-32-544","type":"Allow","rights":"FullControl","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"ReadAndExecute, Synchronize","inherited":false,"inheritance":"None","propagation":"None"},{"sid":"S-1-5-32-545","type":"Allow","rights":"-1610612736","inherited":false,"inheritance":"ContainerInherit, ObjectInherit","propagation":"InheritOnly"}],"writeOwner":false}} {"kind":"observation","operation":"subtree_scan","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"read","reason":"The caller cannot provision this directory, or it is the authorized root, so explicit package allow ACEs under it were collected in the same run; no reparse point or managed application tree is entered.","details":{"packageSources":[],"visited":2000,"truncated":true,"unreadable":0}} {"kind":"decision","operation":"classify","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"PRECONDITION","reason":"The caller cannot open the requested object with both WRITE_DAC and WRITE_OWNER. The reported allow and deny ACEs are evidence, not an attribution to one rule.","details":{"writeDac":true,"packageObjects":[],"writeOwner":false}} {"kind":"decision","operation":"grant_targets","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"selected","reason":"These directories lack effective WRITE_DAC or WRITE_OWNER; each is backed up, then receives a FullControl allow ACE for the current user.","details":{"paths":["G:\\WEB-SERVER\\htdocs\\AttendanceHub"]}} {"kind":"decision","operation":"backup","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"selected","reason":"The recovery record and an independent recovery script are written before the ACL change.","details":{"files":["G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json","G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1"]}} {"kind":"action","operation":"backup","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"started","reason":"Save the original DACL and an independent recovery command before changing permissions.","details":{"id":3,"effect":"files"}} {"kind":"action","operation":"backup","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"completed","reason":"Save the original DACL and an independent recovery command before changing permissions.","details":{"id":3,"effect":"files"}} {"kind":"observation","operation":"recovery","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"available","reason":"These files can restore the saved DACL; no rollback has been executed.","details":{"restored":false,"script":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1","attempted":false,"path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","record":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json","command":"pwsh -NoProfile -File \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1\u0027 -Path \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -AllowRoot \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -Restore \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json\u0027"}} {"kind":"action","operation":"grant_dacl","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"started","reason":"WRITE_DAC or WRITE_OWNER is missing; add a FullControl allow ACE for S-1-5-21-116348996-3273821939-2907815064-1001 while preserving deny ACEs, owner and SACL.","details":{"id":4,"effect":"acl"}} {"kind":"action","operation":"grant_dacl","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"completed","reason":"WRITE_DAC or WRITE_OWNER is missing; add a FullControl allow ACE for S-1-5-21-116348996-3273821939-2907815064-1001 while preserving deny ACEs, owner and SACL.","details":{"id":4,"effect":"acl"}} {"kind":"observation","operation":"inspect_acl","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"read","reason":"Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.","details":{"lowLabel":null,"owner":"S-1-5-21-116348996-3273821939-2907815064-1001","writeDac":true,"acesOmitted":true,"errors":[],"aces":{},"writeOwner":true}} {"kind":"verification","operation":"grant","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"verified","reason":"The DACL write completed; recheck effective access before claiming that provisioning can succeed. On failure, restore this invocation and stop.","details":{"recovery":"pwsh -NoProfile -File \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1\u0027 -Path \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -AllowRoot \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -Restore \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json\u0027","before":{"writeDac":true,"writeOwner":false},"after":{"writeDac":true,"writeOwner":true}}} {"kind":"summary","operation":"repair","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","status":"completed","reason":"Operation completion records API execution; verification records the observed result. Only rerunning the original confined operation can confirm its failure is resolved.","details":{"scanTruncated":true,"exitCode":0,"refused":0,"rollback":"not-needed","granted":1,"observationFailures":0,"automaticRollback":true,"operations":[{"id":1,"operation":"prepare_report","path":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery","effect":"files","status":"completed"},{"id":2,"operation":"initialize","path":"","effect":"none","status":"completed"},{"id":3,"operation":"backup","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","effect":"files","status":"completed"},{"id":4,"operation":"grant_dacl","path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","effect":"acl","status":"completed"}],"nextAction":"verify_original_confined_operation","fixed":0,"report":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-report-1eb8d8aed7584151bcf4e08b6c4ef718.jsonl","rollbackCommands":["pwsh -NoProfile -File \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1\u0027 -Path \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -AllowRoot \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -Restore \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json\u0027"],"recoveries":[{"restored":false,"script":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1","attempted":true,"path":"G:\\WEB-SERVER\\htdocs\\AttendanceHub","record":"G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json","command":"pwsh -NoProfile -File \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json.ps1\u0027 -Path \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -AllowRoot \u0027G:\\WEB-SERVER\\htdocs\\AttendanceHub\u0027 -Restore \u0027G:\\WEB-SERVER\\htdocs\\dsh-acl-recovery\\acl-backup-1ae9077a3c1044e78371c51004849e2f.json\u0027"}],"restored":0}}