Unit 2 of 4 · B.Sc IT Sem 5

Unit 2: Security threats and vulnerabilities

Information Security notes · PTU syllabus (BSIT501)

5 min read9 topics10 exam questions
On this page
  1. Unit summary
  2. Intruders
  3. Malicious software
  4. Desktop security
  5. Email security: PGP and S/MIME
  6. Web security: authentication, SSL and SET
  7. SSL and TLS
  8. Database security
  9. Firewalls: overview and types
  10. Firewall design principles
  11. Key terms
  12. Quick revision
  13. Important questions

Unit summary

Attackers exploit people, software and networks. This unit covers intruders, malicious software, viruses and related threats, desktop security, email security with PGP and S/MIME, web security — authentication, SSL and SET — database security, and firewall design principles and types.

After this unit you can

  • Classify intruders and malicious software
  • Explain desktop and email security
  • Explain web and database security
  • Explain firewall design principles and types

PTU syllabus topics

  • Intruders
  • malicious software
  • viruses and related threats
  • desktop security
  • email security (PGP and S/MIME)
  • web security (authentication, SSL, SET)
  • database security
  • firewall overview/design principles/types
1

Topic 1

Intruders

Key termsClasses of intruders
Masquerader
Outsider using a legitimate user's account
Misfeasor
Insider who misuses access or accesses data not authorised
Clandestine user
Seizes supervisory control to evade auditing
  • Intrusion techniques: password guessing and cracking, phishing, exploiting unpatched software, sniffing, privilege escalation. Defences: strong password policies, salted password hashing, account lockout, MFA, monitoring.

Example

Three intruders: an outsider who steals a lecturer's password and logs in is a masquerader; a staff member who views salary files they are not allowed to see is a misfeasor; an attacker who gains admin rights and switches off audit logs is a clandestine user.

Exam tip

Intrusion detection looks for patterns of each type.

2

Topic 2

Malicious software

ComparisonMalware types
How it works
Example

Virus

Attaches to a host program and spreads when it runs

File infectors, macro viruses

Worm

Self-replicates across networks without a host

WannaCry (2017)

Trojan horse

Pretends to be useful but hides malicious code

Fake app installers

Ransomware

Encrypts data and demands payment

LockBit, WannaCry

Spyware and keyloggers

Secretly collect information

Banking credential stealers

Rootkit and backdoor

Hide presence; give hidden access

Kernel rootkits

Logic bomb

Triggers on a condition or date

Code deleting files on a set date

ProcessPhases of a virus
  1. 1Dormant

    Idle, waiting

  2. 2Propagation

    Copies itself into other programs

  3. 3Triggering

    Activated by an event

  4. 4Execution

    Performs its payload

  • Virus types: boot sector, file infector, macro, polymorphic (changes code with each infection), stealth, metamorphic.
  • Countermeasures: antivirus and EDR (signature, heuristic and behaviour-based detection), patching, least privilege, backups, user awareness.

Example

Ransomware attack: an employee opens a fake invoice attachment; malware encrypts files on the shared drive and demands payment. Offline backups let the organisation restore files without paying.

Exam tip

Defences: updates, antivirus, email filtering, least privilege, user training and offline backups.

3

Topic 3

Desktop security

  • Keep the OS and applications updated; use antivirus and a personal firewall; standard (non-admin) user accounts; strong passwords and screen locks; full-disk encryption (BitLocker); disable autorun; download only from trusted sources; back up regularly.

Example

Securing a lab PC: students log in with standard accounts (no admin rights), automatic updates are on, antivirus scans USB drives, and the screen locks after 5 minutes of inactivity.

Exam tip

Use standard user accounts for daily work — admin rights let malware do more damage.

4

Topic 4

Email security: PGP and S/MIME

PGP (Pretty Good Privacy) and S/MIME both use public-key cryptography to provide confidentiality (encryption), authentication and integrity (digital signatures). PGP uses a web of trust; S/MIME uses certificates from certificate authorities.

  • Threats: phishing, spoofing, malware attachments, interception. Email needs confidentiality, authentication, integrity and non-repudiation.
ProcessPGP operation
  1. 1Sign

    Hash the message (SHA) and encrypt the hash with the sender's private key

  2. 2Compress

    ZIP compression

  3. 3Encrypt

    Encrypt with a one-time session key (symmetric)

  4. 4Protect the key

    Encrypt the session key with the receiver's public key

  5. 5Encode

    Radix-64 for email compatibility

ComparisonPGP and S/MIME
PGP
S/MIME

Developed by

Phil Zimmermann (1991)

RSA Data Security; IETF standard

Trust model

Web of trust — users sign each other's keys

Hierarchical X.509 certificates from CAs

Use

Individuals, open-source community

Organisations, built into Outlook and Apple Mail

Services

Signature, encryption, compression, compatibility

Signed and enveloped data

  • Domain protections: SPF, DKIM and DMARC records help receiving servers reject spoofed email.

Example

Signing and encrypting: Asha signs her email with her private key and encrypts it with Ravi's public key. Only Ravi can decrypt it with his private key, and he verifies her signature with her public key.

Exam tip

PGP = web of trust, popular with individuals; S/MIME = CA certificates, common in organisations.

5

Topic 5

Web security: authentication, SSL and SET

SET (Secure Electronic Transaction) was a protocol developed by Visa and Mastercard to protect card payments online using dual signatures, so the merchant does not see card details and the bank does not see order details. It was not widely adopted and was replaced by SSL/TLS-based payment gateways.

  • Web authentication: passwords with hashing, MFA (OTP, authenticator apps), session tokens and cookies with secure flags, OAuth single sign-on.

Example

Securing a login: the site stores passwords as salted hashes, sends the login form over HTTPS, and asks for an OTP as a second factor — so a stolen password alone is not enough.

Exam tip

Remember the dual signature idea in SET — a classic exam question.

6

Topic 6

SSL and TLS

  • HTTP transfers web pages in plain text; HTTPS adds TLS (successor of SSL) to encrypt traffic and authenticate the server.
ProcessTLS handshake (simplified)
  1. 1Client hello

    Supported versions and ciphers

  2. 2Server hello and certificate
  3. 3Client verifies certificate with a trusted CA
  4. 4Key exchange

    Session key agreed

  5. 5Encrypted session

    Symmetric encryption of data

  • The browser padlock shows a valid certificate; TLS 1.2 and 1.3 are current versions.
  • SSL protocol stack: SSL Record Protocol (fragment, compress, MAC, encrypt) with Handshake, Change Cipher Spec and Alert protocols above it. SSL is obsolete; TLS 1.2 and 1.3 are used today.
  • SET (Secure Electronic Transaction): a protocol by Visa and MasterCard (1996) to secure card payments using certificates for cardholder, merchant and payment gateway. Its dual signature links the order information (seen by the merchant) and payment information (seen by the bank) so neither sees the other's details. SET was too complex and was replaced by TLS-based payment gateways and 3-D Secure.
  • Web attacks: SQL injection, cross-site scripting (XSS), cross-site request forgery (CSRF); defended by input validation, prepared statements, output encoding and CSRF tokens.

Example

The padlock in the browser: when a student opens an HTTPS fee-payment page, the server presents its certificate, the browser verifies it, both agree on session keys, and all data — including card details — is encrypted in transit.

Exam tip

TLS handshake: hello messages → certificate → key exchange → encrypted session.

7

Topic 7

Database security

  • Threats: SQL injection, excessive privileges, weak authentication, unencrypted backups, inference attacks on statistical databases.
  • Controls: authentication, GRANT and REVOKE privileges, views to hide sensitive columns, encryption (TDE), auditing, data masking, regular patching and backups.

Example

SQL injection: a login query built as SELECT * FROM users WHERE name = ' + input + ' can be fooled by entering ' OR '1'='1, which returns all users. Using parameterised queries prevents this.

Exam tip

Controls: least privilege, parameterised queries, encryption, auditing and secure backups.

8

Topic 8

Firewalls: overview and types

Firewall types include packet-filtering (checks headers — IP, port), stateful inspection (tracks connections), application-level gateways (proxies), circuit-level gateways and next-generation firewalls. A firewall is a hardware or software system that monitors and controls incoming and outgoing network traffic based on security rules, separating trusted internal networks from untrusted ones.

ClassificationFirewall components and types
Firewalls
  • Packet-filtering router

    Checks IP addresses, ports, protocols

  • Stateful inspection

    Tracks connection states

  • Application (proxy) gateway

    Inspects application-level traffic

  • Circuit-level gateway

    Validates TCP sessions

  • Next-generation firewall

    Deep packet inspection, intrusion prevention, application awareness

  • DMZ (screened subnet)

    Hosts public servers between two firewalls

  • Functionality: access control, logging and auditing, NAT (hiding internal addresses), VPN support, content filtering, alerts.
  • Design factors: security policy (default deny), network architecture (DMZ), performance and scalability, redundancy, ease of management, cost, regular updating and monitoring; firewalls do not stop insider threats or malware in permitted traffic — layered security is needed.

Example

A packet-filtering rule: allow incoming traffic to port 443 (HTTPS) on the web server; block all other incoming ports. Attempts to connect to port 23 (Telnet) from outside are dropped.

Exam tip

Packet filters are fast but cannot inspect content; application gateways inspect content but are slower.

9

Topic 9

Firewall design principles

Key termsFirewall design principles
Single choke point
All traffic between inside and outside must pass through the firewall
Authorised traffic only
Only traffic allowed by the security policy passes
Immune to penetration
The firewall itself is hardened
Default deny
Block everything not explicitly allowed
Defence in depth
Combine with IDS, antivirus and host firewalls
ComparisonFirewall configurations
Structure
Security

Screened host

Packet-filtering router plus a bastion host

Moderate

Dual-homed bastion host

Bastion host with two network cards, no direct routing

Higher

Screened subnet (DMZ)

Two routers with public servers in between

Highest — common choice

Example

A DMZ design: the college web server sits in a demilitarised zone between two firewalls. The public can reach the website, but not the internal network that holds student records.

Exam tip

Default-deny: block everything, then allow only what is needed.

Key terms

Masquerader
Outsider using a legitimate user's identity
Worm
Self-replicating malware spreading over networks
PGP
Email security program using a web of trust
SET
Card payment protocol using dual signatures
Bastion host
Hardened system exposed to the internet

Quick revision

  • Masquerader, misfeasor, clandestine user.
  • Virus, worm, trojan, ransomware, spyware, rootkit, logic bomb; virus phases and types.
  • Desktop security practices.
  • PGP operations; S/MIME; SPF, DKIM, DMARC.
  • SSL/TLS, SET dual signature; web attacks; database security; firewall principles and configurations.

Important exam questions

Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).

Short-answer questions

  1. Q1.Distinguish a virus and a worm.
  2. Q2.What is a polymorphic virus?
  3. Q3.State the services provided by PGP.
  4. Q4.What is a dual signature in SET?
  5. Q5.Name two database security controls.
  6. Q6.What is a DMZ?

Long-answer questions

  1. Q1.Explain intruders and types of malicious software.
  2. Q2.Explain email security with PGP and S/MIME.
  3. Q3.Explain web security with SSL and SET.
  4. Q4.Explain firewall design principles and types.

Stuck on this unit?

Message SBS on WhatsApp for help with Information Security, or to ask about studying B.Sc IT at Synetic.

WhatsApp us