AP Computer Science Principles · Study guide

Big Idea 5: Legal, Ethical & Safe Computing

Big Idea 5 · Impact of Computing · Part 2 of 2

Legal, Ethical &
Safe Computing

Copyright vs. Creative Commons, PII and metadata aggregation, symmetric vs. public-key encryption, and every attack type the exam tests.

Exam-day recap
  • Copyright gives the creator exclusive rights to copy, distribute, modify, and display a work; even giving credit doesn't make use legal.
  • Creative Commons keeps copyright but grants specific permissions in advance, such as free to share with attribution.
  • Plagiarism is presenting someone else's work as your own; it is separate from copyright violation.
  • PII is any information that can identify a specific individual: name, address, phone, SSN, date of birth, biometrics, credentials.
  • Individual metadata may seem harmless, but aggregation — combining many pieces — can reveal sensitive information.
  • Symmetric encryption uses one shared secret key to encrypt and decrypt; both parties must already have the key.
  • Public-key encryption: the public key encrypts and only the matching private key decrypts, with no shared secret needed.
  • A certificate authority is a trusted third party that verifies a public key belongs to the claimed owner.
  • A strong password is easy for the user to remember but hard for others to guess based on knowledge of that user.
  • Multifactor authentication requires at least two steps before access, so a stolen password alone is not enough.

§1 Intellectual Property and Copyright

Intellectual property (IP) is a creative work that legally belongs to its creator. Copyright gives the creator exclusive rights to copy, distribute, modify, and display the work. Using copyrighted material without permission can be illegal — even giving credit doesn't automatically make it legal.

1.1 License Types

LicenseWhat it means
Copyright (default)All rights reserved. Others must get permission.
Creative CommonsCreator keeps copyright but grants specific permissions in advance (e.g., "free to share with attribution").
Open sourceSource code is publicly available; others can use, modify, and distribute.
Public domainNo copyright. Anyone can use for any purpose.
Key idea

Creative Commons = creator wants sharing or remixing. Copyright = creator wants to control all use. The exam tests which is appropriate for a given scenario.

1.2 Plagiarism

Plagiarism is presenting someone else's work as your own. It is separate from copyright: you can plagiarize public-domain work (ethical violation, not illegal) and you can violate copyright while properly citing (illegal, but not plagiarism).

§2 Safe Computing — Privacy

2.1 PII (Personally Identifiable Information)

PII is any information that can identify a specific individual: name, address, phone, SSN, date of birth, biometrics, account credentials.

2.2 Metadata and Aggregation

Metadata is data about data (timestamp, location, device info). Individual metadata may seem harmless, but aggregation — combining many pieces — can reveal sensitive information.

Individual data points
  • Photo timestamps
  • GPS coordinates
  • Browsing history
  • Purchase records
After aggregation
  • Daily routine
  • Home address, workplace
  • Health conditions
  • Political beliefs
Common pitfall

"It's just metadata" is not a defense. Aggregation is the central privacy risk on the exam. Each data point may be harmless; combining them is what's dangerous.

2.3 Cookies and Tracking

Cookies are small files websites store on your device (login, preferences, cart). Third-party cookies track users across many websites, building advertising profiles.

§3 Safe Computing — Security

3.1 Authentication

Multifactor authentication (MFA) combines two or more of:

  • Something you know (password, PIN)
  • Something you have (phone, security key)
  • Something you are (fingerprint, face)

3.2 Encryption

Symmetric Encryption

One shared secret key encrypts AND decrypts.

Both parties must already have the key.

Public-Key Encryption

Public key encrypts; only matching private key decrypts.

No shared secret needed. Private key is never shared.

Definition · Certificate Authorities

A certificate authority (CA) is a trusted third party that verifies a public key belongs to the claimed owner. CAs make HTTPS trustworthy — without them, anyone could publish a fake public key.

3.3 Common Attacks

AttackWhat it is
PhishingTricking users into giving credentials by impersonating a trusted source (fake email, fake login).
KeyloggingSoftware that records every keystroke, capturing passwords.
Rogue access pointUnauthorized wireless router that lets attackers intercept traffic.
MalwareAny malicious software (spyware, ransomware, trojans).
VirusMalware that spreads by attaching to other programs or files.
DDoSMany computers flood a target with requests to overwhelm it.
Brute forceTrying many possible passwords until one works.

§4 Exam Patterns

4.1 "Which is most likely a privacy concern?"

Look for answers about collecting, aggregating, or exposing personal information — especially metadata combined across sources. Technical performance answers are usually wrong.

4.2 "Symmetric vs. public-key?"

Same shared secret key = symmetric. Two different keys (public + private) = public-key. Substitution ciphers are symmetric; HTTPS uses public-key.

4.3 "Which attack matches this scenario?"

Match the mechanism, not the harm. Phishing tricks the user; keylogging captures keystrokes; DDoS overwhelms a server; rogue access points intercept traffic.

4.4 "Creative Commons vs. copyright?"

Creator wants sharing/remixing → Creative Commons. Creator wants to restrict use → copyright.

§5 What Gets Collected, and How

Privacy questions on the exam are rarely about hacking. They are about the ordinary, invisible, entirely legal collection that happens as you use a system — and what becomes possible once those records exist.

Search enginescan record and keep a history of every search a user makes
Websitescan record and keep a history of who viewed which pages
Devices, sites and networkscan collect a user's location
Everything togethertechnology enables the collection, use and exploitation of information about individuals, groups and institutions
Trap · each piece looks harmless

The exam's favorite move is to give you several innocuous records — a search, a page view, a timestamp, a rough location — and ask what the privacy concern is. The answer is almost always about combining them: separately they identify nobody, together they identify one person and where they were.

5.1 Data you hand over without deciding to

A user consents to the obvious collection — the account, the profile, the post. The harder cases are the ones that come along for free: the search terms behind a result, the pages visited before a purchase, the location attached to a photo. A well-designed system asks for the least it needs, keeps it for the shortest time that serves a purpose, and lets the user see and delete it.

The question that identifies the right answer

For any collected field, ask: what feature actually requires this, and for how long? An option justifying collection by "it might be useful later" is describing the problem, not a safeguard.

§6 Passwords, Properly

The framework's definition is precise and worth memorizing: a strong password is easy for the user to remember but difficult for someone else to guess based on knowledge of that user.

Why "based on knowledge of the user" matters

That clause is where most wrong answers live. A password built from a birthday, a pet's name, a school or a favorite team is weak no matter how many characters or symbols it contains, because the attacker who cares about you already knows those things. Length and variety help against a stranger guessing blindly; unpredictability is what helps against someone who knows you.

Strongmemorable to you, unrelated to facts anyone could look up about you, not reused elsewhere
Weak despite looking complexa personal detail with substitutions — the pattern is guessable once the detail is known
Multifactor authenticationat least two steps before access is granted; each step is an additional layer an attacker must defeat, so a stolen password alone is not enough
Trap · "more characters" is not the answer

When a question asks which password is strongest, check for a personal connection first. A shorter unrelated password beats a longer one built from the user's own life.

§7 Key Terms

TermDefinition
AggregationCombining individually harmless data to reveal sensitive info
AuthenticationVerifying a user is who they claim to be
Certificate authorityTrusted third party verifying ownership of public keys
CookieSmall file a website stores on a user's device
CopyrightLegal protection giving a creator exclusive rights
Creative CommonsLicense granting others specific permissions to use a work
EncryptionTransforming data so only authorized parties can read it
MetadataData about data (timestamp, location, etc.)
PIIPersonally Identifiable Information
PhishingTricking users into revealing credentials
Public domainWorks without copyright; free for any use

§8 Self-Check

  1. A musician wants others to freely remix and share their song with credit. Which license type?
  2. Why can metadata be a privacy concern even when message content is encrypted?
  3. In public-key encryption, why is it safe to share the public key openly?
  4. A user gets an email that looks like it's from their bank, with a link to a fake login page. What attack is this?
  5. What is the difference between plagiarism and copyright violation?
Show Answers
  1. Creative Commons with attribution. Traditional copyright would restrict the sharing the musician wants.
  2. Metadata reveals who communicates with whom, when, how often, and from where. Aggregating these over time reveals daily routines, relationships, and habits — even without reading the messages.
  3. The public key can only encrypt, not decrypt. Only the matching private key (never shared) can decrypt. Sharing the public key gives attackers no useful ability.
  4. Phishing. The attacker tricked the user into entering credentials on a fake site by impersonating a trusted source.
  5. Plagiarism = presenting someone else's work as your own (ethical violation). Copyright violation = using copyrighted work without permission (legal violation). They are independent — you can have one without the other.