Skip to content

Add handle-relative I/O and real-Windows NTFS adversarial verifier #326

Done

Description

@morluto

Perform snapshot reads, writes, copies, and cleanup through retained or revalidated handles. Run a real non-admin Windows verifier against NTFS with symlinks, junctions, mount points, component replacement, and cleanup escape attempts.

Acceptance:

  • Target admission and snapshot creation consume authorized handles, not fresh pathname opens.
  • Replacing a path component has no effect on the retained handle or produces an identity mismatch.
  • Diagnostics preserve requested path, final path, volume identity, and rejected reparse tag.

Part of #289.

Activity

  1. added
    enhancement
    P1: high
    on Jul 20, 2026
  2. added
    area: runtime
    on Oct 14, 2026
  3. added
    area: tests
    and removed on Nov 23, 2026
  4. morluto commented on Nov 24, 2026

    @morluto
    OwnerAuthor

    Closing as implemented: native/windows/src/filesystem.cc (openFile, openRelative, createRelative, runtimeDirectory, snapshot, closeRuntime) and src/windows/WindowsPrivateRuntime.ts perform handle-relative snapshot reads, writes, and cleanup while preserving requestedPath, finalPath, volumeSerial, fileId, and rejected reparse tags. scripts/verify-windows-native.mjs (npm run verify:windows-native) and tests/fixtures/windows/processBoundary.cc exercise junctions, FSCTL_SET_REPARSE_POINT on admitted ancestors, ancestor rename denial, source write denial, alternate streams, cross-volume snapshot identity, and non-traversal of junctions during cleanup on real Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: higharea: runtimearea: testsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions