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
| Asset | Risk | Controls |
|---|---|---|
| The provider key and its bill | Scripted 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 answers | An 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' privacy | Something 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 itself | Injected 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 context | The 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
- A curious visitor, the expected case.
- A prompt injector, who tries to make an assistant break its rules or leak its context.
- A cost abuser or bot, who sends many requests to run up the bill.
- A scanner, who asks for well-known admin paths; those land in a honeypot that answers like any missing page.
- A researcher, who reports what they find (see Disclosure).
Entry points
- POST /api/chat: chat answers and the Retrieval X-ray (mode retrieve).
- POST /api/transcribe: voice, behind a short-lived signed token.
- POST /api/arena: the Red Team Arena, a sandboxed copy of the support bot with its own budget.
- GET /api/health: status; the deep check calls the model at most a few times a day.
- POST /api/csp-report: browser reports of blocked content, reduced to directive and origin.
- Static files under /, from the public folder only.
- Knowledge-base edits, which live in the visitor's tab and travel with each request, capped at 240 characters.
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.
| Header | Value |
|---|---|
| Content-Security-Policy | default-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-Security | max-age=63072000; includeSubDomains; preload |
| X-Content-Type-Options | nosniff |
| X-Frame-Options | DENY |
| Referrer-Policy | strict-origin-when-cross-origin |
| Permissions-Policy | microphone=(self), camera=(), geolocation=(), payment=() |
| Cross-Origin-Opener-Policy | same-origin |
| Cross-Origin-Resource-Policy | same-origin |
| Cache-Control (on /api) | no-store |
OWASP Top 10 for LLM Applications 2026
| Risk | Status | How | Tested |
|---|---|---|---|
| LLM01:2026 Prompt Injection | Defended in depth | Passages 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 Disclosure | Defended | Nothing 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 Agency | Not applicable by design | The 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 Chain | Watched | The 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 Poisoning | Defended | The 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 Consumption | Defended | Limits 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 Misinformation | Mitigated | Answers 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 Exposure | Defended | The 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 Weaknesses | Low exposure | One 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 Handling | Defended | The 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
| Technique | Name | Where it is tested |
|---|---|---|
| AML.T0051.000 | LLM Prompt Injection: Direct | Arena level 1; live probes 4 and 7 |
| AML.T0051.001 | LLM Prompt Injection: Indirect | Arena level 2; live probes 10 and 11; N-02 |
| AML.T0070 | RAG Poisoning | Arena level 2 (session-only by design) |
| AML.T0068 | LLM Prompt Obfuscation | Invisible-character stripping; live probe 5; N-16 |
| AML.T0054 | LLM Jailbreak | Persona rules and output gates; live probes 3 and 7 |
| AML.T0056 | Extract LLM System Prompt | Arena level 3; live probe 9; N-04 |
| AML.T0077 | LLM Response Rendering | Arena level 5; live probe 8; R-IMAGE |
| AML.T0034 | Cost Harvesting | Arena level 4; limits and caps (N-01, N-09) |
| AML.T0029 | Denial of AI Service | Limits 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
| Control | Status | How |
|---|---|---|
| 1. Inventory and Control of Enterprise Assets | Partly | Serverless, 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 Assets | Yes | package-lock.json pins every package; the functions have none at runtime; the dependency watch lists them all daily. |
| 3. Data Protection | Yes | No 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 Software | Yes | Security headers and a hash-pinned CSP come from the build and are checked by the static gate; server files are never served. |
| 5. Account Management | Owner step | The site has no accounts. Two-factor sign-in on the GitHub, Vercel and Google accounts is the owner's to keep. |
| 6. Access Control Management | Partly | Tokens and apps are scoped to this repository, and every workflow runs with read-only repository permissions. |
| 7. Continuous Vulnerability Management | Yes | A 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 Management | Partly | Platform 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 Protections | Yes (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 Defenses | Partly | The only upload is voice audio: WAV only, checked by its first bytes, size-capped and never stored. |
| 11. Data Recovery | Yes | Everything lives in git, and any deploy can be rolled back on the platform. |
| 12. Network Infrastructure Management | Platform | Run by Vercel. A firewall rate-limit rule for /api is the owner's step. |
| 13. Network Monitoring and Defense | Partly | CSP violation reports, the daily model canary, fair-use limits, the optional Project Honey Pot signal and the honeypot paths. |
| 14. Security Awareness and Skills Training | Not applicable | A one-person project; the Tested page and this page explain the defenses to visitors. |
| 15. Service Provider Management | Yes | Two 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 Security | Yes | Every 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 Management | Partly | SECURITY.md and security.txt for reports, kill switches (ARENA_ENABLED, the model variables), the daily canary and platform rollbacks. |
| 18. Penetration Testing | Yes | Two 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
- OWASP Top 10 for LLM Applications 2026
- MITRE ATLAS
- CIS Critical Security Controls v8.1
- CVE Program
- NIST National Vulnerability Database
- NIST Security Content Automation Protocol (CVSS, CPE)
- CISA Known Exploited Vulnerabilities catalog
- FIRST EPSS
- OSV vulnerability database
- Project Honey Pot http:BL
- OWASP WebGoat (training)
- Cyber Threat Alliance