← All sheets
GL-R-009Sheet 009AS BUILTR · RECORD · AS BUILT

An extension that fails its own build if it can reach the internet.

AS BUILT · EDITOR EXTENSION · SETHER FOR VS CODE · 0.1.0

Drawing sheet 009: An extension that fails its own build if it can reach the internet.

General notes

  1. 01Rule one: zero network. A script fails the package if the bundle can make a request at all. Trust you can check, not trust you are asked for.
  2. 02Rule two: precision over recall in an editor. Name and high-entropy detection ship switched off. A false squiggle costs more trust than a missed one.
  3. 03Rule three: the mapping from real values to decoys lives in memory for the session, and nowhere else.

Schedule of detector packsDefaults as shipped

PackCatchesDefault
BasicEmail · phone · card · SSN · IBANon
SecretsVendor API keys · JWTs · labelled passwordson
CredentialsDB URIs with passwords · PEM keyson
IdentityLabelled names · DOB · addressesoff
High entropyLong random strings, no known prefixoff

As posted

This week I built an editor extension whose most important feature is a test that fails if it can reach the internet.

It flags emails, phone numbers, card numbers and API keys in the files you have open. It scrubs them before you paste a log into a chat window, and puts the originals back when the answer comes home. Useful, but not the point.

The point is the three rules written down before the first line of code.

One. Zero network. A script runs against the built bundle and fails the package if anything in it can make a request. Trust you can check beats trust you are asked for.

Two. Precision over recall. In a backend, missing a real value is the expensive mistake. In an editor, a false squiggle costs more trust than a missed one. So name detection and high-entropy detection ship switched off. You turn them on when you want them.

Three. The mapping between real values and decoys lives in memory for the session, and nowhere else. Close the window and it is gone.

It is built and tested. It publishes the moment the marketplace account clears. Until then, sheet 009 is the record of what it is and what it refuses to do.

If you have ever pasted a log into a chat and then gone very quiet, this one was built for that moment.

Read with

  • Sheet 010 · A phone number that can never ring.
  • Sheet 017 · The most common way a secret leaks is a paste.