Skip to content
Software development
ASD ISMISM-2085

ASD ISM 2085 Prevent exposure of exact AI model confidence scores

What it says

The exposure of exact AI model confidence scores in API outputs or user interfaces is prevented.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Do not expose exact AI model confidence scores in the API outputs or user interfaces of AI applications you develop; show a label, band or coarsely rounded value instead where users need one.

In AI applications the organisation develops, exposure of exact AI model confidence scores in API outputs or user interfaces must be prevented. A confidence score is the model's own estimate of how likely an output is correct, such as 0.9731 for a classification, or the probability attached to each generated token, a word or part of one. A label, a band such as high, medium or low, or a coarsely rounded figure is allowed. Both routes count: API responses, and anything an interface displays, exports or sends to the browser.

Why it matters

Exact scores show an attacker how the model reacts to small changes in input. Repeated queries then let them replicate the model, infer whether a record was in its training data, or tune inputs that fool it. Withholding exact scores removes that fine-grained signal.

How to implement

  1. Map every route by which model output leaves the application.

    List API endpoints, user interface screens, exports, downloadable reports and error responses, and note which carry confidence scores, probabilities or other raw model output.

  2. Replace exact scores with labels, bands or rounded values on the server.

    Choose the coarsest form that still meets users' needs, such as a label alone or high, medium and low bands, and convert before the response is built, so the exact value never reaches the client, even hidden in page data.

  3. Turn off probability outputs at the source.

    In your own model serving, disable options that return per-token probabilities or full score lists and reject request parameters that ask for them. Where a third-party model API returns them anyway, strip them in your code or gateway before building your response.

  4. Keep any exact scores you need on the server.

    Where the application uses scores internally, for example to send low-confidence answers to a person for review, keep them out of every response and screen, and limit access wherever they are stored, such as event logs protected from unauthorised access (ISM-1985).

Keep it running

Recheck API responses and screens after any change to the model, the serving software or the API version, because new versions can add score fields by default. Check each new endpoint, export or interface feature for AI output before release.

Evidence and audit

  1. Check 1 of 2What an auditor asks for

    Ask for

    Responses captured from every AI endpoint in the API gateway's route list, including requests that ask for scores or probabilities.

    Look at

    Whether any field holds an exact confidence score or per-token probability.

    Good evidence

    No response from any endpoint contains an exact confidence score or per-token probability, even when the request asks for one, and only labels, bands or coarsely rounded values appear.

  2. Check 2 of 2What an auditor asks for

    Ask for

    The user interface screens, exports and browser network traffic for a sample of AI features.

    Look at

    Whether exact scores appear on screen, in downloads, or in data sent to the browser but hidden from view.

    Good evidence

    No screen, export or browser response for the sampled features contains an exact confidence score, including values hidden from view.

Mappings

Closest match in ISO/IEC 27001: A.8.28, Secure coding, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.28Secure codingPartially meets

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.