Repository navigation
Backlog
Labels
post-mvpExpansion after the usable API workflow; no AppExchange prerequisite
Description
Part of #1528. Reviews #1531, #1532 and #1533. Blocks #1538.
Why
Generated UI widens what model output can do. Until now, a hostile string in a record could only put words in an answer. Now it could try to put a link, a button or a misleading table in front of a steward.
Record values are customer-controlled input: any source system can write them, and they reach the model through tool results.
Threats, controls and tests
| Threat | Control | Test |
|---|---|---|
| A record value tells the model to render a link to an attacker's URL | AppLink takes a route name and ids, never a URL. The library has no @OpenUrl |
Functional: a mock tool result carries the injection; assert no off-origin href in the DOM |
| A record value tells the model to render a button that changes data | The library has no Mutation() and no write action. Its actions are FollowUps and in-app navigation only |
Unit: the library's inventory of actions and functions equals an allowlist |
| The model shows numbers it made up | Bound components show tool results, not model text, and each carries a source chip | Functional: a bound table whose reference doesn't exist renders the "not part of this answer" sentence |
| HTML or script inside a value | Text rendering only. A lint rule bans dangerouslySetInnerHTML in lib/genui |
Component test with an <img onerror> value |
| An oversized program (cost, or a stalled browser) | Caps on statements, components and rows per answer at render time, plus the max_tokens cap |
Unit |
| A viewer gets action affordances | The V9 gate is unchanged, and generated UI has no action affordances | Existing tests plus a new functional test |
| Data from another tenant | Unchanged: tools use the dataset's viewer credential through forward() |
The existing authz gate |
| Telemetry or egress from the renderer | #1530's zero-fetch test, plus CSP connect-src 'self' |
#1530 |
How
- Record this threat model in the
securityskill's references, wherever that skill says such a record belongs. - Implement any missing control in The answer component library: a closed OpenUI library built from our primitives and hand-rolled charts #1531, The assistant route speaks OpenUI Lang: result events, binding rules, prompt caching, stop reasons #1532 or The assistant renders generated answers: Renderer per turn, citations per component #1533's modules.
- Add the tests.
Acceptance criteria
- Every row has its test, and each test was seen failing with its control removed.
- The PR body records a review against the
securityskill. -
make frontendandmake skills-checkpass.
Metadata
Metadata
Assignees
Labels
post-mvpExpansion after the usable API workflow; no AppExchange prerequisite
Activity