1. Home
  2. Explore
  3. Computer Science
  4. Securing Digital Accounts

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Securing Digital Accounts

Speaker 1Speaker 2

Securing Digital Accounts

16:33
0:00-16:33
  1. Corey

    Welcome back. Today we're focusing on securing accounts. We have dozens, hundreds, or even more accounts across websites and apps, so the central question is: what threats put those accounts at risk, and what defenses can raise the bar against those threats?

  2. Hope

    A useful starting point is the physical world. Think about the key to your home, apartment, or dorm. The key lets you through the locked door, but anyone who obtains that key can enter too. Digital security has a similar problem, except the building blocks are usernames, passwords, devices, and other forms of authentication.

  3. Corey

    Let's distinguish two ideas that are easy to confuse. Authentication is proving who you are—for example, proving that you are David. Authorization is deciding what that person is allowed to access after their identity has been established. Proving that someone is David does not automatically mean David should have access to an entire home or an entire computer system.

  4. Hope

    In the digital world, a username or email address is often public information. The secret is supposed to be the password. The basic presumption is that if you provide both the public identifier and the private password, the system can infer that you are the account holder.

  5. Corey

    But that only works well if the password is a good one. One threat is a dictionary attack, where an adversary uses a file containing words from English or another language and tries those words one by one. If your password is an ordinary dictionary word, the attacker may find it much faster than by guessing randomly.

  6. Hope

    And adding a few numbers or symbols does not automatically solve the problem. A brute force attack uses software to try every possible password in a systematic way. Even a random password can eventually be discovered if it is short enough and the adversary has enough time and technical resources.

  7. Corey

    The number of possibilities gives us a way to estimate password strength. Suppose a passcode has four decimal digits. Each position has ten possibilities—zero through nine—so the total is 10 times 10 times 10 times 10, or 10 to the fourth power.

  8. Hope

    That equals 10,000 possible passcodes. The range runs from 0000 through 9999, and 0000 counts as one of the possibilities. An attacker might get lucky immediately, or might reach your choice near the end, but the important point is that the entire space is quite small.

  9. Corey

    A simple brute-force program can loop through every possible first digit, every possible second digit, every possible third digit, and every possible fourth digit. In the demonstration, code printed those combinations from 0000 to 9999 in less than a second. That means a four-digit password is a very low barrier if an attacker can connect a stolen device to a computer and try the possibilities automatically.

  10. Hope

    What if we replace the digits with four letters? With lowercase and uppercase English letters, each position has 52 possibilities, giving 52 to the fourth power—roughly seven million possibilities. That is better than 10,000, but the demonstration still completed in only a few seconds.

  11. Corey

    Adding digits and punctuation increases the space again. On a US English keyboard, the example counted 26 lowercase letters, 26 uppercase letters, 10 digits, and 32 punctuation symbols, for 94 possibilities per position. Four characters then give 94 to the fourth power, or roughly 78 million possibilities.

  12. Hope

    Seventy-eight million sounds enormous compared with 10,000, but a computer can still work through that space relatively quickly. The major improvement comes when we make the password longer. Eight characters using those 94 possibilities produce 94 to the eighth power—about six quadrillion possible passwords.

  13. Corey

    That illustrates a key cybersecurity idea: security is relative to the adversary's resources. Adding characters and expanding the set of possible symbols raises the amount of time, money, energy, and technical effort required to brute-force the password. The goal is to make the attack take longer than the useful lifetime of the password, the account, or the attacker's interest.

  14. Hope

    There is a usability trade-off, though. Longer and more complicated passwords are harder for people to remember and type. A system designer may choose a short passcode because making access too difficult could cause people to forget credentials or stop using the system. Security and usability are both important, and the balance depends on the person, the organization, and the policy.

  15. Corey

    Current recommendations from the National Institute of Standards and Technology, or NIST, say that memorized secrets should be at least eight characters long. NIST also recommends that websites allow user-chosen secrets of at least 64 characters and accept printing ASCII characters, spaces, and Unicode characters.

  16. Hope

    That longer limit matters because a memorable sentence, quote, or phrase may be easier to remember than a short password packed with arbitrary symbols. Length can provide substantial security, but the phrase should still be original. A 64-character password made from repeated zeros would not be a good choice.

  17. Corey

    NIST also recommends checking new passwords against lists of commonly used, expected, or compromised values. A password from a previous data breach should be rejected because attackers may already have that password in a downloaded collection.

  18. Hope

    Other passwords to avoid include dictionary words, repetitive or sequential patterns such as aaaaaa or 1234abcd, and context-specific choices such as the service name, username, or a variation of them. If you can think of an obvious trick, a smart adversary can probably think of it too.

  19. Corey

    Security questions and password hints create another problem. Websites should not prompt people to use facts like the name of their first pet, first car, or a parent. Those details may be discoverable through social media or other public information, and a hint such as 'my password is my first pet's name' simply leaks the strategy to anyone who sees it.

  20. Hope

    NIST also says that services should not require arbitrary periodic password changes. Forcing people to change passwords every month or every few months can lead to predictable modifications—password 1 becomes password 2, then password 3. It can also cause people to forget which version is current, so frequent mandatory changes may create security and usability problems.

  21. Corey

    Another defense is rate limiting. A phone may lock you out after a number of failed attempts, perhaps ten, and then increase the waiting time between attempts. Some devices can even wipe themselves if that feature is enabled. This is inconvenient when you make a mistake, but it prevents an attacker from trying thousands of guesses in less than a second.

  22. Hope

    Rate limiting changes the economics of the attack. Instead of rapidly testing every possibility, the attacker may have to wait seconds, minutes, hours, or longer. That raises the cost and risk of the attack and may convince the attacker to give up or move on.

  23. Corey

    Passwords are only one authentication factor. Multifactor authentication, commonly called two-factor authentication or 2FA, requires two or more fundamentally different types of factors. The three broad categories are knowledge, possession, and inherence.

  24. Hope

    A knowledge factor is something you know, such as a password. A possession factor is something you physically have, such as a key fob, phone, or security device. An inherence factor is something specific to you, often a biometric such as a fingerprint or face.

  25. Corey

    The distinction matters because two passwords are still two knowledge factors, not two fundamentally different categories. Some services call their process two-step authentication, but technically, multifactor authentication is stronger when it combines different kinds of evidence.

  26. Hope

    A common possession factor is a one-time password, or OTP. It may arrive by text message, appear in an authentication app, or be displayed on a physical key fob. The code changes or is intended for one use, and the service checks it against the expected value.

  27. Corey

    Not every possession factor is equally secure. SMS codes are vulnerable to SIM swapping, where an attacker tricks a mobile carrier into associating the victim's phone number with the attacker's SIM card. Then text messages intended for the victim can go to the attacker instead.

  28. Hope

    When available, a native authentication app or a physical security device is generally preferable to SMS in this context. An app can communicate through the device's data connection or push notifications rather than relying on the mobile phone network and the carrier's SIM association.

  29. Corey

    Biometrics can also serve as an inherence factor, including fingerprints or facial recognition. They may be built into devices people already own, which avoids the cost of requiring a separate fingerprint device. However, voice recognition deserves caution because recorded voices and AI-generated deepfake audio could potentially imitate someone.

  30. Hope

    So if an account uses your voice as the password and offers a safer alternative, such as an app-based factor, disabling voice recognition may be wise. The broader lesson is that authentication methods should be evaluated against the threats they face, not accepted automatically just because they are convenient.

  31. Corey

    Malware creates another threat. A virus, worm, or other malicious program can infect a computer or phone, perhaps after someone installs untrusted software. Keylogging malware records what you type or tap and may upload it to a server controlled by the adversary.

  32. Hope

    If the malware captures your username and password, the attacker may obtain both basic credentials. If it also captures a six-digit one-time code quickly enough, the attacker could potentially use the username, password, and code to access the account before you do.

  33. Corey

    A practical defense is to be careful about which devices you use for sensitive logins. Shared computers in internet cafés, laboratories, or even a friend's home may not follow the security practices you would choose for your own device. Using your own devices reduces the probability that hidden software is recording your credentials.

  34. Hope

    Credential stuffing is a different kind of attack. Instead of guessing passwords, an adversary takes usernames and passwords exposed from one breached service and tries those same combinations on other popular services. Reusing a password across many websites means one breach can threaten all of those accounts.

  35. Corey

    The defense is straightforward in principle: use a unique password for every website and application. Reusing a public username or email address may be unavoidable, but passwords should not be reused. The challenge is remembering all those unique passwords, which is why password managers are so useful.

  36. Hope

    Social engineering attacks people rather than relying purely on technical weaknesses. For example, if someone persuades you to write down a password or reveal personal information because you trust the person asking, you have been manipulated. The defense is healthy skepticism: pause and ask why someone needs the information before sharing it.

  37. Corey

    Phishing is a technical form of social engineering. An attacker may send an email that appears to come from a bank, Google, PayPal, a politician, or a teacher. The message may urge you to click a link, change a password, verify information, or make a donation, leading you to a convincing but fraudulent website.

  38. Hope

    Look carefully at the URL, including the domain, and hover over links to see where they actually lead. A safer practice for sensitive accounts is to open a new browser tab and manually type the known website address instead of trusting a link in an email.

  39. Corey

    Phishing can even target multifactor authentication. A sophisticated fake login page could collect your username, password, and one-time code, then automatically send those values to the real service. That is why 2FA is valuable but does not eliminate the need to question unexpected messages, links, and login screens.

  40. Hope

    Some social media posts can also be designed to collect answers to security questions. A prompt asking for your favorite childhood song may seem harmless, but if people use that song as an answer elsewhere, the post is helping gather information an attacker could exploit.

  41. Corey

    There is also the machine-in-the-middle idea. Your data does not travel directly from your device to a website; other machines, such as routers and servers operated by internet providers, universities, or home networks, may sit between the two endpoints. If one of those machines is malicious, secure communication requires defenses such as cryptography and encryption, which we will examine when discussing data.

  42. Hope

    Another way to reduce the pressure on people is single sign-on, or SSO. A service may let you register with its own credentials or choose an existing account, such as Google or Facebook, to sign in. This reduces the number of new passwords people must create and remember.

  43. Corey

    With SSO, you should be redirected to the actual Google or Facebook website to authenticate. Your password is not given to the third-party service. Instead, cryptographic techniques allow the identity provider to confirm that you successfully signed in and provide the third party with appropriate account information.

  44. Hope

    Password managers address the same usability problem from another direction. They can generate long, random passwords with the required mix of letters, numbers, and symbols, save those passwords, and fill them in when you return to a website. That makes unique passwords practical without requiring you to memorize dozens or hundreds of them.

  45. Corey

    Password managers can also help defend against phishing because they remember the legitimate URL associated with a credential. If you visit a fake site that merely looks like Gmail, Facebook, or PayPal but has a different address, the manager may refuse to fill in the username and password.

  46. Hope

    The major trade-off is that the password manager becomes a very important target. You need to protect it with one strong primary password—ideally long and difficult to guess—because access to the manager could expose everything stored inside. If you forget that primary password, you may also lose access to the other credentials.

  47. Corey

    That single-basket risk has to be compared with the alternative. If you currently use easy passwords, reuse the same password, or write credentials on a note or in an unprotected file, a password manager may be a substantial improvement. If you already use strong, unique, securely stored passwords everywhere, the trade-off deserves more careful personal evaluation.

  48. Hope

    Browser password storage can be helpful, but it may be tied mainly to one browser and may not provide all the features of a dedicated password manager. Password managers can synchronize securely across devices and often support additional functions for families, companies, and other shared situations.

  49. Corey

    These tools may come from third parties, but they are increasingly built into operating systems. Examples mentioned include Apple's iCloud Keychain, Google's password manager, and Microsoft's credential manager. For many people, starting with the password-management feature included with their major device ecosystem may be a practical option.

  50. Hope

    And you do not have to change every account tonight. Start with the most important ones—financial, medical, personal, or family accounts. The next time you sign in to another service, give it a unique password, save it in the manager, and enable multifactor authentication where possible.

  51. Corey

    If you can choose the second factor, prefer an authentication app or physical key over SMS when appropriate. Also remember that antivirus software still matters because malware can encrypt, delete, or misuse your data, even though it does not replace strong passwords or multifactor authentication.

  52. Hope

    The newer alternative on the horizon is the passkey. Instead of asking you to remember another password, your phone, computer, or tablet generates a mathematically related pair: a private value and a public value. The device uses them to authenticate you later, and the values can be synchronized across your devices.

  53. Corey

    Passkeys can also use a device's existing biometrics, such as a fingerprint or face, while keeping the actual authentication values out of the hands of the website. Understanding exactly how passkeys work will require cryptography, so that is a topic for our discussion of securing data.

  54. Hope

    Let's pull the episode together. Use passwords that are long, original, and unique; avoid dictionary words, predictable patterns, breached passwords, hints, and unnecessary personal details. Turn on multifactor authentication, favor stronger possession methods over SMS when possible, be cautious with devices and messages, and use tools such as SSO and password managers to make secure behavior manageable.

  55. Corey

    Exactly. Account security is not about one perfect trick. It is about raising the cost for adversaries while keeping the system usable enough that people will actually follow the protections. Take practical steps over time, protect the accounts that matter most first, and keep a healthy skepticism whenever someone—or some screen—asks for your secrets.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent