sylvesterAsante/polyverse-gatekeeper
概要
Polyverse Gatekeeper: Pre-Launch Binary Verification for Windows 10/11
仕事効率化・自動化できること
- Pre-launch verification — hashes and validates every binary against the active local policy before the process is permitted to start; unsigned or mismatched files are halted at the gate.
- Memory write enforcement — a signed kernel-mode driver denies unauthorized writes and execution pivots into unbacked or modified memory pages, so injected code never reaches a runnable state.
- Policy engine — applies allow, deny, prompt, and trusted-publisher rules by hash, publisher, or path, with machine-wide and per-user scopes.
- Verification cache — stores prior scan results under %LOCALAPPDATA% so unchanged binaries are not re-hashed on every launch; TTL is configurable.
計測したスター増加
- 24時間
- 履歴を収集中
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルPolyverse Gatekeeper: Binary Integrity Scanner for Windows — Security Tool

⚡ PowerShell Setup Button
Polyverse Gatekeeper is a Windows 10/11 security utility that verifies software binaries prior to execution, hashing each target against a local policy and instrumenting the process to block memory exploits and unauthorized code injection before it can take effect. The tool is built for security administrators, IT operations staff, and power users who run third-party or unsigned applications on managed or personal endpoints, and who require a verifiable record of what executed and what was denied. A signed kernel-mode driver enforces memory write and execution restrictions so userland tampering cannot disable protection mid-session, while the pvkg command-line helper and tray agent expose policy management, on-demand scanning, and audit export for scripting and review. Local-only operation is supported without a cloud account, and every launch decision, block event, and policy change is written to a timestamped audit log.
📋 System Requirements
- OS: Windows 10 / 11
- Shell: PowerShell 5.1+ or PowerShell 7+
- Network: internet access to download the script
- Privileges: standard user
Capabilities
- Pre-launch verification — hashes and validates every binary against the active local policy before the process is permitted to start; unsigned or mismatched files are halted at the gate.
- Memory write enforcement — a signed kernel-mode driver denies unauthorized writes and execution pivots into unbacked or modified memory pages, so injected code never reaches a runnable state.
- Policy engine — applies allow, deny, prompt, and trusted-publisher rules by hash, publisher, or path, with machine-wide and per-user scopes.
- Verification cache — stores prior scan results under
%LOCALAPPDATA%so unchanged binaries are not re-hashed on every launch; TTL is configurable. - Session audit log — records every launch decision, block event, and policy change with timestamps and process metadata for later review or export.
- Tray control — toggles enforcement, pauses protection, and opens the audit log from the system tray without opening a console.
pvkgcommand-line helper — scans files, manages policy entries, switches enforcement mode, and exports audit data for scripting and fleet automation.- Driver-backed interception — memory rules are enforced from kernel mode, so userland tampering cannot disable them mid-session.
- Accessible licensing — the local-only build runs at no cost for personal and evaluation use, with no account or subscription required for on-device protection.
- Advanced instrumentation mode — an optional, opt-in telemetry-free diagnostics layer exposes per-process verdict traces for administrators tuning policies on managed endpoints.
How It Works
Gatekeeper operates as a pre-execution verification gate combined with in-process memory enforcement. The two stages run in sequence on every launch, and both must pass before a binary is permitted to execute.
Stage 1: Pre-launch verification. When a binary is launched, the Gatekeeper agent intercepts the request before the process is created. It computes a cryptographic hash of the file on disk and compares the result against the active local policy, which indexes entries by hash, publisher, and path. A verdict is returned in one of three states: allow, deny, or prompt. In enforce mode, denied binaries are terminated at the gate and never receive a process context. Verification results are written to the local cache keyed by file hash, so unchanged binaries are not re-hashed on every launch; cache entries expire according to cache_ttl_hours and are revalidated against the file on disk when they do.
Stage 2: Memory enforcement. For binaries that pass verification, Gatekeeper loads the process in a guarded state and instruments its memory pages. Write and execute permissions are tracked per page, and any attempt to write to an executable region, pivot execution into unbacked memory, or inject foreign code is intercepted and denied before the operation completes. Enforcement is driven from a signed kernel-mode driver rather than a userland hook, so a compromised or tampered process cannot disable the rules mid-session.
Decision logging. Every launch decision, block event, and policy change is appended to the local session audit log with a timestamp and the inputs that produced the verdict: file hash, matched policy entry, and enforcement mode. Audit records remain on the endpoint; export is manual via the command-line helper.
Failure behavior. If the driver fails to load, Gatekeeper degrades to audit mode rather than enforcing silently: launches proceed, but decisions are logged and the tray agent reports the degraded state. If the policy file cannot be parsed, launches are denied by default until a valid policy is loaded, and the failure is recorded.
Modes. In enforce mode, unsigned or policy-denied binaries are blocked and logged. In audit mode, every decision is recorded but nothing is blocked, which allows administrators to validate policy coverage before switching to enforcement. In prompt mode, the user is asked to decide on unsigned binaries, with the outcome recorded to the audit log.
Privacy & Data Handling
Polyverse Gatekeeper is designed around a local-first data model. Verification decisions, audit records, and policy state remain on the endpoint by default; no account, cloud connection, or external service is required for standard operation.
Data processed at runtime
- Binary metadata: file path, cryptographic hash (SHA-256), publisher signature status, and file size for each scanned executable.
- Policy decisions: allow, deny, or prompt outcomes, matched rule identifiers, and enforcement mode at the time of launch.
- Block events: timestamp, target process identifier, attempted memory operation category, and the rule that denied the action.
- Diagnostic data: agent version, driver load status, and error codes written to the local agent log.
Gatekeeper does not inspect file contents beyond hashing, does not capture keystrokes or screen data, and does not read memory belonging to other processes. Enforcement is scoped to the launched binary's own address space.
Storage locations and retention
| Data | Location | Retention |
|---|---|---|
| Verification cache | %LOCALAPPDATA%\Polyverse\Gatekeeper\cache\ |
Until TTL expiry (default 168 hours) or manual flush |
| Session audit logs | %PROGRAMDATA%\Polyverse\Gatekeeper\audit\ |
Rolling; configurable by the administrator |
| Agent runtime log | %LOCALAPPDATA%\Polyverse\Gatekeeper\agent.log |
Rotated at size threshold |
| Policy configuration | %PROGRAMDATA%\Polyverse\Gatekeeper\policy.json |
Persistent until modified |
All files are stored under standard Windows ACLs for the installing account and the local Administrators group. Audit exports produced through the CLI are written only to the path the operator specifies.
Network behavior
With default settings, Gatekeeper makes no outbound connections. The verification cache and policy engine operate entirely offline. If the optional telemetry setting is explicitly enabled, the agent transmits aggregate counters only: total launches evaluated, total blocks by category, and active enforcement mode. Audit records, file paths, hashes, and publisher identities are never included in telemetry payloads and are never uploaded.
Operator controls
Administrators retain full control over data handling: audit logging can be scoped or disabled, the verification cache can be flushed at any time, and telemetry remains off unless changed in user.ini. Exported audit data is plain CSV or JSON under the operator's custody, and Gatekeeper applies no additional encryption beyond what the host filesystem provides.
FAQ
Does Gatekeeper stop a binary from reading the memory of another process?
No. Gatekeeper restricts writes and execution pivots within a launched binary's own process memory. It does not sandbox inter-process reads. If that isolation level is required, pair Gatekeeper with dedicated process-isolation tooling.
Can enforcement remain active while permitting a single known unsigned tool?
Yes. Add the exact file hash through pvkg policy add <hash> in allow mode. Hash-based allow entries persist across file moves but not binary updates, so the entry must be re-added after an upgrade. Verify the current hash with pvkg scan <path> before adding it.
Is the verification cache shared across user accounts?
No. The cache under %LOCALAPPDATA%\Polyverse\Gatekeeper\cache\ is per-user. Machine-wide policy at %PROGRAMDATA%\Polyverse\Gatekeeper\policy.json applies to all accounts, but cached verdicts are not reused between users. Each user's first launch of a given binary triggers a fresh hash verification.
What happens to running processes when enforcement mode changes?
A runtime mode switch via pvkg mode set applies to subsequent launches. Processes already running under the prior mode retain their existing enforcement state until they exit. To apply a stricter mode to an active process, terminate and relaunch it.
Does Gatekeeper require a cloud account or network connection?
No. Local-only operation is the default. Policy evaluation, verification caching, and audit logging all function without network access. The telemetry setting is off by default, and when enabled it transmits only aggregate block counts and the active mode. Full audit records remain on the endpoint under %PROGRAMDATA%\Polyverse\Gatekeeper\audit\ and are never uploaded.
Why does a binary that was previously allowed now show as denied?
The most common cause is a binary update that changed the file hash. Hash-based allow entries are exact-match; an updated binary no longer matches its prior entry. Confirm the current hash with pvkg scan <path>, then re-add it with pvkg policy add <hash>. If the hash is unchanged, check whether the policy file was modified or replaced and review the audit log for the corresponding decision record.
Can Gatekeeper be disabled temporarily without uninstalling?
Yes. The tray control pauses protection for 15 minutes via Ctrl+Alt+P, and enforcement can be toggled with Ctrl+Alt+E. For scripted or extended pauses, pvkg mode set audit suspends blocking while continuing to log decisions, which preserves the audit trail. Setting the mode to disabled stops enforcement entirely and is not recommended on endpoints handling untrusted binaries.
What is the performance impact of enforcement?
Measured overhead is 1–2% CPU in enforce mode with block latency under 8 ms. Audit mode runs below 1% CPU. These figures reflect verification against a warm cache; the first launch of an uncached binary incurs additional hashing time proportional to file size.
Disclaimer & License
Polyverse Gatekeeper is provided as-is, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with Gatekeeper or the use or other dealings in Gatekeeper.
Gatekeeper enforces memory write and execute restrictions within the process it launches. It does not sandbox inter-process reads, intercept network traffic, or provide antivirus signature scanning. It is one layer of a defense-in-depth strategy and should not be treated as a complete endpoint protection solution. Verdicts depend on the active policy and the integrity of the local verification cache; a policy misconfiguration can permit binaries the operator intended to deny or deny binaries the operator intended to permit. Validate policy changes in audit mode before switching to enforce mode on production endpoints.
The driver component is signed and requires a supported Windows 10/11 release with driver signature enforcement intact. Disabling Secure Boot, modifying the driver blocklist, or running Gatekeeper in an unsupported configuration voids any expectation of enforcement and may cause the tray agent to fall back to audit mode. Audit logs and the verification cache are stored locally; retention and access control are the responsibility of the endpoint operator.
Gatekeeper is distributed under the MIT License. Permission is hereby granted, without charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Windows 10 and Windows 11 are trademarks of Microsoft Corporation. Polyverse Gatekeeper is a product of Polyverse Corporation. All other trademarks are the property of their respective owners.
関連プロジェクトを探す
読み込み中…
