Safe
Computing
Understand the risks of digital life and learn to protect your personal data, privacy, and security in an interconnected world.
What Is Safe Computing?
Safe computing is the practice of protecting yourself, your data, and your systems from unauthorized access, exploitation, and harm. As more of our lives move online, understanding security fundamentals is critical for every person and every programmer.
Key Definitions
The Threat Landscape
Encryption: The Core Defense
Multi-Factor Authentication
Authentication verifies identity. Multi-factor authentication (MFA) requires at least two different types of evidence from distinct categories:
Phishing vs Malware
| Phishing | Malware | |
|---|---|---|
| Method | Social engineering: tricks users into revealing data | Malicious software installed on a system |
| Vector | Fake emails, websites, messages | Downloads, attachments, infected sites |
| Target | Human judgment | System vulnerabilities |
| Defense | Education, verifying URLs, skepticism | Antivirus, updates, firewalls |
| Examples | Spear phishing, vishing | Ransomware, keylogger, trojan |
Password Strength
The number of possible passwords grows exponentially. If a character set has \(n\) options and the password is \(k\) characters long, the number of combinations is:
HTTP vs HTTPS
Your Digital Footprint
Every online action creates a digital footprint: a trail of data that can be collected, analyzed, and monetized. This includes both your active contributions and passive traces.
How to Stay Safe
Example: Spotting a Phishing Email
A familiar-looking campus message crosses a trust boundary
A familiar logo or urgent message does not establish the sender’s identity. Use a separately trusted route to reach the service and report suspicious requests.Check the destination independently
In this campus-message example, portal-check.example is the destination to inspect. Reach the campus service through a separate trusted route; encryption to a site does not identify the message sender.Example: Certificate Verification
When you visit an HTTPS site, your browser verifies the server's digital certificate. Here is the trust chain:
Example: Data Breach Impact
A company stores user data. When breached, the impact depends on what was encrypted. Consider two scenarios:
Common Mistakes
Summary: Threats and Defenses
| Threat | What It Does | Defense |
|---|---|---|
| Phishing | Tricks users into revealing credentials | Verify URLs, MFA |
| Malware | Damages or spies on your system | Antivirus, updates |
| Data Breach | Exposes stored PII to attackers | Encryption, hashing |
| Rogue Wi-Fi | Intercepts unencrypted traffic | HTTPS, VPN |
| Keylogger | Records every keystroke | MFA, on-screen keyboards |
| Credential Stuffing | Uses leaked passwords on other sites | Unique passwords, MFA |
Question 1 of 5
Which of the following is the best example of multi-factor authentication?
Question 2 of 5
A user visits a website and notices the URL begins with http:// instead of https://. What risk does this create?
Question 3 of 5
A company stores passwords by applying a hash function with a unique salt for each user. What is the primary benefit of adding a salt?
Question 4 of 5
Which of the following is an example of personally identifiable information (PII) that could be used to steal someone's identity?
Question 5 of 5
Scenario: A school district stores student records in a database. An employee accidentally sends a spreadsheet containing student names, addresses, grades, and parent Social Security numbers to the wrong email recipient. The district later learns the recipient forwarded the file to others.
Which of the following best describes the primary security concern in this scenario?