Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 80 ยท Security Foundations

Personal Cybersecurity Hygiene

A practical guide to everyday security: safe browsing, passwords and updates, social media privacy, smart-home devices and online payments, with small Python checks.

Most of this course is about building and defending systems, but the same principles protect you personally. Cyber hygiene means a small set of regular habits that stop the great majority of everyday attacks: phishing, stolen passwords, malware and account takeover. Like brushing your teeth, none of it is clever, and its value comes from doing it consistently.

This lesson turns the theory into a practical routine for browsing, accounts, social media, the smart home and online shopping, and it includes two small Python tools: a safe passphrase generator and a privacy self-audit. If you want the reasons behind the advice, follow the links to the earlier lessons.

The core habits

Five habits cover most of the risk:

  1. Update everything. Turn on automatic updates for your operating system, browser, phone apps and router (Vulnerability Management and Patching).
  2. Use a password manager and a unique password for every account (Password Strength and Policies).
  3. Turn on multi-factor authentication, preferably with passkeys or an authenticator app, for email, banking and social accounts (Multi-Factor Authentication and Passkeys).
  4. Back up important files with the 3-2-1 rule: three copies, two media types, one offsite or offline (Backups, Resilience and Business Continuity).
  5. Pause before you click. Phishing works by rushing you (Phishing and Social Engineering).

Your email account is the master key, because password resets go there, so protect it first and most strongly.

Safe browsing

  • Look at the address, not the page. Check the domain before entering a password; criminals copy logos perfectly. Type or use a bookmark for banking and shopping sites.
  • HTTPS is necessary but not sufficient. The padlock means your connection is encrypted, not that the site is honest (TLS, Certificates and PKI).
  • Install software only from official sources, and be careful with browser extensions: each one can read the pages you visit. Remove ones you do not use.
  • Do not reuse the "remember me" habit on shared computers, and sign out when finished.
  • Be wary of public Wi-Fi. Prefer your phone's connection for sensitive tasks, or use a reputable VPN, and never ignore certificate warnings (VPNs, Wi-Fi and Remote Access Security).
  • Downloads and attachments: do not open unexpected files, especially macros, scripts and archives. If a colleague sends one unexpectedly, ask them through another channel.
  • Browser protection: keep the built-in safe-browsing feature on, and use an ad or script blocker if you like, because malicious adverts exist.

Passphrases you can remember

A long passphrase of random words is both strong and memorable, and you only need to remember it for the password manager and a few devices. This script builds one with the secrets module, which uses the operating system's secure randomness (Randomness, Key Management and Secrets). The tiny word list is only for the demo; real generators use lists of thousands of words.

Python Generate a passphrase and estimate its strength

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The three phrases differ each time you run it. With the 30-word demo list the strength is low (about 25 bits), but a 7,776-word list gives about 65 bits for five words, which is far beyond what an attacker can guess against a properly protected account. The lesson is that length and true randomness matter more than clever substitutions like P@ssw0rd.

Social media and personal information

Attackers research targets from public profiles. A post with your birthday, pet's name, school and holiday dates provides answers to security questions and material for convincing phishing or vishing (voice phishing) calls.

  • Set profiles to the most private level you are comfortable with, and review who can see old posts.
  • Do not publish boarding passes, house keys, children's school uniforms, or your location in real time; post holiday photos after you are back.
  • Limit the data you give apps: turn off location tagging on photos, and review which third-party apps can access your accounts (and revoke old ones, see OAuth 2.0, OpenID Connect and SSO).
  • Be sceptical of friend requests from new profiles, quizzes that ask for personal details, and urgent messages from "friends" whose account may have been taken over. Verify with a call.
  • Deepfakes and cloned voices exist. For anything involving money or secrets, confirm through a known number or a code word agreed in advance.
  • Search for yourself now and then, and request removal of data you do not want public. See also Cybercrime, Identity Theft and Cyberstalking.

Smart home and IoT devices

Cameras, doorbells, speakers, TVs and routers are small computers that often receive few updates.

  • Change default passwords and, if you can, the default username. Use a unique password per device.
  • Update firmware regularly and replace devices that no longer receive updates.
  • Secure the router first: strong Wi-Fi password with WPA3 or WPA2-AES, change the admin password, disable remote administration and WPS, and keep it updated.
  • Put smart devices on a guest or separate network so a hacked camera cannot reach your laptop (Firewalls, Segmentation and Zero Trust).
  • Disable features you do not use (remote access, microphones and cameras, unneeded open ports) and review privacy settings.
  • Buy from vendors that publish security updates, and remember that insecure devices are how many botnets grow (Botnets and Command-and-Control).

Online shopping and payments

  • Shop on sites you recognize, and check reviews for unknown shops. Extremely low prices and payment only by bank transfer, gift cards or cryptocurrency are scam signs.
  • Pay with a credit card, a payment wallet or a virtual card number rather than a debit card or a direct transfer; they usually offer better dispute rights and hide your real number from the merchant.
  • Turn on transaction alerts and check statements monthly.
  • Do not store card details in shops you rarely use, and use the phone-wallet or one-time card option when offered.
  • Beware of parcel-delivery and refund messages with links; go to the courier or shop's site yourself.
  • Be careful about QR codes in public places, since they can hide a link that leads to a fake login page.
  • Protect your phone with a screen lock and SIM or eSIM PIN, because SIM-swap fraud targets text-message verification codes.

A quick self-audit

This script scores a personal checklist. Change the answers to match your own situation and see which habits would help most; it prints the missing ones in priority order.

Python Personal security self-audit

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

If something goes wrong

If you click a suspicious link or notice odd behaviour: disconnect from the network, run a malware scan, change passwords for any account you used (from a clean device), enable MFA, check your bank and email forwarding rules, and report the incident to your workplace security team or the relevant service. Acting in the first hour matters most. Organizations follow a formal process for this (The Incident Response Process); individuals can follow the same steps in miniature: contain, clean, recover and learn.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Why should your email account get your strongest protection?

    Whoever controls your inbox can reset most of your other passwords. Use a unique password and strong MFA there.
  2. 2. What gives a passphrase its strength?

    Strength comes from the size of the search space. Random choice from a large word list adds a predictable number of bits per word; predictable substitutions add almost nothing.
  3. 3. Which step best limits the damage if a smart camera is compromised?

    Segmentation stops a compromised device from reaching your laptops, phones and file shares.
  4. 4. Which payment method usually offers the best protection against online fraud?

    Cards and wallets usually have dispute processes and hide your real number. Gift cards, transfers and crypto are hard or impossible to reverse, which is why scammers ask for them.

Summary

  • Five habits do most of the work: updates, a password manager, MFA, backups and pausing before clicking.
  • Protect your email account first, because it resets all the others.
  • Browse safely: check domains, install from official sources, trim extensions, and be careful on public Wi-Fi.
  • Limit what you share on social media, and verify urgent requests, even from familiar voices, through a second channel.
  • Secure the router, change default passwords, update firmware and isolate IoT devices.
  • Pay with cards or wallets, set alerts, and treat unusual payment requests as scams.

Next: Cybercrime, Identity Theft and Cyberstalking if you skipped it, or move on to The CIA Triad and Core Principles.