Legal and Ethical Aspects of Computing System · Lesson 7.2
Privacy and Security Threats
Recognise spam, spyware, cookies, phishing and pharming, and apply practical prevention strategies while understanding privacy, fairness and responsible information use.
01
Learning objectives
Identify the textbook threat categories: spam, spyware, cookies, phishing and pharming.
Apply privacy, consent, data-minimisation and confidentiality principles.
Recognise that bias in computing systems can cause unfair outcomes.
02
Lesson notes
Privacy concerns how personal information is collected, used, stored, shared and retained. Personal data may identify a person directly or indirectly. Data minimisation means collecting only what is needed for a clear purpose. A responsible service explains its data use, limits access, protects sensitive records and keeps information only as long as it is justified.
The textbook introduces several privacy and security threats. Spam is unwanted messaging sent through email or phones. Spyware is harmful software that secretly monitors activity or collects information. Cookies are small data files stored by websites: they can remember sessions and preferences, but some are also used to track browsing activity. Cookies are not automatically malicious; the issue is what information they store, how they are shared and whether users are informed.
Phishing is a scam in which an attacker impersonates a trusted organisation or person to trick someone into revealing passwords, payment details or other sensitive data. Pharming redirects a user to a counterfeit site even when the user intended to visit a legitimate address. The key distinction is that phishing commonly relies on deceptive messages and links, while pharming manipulates the destination or name-resolution path so the user reaches a fake site.
Prevention combines several controls. Spam filters reduce unwanted messages; antivirus or endpoint protection can detect malicious files; cookie settings let users review or remove stored tracking data. For phishing, avoid unexpected links and attachments, independently contact the organisation using a known channel, and never share one-time codes. For pharming, verify the exact domain and certificate information rather than trusting a familiar-looking page. HTTPS protects the connection but does not by itself prove that the website is the intended organisation.
The CIA security model describes confidentiality (preventing unauthorised disclosure), integrity (preventing unauthorised or accidental alteration) and availability (keeping systems usable when needed). Authentication establishes an identity; authorisation decides which actions that identity may perform. Encryption, access controls, multi-factor authentication, updates, backups and incident reporting contribute to protection.
Computing systems can reproduce unfairness when data, design choices or decision rules contain bias. A training dataset that underrepresents a group may cause a model to perform poorly for that group. Ethical evaluation asks who benefits, who may be harmed, whether decisions can be challenged and whether personal data is being used fairly. Human review and transparent limitations matter when automated systems affect people.
03
Worked code examples
Worked example
The example flags suspicious language but cannot decide whether a message is genuinely malicious. Verify the sender and destination independently.
message = "Your account will close. Verify your password now!"
suspicious_signals = ["urgent", "password", "verify", "unknown sender"]
found = [word for word in suspicious_signals if word in message.lower()]
print("Review message before acting:", found)
print("Use the organisation's known website or phone number to verify.")
Output
Review message before acting: ['urgent', 'password', 'verify']
Use the organisation's known website or phone number to verify.
04
Key terminology
Spam
Unsolicited or unwanted messages sent in bulk.
Spyware
Software that secretly monitors activity or collects information.
Cookie
A small data file stored by a website in a browser.
Phishing
Impersonation designed to trick a user into disclosing information or taking an unsafe action.
Pharming
Redirecting a user to a fraudulent destination without their knowledge.
Bias
A systematic skew that can create unfair results or decisions.
Data minimisation
Collecting only the information necessary for a defined purpose.
05
Common misconceptions
Common mistake
All browser cookies are spyware.
Correct understanding
Cookies can support sessions and preferences; privacy risk depends on their contents, purpose and sharing.
Common mistake
HTTPS proves a website is the real bank or service.
Correct understanding
HTTPS protects the connection to a domain; users must still verify that the domain itself is genuine.
Common mistake
A model is fair simply because a computer made the decision.
Correct understanding
Data and design choices can encode bias; automated outcomes still require evaluation and accountability.
06
Check your understanding
1. What is the key difference between phishing and pharming?
2. Which item is not automatically malicious?
3. Which control is most directly useful against bulk unwanted email?