Chapter 2 of 4
Draw the boundaries
Start with the question that's easiest to answer: where should Pilot never be allowed to go? On a personal computer the answer is long. System folders, password stores, SSH keys, browser profiles and anything outside the folders you explicitly shared.
Allow lists beat deny lists#
A deny list says what's forbidden. An allow list says what's permitted. Use both, but trust the allow list more. A deny list only blocks what you remembered to write down. An allow list blocks everything you forgot.
Check the path, not the request#
Models are creative with paths. They use relative paths, symbolic links and folders called "..". Always resolve the real, absolute path first, then check it against your rules. Checking the text the model wrote is not enough.
- Resolve the path to its absolute, real location.
- Reject it if it's outside every allowed root.
- Reject it if it matches any deny pattern.
- Only then pass it to the tool.
Pilot, chapter 2Pilot now has two shared folders and a short deny list. When it tries to read a key file, the tool refuses and tells the model exactly why, so it can choose another approach instead of retrying the same call.
Remember
- Decide where the agent can never go before deciding what it can do.
- Prefer allow lists. Use deny lists as a second layer.
- Validate the resolved path, never the text the model wrote.