Skip to Content
AaviDocs

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

ThreatWhat it looks like here
Wrong answer from malformed or drifting dataUtility 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 homeThe 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 queriesReal street names hold apostrophes and wildcards. A filter built by gluing strings together breaks or widens.
Content injectionEvery 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 authorityA city's layer description could try to steer the onboarding agent into changing a class map or running a command.
Server-side request forgeryA URL handed to an agent, or found in metadata, aimed at a cloud server's internal address.
Abuse of borrowed resourcesScripted lookups that turn Aavi into the noisiest client on a city's server.
Secret exposure and excess privilegeA write credential or owner credential where it does not belong.
Caching mistakesOne home's answer served for another.
Rate-limit bypassRotating addresses, fan-out, or query strings that bust the cache.
Another site using a visitor's browserA page on another site sending real addresses to Aavi's routes.
Tampering with the public historyForged or backdated rows in the census store.
A door for tests in productionA 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.

RuleIn one line
C1A value reads non-lead only when the whole value is on that city's non-lead list. Everything else is unknown.
C2The answer is the city's own class, never milder, and any field that names lead raises it.
C3Every failure is its own named state and carries no class.
C4The product never uses a word of reassurance. The strongest thing it says is that the record says non-lead, as of a date.
C5Every class comes with the matched address, the source and the source's own date.
C6The 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.
C7One home, or no answer.
C8One normalizer and one classifier everywhere, stamped with a version.
C9The city's filter only narrows the list. Aavi decides the match.
C10Every spatial query states its coordinate order and reference system.
C11The visitor names the home: Aavi answers only for the address the geocoder found, typed or confirmed.
C12Overlapping or missing coverage fails closed.
C13Every source is published by its own utility, with a page on its own site.
C14A structural change at a source stops its answers until it is checked.
C15A sharp drop in lead or unknown counts is flagged.
C16Stored values are checked as what they claim to be before any row is written.
C17The store is never in the answer path.
C18Applies only to a nightly mirror of all records, which was not chosen.
C19Applies only to a fallback copy used when a city is silent, which was not chosen.
C20Visitor text reaches a query only as a quoted value.
C21Every query and response is bounded, and hitting a limit gives a non-answer.
C22The site's server reaches only destinations named in reviewed code.
C23Every connection is encrypted and its certificate checked.
C24Crew and its agents follow a URL only to the public internet.
C25Outside text is shown as plain text, never as markup.
C26Every link shown is a checked https link from a reviewed spec.
C27A response carries only what the visitor needs, never neighbours or bulk records.
C28The Kiro power passes on data, not instructions.
C29 to C31Rules 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).
C32Agent work is a proposal, and the owner's review is the only way to production.
C33An agent's pull request can change one city's data and nothing else.
C34Agent-written code never runs next to secrets it does not need.
C35Agent sessions are bounded in number, time and concurrency.
C36Only the owner can drive Crew's local interface.
C37Secrets stay on the server that needs them, and never in a browser-visible variable.
C38Aavi cannot be turned against a city: limits per client, caps per source.
C39No cache serves one home's answer for another.
C40Visitors' addresses and photos are not kept.
C41The city gate report reaches the agent as quoted data.
C42Every candidate city answers, and only one may match.
C43EPA names a water system and never routes a lookup.
C44Aavi works only for the expected request shape, never on another site's behalf.
C45One client identity, counted where the work happens.
C46The census push holds nothing it does not need.
C47The agent cannot touch what the census measures with.
C48The store enforces its own rules, and a leaked write login can add at most one well-formed row per source per day.
C49Production has no door for tests.
C50Live answers come from caches every instance shares, and a failed refresh is never cached for the full window.
C51A failure of the live site or its daily census emails the owner, and the owner confirmed a test failure's email arrived.
C52A 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