Preventive and Corrective Measures
One Sunday, Ximena gets an email: "Your account appears in a data breach." She uses the same password for her email, her video game, and her bank app. Is she in trouble? Knowing the threats is not enough: you have to get ready before they arrive and know how to react when something fails. At the end of the page we come back to Ximena's case.
Strong passwords
An example with numbers: a 4-digit PIN has $10^4 = 10{,}000$ combinations; a 6-digit one has $10^6 = 1{,}000{,}000$, which is 100 times more. If a program tried 1,000 combinations per second, the first would fall in 10 seconds at most and the second in about 1,000 seconds (a little over 16 minutes).
Another defense is lockout after failed attempts: after a few mistakes, the cell phone or the ATM locks or makes you wait. That way an attacker cannot try thousands of PINs per second, and a short PIN becomes a reasonable defense.
Security questions ("What is your first pet's name?") are a weak link: if the answer is on your social media, anyone can find it. One strategy is to answer with an invented phrase that has no relation to the question and save it in your password manager.
Rank these three passwords from lowest to highest security and explain the criteria you used: 'luna2024', 'Tr3s!TristesTigres', '123456'.
Rank these three passwords from lowest to highest security and explain the criteria you used: 'luna2024', 'Tr3s!TristesTigres', '123456'.
What personal data should never appear in a password (your year of birth, your pet's name, your soccer team)? Explain why these are precisely the first things tested by…
What personal data should never appear in a password (your year of birth, your pet's name, your soccer team)? Explain why these are precisely the first things tested by an attacker who knows you or researches you on social media.
A four-digit PIN allows $10^4$ possible combinations. Calculate how many combinations a six-digit PIN allows and, if a program tests $1,000$ combinations per second,…
A four-digit PIN allows $10^4$ possible combinations. Calculate how many combinations a six-digit PIN allows and, if a program tests $1,000$ combinations per second, estimate the maximum time it would take to crack each one. What conclusion do you draw about adding characters to a password?
Length versus alphabet
Compare two 8-character passwords: one with only lowercase letters ($26^8$) and another with about 70 symbols ($70^8$). To see how much more resistant the second one is without calculating the exact value, use powers of ten: $26^8 \approx 2 \times 10^{11}$ and $70^8 \approx 6 \times 10^{14}$. The quotient is about $3{,}000$ times (on the order of $10^3$).
The figure compares the estimated strength of two passwords. State which of the two is stronger, explain what features make it strong, and explain what decryption time…
The figure compares the estimated strength of two passwords.
State which of the two is stronger, explain what features make it strong, and explain what decryption time would fill the gap marked with ? by comparison.
Explain what lockout after failed attempts is on a cell phone or ATM and how it turns a four-digit PIN into reasonable defense even though there are few possible…
Explain what lockout after failed attempts is on a cell phone or ATM and how it turns a four-digit PIN into reasonable defense even though there are few possible combinations.
Compare these two passwords: 'X7#k9', five very unusual characters, and 'casa verde luna rio', a long passphrase of common words. Explain what matters more in a…
Compare these two passwords: 'X7#k9', five very unusual characters, and 'casa verde luna rio', a long passphrase of common words. Explain what matters more in a password's strength — length or character complexity —, which one you would remember better, and what type of attack each one is vulnerable to.
An eight-character password uses lowercase letters only, that is, an alphabet of $26$ symbols; another password of the same length uses uppercase letters, lowercase…
An eight-character password uses lowercase letters only, that is, an alphabet of $26$ symbols; another password of the same length uses uppercase letters, lowercase letters, digits, and symbols, an alphabet of about $70$ symbols. Write the possible combinations for each as powers, $26^8$ and $70^8$, and, without calculating the exact value, use powers of ten to explain how many times stronger the second one is. What offers better protection: lengthening the password or expanding the alphabet?
Password managers and email as the key account
There are free and open-source managers (such as KeePassXC or Bitwarden), useful if you prefer not to depend on a company. If a friend keeps his passwords in an unlocked note on his cell phone, anyone who picks up the device can read them all; the manager, in contrast, encrypts them and requires the master password. Its weak point is that this password cannot be lost or shared.
The figure explains how a password manager works. Explain what the safe marked with ? represents, the advantage of memorising a single master password compared to…
The figure explains how a password manager works.
Explain what the safe marked with ? represents, the advantage of memorising a single master password compared to repeating the same password everywhere, and what special precaution that master password requires.
Why is email said to be the most important account you must protect? Explain what an attacker controlling your email could do to all your other accounts, thinking about…
Why is email said to be the most important account you must protect? Explain what an attacker controlling your email could do to all your other accounts, thinking about the 'forgot my password' button.
Comment on this practice: 'I write my password on a piece of paper stuck under the keyboard; after all, it's not digital'. Assess its real risk and suggest two safer…
Comment on this practice: 'I write my password on a piece of paper stuck under the keyboard; after all, it's not digital'. Assess its real risk and suggest two safer alternatives to avoid forgetting important passwords.
A friend keeps all their passwords in an unlocked note on their cell phone 'because using a password manager is too much effort'. Compare both risks (unencrypted note vs…
A friend keeps all their passwords in an unlocked note on their cell phone 'because using a password manager is too much effort'. Compare both risks (unencrypted note vs manager with a master password), explain what each option protects and does not protect, and write the advice you would give them.
Two-step verification
It works because an attacker who steals your password (through a breach or through phishing) still needs your cell phone or your fingerprint, which are physically with you.
Where should you turn it on first? Prioritize according to the damage that losing the account would cause: 1) email (it opens all the others), 2) bank and payments, 3) social media and the school platform, 4) video games. Putting maximum security on everything is tiring and gets abandoned; the sensible thing is to protect most what hurts most to lose.
Explain what two-step verification is and why it protects your account even if someone manages to steal your password.
Explain what two-step verification is and why it protects your account even if someone manages to steal your password.
Fingerprint and facial recognition unlock your cell phone without typing anything. Analyze whether biometrics replaces or complements a password, what problem arises if…
Fingerprint and facial recognition unlock your cell phone without typing anything. Analyze whether biometrics replaces or complements a password, what problem arises if a fingerprint database is leaked (you cannot change your fingers) and why robust systems combine several factors.
Prioritize this list of accounts to activate two-step verification, from essential to dispensable, and justify your criteria: email, bank, favorite video game, social…
Prioritize this list of accounts to activate two-step verification, from essential to dispensable, and justify your criteria: email, bank, favorite video game, social network, school platform. Finish by reflecting on whether it makes sense to apply maximum security to everything.
Updates and layers of security
Public wifi networks. On the free wifi at a cafe, another person can spy on the traffic or create a fake network with a similar name. Precautions: only visit pages with https, use a VPN or your cell phone's data, and avoid sensitive operations (banking, purchases, password changes) from there.
Logging in with another account ("Sign in with Google"): pay attention to the permissions. If a photo-editing app asks to "view, edit, and delete your Drive files," it violates the principle of least privilege (giving only the access that is needed). In addition, using a single account as the key to twenty services creates a single point of failure: if it falls, they all fall.
Your cell phone has been warning you about a system update for months and you always press 'later'. Explain what specific risk you are accepting and the relationship…
Your cell phone has been warning you about a system update for months and you always press 'later'. Explain what specific risk you are accepting and the relationship between updates and security vulnerabilities that are already publicly known.
You are connected to the free Wi-Fi in a coffee shop and need to check your bank account. Explain the risks of a public Wi-Fi network, what technical precautions make it…
You are connected to the free Wi-Fi in a coffee shop and need to check your bank account. Explain the risks of a public Wi-Fi network, what technical precautions make it safer (HTTPS, VPN, using cellular data), and what operations are best never performed over it.
An acquaintance states: "I have very powerful paid antivirus software installed, so I don't care about using a simple password across all my accounts, and I don't need…
An acquaintance states: "I have very powerful paid antivirus software installed, so I don't care about using a simple password across all my accounts, and I don't need to waste time installing operating system updates."
- a) Predict in detail an attack scenario in which a cybercriminal takes control of their computer or their personal accounts without the antivirus ever triggering an alert (for example, via an unpatched system vulnerability or through brute force and social engineering).
- b) Justify, using the defence-in-depth principle, why a single security mechanism is never enough, explaining how three different defensive layers (system updates, authentication, and active protection) must complement each other to neutralise the threat if one of them fails.
When signing up for a free web-based image editing application, the platform offers you to click on "Sign in with Google". Before logging in, a window asks you to…
When signing up for a free web-based image editing application, the platform offers you to click on "Sign in with Google". Before logging in, a window asks you to authorise access to your name and email, but it also requests permissions to "View, edit, and delete your Google Drive files".
- a) Interpret the requested permissions and justify why granting them constitutes a violation of the principle of least privilege in this specific case.
- b) Analyse the risk of a "single point of failure" for a user who relies on their Google account as the login key for more than twenty different online services. Predict the immediate consequences if their main account is compromised, and design a three-step procedure to periodically audit and revoke accesses.
What to do when something has already gone wrong
If a service warns of "a login from another country," the order is similar: confirm whether it was you (for example, with a VPN); if not, change the password from a trusted device, close the unknown sessions, and turn on two-step verification. Do not use the link in the notice if you have doubts: go in by typing the address yourself, in case the notice is phishing.
A password policy for an organization (for example, a sports club with data on minors) applies everything above: a minimum length of 12 characters or more, mandatory two-step verification for coaches and board members, one personal account per user instead of a shared one (or, if it is indispensable, a shared account whose password is kept in a manager and changed when someone leaves), and simple guides for the less experienced families.
Back to the beginning: Ximena must change the repeated password on every service (starting with email and bank), close strange sessions, turn on two-step verification, and use a manager so she has a different password for each account.
A social network suffers a data breach and your email appears in the list of affected accounts. Describe step by step and in order what you would do from that moment on:…
A social network suffers a data breach and your email appears in the list of affected accounts. Describe step by step and in order what you would do from that moment on: which passwords to change, what to check in other accounts, and what additional protection to activate.
A service alerts you: 'a login from another country has been detected'. Describe step by step and in order what you would do upon receiving this alert: how to confirm if…
A service alerts you: 'a login from another country has been detected'. Describe step by step and in order what you would do upon receiving this alert: how to confirm if it was you, which credentials to change, where to check active sessions, and what protection to activate afterwards.
Explain what security questions are ('what is the name of your first pet?'), why they are a weak link if the answers can be found on your social media, and what strategy…
Explain what security questions are ('what is the name of your first pet?'), why they are a weak link if the answers can be found on your social media, and what strategy you can use when answering them without forgetting them later.
After the database containing emails and passwords of an online clothing store is leaked, several customers suffer unauthorized access to their bank and email accounts,…
After the database containing emails and passwords of an online clothing store is leaked, several customers suffer unauthorized access to their bank and email accounts, even though those entities did not experience any security breach.
- a) Justify the automated technical procedure used by attackers to break into the other accounts using the leaked data, explaining why a long and complex password ceases to be secure as soon as it is reused.
- b) An affected user states: "Just by changing the password of the hacked clothing store, I'm already safe". Rebut their statement by predicting the real risks to which they remain exposed, and design a three-step immediate response protocol to protect their digital identity.
A family stores 400 GB of irreplaceable photos and official documents on their desktop computer. As a precaution, they keep a weekly backup on an external USB hard drive…
A family stores 400 GB of irreplaceable photos and official documents on their desktop computer. As a precaution, they keep a weekly backup on an external USB hard drive that they leave permanently connected to the computer.
- a) Justify why this measure is insufficient against two specific threats: a ransomware attack and an electrical power surge in the home.
- b) Design an effective backup strategy applying the 3-2-1 rule adapted to this family: specify which media to use, where the copies should be physically located, and how often they should be updated, justifying each technical decision.
Design a password policy for the website of a sports club storing data on minors: minimum length, two-step verification for coaches and managers, what to do with shared…
Design a password policy for the website of a sports club storing data on minors: minimum length, two-step verification for coaches and managers, what to do with shared team accounts, and how to help less tech-savvy families comply with it.