Why Public Computers Are Unsafe to Use
In this article
Public computers—in libraries, hotels, internet cafés, and airport lounges—are unsafe for any task involving passwords, financial data, or personal information because you cannot control the hardware, software, or who has used the machine before you. Even a seemingly clean terminal can harbor keyloggers, malware, or tampered browsers that capture everything you type or display. The risks are real and measurable, and they apply to every public machine, regardless of how reputable the location appears.
How Public Computers Get Compromised
Attackers target public terminals because they are shared, often run outdated software, and are physically accessible. A common method is installing a hardware keylogger—a small device inserted between the keyboard cable and the computer that records every keystroke. These are cheap, hard to spot, and require no technical skill to install. Alternatively, malware like a software keylogger can be loaded onto the machine via a USB drive, a malicious website, or a previous user who deliberately infected it. Once the keylogger is active, it silently captures usernames, passwords, credit card numbers, and even answers to security questions.
Another threat is session hijacking. When you log into a website, the server gives your browser a temporary token (a session cookie). If the public computer has a malicious browser extension or a man-in-the-middle proxy, that token can be stolen, allowing the attacker to take over your logged-in session—even after you close the browser. Public Wi-Fi adds another layer: unencrypted traffic can be intercepted by anyone on the same network, so a public computer on public Wi-Fi compounds the risk.
What Attackers Can Steal From You
The most obvious targets are credentials. If you check your email, log into a bank account, or enter a social media password, that information can be captured. But the damage goes beyond login details:
- Personal identity data—name, address, date of birth, Social Security number—can be used for identity theft.
- Financial information—credit card numbers, bank routing numbers, and billing addresses—can be used for fraudulent purchases or transfers.
- Private communications—emails, messages, or documents you view or download can be copied without your knowledge.
- Authentication cookies—even if you log out, a stolen session token can let an attacker access your accounts later.
Attackers often sell this data on the dark web, making the theft hard to trace. The victim may not realize anything is wrong until a credit card charge appears or an account is locked.
Why Logging Out Isn't Enough
Many users assume that clicking "log out" and closing the browser protects them. It doesn't. Malware can remain active after you leave, capturing keystrokes from the next user or scanning the browser's cache for leftover data. Even if you clear the browser history, cookies, and cache, a keylogger has already recorded your input. Furthermore, some public computers are configured to save passwords automatically, so the next user could simply click the username field and see your credentials drop down. Logging out only ends the session; it doesn't remove the malicious software or the data it collected.
Common Threats Specific to Public Terminals
Beyond keyloggers, several other dangers are unique to shared machines:
- Tampered browsers—a previous user may have installed a malicious extension that redirects you to fake login pages or injects ads that steal data.
- Fake login screens—some malware replaces the real login page of a bank or email provider with a look-alike that sends credentials to the attacker.
- USB port attacks—a malicious USB device left plugged in can auto-run software when you insert your own drive.
- Shoulder surfing—someone may simply watch you type your password or PIN, either in person or via a hidden camera.
- Outdated software—public computers often run old operating systems and browsers with known security holes that attackers exploit.
These threats are not theoretical; security researchers have demonstrated each one in controlled tests, and real-world incidents have been reported at internet cafés and hotel business centers.
How to Protect Yourself If You Must Use One
If you have no alternative, you can reduce—but not eliminate—the risk by following these practices:
- Use private or incognito browsing to prevent the browser from saving history, cookies, or passwords.
- Type your password using on-screen keyboard or copy-paste it from a password manager on your phone, which can defeat some keyloggers (though not all).
- Avoid logging into financial, health, or government accounts—these are the highest-risk targets.
- Use two-factor authentication (2FA) on all accounts, so even if your password is stolen, the attacker can't access your account without the second factor.
- Change your passwords after using a public computer, especially if you suspect anything odd.
- Never save passwords or let the browser "remember" you.
- Log out of every session and close the browser completely.
Even with these steps, you are still vulnerable to hardware keyloggers and session hijacking. The only truly safe approach is to treat every public computer as compromised.
Safer Alternatives to Public Computers
For most tasks, you have better options:
- Your own smartphone or tablet—these are personal devices with your own security controls, and you can use a mobile hotspot to avoid public Wi-Fi.
- Personal laptop with a mobile hotspot—this gives you the convenience of a full keyboard without the shared-machine risks.
- Cloud-based services—if you need to print a document, many libraries and print shops allow you to email the file and pick up the printout without logging into any account on their machines.
- Virtual desktop or remote access—if you must use a public terminal, consider using a remote desktop service to access your own computer, so you never type passwords directly into the shared machine.
These alternatives may cost a little more or require planning, but they protect your digital identity from the most common attacks.
Frequently Asked Questions
Can I safely check my email on a public computer?
No. Email accounts often contain sensitive information and can be used to reset passwords for other services. If a keylogger captures your email password, an attacker can lock you out and impersonate you. Use your phone or personal device instead.
Does using incognito mode make a public computer safe?
Incognito mode prevents the browser from saving history and cookies, but it does not protect against keyloggers, malware, or session hijacking. It reduces some risks but is not a security measure.
What should I do if I already used a public computer and entered a password?
Immediately change that password from a trusted device, enable two-factor authentication, and monitor your accounts for suspicious activity. If you entered financial information, contact your bank or credit card company.
Are public computers in libraries safe?
Libraries often have IT staff and security software, but they are still shared machines. The risk is lower than an unmanaged internet café, but not zero. Treat them with the same caution as any public terminal.
Can a public computer steal passwords I don't type?
Yes. If you have saved passwords in a browser, malware can extract them from the browser's storage. Also, session cookies can be stolen even if you don't type your password again. That's why you should never save passwords on a public machine.
Is it safe to use a public computer for printing a document?
Printing itself is low-risk if you don't log into any account. Many services let you email the document to a printer, so you never enter credentials. Just avoid opening sensitive files that you wouldn't want others to see.