What to do when malware blocks input at the login screen
A computer that stops responding to both the keyboard and mouse before Windows loads may have a malware problem, but the cause is not always malicious. A failed USB hub, flat wireless batteries, a damaged port or a stuck accessibility setting can produce the same symptoms. Start with simple hardware checks before assuming the system is infected.
If the pointer and keys worked in the firmware setup screen but fail at the Windows sign-in page, suspicious software, a corrupted driver or a damaged startup component becomes more likely. If they fail everywhere, focus first on the peripherals and connection. This distinction prevents unnecessary changes to the operating system.
Avoid repeatedly entering passwords while the machine behaves strangely. Credential-stealing malware can capture logins, and ransomware may display a fake Windows warning designed to make the user panic. Disconnect the computer from Wi-Fi or Ethernet if possible, especially if other devices on the same home network are showing unusual activity.
For households in Sydney, Melbourne or Brisbane, a quick trip to Officeworks or JB Hi-Fi can provide a basic wired USB keyboard for testing. A wired device is preferable to Bluetooth during recovery because it does not depend on a pairing service or a charged battery.
Check the hardware before changing Windows
Power the computer off completely, then unplug every non-essential USB device, including external drives, printers, webcams and hubs. Connect a basic wired keyboard and mouse directly to different USB ports. Desktop users should try ports on the rear panel, while laptop users can test a USB-A port with an adapter if necessary.
Replace batteries in wireless devices and reconnect their receivers. If the keyboard works in the firmware menu, usually opened with keys such as F2, Delete or Esc immediately after power-on, the hardware is probably functional. Test the same keyboard on another computer if one is available.
A damaged port can affect both input devices when they share a hub. Do not use a suspicious USB stick found in a public place or supplied by an unknown person as a recovery tool. Malware can spread through removable media, and an infected drive may complicate evidence collection or file recovery.
Reach recovery tools without signing in
From the login screen, hold Shift while selecting Restart from the power menu. Windows should open its recovery environment, where Troubleshoot and Advanced options provide access to Startup Settings, System Restore and Command Prompt. If the mouse does not work, use Tab, arrow keys, Enter and the spacebar to navigate.
If Windows will not reach that menu, interrupt startup by holding the power button as the spinning dots appear. Repeating this process several times should trigger Automatic Repair. Another option is a clean Windows installation USB created on a known-safe computer. Choose repair options rather than reinstalling immediately, because a reinstall can overwrite recoverable files.
Some systems accept the On-Screen Keyboard icon at the sign-in page. This can help when only the physical keyboard is disabled, although it is not a reliable solution if malware controls the login interface. On a Mac, start in macOS Recovery with the appropriate startup key combination for the model, then use Disk Utility and security tools from there.
Microsoft’s recovery screens and Safe Mode options vary between Windows 10 and Windows 11. The Windows troubleshooting guides can help match the recovery path to the version installed on the computer.
Use Safe Mode carefully
Safe Mode loads Windows with a limited set of drivers and startup programs. From Advanced options, choose Startup Settings, restart, and select Safe Mode or Safe Mode with Networking only when downloading a trusted security update is necessary. Networking gives malware a chance to communicate, so ordinary Safe Mode is safer for initial investigation.
If input works in Safe Mode, remove recently installed applications, browser extensions and unknown startup entries. Run a reputable, fully updated anti-malware scanner and allow it to quarantine detected items. Do not install several security products at once, and avoid “PC cleaner” utilities that demand payment before reporting meaningful results.
| Symptom |
More likely cause |
Safer first action |
| Keyboard and mouse fail before the logo |
Port, hub, battery or hardware fault |
Test wired devices and firmware controls |
| Firmware accepts input but login does not |
Driver, startup program or malware |
Enter Windows Recovery and try Safe Mode |
| Only wireless devices fail |
Pairing, receiver or battery problem |
Use a wired USB keyboard and mouse |
| A ransom note appears |
Ransomware or a fake lock screen |
Isolate the computer and preserve evidence |
| Input works after a clean boot |
Startup software conflict |
Disable suspicious startup items and scan |
Never disable antivirus protections merely to make a suspected crack, key generator or unofficial game run. Pirated software is a common route for trojans and credential stealers, and Australian users may also face account compromise involving banking, tax or government services.
Protect files and investigate the infection
If the computer displays a ransom demand, disconnect it from the network but do not delete the note or rename encrypted files. Photograph the message, record the time it appeared and copy a few ransom-note details to a safe device. These clues may identify the malware family and determine whether a legitimate decryptor exists.
Do not pay immediately or trust a search result promising instant decryption. Some operators never provide a working key, while fake recovery services can steal more money. Guidance on LockBit ransomware recovery explains why identification, backups and evidence preservation matter before attempting repairs.
Use a clean computer to change important passwords, beginning with email and password-manager accounts. Enable multifactor authentication where available, then contact your bank if suspicious transactions or login alerts appear. The Australian Cyber Security Centre and Scamwatch publish local reporting and safety information, while businesses should also notify their IT administrator or managed service provider.
If files are valuable, create a forensic image or obtain professional advice before making major changes. Copying encrypted files to a separate drive can preserve them for future decryptors. Do not rely on an NBN connection being disconnected as proof that the machine is safe; malware may continue operating offline.
Restore normal access and prevent a repeat
After scanning, restart normally and check that keyboard and mouse input works at the login screen. Remove temporary recovery tools, update Windows, browsers, firmware and security software, and review installed programs for anything unfamiliar. If system files remain damaged, System Restore or a repair installation may be safer than deleting random files from the Windows directory.
Restore documents from a backup made before the incident, after scanning the backup drive. A backup that stays permanently connected can be encrypted alongside the computer, so use an offline drive or a reputable cloud service with version history. Test that restored documents open before wiping the original storage.
For Australian homes and small offices, secure the Wi-Fi router with a strong unique administrator password and current firmware. Keep operating systems supported, install updates promptly, and treat unexpected delivery messages, invoice attachments and fake toll notices with caution. A working backup, multifactor authentication and a wired recovery keyboard can turn a locked login screen into a manageable incident rather than a permanent data loss event.