If a ransomware attack occurs, nurses should follow their facility's emergency protocols. This usually includes notifying the IT department, avoiding further interaction with affected systems, and using manual documentation methods if necessary. Quick action can help contain the spread of malware and protect sensitive information.