NHS Ayrshire and Arran was hit during the massive worldwide cyber attack, which left hospitals and GPs without access to their computers at the weekend.

Some 11 of Scotland’s health boards were victims of the cyber hack that meant medical staff were unable to access patient records.

GP surgeries were also hit by the virus, which left ransom notes on computers and caused widespread disruption.

Two GP surgeries were hit by the attack in Ayrshire.

John Wright, Director for Corporate Support Services , said: “NHS Ayrshire & Arran is aware of the reported cyber attack which appear to have affected NHS services and a number of national services across Scotland.

“Our IT security are closely monitoring our networks to identify any suspicious activity. We will continue to do so over the coming days in order to minimise any possible impact on services.

“NHS Ayrshire & Arran can confirm that two GP practices have been affected by the large-scale cyber attack.

“As a precaution, the practices were immediately disconnected from our network and we are in the process of checking and reconnecting the devices to the network.

“There is no evidence to suggest that patient details have been compromised and all our services are currently running as normal.”

First Minister Nicola Sturgeon insisted on Monday that patient confidentiality had not been affected. 

She told the BBC: “The Scottish Government has been contacting 120 public sector organisations, but obviously private sector companies are potentially vulnerable as well.”

The virus is known as Wanna Decryptor or WannaCry. It locks users’ files and demands a £230 payment to allow access.

Ayrshire police said: “The UK National Cyber Security Centre are working with affected organisations.

“For the latest advice for home users and SME’s in relation to this malware campaign visit: www.ncsc.gov.uk/guid…/ransomware-guidance-home-users.