Skip to content

Health Software Common Practices

HSCP-R-005 · recipe · Security

Make the bot that drives the screen act under its own account

Written entry, version 0.1, checked on 2026-11-19.

At a glance

ImplementsHSCP-G-002 Log access to health data
CaseInstantiates: applies an existing practice to a context.
Contextan automaton, driven or built by an AI, uses health software through its screen (computer use, click automation), for lack of an API for the intended task
Verificationopen test · review

Implements HSCP-G-002, Log access to health data. Case: instantiates the practice for the case where access goes through the screen, driven by a bot. Complements HSCP-R-003, which notes this case in its limits without addressing it.

When

A team automates a task in a health software product through its screen, because the API does not cover that task. The bot is either an AI that watches the screen and acts at each run, or a script that this AI helped to write. In both cases, it logs in with a person's session or account. The software's log then shows that person, and nothing says that a bot acted.

The bot also keeps its own traces: screenshots, a log of its actions, a recording of the session. On care software, these traces contain health data and login secrets.

How

On the side of the software used:

  1. Create a "bot" account type, distinct from personal accounts. Each bot account is attached to a named owner.
  2. Give it rights limited to the task, narrower than those of the person who performed the task by hand.
  3. Write the bot account and its owner to the log, with a "bot" access path.
  4. Reject in the database any "bot" path row that does not name the owner.
  5. State in the terms of use whether use by a bot is permitted, and with which account.

On the side of the bot:

  1. Open the session with local code. The account identifier passes neither through the instruction given to the AI nor through the model.
  2. Develop the workflow in a test environment, on fictitious data. No patient data goes to the model or to a coding assistant during this phase.
  3. Write the bot's traces to a space it cannot modify. Host them like the product's other health data. Set their retention period and purge them with a scheduled job.
  4. Have a person approve any action that leaves the software: sending a document, filing a request with a third party.
  5. When the workflow breaks, redo the development in the test environment rather than repairing it with production traces.

Three ways of arriving, seen from the software used:

Way of arriving What the log shows Who is accountable for the access
Session opened by a person, taken over by the bot the person alone the person, without knowing it
A person's account handed to the bot the person alone nobody clearly
Bot account attached to an owner the bot and its owner the named owner

Verification

  • Log test: have the bot act, then check that the log of the software used shows its account and its owner, and not a person's account.
  • Rights test: the bot account fails on a resource outside its task. The bot can neither read nor modify the log, nor modify its own traces.
  • Search in the traces: run a workflow in the test environment with a fictitious patient and a test password, then search for these two strings in the traces directory and in remote storage.
  • Purge observed: a trace older than the set period no longer exists, on disk or in remote storage.
  • Review: the list of bot accounts and their owners is reviewed at fixed intervals, together with the log review.

Evidence produced

Log extract filtered on the "bot" path, list of the account's rights, result of the search in the traces, purge job and its last run, dated list of bot accounts and their owners.

Evidence items

Each item attests the recipe at a given date. Frequency given for a product in service.

  • Log extract Log extract filtered on the "automation" pathFrequency: on demand
  • Survey List of the automation account's privilegesFrequency: at each release
  • Test report Result of searching the traces for the fictitious patient and the test passwordFrequency: at each release
  • Log extract Trace purge task and the record of its last runFrequency: daily
  • Register Dated list of automation accounts and their ownersFrequency: monthly

Own mappings

In addition to those of the practice:

Identifier What the recipe adds
pgssi_s_imputabilite_v1_0/7.1.2.1-1 a machine's actions are traced under an account that designates it
pgssi_s_imputabilite_v1_0/6.2.2-4 reporting by user or machine: the "bot" path allows filtering
anssi_ia_agentique_v1.0/3.2 human approval before an action that leaves the software
anssi_ia_agentique_v1.0/5.4 account rights limited to the task
anssi_ia_agentique_v1.0/6.3 account identifier kept out of the instruction and the model
anssi_ia_agentique_v1.0/7.4 traces out of the bot's reach
rgpd_2016_679/art5-p1 retention period of the traces set and enforced
ref_ise_teleconsultation/SSI.07 tension: see "The generic account and the screen"

References outside the catalogue

  • Public repository cvs-health/cua-agent-kit (discover, codify, replay pattern; content of the traces; session opening by local code).
  • Documentation of Anthropic's computer use tool (screenshot and action loop; precautions; instructions present in displayed content).

Versions

Versions of the entry (French reference), most recent first
VersionStatusDate
0.1Draft2026-11-19

How to cite: “Health Software Common Practices”, HSCP-R-005, version 0.1, https://healthtechpractices.org/en/recettes/hscp-r-005/, under the CC BY-NC-SA 4.0 licence. Licence