|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to ScriptWhitelistGuard will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [1.0.0] - 2026-01-29 |
| 9 | + |
| 10 | +### Added |
| 11 | + |
| 12 | +- **Core Whitelist Management** |
| 13 | + - `Add-ScriptWhitelist`: Add or update scripts with SHA256 hash validation |
| 14 | + - `Remove-ScriptWhitelist`: Remove scripts from whitelist |
| 15 | + - `Test-ScriptWhitelist`: Verify script whitelist status and hash integrity |
| 16 | + - `Get-ScriptWhitelist`: List all whitelisted scripts with metadata |
| 17 | + - `Repair-ScriptWhitelist`: Convenience command to update hashes after script modifications |
| 18 | + |
| 19 | +- **Interactive Guard System** |
| 20 | + - `Enable-WhitelistGuard`: Activate PSReadLine Enter key interception |
| 21 | + - `Disable-WhitelistGuard`: Deactivate guard and restore default behavior |
| 22 | + - `-Persist` flag: Auto-enable guard in all new PowerShell sessions via profile integration |
| 23 | + - `-Unpersist` flag: Remove auto-enable block from profile |
| 24 | + |
| 25 | +- **Whitelist Storage** |
| 26 | + - JSON-based persistent storage at `$HOME\.ps-script-whitelist.json` |
| 27 | + - Environment variable override: `SCRIPT_WHITELIST_GUARD_STORE` for custom storage paths |
| 28 | + - SHA256 hash verification for script integrity |
| 29 | + |
| 30 | +- **PSReadLine Integration** |
| 31 | + - Custom Enter key handler with AST-based command parsing |
| 32 | + - Selective interception: only external `.ps1` scripts |
| 33 | + - Transparent command rewriting: whitelisted scripts execute with `-ExecutionPolicy Bypass` |
| 34 | + - Helpful error messages with copy-paste commands for blocked scripts |
| 35 | + |
| 36 | +- **Cross-Platform Support** |
| 37 | + - PowerShell 5.1 (Windows PowerShell) compatibility |
| 38 | + - PowerShell 7+ (pwsh) support |
| 39 | + - Automatic detection of available PowerShell executable |
| 40 | + |
| 41 | +- **Profile Management** |
| 42 | + - Idempotent profile block insertion with clear begin/end markers |
| 43 | + - Safe removal that preserves user's existing profile content |
| 44 | + - Automatic profile file creation if it doesn't exist |
| 45 | + |
| 46 | +- **Testing & Quality** |
| 47 | + - Comprehensive Pester test suite (20+ test cases) |
| 48 | + - Tests for whitelist operations, hash validation, profile persistence |
| 49 | + - GitHub Actions CI/CD workflows |
| 50 | + - PSScriptAnalyzer integration for code quality |
| 51 | + |
| 52 | +- **Documentation** |
| 53 | + - Comprehensive README with examples and security warnings |
| 54 | + - FAQ section covering common scenarios |
| 55 | + - Clear explanation of limitations and non-security-boundary nature |
| 56 | + |
| 57 | +### Security Notes |
| 58 | + |
| 59 | +⚠️ **This is NOT a security boundary.** ScriptWhitelistGuard can be easily bypassed by: |
| 60 | +- Running `powershell -ExecutionPolicy Bypass` directly |
| 61 | +- Executing scripts non-interactively (scheduled tasks, CI/CD) |
| 62 | +- Disabling the guard with `Disable-WhitelistGuard` |
| 63 | + |
| 64 | +For true enforcement, use: |
| 65 | +- **AppLocker** or **Windows Defender Application Control (WDAC)** on Windows |
| 66 | +- **Code signing** with trusted certificates |
| 67 | +- **GPO-based** execution policies |
| 68 | + |
| 69 | +This module is designed for **workflow safety** to prevent accidental execution of untrusted scripts, not as malware protection. |
| 70 | + |
| 71 | +## [Unreleased] |
| 72 | + |
| 73 | +### Planned Features |
| 74 | +- Optional logging of all script execution attempts |
| 75 | +- Integration with Windows Event Log |
| 76 | +- Support for wildcard/regex patterns in whitelist paths |
| 77 | +- Team whitelist synchronization helpers |
| 78 | +- PowerShell 7+ module cache optimization |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +## Release Tags |
| 83 | + |
| 84 | +- `v1.0.0` - Initial public release |
| 85 | + |
| 86 | +[1.0.0]: https://github.com/YourOrg/ScriptWhitelistGuard/releases/tag/v1.0.0 |
0 commit comments