El análisis se publica en inglés (traducción del original ruso).

Card data requests from Secret Keeper and PCI DSS

A review for those responsible for a payment page: what changes from the PCI DSS point of view when a "Fill from Secret Keeper" button appears on the payment form. The flow is described in the protocol specification, § 4.6 "Data request by a site".

Status as of 4 December 2026. Standard: PCI DSS v4.0.1. Server packages and widget: sk-login 0.7.3. App: Secret Keeper 1.1.23.

This is a developer's review, not an assessor's opinion. The flow has not been assessed by a QSA; whether a requirement applies to a particular site is for that site's assessor to decide. What exactly was verified, and how, is listed in the last section.

In short

  • The Secret Keeper publisher does not receive card data. None of its servers are on the data path: the details travel from the payer's device straight to the site's server, encrypted to that server's key.
  • The card verification code (CVV/CVC) is not sent to the site. It is not in the request dictionary, it cannot be requested, and the payer types it on the page. The app stopped sending it in version 1.1.23; for earlier builds see "App versions and the CVV".
  • The page runs no code from other domains. The widget is a single file served by the site itself. The page makes network requests only to its own server.
  • The site gets a second entry point for the card number: the endpoint that receives the encrypted envelope. It and the server library are in the site's assessment scope.
  • The server does not persist the values: they stay in memory until the first hand-over to the page that opened the request.
  • Not everything is settled. The card number is returned from the server to the browser, and QR substitution is stopped only by the confirmation screen. See "Risks and open questions".

How the data travels

  1. The page asks its own server to open a request. The server issues a one-time request identifier and a link for the QR code. The link carries the identifier, the site host, the server address (its public key), the data type and the requested fields. It contains no card data.
  2. The payer scans the QR code with the app, or taps the button on the same device. The app shows which site is asking, which record is chosen and which of its fields will be sent. Data leaves the device only after confirmation.
  3. The app posts the request to https://<site host>/sk/request and receives a one-time code encrypted to the payer's key. This step proves to the server who the sender is, and proves to the app that the holder of the key from the link is answering.
  4. The app posts a second envelope: the code and the values of the requested fields. The envelope is encrypted to the server's key (X25519, XChaCha20-Poly1305) and travels inside TLS.
  5. The server decrypts the envelope, takes only the requested fields from it and holds them in memory. The page that opened the request collects the values once with a call to its own server and puts them into the form; the record on the server is wiped at that moment. The payer types the CVV, and the payment proceeds as usual.

Who receives what:

Party What it receives
The app on the payer's device The whole card record: it is the cardholder's own data and it is kept on their device
The Secret Keeper publisher Nothing: it takes no part in the exchange
The secretkeeper.net site Only when the link from the QR code opens in a browser instead of the app: the request parameters (identifier, host, server address, data type). No card data
The site's server The requested fields: cardholder name, card number, expiry date, billing address. Builds before 1.1.23 also put the CVV into the envelope; the server discards it
The site's page in the browser The requested fields, without the CVV

Whose scope this is

PCI DSS addresses organizations that store, process or transmit card data, and those that can affect the security of such an environment. How we read that for this flow:

  • The cardholder and their device. A record in the Secret Keeper vault is the cardholder's own data, like a card in a wallet or in the browser's autofill. The standard's requirements on storing card data are not addressed to the cardholder.
  • The app publisher. It does not store, process or transmit card data: the app runs on the device, and no publisher server is on the data path. The server library and the widget are third-party software components that a site builds into its own application, not a service.
  • The site (a merchant or a payment provider whose page accepts the card). Everything that concerned accepting the card stays with it. What is added: a new inbound channel, a library on the server and a script on the page.

Requirement by requirement

Requirement What it says What it means in this flow
3.3.1, 3.3.1.2 Sensitive authentication data, the card verification code included, is not retained after authorization The site does not receive the CVV from the app: it never reaches the values the server hands to the page, under any conditions. The CVV field on the page is filled by the payer, and the site treats it exactly as in a form without Secret Keeper
3.5.1 The card number is unreadable anywhere it is stored By default the library holds the values in process memory and writes nothing to disk. If the request store is replaced with a shared one (several server instances), the values sit in it until handed to the page: that is storage, and the requirement applies to it
4.2.1 The card number is protected with strong cryptography during transmission over open, public networks The path from the app to the server is protected twice: the site's TLS and an envelope encrypted to the server's key. The path from the server to the page is protected by the site's TLS
6.3.2 An inventory of bespoke software and the third-party components in it is maintained The server library and the widget go into the inventory. Versions are pinned, the source code is open
6.4.3 Payment page scripts: each is confirmed as authorized, its integrity is assured, an inventory with justification is kept The requirement also covers scripts the site serves itself, so the widget belongs in the inventory. It is a single file of a pinned version that loads no further code; a hash for integrity checks is computed from the release file
11.6.1 Unauthorized changes to the headers and contents of the payment page are detected The mechanism is on the site's side. The widget file changes only with a version update, so the baseline is stable

On data in memory, the standard speaks in the applicability note to requirement 1.4.4: the requirement is not intended for data in volatile memory, but data may be kept there only for the time the business process needs. How long the values live in server memory is covered in "The site's server".

The page: scripts and Content Security Policy

What the widget does in the browser:

  • Where it comes from. A single file, sk-login-widget.global.js (about 44 KB), from the package. The site serves it from its own domain as a static file or bundles it into its own build. The page loads nothing from the publisher's servers.
  • What it loads. Nothing: no scripts, fonts or images from other domains. The logo is embedded in the file, the QR code arrives as a ready SVG in the response of the site's own server.
  • Where it connects. Only to the site's own API: to open a request and to poll its state. Card data reaches the page in the response of that same API.
  • Which links it shows. The request link (sk://request?... for the button and https://secretkeeper.net/request?... in the QR code) and an "install the app" link to secretkeeper.net. These are navigations on click, not requests made by the page; they carry no card data.

What the widget needs from the policy:

Directive Needs Why
script-src 'self' The widget file from the site's own domain. No eval or the like
connect-src 'self' Requests go only to the site's own API
img-src 'self' with the logoUrl option, otherwise data: The built-in logo is embedded in the file as a data URI. The logoUrl option sets a logo address on the site's own domain
style-src 'nonce-...' with the styleNonce option, otherwise 'unsafe-inline' The widget inserts its styles as one <style> element. The styleNonce option puts the page's nonce on it

With both options the widget works under a policy without 'unsafe-inline' and without data::

default-src 'none'; script-src 'self'; style-src 'nonce-<nonce>'; img-src 'self'; connect-src 'self'

The widget's markup has no style attributes.

Limitations worth knowing in advance:

  • The styleNonce option appeared in version 0.7.3. Earlier versions are not compatible with a strict style policy: the widget's styles will not apply.
  • A page that enforces Trusted Types (require-trusted-types-for 'script') without a default policy will not start the widget: it builds its markup with innerHTML.

The site's server

  • Endpoint. POST /sk/request accepts envelopes as text/plain. It is an entry point for card data and belongs to the cardholder data environment on a par with the payment form handler.
  • Server key. Derived from a 12-word mnemonic that the site keeps as a secret. A leak lets an attacker impersonate the server to the app and decrypt intercepted envelopes. Treat it like the other keys of the environment.
  • What the server checks. The envelope decrypts to its key, the type and the request match what was issued, the request is alive and one-time, the code matches (five attempts). From the values it takes only the keys issued for that request; everything else is ignored.
  • How long the values live. A request lives two minutes by default. The values wait in memory until the first poll by the page that opened the request and are wiped on hand-over. If the page never collects them, the record is removed after it expires (within four minutes with the default settings) on the next access to the store: there is no separate cleanup timer.
  • Logs. The library does not log the values. The site has to watch its own tooling: the response of the request state API contains the card number and must not end up in request logs, tracing or monitoring.

App versions and the CVV

  • From version 1.1.23 the app does not put the CVV into the envelope for a site. The code stays in the vault record on the device.
  • Builds before 1.1.23 send the whole card record, CVV included. The server decrypts the envelope, takes the requested fields and discards the CVV: it is not handed to the page and is not written anywhere. It does reach the memory of the server process while the envelope is parsed.
  • A site cannot stop an older build from putting the CVV into the envelope; it can only refuse to take it, which is what the library does. Only payers updating the app closes this completely.
  • As of the date of this document, version 1.1.23 is distributed as a beta; the stable version 1.1.19 behaves like builds before 1.1.23.

Risks and open questions

  • QR substitution. An attacker opens the real payment page and shows its QR code to a victim on a page of their own. On the confirmation screen the victim sees the real site host. If the victim confirms, the values go to the real server, which hands them to the page in the attacker's browser. What stands against this today: the confirmation screen with the host, the list of fields and, if the server sent them, facts about the browser the request was opened from (where from, which browser); and the fact that the CVV is not sent, so such an attack never yields a complete set of card details. Cryptography does not close this class of attacks: what remains is the user's attention.

    Confirmation screen in the app: the chosen card record with the list of fields to be sent, then the Recipient section with the site host and the location, IP address and browser of the request

    This is the confirmation screen in the app. In the Recipient section, under the site host, come the facts about the browser the request was opened from: the location by IP address, the address itself, the browser and the system. With a substituted QR code these describe the attacker's browser, not the payer's: an unfamiliar city or browser is a reason to decline. The data in the screenshot is made up.

  • The card number in the browser. The server hands the number to the page so that it can fill the form. A variant in which the server keeps the number, binds it to the payment session and gives the page only a masked value is not implemented. It would also remove the main damage of QR substitution.

  • Browser facts are optional. The sk-login packages send them to the app when it supports them, but the protocol does not require this of a server: another server implementation may omit them.

  • Memory cleanup without a timer. Values the page never collected are wiped on the next access to the store after expiry, not by a timer. On an idle server a record can stay longer.

  • Trusted Types. The widget does not work on a page that enforces Trusted Types without a default policy; see the section on the page.

  • Older app builds keep sending the CVV in the envelope; see the section above.

  • The payer's device. Protection of the record on the device (PIN, vault encryption) is described in the protocol specification. A compromised cardholder device is out of scope of this review.

Demo site

The whole flow can be tried at auth.secretkeeper.net. Real card details never go there: for demo sites the app always sends masked values (the first two and the last two digits of the card number remain), and a link cannot turn this off. The same mode is switched on with the mode=test parameter on integrators' test stands.

What was verified and how

  • Requirement numbers and wording were checked against the text of PCI DSS v4.0.1. The reading of applicability is ours.
  • The behaviour of the widget and the server is described from the source code of the sk-login 0.7.3 packages and their automated tests: the request set, dropping of extra keys, one-time hand-over of the values.
  • The 0.7.3 widget was checked in Chromium on a test page under the policy from the section on the page: the sheet opens styled, the QR code and the logo are visible, the browser reports no policy violations. The reverse was checked there too: without styleNonce the browser blocks the styles, without logoUrl it blocks the built-in logo, and with Trusted Types enforced the widget does not start.
  • The behaviour of the app was verified with automated tests and a run against the demo site: a whole card (no CVV arrived), a request for a part of the fields, an empty requested field, a refusal by the user.
  • Not verified: the widget on a real payment page and under a strict policy in Safari and Firefox; an assessment of the flow by an assessor.

Descargar