Security and privacy
What Aavi protects, the main threats, the fifty-two rules of the threat model in one line each, and what happens to your address.
This page summarises the threat model. The full document holds the reasoning for each rule and the test or attack that proves it.
What is protected
Two kinds of harm are in scope. The first is an attacker. The second needs no attacker at all: the product telling a family something about their pipe that the utility's record does not say. Both are assets to protect.
- The answer itself. A class on a page carrying Aavi's name is something a family acts on and may hand to a utility or landlord. Aavi must never tell a family their pipe is non-lead when the record does not say so.
- The links Aavi shows. A worried family trusts a "next step" link. A swapped link would be a phishing page carrying Aavi's credibility.
- Visitors' data in flight. The typed address. Photos taken in the guided check never leave the browser: they go only into the report the browser makes.
- Standing with city servers. Aavi is one client to each city. If a city blocks it, that city goes offline for every visitor.
- The store, the secrets and the Crew machine. The database write login, the GitHub pass, the Kiro credential and the machine that holds them.
- The trust Kiro users' agents place in the power's output. See the Kiro power.
- The code that decides every answer. The classifier, the normalizer and the city specs.
The main threats
| Threat | What it looks like here |
|---|---|
| Wrong answer from malformed or drifting data | Utility staff type the values. Live data already holds broken ones, such as spreadsheet error text. A default branch, a substring match or a renamed field could turn one into a confident wrong class. |
| Matching the wrong home | The geocoder corrects an address into the nearest real one, a suburb shares a street name with a big city, or a list of candidates is cut short. |
| Injection into queries | Real street names hold apostrophes and wildcards. A filter built by gluing strings together breaks or widens. |
| Content injection | Every string a visitor sees was written by someone else, including city field names shown on a dashboard that sits on a machine holding credentials. |
| Prompt injection into an agent with authority | A city's layer description could try to steer the onboarding agent into changing a class map or running a command. |
| Server-side request forgery | A URL handed to an agent, or found in metadata, aimed at a cloud server's internal address. |
| Abuse of borrowed resources | Scripted lookups that turn Aavi into the noisiest client on a city's server. |
| Secret exposure and excess privilege | A write credential or owner credential where it does not belong. |
| Caching mistakes | One home's answer served for another. |
| Rate-limit bypass | Rotating addresses, fan-out, or query strings that bust the cache. |
| Another site using a visitor's browser | A page on another site sending real addresses to Aavi's routes. |
| Tampering with the public history | Forged or backdated rows in the census store. |
| A door for tests in production | A bypass header, a mock mode, or a number frozen at build time. |
The rules, in one line each
The rules are numbered C1 to C52 in section C of the threat model. Each is an outcome the code must uphold, and each names the test or attack that proves it.
| Rule | In one line |
|---|---|
| C1 | A value reads non-lead only when the whole value is on that city's non-lead list. Everything else is unknown. |
| C2 | The answer is the city's own class, never milder, and any field that names lead raises it. |
| C3 | Every failure is its own named state and carries no class. |
| C4 | The product never uses a word of reassurance. The strongest thing it says is that the record says non-lead, as of a date. |
| C5 | Every class comes with the matched address, the source and the source's own date. |
| C6 | The report shows the record that is on the screen, and a family's own answers are labelled as theirs and cannot move a class toward non-lead. |
| C7 | One home, or no answer. |
| C8 | One normalizer and one classifier everywhere, stamped with a version. |
| C9 | The city's filter only narrows the list. Aavi decides the match. |
| C10 | Every spatial query states its coordinate order and reference system. |
| C11 | The visitor names the home: Aavi answers only for the address the geocoder found, typed or confirmed. |
| C12 | Overlapping or missing coverage fails closed. |
| C13 | Every source is published by its own utility, with a page on its own site. |
| C14 | A structural change at a source stops its answers until it is checked. |
| C15 | A sharp drop in lead or unknown counts is flagged. |
| C16 | Stored values are checked as what they claim to be before any row is written. |
| C17 | The store is never in the answer path. |
| C18 | Applies only to a nightly mirror of all records, which was not chosen. |
| C19 | Applies only to a fallback copy used when a city is silent, which was not chosen. |
| C20 | Visitor text reaches a query only as a quoted value. |
| C21 | Every query and response is bounded, and hitting a limit gives a non-answer. |
| C22 | The site's server reaches only destinations named in reviewed code. |
| C23 | Every connection is encrypted and its certificate checked. |
| C24 | Crew and its agents follow a URL only to the public internet. |
| C25 | Outside text is shown as plain text, never as markup. |
| C26 | Every link shown is a checked https link from a reviewed spec. |
| C27 | A response carries only what the visitor needs, never neighbours or bulk records. |
| C28 | The Kiro power passes on data, not instructions. |
| C29 to C31 | Rules for a photo check by a model. That feature was not built, and the rules wait for the day it is. The guided check's own photos never leave the browser (C40). |
| C32 | Agent work is a proposal, and the owner's review is the only way to production. |
| C33 | An agent's pull request can change one city's data and nothing else. |
| C34 | Agent-written code never runs next to secrets it does not need. |
| C35 | Agent sessions are bounded in number, time and concurrency. |
| C36 | Only the owner can drive Crew's local interface. |
| C37 | Secrets stay on the server that needs them, and never in a browser-visible variable. |
| C38 | Aavi cannot be turned against a city: limits per client, caps per source. |
| C39 | No cache serves one home's answer for another. |
| C40 | Visitors' addresses and photos are not kept. |
| C41 | The city gate report reaches the agent as quoted data. |
| C42 | Every candidate city answers, and only one may match. |
| C43 | EPA names a water system and never routes a lookup. |
| C44 | Aavi works only for the expected request shape, never on another site's behalf. |
| C45 | One client identity, counted where the work happens. |
| C46 | The census push holds nothing it does not need. |
| C47 | The agent cannot touch what the census measures with. |
| C48 | The store enforces its own rules, and a leaked write login can add at most one well-formed row per source per day. |
| C49 | Production has no door for tests. |
| C50 | Live answers come from caches every instance shares, and a failed refresh is never cached for the full window. |
| C51 | A failure of the live site or its daily census emails the owner, and the owner confirmed a test failure's email arrived. |
| C52 | A change in a city's field list is tagged on the Cities page, on its day or the next good one, and a change in our own engine is not. |
Privacy
- No accounts and no sign-in.
- Your address travels in the body of a request, never in a URL, so platform logs and browser history never hold it.
- The typed address, the matched address and any coordinates are never written to a log, a trace, the store, the rate-limit counter or analytics. Logs record states and source keys only.
- The address goes to two places to answer your question: the US Census geocoder, and your utility's own server. EPA's layer is asked once for a water system name only when no city covers the address, with the matched point and nothing else.
- The store holds daily counts and field fingerprints per city. It never holds a home's record.
- The guided check and the report are made in your browser. Your answers and photos stay in the tab, and Aavi keeps no copy.
- Aavi shows what a utility's record says. It is not a water test and not medical advice.
Read more
- The full threat model
- How a lookup works
- The daily watch, for the rules around the agent's pull requests
Run it yourself
Clone the repo, install, set the environment variable names, test, build, run the command-line tools and the live proof, and deploy your own copy.
FAQ
Plain answers to the questions families, judges and builders ask most: drinking water, coverage, unknown records, data freshness, privacy, cost and authorship.