Security model
An AI agent runs as the person using the PC, so it can reach anything that person can. Vardhold is designed from that starting point.
On this page
The starting assumption#
Agents run with the same Windows account as the developer, so Vardhold assumes that anything the user can reach, including the tray app, its windows and its memory, an agent can reach too. Every design choice below follows from that.
Two roles#
The tray app and dashboard hold a user role: they see everything and can make anything stricter, such as denying a request, engaging the kill switch, raising the mode or blocking an agent. Anything that loosens protection needs the administrator role, which only an elevated process can obtain:
- allowing an action that was held for approval
- lowering the mode or releasing the kill switch
- trusting or unblocking an agent
- applying a policy or changing settings
- closing a high or critical alert
Confirmation the agent cannot give#
When a person clicks Allow, Windows shows a User Account Control prompt on the secure desktop, then an elevated Vardhold window states exactly what will change. Only Confirm in that window sends it. Programs running without elevation, agents included, cannot click or type into either. Deny stays one click.
The window takes the change from the Vardhold service, which kept the request exactly as it was made, not from whatever started the window, and it only runs when the installed tray asked for it. It shows how the change differs from what is in force now and marks first anything that loosens protection: a block rule removed or weakened, an allow rule placed above a block rule, a lower protection mode, fail open, fewer redaction patterns, an export turned off. The service then accepts exactly that change, once. Every confirmation is recorded as requested, shown, confirmed or cancelled. An agent can still ask for such a change, so read what the window says before confirming.
Run AI agents under standard user accounts, or set UAC to Always notify, for the strongest separation between the agent and the person approving.
Fail closed#
If the service cannot be reached, the hook crashes or times out, or an approval is not answered in time, the action is blocked. The Claude Code and Cursor hooks are registered with their agents so that a hook failure blocks the action too. GitHub Copilot CLI blocks the action when the hook crashes, but lets it through when the hook times out, so its hook is given longer than any approval can wait. Administrators can choose otherwise, deliberately, in settings.
Self-protection#
- The default policy stops agents from reading or changing Vardhold's files, its hook registrations and its service, and from turning off Windows Defender or the firewall.
- On an installed machine, the hook, proxy and CLI take their configuration only from locations administrators control.
- Vardhold's data folders belong to SYSTEM and Administrators. Anything placed in them before installation is taken over.
- MCP configurations are re-checked every minute; a server that loses protection raises a high-severity alert.
- Vardhold's own programs are recognised by where they are installed (and, on signed builds, by their signature), never by name. A program renamed to look like one of them is still attributed to the agent that started it.
- The MCP proxy speaks only for the server whose protected configuration entry started it. A copy started by hand counts as the agent's own program, and raises a high-severity alert.
- A policy file changed while the service was stopped raises an alert at the next start: high when the change loosens protection.
Careful with user files#
The service runs as SYSTEM but edits MCP configurations in users' folders. It never follows a link there, reads or changes a user's file only when Windows' own access check says that user could do so themselves, never contacts a network location named in a user's configuration, and keeps its backups in its own folder rather than next to the user's file. The JSON export refuses a link in its folder's path or at a file's name. If %ProgramData%\Cursor is a link or was created by someone other than an administrator, it is renamed aside before Cursor's enterprise hooks are written, and the new folder lets only administrators change it. Export credentials are encrypted with DPAPI and cannot be sent to a new destination without being entered again.
Prevention and detection, kept apart#
The hooks and the MCP proxy decide before an action runs, so they can stop it. Windows telemetry sees actions after they happen and raises alerts. Vardhold labels every event with its source, so nobody mistakes one for the other. Automatic suspension on a detection is an opt-in that applies only to headless agents.
Enforcement aimed at agents only#
Suspend, end and firewall actions go through one guard. System and security processes, shared runtimes and browsers, and Vardhold itself are refused. A protected name counts only for the genuine program, verified by location and signature, and every action re-checks that the process is still the one it meant.
Local only#
The API listens on 127.0.0.1, requires a token, and rejects requests with a foreign Host or Origin, which blocks DNS rebinding and cross-site requests. The dashboard is served with a strict Content Security Policy.
The clients check the service as well. On an installed machine, the hook, the MCP proxy, the CLI and the tray app ask Windows which process holds the other end of each connection, and trust it only if it is the running Vardhold service, as registered with the Service Control Manager. The tray checks its pipe the same way, and the service creates that pipe so no other program can take its name. A program that listens on Vardhold's port while the service is stopped is treated as the service being unreachable, so agent actions fail closed instead of being allowed.
Evidence#
- Every audit record is chained to the one before it with HMAC-SHA256 under a per-machine key, encrypted with Windows DPAPI and readable only by the service and administrators.
- Approvals, alerts, retention checkpoints and policy versions are sealed with the same key, and a sealed record of the chain head and table sizes means removing the newest records is detected, not just editing them.
- Every exported event carries its sequence number and chain hash, and the chain head is recorded hourly, so the SIEM holds an independent copy to check against. The installed service also writes each hourly chain head to the Windows Application event log.
- Integrity is checked at start-up and daily; a failure raises a critical alert. Secrets are redacted before storage.
Report a vulnerability#
Email [email protected]. Please do not open public issues for security problems. Our disclosure details are in security.txt.