AIF · Trust & Security
Protection runs on your machine.
Harden Agentic Integrity Foundation (AIF) checks covered coding-agent tool calls before they execute. The decision engine, audit trail, and protected content stay local. This page states exactly what can leave your machine, what is guaranteed today, and where the product's limits begin.
Core pre-execution secret-flow blocking on your machine is free forever.
At a glance
The security posture in seven facts
Decision path
Local
Covered tool calls are evaluated by a loopback-only daemon on your machine.
Account
Not required
No sign-in, license ping, headcount clause, or cloud control plane is required.
Audit trail
On your disk
Decisions stay in ~/.aif/aif.db with no retention cap.
Core protection
Free forever
Core pre-execution secret-flow blocking is the permanent free floor.
Release integrity
Signed
Releases use minisign; macOS builds are Developer ID signed and notarized.
Platforms
macOS + Linux
macOS arm64/x86_64 and Linux x86_64. Windows is not yet supported.
Maturity
v0.x
Claims are scoped to the guarantees, measurements, support matrix, and known limits published here.
Local-first architecture
The decision loop never needs Harden Cloud
Coding agent
Proposes a tool call
AIF hook
Captures it before execution
Local daemon
Decides on 127.0.0.1:47391
Verdict
Allow, block, redact, or ask
Content sent to AIF for adjudication and the resulting decision trail remain local. Decisions are stored in ~/.aif/aif.db and are inspectable with aif show --tui. The separately disclosed MCP fetch tool can send a DLP-filtered payload when an agent explicitly invokes it.
Protection
What AIF guarantees today
Secret files to network egress
Credential files such as .env, AWS credentials, SSH private keys, and private-key files are blocked when a covered tool call tries to send them off-machine.
Environment secrets to unsafe sinks
Environment values and whole-environment reads are tracked into network requests, writes outside the repository, and MCP tool arguments.
Known secret formats
Credential-shaped content such as AWS access keys, OAuth tokens, and private-key blocks is protected regardless of the file it came from.
Unambiguously destructive actions
Recursive deletion outside the repository and force-pushes to default branches are always blocked. Judgment-dependent destructive actions remain measured, warn-first coverage.
Measured coverage
Publish the denominator, not just the percentage
9 / 9
Threat-model policy cells
Every ratified policy cell has at least one corpus case the shipped engine enforces. This is a coverage yardstick, not an exhaustive attack list.
100% / 100%
Recall / precision
97 attack cases and 99 benign twins in the curated decision-layer gate set. Both CI gates are fixed at 95% or higher.
0.25%
Wrong hard blocks
62 of 24,809 tool-call decisions during one week of internal dogfood. Ask and redact verdicts are excluded.
70.2 ms
P99 decision latency
Measured across 3,686 v0.3.0 decisions on the shipping build, against a P99 budget of one second.
The decision-layer corpus also contains 41 ticketed known-gap cases that are excluded from the gate set until fixed. Corpus results do not represent every possible command, and the dogfood results come from one internal development machine—not a customer fleet.
Network transparency
What can leave your machine
| Call | When | What it carries | Your control |
|---|---|---|---|
Operational telemetry | Release builds: daemon start and every 24 hours | Closed-schema data: a random install ID, version, OS and architecture, a coarse hardware cohort, adapter names, counters, and bucketed performance histograms. When local AI is enabled, this includes model activation and download outcome, ready-time and inference-latency buckets, memory bands, engine and model versions, and coarse restart, failure, verdict, and trigger distributions. Never code, tool calls, commands, file paths, prompts, or secrets. | Inspect with aif telemetry show. Disable with AIF_NO_TELEMETRY=1. |
Update check | Daemon start and every 4 hours | An HTTP GET for the version pointer; no repository or user content. A GitHub fallback can send your existing GitHub credentials to GitHub. | Disable the check with AIF_DISABLE_AUTOUPDATER=1. Disable automatic application with aif config auto-update off. |
Release and local-AI downloads | A user runs update; signed release builds may also auto-apply an offered update. Local-AI artifacts require tier enablement and consent. | Downloads signed binaries, engine files, and model artifacts. These requests upload nothing. | Turn off automatic application with aif config auto-update off. Decline local-AI consent to prevent model downloads; private mirror overrides are supported. |
Agent-invoked filtered fetch | Only when your agent explicitly calls the AIF MCP server's fetch tool | The URL and agent-supplied payload go to that destination after DLP filtering. The response is filtered before it reaches the model. | Do not call the fetch tool. It exists to route agent egress through AIF instead of around it. |
Voluntary profile and feedback | Only at an explicit consent moment; never scheduled | Only the machine profile, install ID, email, rating, or feedback you choose to submit. Free text passes through AIF's secret filter first. | Off by default. Inspect with aif profile show; decline, reset the consent file, or set AIF_NO_PROFILE=1. |
Operational telemetry and opted-in profile or feedback submissions are stored for 400 days. At Harden's collectors, the caller IP is used to route the request but is not recorded: edge access logging is off, and stored objects contain only payload bytes.
Local data
Session capture and AI inference stay on your machine
Agent-event capture is local and configurable
By default, AIF keeps available session start and end events, prompt text, and tool-call timing in ~/.aif/aif.db. The data is excluded from aif export, and enrolled secrets appear as placeholder handles.
aif config set capture.events offdisables event capture.aif config set capture.prompt-bodies offkeeps timing envelopes but drops prompt text.- Capture coverage differs by agent; MCP-only agents have no session-event signal.
The local AI tier is advisory in v0.x
The local model runs after the deterministic decision and has zero authority to change it. Inference stays on your hardware, and secrets are tokenized before the model prompt is rendered.
Model downloads require explicit consent. A shipped hardware-cohort table selects the full model, a clearly labeled stub, or off; it is not fetched remotely. AIF_MODEL_SHADOW=off disables the tier.
Operational safety
Fail closed, recover clearly, update safely
A missing daemon does not become a silent allow
If the local daemon is unreachable, hung past its decision timeout, crash-looping, or mid-update, the hook blocks the call and explains how to recover.
aif startrestarts protection.aif doctorchecks daemon health, wiring, and install integrity.aif configure --uninstallcleanly removes protection.
Updates are staged, authenticated, and reversible
AIF verifies the signed checksum manifest, smoke-tests the new binary, swaps versions atomically, and retains the previous version for rollback. macOS independently checks Developer ID signing and notarization.
On a clean machine without minisign, the installer gives a loud checksum-only notice. Set AIF_REQUIRE_SIGNATURE=1 to refuse that fallback.
Product commitment
Free means a permanent floor, not a trial
The free floor only grows
Local protection for individual developers will not be time-bombed, usage-metered, or deliberately degraded. A paid trial falls back to the free firewall; it does not disable protection. Telemetry opt-out is not a paid privacy feature.
Preview features reserve three outcomes
A feature labeled “Preview — included free today” may be promoted into the free floor, move to a paid tier, or be removed. Unlabeled free-floor protection is not later clawed back.
Support matrix
Supported agents and honest boundaries
Antigravity CLI coverage is verified per release. Cursor is IDE-first and headless coverage is verified per version. Kiro covers its main agent only. OpenClaw and Hermes use block-and-steer rather than in-place redaction.
Negligent-agent scope
Current guarantees target a coding agent making a wrong-but-honest tool call. Deliberate obfuscation, encoding, or multi-step evasion by a compromised agent is outside the release claims.
Kiro subagents
Kiro does not fire hooks for subagent shell commands or file edits. Their stdio MCP calls can still be proxied, but those shell and file operations are not governed today. Kiro hook wiring is hand-managed; aif doctor reports missing or edited wiring.
Rewriting depends on the agent wire
Some agents can only accept a block, not a rewritten tool input. AIF blocks and supplies a safe alternative on those surfaces instead of claiming in-place redaction.
Native tool output cannot be rewritten
Built-in Read and WebFetch tools, plus MCP results, have no post-execution rewrite hook. Sensitive reads are blocked with a redacted-copy fallback instead of being silently passed through raw.
The MCP proxy covers stdio servers
URL-based HTTP and SSE MCP servers are not proxied. AIF reports those registrations, and Kiro workspace-scope or newly added MCP servers require another configure pass before they are wrapped.
Local administrators remain in control
Hook configuration is user-writable. aif doctor detects missing or edited wiring, but AIF is not designed to defeat a hostile local administrator. Managed installation is the enterprise control.
Upstream hook timeouts
Some agent engines proceed if they kill a slow hook. AIF keeps its own decision bound below installed engine timeouts and avoids unsafe live pauses, but that upstream fail-open residual still exists.
Evidence
The detailed claims are generated and tested
Generated evidence
Guarantee cases, measured coverage, payload schemas, and the network-call inventory are generated from CI-pinned product artifacts. Diagnostics are pull-only: aif doctor --bundle prints locally and sends nothing automatically.
Public issue tracker
Report wrong blocks, wrong allows, compatibility problems, and coverage requests. The tracker contains templates, not product code; public support is best-effort with no SLA.
Open GitHubPrivate security contact
Send vulnerabilities and sensitive reports privately. Please do not file them as public issues.
Email security