Back to the demo

Security

Grounded is a public demo with no accounts, no database and no stored conversations, so the things worth protecting are the model provider's bill, the honesty of the answers, visitors' privacy and the site itself. This page sets out what can go wrong, what stops it, and where each control is tested.

Threat model

What is worth protecting, what threatens it, and what stops it
AssetRiskControls
The provider key and its billScripted traffic runs up the model provider's charges or exhausts the free quota for everyone.Per-visitor and daily limits on every endpoint (N-01, N-11), input and output caps (N-09), a separate arena budget and kill switch, a limited deep health check. A platform firewall rule is the owner's step.
Honest answersAn answer invents a policy, asks for a card number or sends people to an address that is not Nimbus's.Answers come from cited passages or say the knowledge base has nothing; deterministic output rules (R-SECRET, R-CONTACT, R-CARD, R-IMAGE, R-STUDENT, R-PROMPT); signed history so earlier replies cannot be forged (N-08).
Visitors' privacySomething a visitor types is kept, logged or leaked.No accounts and no storage of conversations or voice audio; logs keep counts and rule ids only; a privacy note says what goes to the model provider (N-03).
The site itselfInjected script, framing, or server files served as pages.A hash-pinned Content Security Policy, HSTS, same-origin opener and resource policies, X-Frame-Options; only the public folder is served (N-10).
Hidden contextThe instructions behind the assistants are read back.Of little value by design: both prompts are published with the source. R-PROMPT declines recitation, and the arena guards a random canary.

Who might attack

Entry points

Trust boundary

Everything the browser sends is untrusted, including the conversation history, edited passages and the requested mode. The functions hold no state between requests beyond counters. The model provider is a third party that receives the system prompt, the retrieved passages and the visitor's message. The model's reply is untrusted until the output rules pass it, and the page prints it as text, never as HTML.

Headers on every response

Generated by the build into vercel.json and read from the same place for this table. The script hashes in the policy pin the page's own inline scripts; nothing loads from another origin.

HTTP response headers
HeaderValue
Content-Security-Policydefault-src 'self'; script-src 'self' 'sha256-Bw8lTCdp3cbofU1JNOhsT1VDfrUGdHB2n8bmY6NppnA=' 'sha256-nDEwVv4n7xvq0stfT9gDTPoT66j64CERTJa6XGCwgMY=' 'sha256-ElShUWg/R0NC6WIMZp3N2FKE5siI90ZKCnHMHJYcUhk='; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; media-src 'self' blob:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; report-uri /api/csp-report
Strict-Transport-Securitymax-age=63072000; includeSubDomains; preload
X-Content-Type-Optionsnosniff
X-Frame-OptionsDENY
Referrer-Policystrict-origin-when-cross-origin
Permissions-Policymicrophone=(self), camera=(), geolocation=(), payment=()
Cross-Origin-Opener-Policysame-origin
Cross-Origin-Resource-Policysame-origin
Cache-Control (on /api)no-store

OWASP Top 10 for LLM Applications 2026

All ten risks, how this demo handles each, and where it is tested
RiskStatusHowTested
LLM01:2026 Prompt InjectionDefended in depthPassages are fenced with a per-request code; text is NFKC-normalized and invisible characters are stripped (N-16); assistant turns carry a server signature (N-08); system-role messages from the browser are dropped (G-01); output rules catch what gets through.Arena levels 1 and 2; live probes 3, 5, 7, 10, 11; both probe scripts.
LLM02:2026 Sensitive Information DisclosureDefendedNothing personal is stored or retrievable; R-SECRET replaces any reply that asks for card numbers, passwords or codes; R-CARD removes card-shaped numbers.N-02 probe; endpoint gate.
LLM03:2026 Excessive AgencyNot applicable by designThe assistants have no tools and cannot act; tickets are labelled illustrative. The page flags replies that claim an action (G-05), and the arena's R-ACTION replaces refund claims.Arena level 1; UI gate (claim guard).
LLM04:2026 Supply ChainWatchedThe deployed functions have no npm runtime dependencies; fonts and icons are self-hosted and no third-party script loads; workflow actions are pinned to commit hashes; a daily dependency watch checks every package against OSV, CVE records, CISA KEV and FIRST EPSS.Static gate (no third-party assets); dependency watch.
LLM05:2026 Data and Model PoisoningDefendedThe knowledge base changes only through git. Visitor edits are session-only, capped, labelled VISITOR-EDITED, fenced, and answered only after a full check (N-02, G-03). Nothing is trained or fine-tuned on visitor data.Arena level 2; N-02 probe.
LLM06:2026 Unbounded ConsumptionDefendedLimits per visitor and per day on every endpoint, input and output caps, a capped deep health check, the arena's own budget and kill switch.Arena level 4; endpoint gate (limits, caps).
LLM07:2026 MisinformationMitigatedAnswers cite their passages or say the knowledge base has nothing; R-STUDENT corrects a known wrong answer (N-05); a retrieval gold set runs in CI; an optional faithfulness check exists behind a flag.Retrieval eval; N-05 probe; live rerun of N-05 pending.
LLM08:2026 Hidden Context ExposureDefendedThe prompts are public on purpose, so reading them back costs nothing; R-PROMPT declines recitation; the arena hides a fresh canary in every attempt and R-CANARY blocks it in any spelling.Arena level 3; live probe 9; N-04.
LLM09:2026 Vector and Embedding WeaknessesLow exposureOne tenant and 36 public passages from one owner, so retrieval cannot cross users; edited passages are embedded for one request and never stored; the X-ray's map is a projection of the public corpus.Endpoint gate (map, edits).
LLM10:2026 Improper Output HandlingDefendedThe page prints model output as text, never HTML; R-IMAGE and the arena's R-MARKUP remove images, links and HTML on the server; the Content Security Policy blocks inline and third-party scripts and images from other origins.Arena level 5; live probe 8; UI gate.

Finding IDs (G-, N-) refer to the Tested page of the demo, which lists every finding with its fix and its gate.

MITRE ATLAS techniques

Adversary techniques this demo is tested against
TechniqueNameWhere it is tested
AML.T0051.000LLM Prompt Injection: DirectArena level 1; live probes 4 and 7
AML.T0051.001LLM Prompt Injection: IndirectArena level 2; live probes 10 and 11; N-02
AML.T0070RAG PoisoningArena level 2 (session-only by design)
AML.T0068LLM Prompt ObfuscationInvisible-character stripping; live probe 5; N-16
AML.T0054LLM JailbreakPersona rules and output gates; live probes 3 and 7
AML.T0056Extract LLM System PromptArena level 3; live probe 9; N-04
AML.T0077LLM Response RenderingArena level 5; live probe 8; R-IMAGE
AML.T0034Cost HarvestingArena level 4; limits and caps (N-01, N-09)
AML.T0029Denial of AI ServiceLimits on every endpoint; a platform firewall rule (owner step)

IDs checked against MITRE ATLAS and D3FEND technique pages in November 2026. ATLAS is revised every month, so IDs can move.

CIS Critical Security Controls v8.1

All 18 Controls, read for a serverless demo with no accounts
ControlStatusHow
1. Inventory and Control of Enterprise AssetsPartlyServerless, so there are no machines to inventory. The assets (repository, Vercel project, model key, domain) are listed in DEPLOY-GUIDE.md.
2. Inventory and Control of Software AssetsYespackage-lock.json pins every package; the functions have none at runtime; the dependency watch lists them all daily.
3. Data ProtectionYesNo personal data is collected or kept; logs hold counts only; the privacy note names what reaches the model provider.
4. Secure Configuration of Enterprise Assets and SoftwareYesSecurity headers and a hash-pinned CSP come from the build and are checked by the static gate; server files are never served.
5. Account ManagementOwner stepThe site has no accounts. Two-factor sign-in on the GitHub, Vercel and Google accounts is the owner's to keep.
6. Access Control ManagementPartlyTokens and apps are scoped to this repository, and every workflow runs with read-only repository permissions.
7. Continuous Vulnerability ManagementYesA daily dependency watch (OSV advisories, CVE records with CNA scores first, CISA KEV, FIRST EPSS), two audits, a live red-team pass and the public arena.
8. Audit Log ManagementPartlyPlatform logs keep counts and rule ids only: guard rules, arena verdicts, limiter warnings, honeypot hits, CSP reports. Retention is the platform's.
9. Email and Web Browser ProtectionsYes (web)CSP with hashed scripts and no third-party scripts, HSTS with preload, X-Frame-Options DENY, same-origin opener and resource policies. There is no email.
10. Malware DefensesPartlyThe only upload is voice audio: WAV only, checked by its first bytes, size-capped and never stored.
11. Data RecoveryYesEverything lives in git, and any deploy can be rolled back on the platform.
12. Network Infrastructure ManagementPlatformRun by Vercel. A firewall rate-limit rule for /api is the owner's step.
13. Network Monitoring and DefensePartlyCSP violation reports, the daily model canary, fair-use limits, the optional Project Honey Pot signal and the honeypot paths.
14. Security Awareness and Skills TrainingNot applicableA one-person project; the Tested page and this page explain the defenses to visitors.
15. Service Provider ManagementYesTwo providers: Vercel (hosting and logs) and Google (the model, which receives the prompt, passages and message). Both are named in the privacy note.
16. Application Software SecurityYesEvery change runs four gates, a retrieval eval, two probe scripts, Lighthouse and accessibility budgets; every finding gets an ID and a gate.
17. Incident Response ManagementPartlySECURITY.md and security.txt for reports, kill switches (ARENA_ENABLED, the model variables), the daily canary and platform rollbacks.
18. Penetration TestingYesTwo audits (September and November 2026), a live red-team pass of 16 probes, and the arena, open to anyone.

Dependency watch

A scheduled workflow (.github/workflows/depwatch.yml) reads package-lock.json and the workflow files every day, asks the OSV database for known advisories, follows each to its CVE record (the CNA's score first), and checks the CISA Known Exploited Vulnerabilities catalog and FIRST's EPSS exploit-probability score. A known-exploited issue, or a high-severity or likely-exploited issue in anything the site or its pipeline runs, fails the workflow; the workflow's badge in the README shows the latest result, and each run's summary lists every advisory it found. The deployed functions themselves have no npm dependencies.

This product uses data from the NVD API but is not endorsed or certified by the NVD. The NVD is consulted only when a CVE record carries no score from its CNA or from CISA.

Red Team Arena

Anyone can attack a sandboxed copy of the support assistant on the Arena tab: five levels mapped to the table above, each attempt judged twice by deterministic code, once on the model's raw reply and once on what reaches the screen. The scoreboard keeps counts only; nothing typed there is stored.

Disclosure

Report security issues through GitHub's private vulnerability reporting: open a private report. The same address is in security.txt, and the full policy, with what is in scope and the safe harbor, is in SECURITY.md.

Please do not load-test the live site or enter real personal or payment details. A win in the arena counts as a finding: send what you typed and when.

Sources