Staying Safe on the Internet
Learn to identify common online threats like phishing and how to browse securely.
Knowledge of Computers › Internet and E-mail · 18 min read
In the previous chapter, "Important Internet Protocols," we explored the invisible rules that allow data to travel across the globe in milliseconds. We learned how protocols like HTTP and SMTP ensure that a web page loads or an email reaches its destination. But there is a crucial piece of the puzzle we haven't discussed yet: the people intercepting, manipulating, or faking that data.
The internet was originally built for connectivity, not security. Early computer scientists assumed that everyone on the network would be trustworthy. Today, the internet is a reflection of the real world, complete with pickpockets, con artists, and thieves. However, online threats do not rely on physical force; they rely on deception, exploiting human psychology and technical loopholes.
This chapter will take you through the most common security threats you will face while browsing the web and checking your email. We will break down how attackers try to trick you, how the automated defenses in your inbox work, and the exact habits you need to develop to stay safe online.
The Human Element: Social Engineering
Before we look at specific attacks, we must understand the foundation of almost all internet fraud: Social Engineering.
In the world of cybersecurity, it is often much harder to hack into a secure computer system than it is to simply trick a human being into handing over the password. Social engineering is the psychological manipulation of people into performing actions or divulging confidential information.
Attackers use four primary emotional triggers to bypass your logical thinking:
- 1Urgency: "Your account will be suspended in 24 hours if you do not click here."
- 2Fear: "We have detected unauthorized login attempts on your bank account."
- 3Greed: "You have been selected for a tax refund of ₹45,000. Claim it now."
- 4Curiosity: "Look at these photos of you from the party last night!"
When you feel a sudden spike of emotion while reading an email or a web pop-up, that is your cue to stop, breathe, and look closer. The attacker is hoping you will act on impulse before you notice the technical flaws in their deception.
Phishing: The Art of Digital Deception
The most common and devastating application of social engineering on the internet is phishing.
The term "phishing" is a play on the word "fishing." The attacker throws out thousands of "baits" (fake emails) into the vast ocean of the internet, hoping that a few unsuspecting users will "bite."
While standard phishing is a numbers game sent to millions of people at once, attackers have developed highly targeted variations:
- Spear Phishing: Instead of sending a generic email to a million people, the attacker targets a specific individual or organization. They research the victim online (using social media or company websites) and craft a highly personalized email. For example, an email pretending to be from your company's HR department, mentioning your actual manager's name, asking you to update your payroll details.
- Whaling: A specialized form of spear phishing that targets the "big fish" or "whales"—high-profile targets like Chief Executive Officers (CEOs), Chief Financial Officers (CFOs), or senior government officials. These attacks are highly sophisticated and often aim to steal massive amounts of money or highly classified corporate data.
Anatomy of a Fake Email: How to Spot the Trap
Let us look at a concrete example. Imagine you receive an email claiming to be from the Income Tax Department of India. It has the official logo, the formatting looks professional, and it says you are owed a refund. How do you determine if it is real or a phishing attempt?
Here is a step-by-step method to dissect a suspicious email:
1. Inspect the Sender's Email Address
This is the single most important check. Attackers can easily change the "Display Name" of an email to say "Income Tax Department," but faking the actual underlying email address is much harder.
- Legitimate: `[email protected]` (Notice the official `.gov.in` domain).
- Fake: `[email protected]` or `[email protected]`.
If the email claims to be from a major institution but uses a public webmail provider (like Gmail or Yahoo) or a strange, hyphenated domain name, it is a scam.
2. Look for Generic Greetings
Because mass phishing emails are sent to thousands of people, the attacker usually doesn't know your name. Legitimate institutions you have an account with will usually address you by your actual name.
- Fake: "Dear Customer," "Dear Taxpayer," or "Dear User."
- Legitimate: "Dear Rahul Sharma,"
3. Hover Before You Click
Phishing emails always contain a "Call to Action"—a button or a link they desperately want you to click. The text of the link might say `www.onlinesbi.sbi`, but the actual destination could be completely different. If you are on a computer, hover your mouse cursor over the link without clicking. A small box will appear at the bottom corner of your browser or email client showing the true destination URL. If the text says one thing but the hidden URL points to `http://login-update-sbi.weebly.com`, it is a trap.
4. Check for Poor Spelling and Grammar
Many phishing emails originate from non-English speaking regions or are translated poorly. While attackers are getting better at this, glaring grammatical errors, strange capitalization, or awkward phrasing in an "official" communication are massive red flags.
Spam and the Invisible Gatekeepers
If phishing emails are so dangerous, why don't you see hundreds of them in your inbox every day? The answer lies in your email provider's Spam Filters.
Spam is the digital equivalent of junk mail—unsolicited, bulk messages sent indiscriminately. While some spam is just annoying advertising, a large portion contains phishing attempts or malware. Modern email providers (like Gmail, Outlook, and Yahoo) use incredibly advanced, multi-layered filters to catch this junk before you ever see it.
Here is how these invisible gatekeepers evaluate an incoming email:
1. Content Analysis (Heuristics and Bayesian Filtering)
The filter reads the content of the email looking for "spammy" characteristics. It looks for words like "FREE," "Viagra," "Urgent," or excessive use of exclamation marks and capital letters. Advanced filters use Bayesian logic, a mathematical system that calculates the probability of an email being spam based on the frequency of certain words. If an email contains the words "Nigerian," "Prince," and "Millions," the Bayesian filter assigns it a near 100% probability of being spam and blocks it.
2. Blocklists (Blacklists)
Cybersecurity organizations maintain massive, constantly updated lists of IP addresses and domains known to send spam. If an incoming email originates from an IP address on one of these blocklists, the filter rejects it immediately at the server level.
3. Email Authentication Protocols (Advanced)
This is the most technical and powerful layer of defense. Because it is easy to forge the "From" address in an email (a technique called spoofing), email servers use three specific DNS-based protocols to verify the sender's true identity:
- SPF (Sender Policy Framework): Think of this as a guest list at a party. The owner of a domain (e.g., `jk.gov.in`) publishes a public list of IP addresses that are officially allowed to send emails on its behalf. When an email arrives, the receiving server checks the SPF list. If the sender's IP isn't on the list, the email is flagged.
- DKIM (DomainKeys Identified Mail): Think of this as a wax seal on a letter. The sending server attaches a hidden digital signature to the email using complex cryptography. The receiving server checks this signature to ensure the email was not tampered with or altered while traveling across the internet.
- DMARC (Domain-based Message Authentication, Reporting, and Conformance): This is the manager that ties SPF and DKIM together. It tells the receiving server exactly what to do if an email fails the SPF or DKIM checks (e.g., "reject the email entirely" or "send it to the spam folder").
Step by step
- 1How a Spam Filter Processes an Email
- 2Email arrives at the receiving mail server.
- 3Server checks SPF and DKIM to verify the sender's identity.
- 4Server checks if the sender's IP is on any global blocklists.
- 5Bayesian filter scans the subject line and body for spam keywords.
- 6If it passes all checks, it goes to the Inbox; otherwise, it goes to Spam.
The First Line of Defense: Passwords and Authentication
If an attacker cannot trick you with a phishing email, their next approach is to simply guess or steal your password.
Many users rely on weak passwords like `password123`, `qwerty`, or their own name followed by their birth year. Attackers exploit this using automated software.
Common Password Attacks
- 1Brute Force Attack: The attacker uses a computer program to rapidly guess every possible combination of letters, numbers, and symbols until it finds the right one. A short, simple password can be brute-forced in milliseconds.
- 2Dictionary Attack: Instead of guessing random characters, the program runs through a massive list of common words, phrases, and known weak passwords (a "dictionary").
- 3Credential Stuffing: When a major website is hacked, millions of usernames and passwords are leaked onto the dark web. Attackers take these leaked lists and use automated bots to "stuff" those same email/password combinations into other websites (like banks or email providers), knowing that many people reuse the same password everywhere.
Creating a Strong Defense: The Passphrase
The traditional advice was to create passwords with a mix of uppercase, lowercase, numbers, and symbols (e.g., `Tr0ub4dour&3`). However, humans are terrible at remembering these, so they write them down on sticky notes, defeating the purpose. Furthermore, computers have become so fast that they can crack an 8-character complex password very quickly.
Today, cybersecurity experts recommend using a Passphrase. A passphrase is a sequence of four or more random, unrelated words.
Multi-Factor Authentication (MFA)
Because passwords can be stolen in data breaches regardless of how strong they are, relying on a password alone is no longer safe. Multi-Factor Authentication (MFA), often called Two-Factor Authentication (2FA), adds a second lock to the door.
MFA requires you to provide two different types of evidence to prove your identity:
- 1Something you know: Your password.
- 2Something you have: A temporary code sent via SMS to your phone, or generated by an Authenticator app on your device.
- 3Something you are: A fingerprint or facial recognition scan (Biometrics).
Even if a hacker in another country steals your password, they cannot log into your account because they do not have physical possession of your mobile phone to receive the second-factor code.
Safe Browsing and the Truth About SSL Certificates
When you browse the web, data is constantly flowing between your browser and the website's server. If you are entering a password or a credit card number, you do not want anyone else on the network (like a hacker on the same public Wi-Fi at a coffee shop) to be able to read that data.
This is where HTTPS and SSL/TLS Certificates come in.
In the previous chapter, we learned that HTTP (Hypertext Transfer Protocol) sends data in plain text. If you send a password over HTTP, anyone intercepting the traffic can read it exactly as you typed it.
HTTPS (Hypertext Transfer Protocol Secure) fixes this by wrapping the data in an unbreakable layer of encryption using a protocol called SSL (Secure Sockets Layer) or its modern successor, TLS (Transport Layer Security).
How SSL/TLS Works (The Handshake)
When you visit a secure website, your browser and the website's server perform a digital "handshake" in the background:
- 1The browser asks the server to identify itself.
- 2The server sends a copy of its SSL Certificate. This certificate is issued by a trusted third-party organization (a Certificate Authority) and acts like a digital ID card.
- 3The browser checks the certificate. If it is valid, the browser and server agree on a secret mathematical key.
- 4From that moment on, all data sent between them is scrambled (encrypted) using that key. If a hacker intercepts the data, all they see is a random, unreadable string of gibberish.
The Padlock Misconception
When a website uses HTTPS and has a valid SSL certificate, your browser displays a small padlock icon next to the web address.
For years, users were taught: "Look for the padlock. If the padlock is there, the website is safe and legitimate." This is no longer entirely true, and it is a dangerous misconception.
Malicious Downloads and Attachments
The final major threat vector is malware (malicious software) delivered through web downloads or email attachments. Malware is an umbrella term that includes:
- Viruses: Programs that attach themselves to clean files and spread by infecting other files.
- Trojans: Malware disguised as legitimate software. You think you are downloading a free video game, but hidden inside is a program that gives a hacker remote control of your computer.
- Ransomware: A devastating type of malware that silently encrypts all the files on your computer, locking you out. The attacker then demands a ransom (usually in cryptocurrency) to give you the decryption key.
The Danger of Email Attachments
Attackers frequently use email attachments to deliver malware. You should never open an attachment you were not expecting, even if it appears to come from someone you know (their account may have been hacked).
Be especially wary of the following file types:
- Executables (`.exe`, `.bat`, `.scr`): These are direct computer programs. Clicking them runs the code immediately. Most email providers block these outright.
- Office Documents (`.doc`, `.xls`, `.pdf`): Attackers hide malicious code inside "Macros" (automated scripts) within Word or Excel documents. If you open a document and it asks you to "Enable Content" or "Enable Macros" to view the file, do not click it. This is a common trick to install ransomware.
Quick Revision
- Social Engineering: Manipulating human emotions (urgency, fear, greed) to bypass security.
- Phishing: Fraudulent mass emails pretending to be trusted entities to steal data.
- Spear Phishing & Whaling: Highly targeted phishing aimed at specific individuals or high-ranking executives, respectively.
- Spam Filters: Use Bayesian logic (word probabilities), blocklists, and authentication protocols to block junk mail.
- SPF, DKIM, DMARC: DNS protocols that verify an email truly came from the domain it claims to be from, preventing spoofing.
- Brute Force vs. Dictionary Attacks: Brute force guesses every character combination; dictionary attacks use lists of common words and known passwords.
- Passphrases: Long strings of random words are much stronger and easier to remember than short, complex passwords.
- Multi-Factor Authentication (MFA): Requires a second form of proof (like an SMS code) alongside your password.
- HTTPS and SSL/TLS: Encrypts data in transit. The padlock icon means the connection is private, but it does not mean the website owner is trustworthy.
- Malicious Attachments: Never "Enable Macros" on unexpected Office documents, as this is a primary delivery method for ransomware and trojans.
Related notes
- The World Wide Web and Browsers
Learn the difference between the internet and the web, and how browsers and search engines work.
- What is the Internet?
Understand the basic concept of the internet, its brief history, and how we connect to it.
- Web Addresses and Domain Names
Learn how computers find each other online using IP addresses and URLs.
- Writing and Sending E-mails
Master the practical features of an email inbox, including CC, BCC, and attachments.