Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

autoMode.environment ships with zero external destinations, leaving the Data Exfiltration rule with no boundary to judge against

Open cristbc opened this issue 3 months ago • 2 comments

Summary

autoMode.environment is the list the auto-mode classifier judges "inside vs outside the trust boundary" against. The shipped array has five entries: four describe local directory trees (~/.claude/, ~/Projects/, routine operations, compound commands) and the fifth is "Trusted local service: localhost:31337".

No git remote. No domain. No bucket. No host.

Impact

The shipped Data Exfiltration rule — the hard_deny default — decides trust this way:

A destination is trusted only if it is explicitly listed in Environment, or it is the trusted repo's own configured remote and its visibility fits the content.

With an Environment naming no destinations, every real egress target is external by construction: the user's own git remote, their own homelab, their own team's private org, their own API endpoints.

That yields one of two bad outcomes depending on whether the rule is armed. Unarmed (see the companion $defaults issue) and nothing checks egress at all. Armed, and ordinary pushes become unclearable blocks.

There is no shipped guidance telling users this array is theirs to populate, and nothing in the install flow prompts for it.

Suggested fix

Two parts.

  1. Ship a commented placeholder in autoMode.environment showing the shape: trusted code remotes, trusted hosts, trusted first-party services, explicitly public surfaces, and an "external by default" closing line.
  2. Add a setup step that asks for them.

The array is arguably the highest-leverage thing a user can configure, and today it is the one thing nothing asks about.

Note on placement

These rows are principal-identifying by nature — hostnames, org names, service endpoints. An install with a SYSTEM/USER file split needs them on the USER side, or a system-file guard will (correctly) refuse them. In this repo's layout that means the user overlay with {"__merge": "append", "values": [...]}, so the shipped rows survive future upstream edits.

What this looks like on a stock install

Take Kai on this very repo. The destinations that matter in a normal week — the danielmiessler/LifeOS remote itself, whatever source the Fabric skill's UpdatePatterns workflow syncs from, whatever host the Daemon skill's DeployDaemon ships the public profile to, and localhost:31337 — only the last one is in Environment.

So with the Data Exfiltration rule armed, Kai pushing a commit to danielmiessler/LifeOS is content moving to a destination not listed in Environment. The rule's own text says a destination is trusted only if Environment lists it or it is the trusted repo's configured remote; whether an ordinary push clears that second clause is exactly the kind of judgment call you do not want a non-deterministic classifier making on an unclearable tier.

And with the rule unarmed — which is the shipped state, per the companion issue — the opposite holds: nothing checks when Kai sends USER/FINANCES/ content to an endpoint nobody vetted.

The Daemon skill is the useful contrast again. It knows exactly what is public and what is private, enforces it deterministically, and previews before it ships. autoMode.environment is where the permission layer would encode that same knowledge, and on a stock install it is empty of destinations.

cristbc avatar Aug 07 '26 15:08 cristbc

The companion $defaults issue referenced above is #1789. Third from the same read: #1790 (the permissions.ask tier). #1789 and this one are best landed together — restoring the hard rule without populating Environment is the failure mode described here.

cristbc avatar Aug 07 '26 15:08 cristbc

Fixed and shipped: autoMode.environment now ships with seven populated entries, so the Data Exfiltration rule has a real boundary to judge against. Verified in both copies in the v7.40.4 payload.

danielmiessler avatar Aug 14 '26 22:08 danielmiessler