Diagnosing an Access Refusal

A refusal can be the intended policy working. Start with evidence from the failed operation; a token dump or an isolated allow ACE cannot explain every possible access decision.

Gather the actual request #

  1. Record the operation, time, message, and exact error or exit status. Identify the process, failing thread, and managing service where known.
  2. Identify the object and requested rights. Keep a registry key separate from its value name. Distinguish a link from its target and an open from an operation using an already-open handle.
  3. Inspect the relevant effective token with existing authority. Preserve target selectors and the observation time: impersonation can have ended before inspection. Without a target, a tool usually observes itself.
  4. Read the descriptor components available to that caller. Mark unreadable or undisplayed components as unknown, not empty.
  5. Correlate recorded evidence and its collection limits. After a reviewed correction, repeat the original operation in its intended context.

An application can request more rights than its visible action suggests. Capture the exact mask when diagnostics provide it. Rights on an existing handle reflect the earlier open; today's descriptor does not reconstruct that earlier decision.

Choose a supported view #

QuestionRead-only starting pointLimit
Process identitytoken show --pid PID --allPrimary token, not necessarily the failing thread's effective token.
Impersonating threadtoken show --pid PID --tid TID --allConsecutive live queries cannot reconstruct an earlier token.
Present/enabled privilegestoken privs --pid PIDPresence does not prove enablement, intent, or successful use.
Program protectionlogonse psb --pid PIDPSB summary, not the process's security descriptor.
Session contextlogonse list and logonse show IDCan fall back to an incomplete visible-process view.
File descriptor policysd show PATH --allOwner, group, DACL, and label subset; not a complete SACL export.
Registry descriptorreg sd KEY, with --sacl when authorizedDefault output omits SACL policy.
Recorded attemptEvent Viewer or evctlReader rights, collection, query scope, retention, and transport can limit evidence.

For files, sd follows a named symlink unless its documented no-follow option is selected. Inspect the same object the application meant to use. Token pseudo-files provide handles, not text to print with cat. Token inspection and process-security inspection explain their separate access gates.

Rehearse within the tool's limits #

For an identified file and process, a read rehearsal is:

sd check ./report.txt read --pid PID --explain

Adapt the file, rights, and PID to the failed request. This does not perform the file operation. A tool failure is different from a completed denied check. The process selector does not reproduce every thread impersonation, local claim, backup/restore intent, object mapping, or PIP context. It also does not test an existing handle's rights.

An allowed rehearsal is therefore not proof that the application must succeed. If the results differ, compare inputs and timing before changing policy. A developer can use the SDK request reference for inputs the operator tool cannot supply, and its checking guide for the advisory result's limits.

Review the relevant policy #

EvidenceReview
Identification-level impersonation tokenWhether the client conveyed authority and the server was admitted to use it.
Mandatory-integrity refusalToken integrity/mandatory policy, the applicable object label, and requested mapped rights.
Process-trust refusalCalling PSB, target trust label, and intended signed interface; impersonation does not raise PIP.
Missing privilege contributionPresent versus enabled state and required operation intent.
DACL refusalOrdered ACEs, enabled/deny-only SIDs, conditions, inheritance-only flags, and owner-rights suppression.
Restricted-token narrowingThe independent restricting SID view and any retained privilege grants.
Confinement narrowingThe intended confinement identity/capabilities and resource policy.
Central-policy narrowingEffective policy, applicability, resource attributes, and recovery behavior; staged mismatches are separate evidence.

MIC, PIP, privilege contributions, and narrowing occur in a defined pipeline. Do not assume one label mismatch or one matching ACE explains the whole mask. The kernel access-check reference is authoritative for ordering. Object-manager and service checks can also reject an operation outside that pipeline.

Interpret recorded evidence #

kacs.audit.access.checked can record the subject, object, requested and granted masks, and reasons. Auditing depends on policy; userspace checks also have audit-authority requirements. One check can produce several records. A successful MAXIMUM_ALLOWED result does not prove a particular bit was granted. Inspect the returned mask.

Use Finding Missing Records before interpreting an empty search. Raw KMES inspection is a transport probe, not historical proof. Preserve refused inspections, missing inputs, and changed-state uncertainty in the report to the application or policy owner. A narrower intended grant or corrected caller behavior should follow that review; broad permission changes are not a diagnostic substitute.

Edit this page