Verify the security boundary

Data Security for Clinic Follow-Up Systems

Turn clinic follow-up security claims into practical access, isolation, approval and recovery tests across the full data route.

A clinic follow-up system is secure only if the intended people and services can perform the intended work, sensitive information stays within authorised boundaries, and the clinic can recover unfinished work when something goes wrong. Encryption matters, but it does not prevent an authorised service account from updating the wrong patient or a support user from seeing more information than their job requires.

This guide helps Saudi clinic IT managers, security leads and procurement teams turn security claims into evidence. It focuses on the complete route from consultation capture to approved action and receiving system. For the purpose and lawful basis of processing, use the separate patient follow-up and PDPL guide. The security review should be part of the clinic follow-up project scope before real information enters a new system.

Draw the data route before choosing controls

List what moves at every step: audio if captured, transcript, patient identifier, proposed task, approval, attachment, message, destination response and support record. Identify which component stores each item and which organisation can access it. Include browser storage, temporary processing, monitoring systems, backups and remote support. A diagram that ends at the application's main database misses much of the exposure.

Mark the transitions between trust boundaries. Examples include a clinician's device sending information to a hosted application, an application calling a model service, and an integration worker writing to a clinic system. At each transition, record the purpose, minimum necessary fields, identity of the caller, recipient, transport protection and evidence of acceptance or rejection.

Use synthetic data to inspect the actual route during evaluation. Ask whether error traces contain request bodies, whether attachments reach a separate storage provider and whether support can reproduce a problem without copying a consultation. A supplier architecture drawing is a starting point; the relevant configuration and observed behaviour must agree with it.

Confirm which Saudi requirements apply to the deployment

The PDPL Implementing Regulation includes security requirements and specific controls for health data, including necessary access and processor arrangements. Apply the current requirements to the clinic's role, data and activity. Do not treat the security review as proof of a lawful purpose or permission to use health information for a different activity.

The NCA Essential Cybersecurity Controls, ECC 2-2024, state their scope for government agencies and affiliated entities, and private entities owning, operating or hosting critical national infrastructure. Other entities are encouraged to use the controls as good practice. Establish applicability and any additional sector or contractual requirements; do not assume the same formal scope for every private clinic.

Translate applicable obligations into an evidence register with a responsible person, affected component, control, test and unresolved issue. A certificate or audit report needs its scope, service, period and exceptions checked. Evidence for a supplier's corporate environment does not automatically cover the particular product, subprocessor or configuration proposed for the clinic.

Separate human access from machine authority

Define roles around the work people need to perform. A scheduling coordinator may need the approved appointment request and verified contact route without access to the complete consultation. A reviewer may need limited source context to inspect a proposal. A technical operator may need an error identifier and connector state without being able to browse clinical content.

Use individual accounts, suitable strong authentication and managed access changes. Joiner, role-change and leaver processes should revoke active sessions and relevant delegated access, not merely hide a menu. Where exceptional access is permitted, require a justified, time-bounded process with review. Test a real permission denial using synthetic records rather than accepting a screenshot of a role configuration.

Machine identities need equally deliberate limits. Separate development and production credentials, restrict destinations and allowed operations, protect secrets, and define rotation and revocation. Avoid giving an AI-facing component unrestricted access to the clinical system because that is convenient for integration. The model should propose work through a controlled application contract, with permissions checked outside generated text.

Protect identity, recipient and approval at execution time

The system should verify the patient context and authorised destination when executing an action. A value displayed during review may have changed before submission. Bind approval to the relevant action version and apply renewed review when a change affects its meaning or disclosure. Check that the receiving system resolves the identifier to the intended record.

Recipient verification is especially important where contact details belong to a family member, guardian or shared device. A previously successful delivery does not establish continuing authority for a different disclosure. Keep the contact relationship, permitted purpose and current restrictions available to the execution rule, with a hold when essential information is unresolved.

Security claims converted into observable tests
ClaimSynthetic testEvidence expected
Access is limited by roleA scheduling user attempts to open source content outside their roleDenied access and an appropriate security event
Branches are separatedA user changes a request identifier to another branch's test recordServer-side rejection, not only a hidden interface element
Approval protects disclosureThe destination changes after approvalA hold or renewed authorisation under the agreed rule
Revoked credentials stop workAn integration credential is revoked while actions are queuedNo unauthorised execution and a recoverable pending state
Support access is controlledA support session requests unnecessary consultation contentScope restriction and accountable approval where exceptional access is justified
Recovery preserves obligationsA backup is restored with pending and uncertain actionsReconciled tasks without blind replay or lost ownership

Keep untrusted text away from execution permissions

Consultation text, attachments and retrieved documents are information to interpret, not instructions granting system authority. A document must not be able to redirect a message, broaden access or disable review merely by containing persuasive wording. Separate the model's proposed fields from the deterministic controls that validate identities, allowable actions and approval state.

OWASP's prompt injection guidance explains that untrusted content can influence model outputs and that retrieval or fine-tuning alone does not remove the risk. For follow-up workflows, test whether misleading document content can cross an authority boundary. The acceptance criterion concerns the blocked action, not only whether the model says it ignored the instruction.

Give security reviewers an inventory of available tools and their actual permissions. Prefer narrow operations with validated parameters and explicit outcomes. Record which actions require approval and which remain unavailable. When a tool fails, the application must not replace a missing verification step with a model-generated assumption about what probably happened.

Limit what reaches logs, support and secondary storage

Operational logs should contain enough evidence to diagnose an event without collecting the entire consultation by default. Use action identifiers, component versions, status and bounded error details. Review exception traces and monitoring payloads, where sensitive information can appear unintentionally even when the main interface is carefully designed.

Keep security event logs, clinical records and content used for model evaluation under distinct access and retention decisions. Where reconstruction requires a protected reference to a source version, do not copy the source into every downstream event. The audit trail guide covers the evidence relationships in more detail.

Include deletion and recovery in the storage review. Ask how expired content leaves active stores, replicas, exports and backups under the approved schedule, and how a restore avoids silently reintroducing expired material. Relevant legal record obligations may require retention; a general promise to delete everything immediately can be as unsuitable as indefinite storage.

Test isolation beyond the login screen

For a clinic group, isolation may be needed between organisations, branches, professional roles or care contexts. Specify the boundary and legitimate exceptions. A central administrator can require broader access than a branch coordinator, but that access should follow the approved role rather than an accidental consequence of shared hosting.

Test direct requests, attachment retrieval, search results, exports and background jobs using permitted synthetic accounts. A hidden button is not an authorisation control if the underlying service still returns the record. Check cached responses and shared search indexes as well as the database. A correct main application screen does not prove that every secondary route respects the boundary.

Document where the supplier, clinic and infrastructure provider each enforce the restriction. If one layer trusts a branch identifier supplied by the browser, verify that the server independently checks the caller's entitlement. Test both forbidden access and legitimate cross-branch work so that the control does not simply block the service the clinic needs.

Rehearse a compromised integration credential

In a fictional exercise, the clinic identifies possible exposure of a credential used to submit approved scheduling requests. The response team revokes it and pauses affected execution. That action contains a route, but leaves a queue whose records may be pending, accepted or uncertain. Each state needs a controlled recovery decision.

Use destination records to reconcile actions already attempted. Replace the credential through the approved process and check the new identity's permissions. Do not replay the entire queue simply because connectivity returns. Review whether patient context, appointment availability or approvals have changed during the interruption, and restore work only under valid current conditions.

Assess possible unauthorised access or disclosure through the clinic's incident and privacy process. Preserve necessary evidence without widely sharing sensitive logs. The exercise should name who can revoke access, who owns reconciliation, who evaluates notification obligations and who authorises restart. These responsibilities need to work outside the vendor's normal support hours when the clinic's service depends on them.

Prove availability without creating unsafe replay

Agree recovery objectives from the consequences of interruption and the clinic's approved continuity plan. Include the maximum tolerable loss of workflow state, restoration order and temporary manual process. A database recovery test is incomplete if the team cannot distinguish tasks already carried out from those still awaiting action.

Maintain a controlled fallback list with owners and a way to reconcile it when systems return. Avoid parallel uncontrolled spreadsheets or repeated messages that later cannot be matched to the original obligation. The integration design should preserve identifiers and expose uncertain results so that recovery can be reasoned about rather than guessed.

Test dependencies such as identity services, model access, message providers and the receiving clinic system. A product may remain online while one essential dependency fails. Define the visible state, permissible work and escalation for each loss, and verify that the workflow does not report unavailable services as completed actions.

Control configuration changes after the initial review

A secure initial configuration can lose its boundaries through routine maintenance. A temporary support role may remain enabled, a new diagnostic setting may log message contents, or a connector upgrade may request broader permissions. Record the approved configuration and compare meaningful changes against it. Assign an owner to remove temporary access when the task ends.

Require change notice for components that affect data handling or execution authority. The clinic needs time to assess a new processor, storage destination or permission before it is introduced into its workflow. A supplier's general ability to update software should not obscure which changes need clinic review under the agreed service arrangements.

For a proposed update, select tests from the affected boundaries rather than repeating unrelated demonstrations. If support access changes, retest visibility, time limits and revocation. If attachment storage changes, inspect access checks and deletion behaviour. Record the accepted version, evidence and unresolved limits so that a later incident can be compared with the system actually approved.

Make security acceptance a deployment decision

Before live use, assemble the data route, access tests, destination controls, incident rehearsal, recovery evidence, processor arrangements and unresolved risks. Assign each residual issue to a decision-maker with authority over that consequence. A project manager should not accept a clinical or privacy risk simply because the technical release date is approaching.

Repeat the relevant checks when the product adds a data destination, changes a model processor, expands permissions or introduces a new action. Keep the operating inventory current. Security acceptance for a read-only task proposal does not automatically cover sending attachments or writing to a patient record. The preparation guide connects these requirements with readiness of the clinic team.

For an Echo discussion, ask for evidence specific to the intended deployment. The public experience uses simulated downstream actions. The public experience describes non-retention of audio, but that does not establish all transcript, log, backup or support arrangements for a production service. Request a walkthrough with your security requirements, using fictional information in the demonstration and enquiry.

FAQ

Your questions, answered.

What should a clinic request as evidence of follow-up system security?

Request the actual data route, role and machine permissions, isolation tests, approval controls, incident responsibilities and recovery results for the intended deployment. Check processor and support access as well as the main application. Certificates can contribute evidence, but their scope and exceptions must match the service the clinic will use.

Does encryption make an AI clinic follow-up system compliant?

Encryption protects particular data exposures but does not establish a lawful purpose, correct recipient, necessary access or safe execution. A user or service with valid credentials can still perform an inappropriate action. Assess legal requirements and operational controls together, including identity, approval, retention, suppliers and recovery.

How should a private clinic establish its ECC obligations before buying follow-up software?

Establish whether the clinic’s government affiliation or ownership, operation or hosting of critical national infrastructure places it within ECC 2-2024’s defined scope, and identify additional sector or contractual requirements. The NCA also encourages other organisations to use the controls as good practice. Document the applicability decision for the proposed deployment; healthcare status alone does not settle it.

How can we test whether branches are securely separated?

Use authorised synthetic accounts and records to test direct requests, attachments, searches, exports and background processing across the defined boundary. Confirm that the server rejects unauthorised access even when an identifier is changed. Also test permitted cross-branch work so that isolation respects the clinic’s approved operating model.

Should technical support have access to full consultation transcripts?

Grant only the information and duration necessary for the justified support task. Prefer bounded diagnostics and synthetic reproductions where suitable. Any exceptional access needs an approved purpose, authorised person and reviewable record. Include support tools and copied files in the data route rather than treating them as outside the system.

What should happen to queued actions when an integration credential is revoked?

Execution using the revoked authority should stop, while pending work remains identifiable and owned. Reconcile actions whose result is uncertain before restarting. A replacement credential needs approved permissions, and queued actions may need fresh checks if recipients, patient context or approvals changed during the interruption.

Can a prompt tell the model to ignore all malicious instructions safely?

A prompt is not a complete security boundary. Untrusted content may influence generated proposals, so permission checks, validated parameters, restricted tools and approval controls need to operate outside the model. Test whether an attempted instruction can cause an unauthorised action, rather than relying on the wording of the model’s response.

How should a clinic verify backup recovery for follow-up automation?

Restore an approved test set containing pending, accepted and uncertain actions, then reconcile it against the receiving-system state. Check identifiers, owners, access and retention requirements. A successful database restore is insufficient if it causes duplicate submissions, resurrects expired information or leaves the team unable to identify unfinished obligations.

LET’S WORK TOGETHER

Ready to build what’s next?

Tell us about your project or the platform you want to explore, and we’ll come back to confirm a suitable time.