Closes gaps where commands naming a Windows path could read a secret file without being blocked, on Windows in auto mode and under the PowerShell dialect.
Fixed
- Fixed
autoshell detection dropping the backslashes of an unquoted Windows path, which let commands such ascat C:\proj\.env,Get-ChildItem ~\OneDrive\.env,Get-ChildItem $env:USERPROFILE\proj\.env, anddocker run --env-file=C:\proj\.env imgread a secret file unblocked, and kept a custom rule naming a native path from matching. (#339, #337) - Fixed secret protection reading a path attached to a PowerShell parameter with a colon, so
Get-Content -Path:C:\proj\.envandGet-Content -LiteralPath:~\.ssh\id_rsaare now blocked like their space-separated forms. (#340) - Fixed the policy-file and git-metadata guards missing the same colon-attached form, so a write such as
Set-Content -Path:<policy.json> xis now blocked. (#340) - Fixed
explain --shell powershellshowing POSIX words in itsparsestep instead of the PowerShell words it actually analyzed. (#339)