Repository navigation
Docs: a secret in a field that does not mask it shows in later screenshots and observations; enter secrets only into masked fields - #409
Merged
Conversation
…ter screenshots and observations; enter secrets only into masked fields Ruling 1ea561bc:795. secrets_list's description told the agent the value is "never returned", true of the call but not of what follows: a field that does not mask its input shows the value on screen, in screenshots and in the next observation's text. The description and the README's secrets paragraph now say so, and to enter a secret only into a masked field such as a password field. Sminos-Session: cursor235#b93055dd (cua on macbook)
… in later observations Sminos-Session: cursor235#b93055dd (cua on macbook)
The password-walk probe found Electron, Safari, Firefox and AppKit give one mask character per character of a password field's value, so the length reaches the agent. secrets_list and the README state it as a known limit. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ADME's tested apps Sminos-Session: cursor235#b93055dd (cua on macbook)
…-field rule Sminos-Session: cursor235#b93055dd (cua on macbook)
…sibility; keep 0.28.11 Sminos-Session: cursor235#b93055dd (cua on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 18, 2026
Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 18, 2026
… not in the macOS observation (refs #405) #409's sentences said a masked field still shows the value's length. With #405 that holds for the screen, and so screenshots, but cua's macOS observation reads such a field as `secure text` with no length; the Linux engine's still shows the masks (#407). The README's secrets paragraph and the end of secrets_list's description say so, and the hint digest in test/mcp-maws-hint.test.mjs is re-recorded, naming #405. Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 18, 2026
… plugin 0.28.12 The only conflicts were the plugin version in plugin.json and marketplace.json (main 0.28.11, this branch 0.28.10), resolved to 0.28.12. Main's changes (the macOS engine's set_value without focus, the secrets docs and the surface text) touch no file of this branch. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
SSFSKIM
added a commit
that referenced
this pull request
Nov 18, 2026
…d's value, length or selection (#405) (#411) * Engine: observation classifies an element before reading its value, and never reads a password field's value, length, Markdown or selection (refs #405) Every element is now read in two requests: all its attributes but AXValue and AXNumberOfCharacters first, then those two, beside AXRole and AXSubrole read again, only when the first classified it as neither a password field (role or subrole AXSecureTextField) nor unclassifiable (a role or subrole it could not read). A field the second request finds closed keeps nothing of it, and a request keeps only what it asked for. The Markdown read and the focused element's AXSelectedText are classified just before, and select_text refuses a password field before reading it. A password field's node carries `secure: true` and no value, length or Markdown, stays settable, and its identity keeps no value (valueUnread). The settle's busy walk reads no value attributes at all; the observation that reuses its reads adds only the value's request, and a re-fetch walk asks for the value only of an element the rest already matches. Sminos-Session: cursor235#b93055dd (cua on macbook) * Service: a password field prints `secure text` with no value, length or selected text, in the full tree and the diff (refs #405) A node the engine marks `secure`, or whose role or subrole is AXSecureTextField whatever value it carries, keeps no value or Markdown in the renderer: its Value part prints `secure text`, no transformation can take a value from it, the trailer drops the selected text when it is the focused element, and so a diff never sees what it holds change. Every other node renders byte for byte as before. Sminos-Session: cursor235#b93055dd (cua on macbook) * Docs: an observation shows nothing of a password field's text or length (refs #405) agent-cursor.md's typing paragraph gains a sentence after its password-field sentence: an observation's value for such a field reads `secure text`, selectText cannot select in it, and a screenshot shows what the field displays. The docs oracle and the core-documentation test carry it byte for byte; PROVENANCE.md and the surface inventory's "Table 3 addition (2026-11-17, #405)" record it. Sminos-Session: cursor235#b93055dd (cua on macbook) * Spec: #405's Decision Log entry, and the paste's length read logged as debt (refs #405) The entry records the classification before every value read, what a password field's node and identity carry, the entry points covered, the renderer's `secure text`, the cost, the model's sentence, and what is left: the paste's effect reading, logged in tech-debt-tracker.md. Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin: 0.28.11, for the observation that never reads a password field (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine: every value-bearing read goes through one guard that classifies just before and in its own batch, and a paste's password-field numbers stay in the engine (refs #405) The review of 2e5b305..6dc4bcd. `guardedRead` requests value-bearing attributes only beside AXRole and AXSubrole, drops the whole answer when that classification is closed, and sends that batch only after a classification made just before it. - AXValueDescription is value-bearing: read in the guarded batch, kept off a password field's node and identity, and dropped from Details by the renderer. - A field the Markdown's classification finds closed closes the walk's data and the source's cache: the node is secure, its identity valueUnread. - A structure the settle's busy walk read is classified again before the value's batch. - The focused selected text and select_text's value and attributed reads go through the guard; select_text refuses a field closed by then. - A failed value read (`valueFailed`) is no longer a wildcard in a match that needs the value. - A listed read asks for the role and subrole whatever the element lists. - Paste (ruling 1ea561bc:808): a password field's range and count are read to judge the paste, which confirms only a count moved by exactly the line less the replaced selection, and the meta carries only `secure`. Sminos-Session: cursor235#b93055dd (cua on macbook) * Spec: #405's review entry, and the paste's debt entry withdrawn (refs #405) The paste is in #405 (ruling 1ea561bc:808), so its tech-debt entry goes. Sminos-Session: cursor235#b93055dd (cua on macbook) * Docs: a masked field's length shows on the screen and in screenshots, not in the macOS observation (refs #405) #409's sentences said a masked field still shows the value's length. With #405 that holds for the screen, and so screenshots, but cua's macOS observation reads such a field as `secure text` with no length; the Linux engine's still shows the masks (#407). The README's secrets paragraph and the end of secrets_list's description say so, and the hint digest in test/mcp-maws-hint.test.mjs is re-recorded, naming #405. Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin: 0.28.12, for the observation that never reads a password field (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine: closures fail closed, an unverifiable value never matches as a wildcard, and a paste is judged on its numbers alone (refs #405) The re-review of 6dc4bcd..6a1c765, seven findings. - The paste reading reads role, subrole, range and count in one batch and marks the numbers by that batch's classification, or its failure. - A Markdown classification that fails as a whole closes the field; select_text refuses when its classification before the attributed read fails. - A value batch that cannot classify, or fails, marks the element unverified (valueFailed, descriptionFailed), which matches only another unverified one; a batch that reads the role and subrole gives the data those fresher ones, so a known change to secure no longer matches on stale structural ones. The re-fetch walk decides each structural match by the full read. - AXValueDescription has its own unread and failed marks: #390's valueless source and ignoringValue compare it again. - Paste movement is the range's and count's (`moved`), never the secure mark; a notification no longer confirms where the count decides; and the count is judged against the delivered plain text, not a markup source. Sminos-Session: cursor235#b93055dd (cua on macbook) * Spec: #405's re-review entry, with the plain-then-secure boundary recorded (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine: one AX batch per element classifies it from the same reply and drops a password field's value as it is decoded (refs #405) Design ruling 1ea561bc:811: the separate classification request cost +44-61% walk time (smoke 44224481847), so each element is read in main's one batch, its role and subrole beside its value attributes, classified from that reply, and a closed element's value, value description and length dropped in the same function, before anything reads or formats the reply. An element whose role or subrole is missing or fails is treated as a password field. The structure-only read, the reuse's reclassification and the focus preflight go; the focused AXSelectedText and select_text's AXValue each ride in one batch with the role and subrole. The parameterized reads keep a classification just before, failing closed. Also the review of 6a1c765..bc52384: a failed paste poll is no reading and a password field's reading moves only on a number it read; the paste's batch keeps the budget's timeout; the identity records and compares `secure`; and two failed reads match only for the same handle. Sminos-Session: cursor235#b93055dd (cua on macbook) * Spec: #405 under ruling 1ea561bc:811, one batch per element, with the rejected two-request read's numbers (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine and service: a failed classification presumes a password field only where one can be, and a closure by failure never matches another handle (refs #405) Ruling 1ea561bc:813: a role or subrole AXSecureTextField, an unreadable role, or a text-entry role whose subrole cannot be read still says `secure` (`secure text`); any other readable role whose subrole cannot be read has its value dropped and says `valueUnread`, rendered `value unread`. The review of bc52384..cd7a2f6: a closed reply's value attributes are left out of the names the data is decoded from, so nothing keeps, converts or bounds them; a closure by failure is recorded apart from `secure` (`classificationFailed`) and matches only another such for the same handle; and the stub's checks look for a distinctive 41-unit length in any form and its mask runs in the error wire and the captured stderr, failing when the capture fails. Sminos-Session: cursor235#b93055dd (cua on macbook) * Spec: #405 under ruling 1ea561bc:813, and the rework review's three fixes (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Service: an unlabelled element whose value was left unread is not pruned, so `value unread` keeps its line and index (refs #405) `descriptive` counted `secure` but not `valueUnread`, so an unlabelled AXGroup marked `valueUnread` was pruned before its Value part could print. Sminos-Session: cursor235#b93055dd (cua on macbook) * Docs: secrets_list's length sentence says only what the screen shows, on every platform (refs #405) The description is shared by the macOS and Linux computer surfaces, and the Linux one must name nothing of macOS (test/mcp-browser-surface.test.mjs). It now ends: a password field still shows its length on screen, one mask character per character. The README keeps the macOS `secure text` against Linux masks difference. The hint digest is re-recorded. Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.28.13: macOS observation never reads, keeps or shows a password field's value, length or selection (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook) * Evidence: #405's hosted qualification, six lanes with no password value, length or selection in the fix's output, latency within noise (refs #405) Sminos-Session: cursor235#b93055dd (cua on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
secrets_list's description told the agent that a{{secret:…}}value is "substituted outside your code and never returned". That holds for the call itself, but not for what comes after. A field that doesn't mask its input shows the value on screen, so it also appears in the agent's later screenshots and in the next observation's text. Nothing told the agent to avoid that (ruling 1ea561bc:795).src/mcp/surface.mjs, thesecrets_listdescription (and the browser surface's copy, which is derived from it): once entered, the value is in the app like any typed text. A field that doesn't mask its input shows it in later screenshots and observations, so enter a secret only into a field that masks it, such as a password field. Such a field still shows the value's length, one mask character per character.Evidence for the length sentence
The password-walk probe (
probe/pw-walk, 0d77eba; runs 44203155183, 44206136831, 44211615666) tested an app-marked password field holding 23- and 31-character synthetic values. The engine under test was unmodified main 290303c.#405 (P2) will stop cua from reading a secure field's value, length or selection. When it lands, the length sentence changes with it.
Verification
test/mcp-maws-hint.test.mjspins a digest of every no-backend description; it is re-recorded here, since this text moves it on purpose.testAFailedEnablementWriteStillOpensTheFreshWindowAndIsReported(no Swift changes here). engine-swift, sandbox and browser-parity were not run: no Swift, sandbox or browser-extension path changed.Plugin 0.28.11.
Sminos-Session: cursor235#b93055dd (cua on macbook)