CS627 – Computer Vision & Pattern Recognition: Midterm Important Subjective (38 Solved Q&As)
Computer Science • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · CS627 Course Page · CS627 MCQ Pack (232 MCQs)
-
Define cyber security. How does it differ from information security?
Topic: Introduction to Cyber Security
Cyber security (computer security or IT security) is the protection of computer systems from the theft of or damage to their hardware, software, or electronic data, as well as from the disruption or misdirection of the services they provide. Information security (InfoSec) is the practice of protecting information by mitigating information risks, and it covers information assets in both physical and digital format. The main difference is that cyber security protects data that exists in digital/electronic form in the cyber realm from unauthorized access and cyber threats such as phishing and data breaches, whereas information security is the broader foundation of data security that safeguards all information assets, in physical and digital form, protecting their confidentiality, integrity and availability.
-
What is identity theft? Write any three common red flags of identity theft scams.
Topic: Introduction to Cyber Security
Identity theft is the stealing of a person's personal information by criminals, who interact directly with consumers through methods such as robocalls and phishing emails in order to steal their information. Three common red flags to watch for are: (1) unsolicited calls or emails, (2) high-pressure tactics, and (3) outdated passwords.
-
What does AAA stand for? Explain each of its components briefly.
Topic: User Authentication, AAA and IAM
AAA stands for Authentication, Authorization and Accounting. It is a framework for intelligently controlling access to systems and resources, enforcing policies and auditing usage. Authentication verifies the identity of a user who wants to access a system. Authorization determines what an authenticated user is allowed to do, i.e. the user's privileges and access rights. Accounting measures the resources a user consumes during access, so usage can be audited.
-
Differentiate between AAA and IAM.
Topic: User Authentication, AAA and IAM
AAA (Authentication, Authorization and Accounting) is a general term that refers to a set of security processes that control access to computer resources, and AAA servers are primarily used for network infrastructure. IAM (Identity and Access Management) is a specific set of technologies and policies used to manage access to an organization's IT resources, and IAM systems are used for managing access to enterprise applications and data. IAM ensures that the right people and things have the right access to the right resources at the right time.
-
Explain the four means of authenticating user identity with examples.
Topic: User Authentication, AAA and IAM
The four means of authenticating user identity are: (1) Something the individual knows, e.g. a password, PIN, or answers to prearranged questions. (2) Something the individual possesses (a token), e.g. a smartcard, electronic keycard or physical key. (3) Something the individual is (static biometrics), e.g. fingerprint, retina and face. (4) Something the individual does (dynamic biometrics), e.g. voice pattern, handwriting and typing rhythm.
-
Differentiate between password hacking and password cracking.
Topic: Password-Based Authentication and Password Attacks
Password hacking refers to gaining unauthorized access to a system; in hacking, the original password is usually changed. Password cracking is the process of attempting to recover a password; in cracking, the original password is usually NOT changed.
-
Explain the brute force attack, offline dictionary attack and rainbow table attack on passwords.
Topic: Password-Based Authentication and Password Attacks
In a brute force attack, the attacker tries all possible passwords until the correct one is found. In an offline dictionary attack, the attacker compares the password hashes stored in a password file against the hashes of commonly used passwords taken from a dictionary of common passwords; if a hash matches, the password is known. In a rainbow table attack, the attacker uses precomputed tables containing the hash values of ALL possible passwords, and matches the target's password hash against the table to recover the password.
-
Write any four password selection strategies. What is the goal of these strategies?
Topic: Password-Based Authentication and Password Attacks
Four password selection strategies are: (1) User education - users are told the importance of using hard-to-guess passwords and are provided with guidelines for selecting strong passwords. (2) Computer-generated passwords - the system generates passwords for users, although users have trouble remembering them. (3) Reactive password checking - the system periodically runs its own password cracker to find guessable passwords. (4) Complex password policy - the user selects their own password, but the system checks whether the password is allowable and rejects it if it is not. The goal of these strategies is to eliminate guessable passwords while allowing the user to select a password that is memorable.
-
Differentiate between a memory card and a smart card.
Topic: Tokens, Biometrics and Multi-Factor Authentication
A memory card can store data but cannot process data; the most common example is the magnetic stripe card, e.g. an ATM card, and it may include an internal electronic memory. A smart card is the most important category of smart token: it has the appearance of a credit card, has an electronic interface, and contains an entire microprocessor with a processor, memory and I/O ports. A smart card typically includes three types of memory: ROM, which stores data that does not change during the card's life; EEPROM, which holds application data and programs; and RAM, which holds temporary data generated when applications are executed.
-
What is biometric authentication? Write its advantages and disadvantages.
Topic: Tokens, Biometrics and Multi-Factor Authentication
Biometric authentication attempts to authenticate an individual based on unique physical characteristics and is based on pattern recognition. The physical characteristics used include facial characteristics, fingerprints, hand geometry, retinal pattern, iris, signature and voice. Advantages: biometrics are difficult to forge, they are convenient, and they are more secure and non-transferable. Disadvantages: biometric systems are costly and complex, they suffer from False Acceptance Rate (FAR) and False Rejection Rate (FRR), they are rigid, and an attacker may still be able to fool the system.
-
Differentiate between SFA, 2FA and MFA.
Topic: Tokens, Biometrics and Multi-Factor Authentication
SFA (Single-Factor Authentication) is the simplest form of authentication; it matches one credential to verify a person online, the most popular example being a password matched to a username. 2FA (Two-Factor Authentication) uses the same password/username combination, but adds verification using something only the person owns, such as a mobile device; simply, it uses two factors to confirm an identity. MFA (Multi-Factor Authentication) uses a combination of the factors - something you know, something you have and something you are. 2FA is a subset of MFA.
-
Define access control. Also define the terms subject, object and access right.
Topic: Access Control
Access control is the process of granting or denying specific requests to: (1) obtain and use information and related information processing services; and (2) enter specific physical facilities. A subject is an entity capable of accessing objects. An object is a resource to which access is controlled; it is an entity used to contain and/or receive information. An access right describes the way in which a subject may access an object, and can include read, write, execute, delete, create and search.
-
Name the four access control policies and explain each of them briefly.
Topic: Access Control
The four access control policies are: (1) Mandatory Access Control (MAC) - controls access based on comparing security labels (which indicate how sensitive or critical system resources are) with security clearances (which indicate which system entities are eligible to access certain resources); it is commonly used where confidentiality is very important, e.g. the military. (2) Discretionary Access Control (DAC) - controls access based on the identity of the requestor and on access rules (authorizations) stating what requestors are or are not allowed to do; an entity may, by its own volition, enable another entity to access a resource, and it is often provided using an access matrix. (3) Role-Based Access Control (RBAC) - controls access based on the roles that users have within the system and on rules stating what accesses are allowed to users in given roles. (4) Attribute-Based Access Control (ABAC) - controls access based on attributes of the user, the resource to be accessed, and current environmental conditions and policies.
-
State Kerckhoffs's principle and explain its importance.
Topic: Cryptography Fundamentals and Classical Ciphers
Kerckhoffs's principle, stated by the Dutch-born cryptographer Auguste Kerckhoffs in the 19th century, is the concept that a cryptographic system should be designed to be secure even if all its details, except for the key, are publicly known. In other words, the secrecy of the cryptographic system should rely on the secret keys only; there is no need to hide the procedure or algorithm for encryption. Rather, it is better if the procedure or algorithm is made public, as this helps in identifying and removing the flaws and loopholes in the system.
-
Differentiate between symmetric and asymmetric encryption.
Topic: Cryptography Fundamentals and Classical Ciphers
In symmetric encryption, the same secret key is used for both encryption and decryption. It is relatively fast, but it requires a secure key exchange between the communicating parties. Examples include DES, 3DES and AES. In asymmetric encryption, also known as public key cryptography, two different keys are used: a public key and a private key, which are mathematically related to each other. The private key is never shared. Asymmetric encryption is relatively slow compared to symmetric encryption, but it solves the key distribution problem and enables digital signatures. An example is RSA.
-
What is a one-time pad? Write its advantages and disadvantages.
Topic: Cryptography Fundamentals and Classical Ciphers
The one-time pad, invented by Gilbert Vernam in the 1920s, is a symmetric encryption technique in which the key is a random bitstring as long as the message, and the ciphertext is obtained by XORing each bit of the plaintext with each bit of the key (c = m XOR k). Advantages: it is easy to compute, because encryption and decryption are the same XOR operation, which is very cheap; and it is as secure as theoretically possible, because given a ciphertext, all plaintexts are equally likely, regardless of the attacker's computational resources, provided the key sequence is truly random. Disadvantages: the key must be as long as the plaintext, which is impractical in most realistic scenarios; it does not guarantee integrity, because an attacker cannot recover the plaintext but can easily change it; and it becomes insecure if keys are reused.
-
Define the terms confusion and diffusion in a secure cipher.
Topic: Cryptography Fundamentals and Classical Ciphers
Confusion and diffusion are properties of the operation of a secure cipher, originally presented by Claude Shannon in 1945. Confusion refers to making the relationship between the ciphertext and the key as complex and involved as possible; it makes use of substitution. Diffusion refers to dissipating the statistical structure of the plaintext over the bulk of the ciphertext; it makes use of transposition. A Feistel cipher consists of multiple rounds of processing of the plaintext, each round consisting of a substitution step followed by a permutation step, which together provide confusion and diffusion.
-
Write a short note on DES (Data Encryption Standard).
Topic: DES, Triple DES and AES
DES (Data Encryption Standard) was until recently the most widely used encryption scheme. It was published as Federal Information Processing Standards FIPS PUB 46 and is also referred to as the Data Encryption Algorithm (DEA). DES is the most studied encryption algorithm and is a Feistel cipher. It works on a 64-bit plaintext block with a 56-bit key to produce a 64-bit ciphertext block, through a total of 16 rounds. The main concern about DES is the use of a 56-bit key, which makes it prone to brute-force attack, because on average only half of all possible keys must be tried to achieve success.
-
What is Triple DES (3DES)? Write its attractions and drawbacks.
Topic: DES, Triple DES and AES
Triple DES (3DES) was designed to address the security concerns over DES, which had become prone to brute-force attack. It repeats the basic DES algorithm three times using either two or three unique keys, in an encrypt-decrypt-encrypt sequence. It was first standardized for use in financial applications in ANSI standard X9.17 in 1985. Attractions: with three distinct keys, 3DES has an effective key length of 168 bits, which overcomes the vulnerability of DES to brute-force attack, and the underlying encryption algorithm is the same as in DES. Drawbacks: the algorithm is sluggish in software, and it uses a 64-bit block size.
-
Write a short note on AES (Advanced Encryption Standard).
Topic: DES, Triple DES and AES
AES (Advanced Encryption Standard) is a symmetric block cipher that replaced 3DES, which was not reasonable for long-term use. NIST called for proposals for a new AES in 1997; the Rijndael proposal was selected in November 2001, and AES was published as FIPS 197. AES works on a 128-bit data block with key sizes of 128, 192 or 256 bits. It is an iterative rather than a Feistel cipher: it processes data as a block of 4 columns of 4 bytes (the state) and operates on the entire data block in every round. AES with a 128-bit key has 10 rounds, in which the transformations applied are Byte Substitution (an S-box applied on every byte), Shift Rows (permuting bytes between groups/columns), Mix Columns (matrix multiplication in GF(256)) and Add Round Key (XOR of the state with the round key). AES is designed to be resistant against known attacks, fast and code-compact on many CPUs, and simple in design.
-
Name and explain the five block cipher modes of operation of symmetric encryption.
Topic: DES, Triple DES and AES
The five block cipher modes are: (1) Electronic Codebook (ECB) mode - each block of plaintext is encoded independently using the same key; its typical application is the secure transmission of single values, e.g. an encryption key. (2) Cipher Block Chaining (CBC) mode - the input to the encryption algorithm is the XOR of the next 64 bits of plaintext and the preceding 64 bits of ciphertext; it is used for general-purpose block-oriented transmission and authentication, and the Initialization Vector (IV) must be known by the sender and receiver but secret from the attacker. (3) Cipher Feedback (CFB) mode - it converts a block cipher into a stream cipher, needs no padding of the message to an integral number of blocks, and can operate in real time; it is used for general-purpose stream-oriented transmission and authentication. (4) Output Feedback (OFB) mode - similar to CFB, except that the input to the encryption algorithm is the preceding encryption output; it is used for stream-oriented transmission over noisy channels, e.g. satellite communications, and bit errors do not propagate in this mode. (5) Counter (CTR) mode - each block of plaintext is XORed with an encrypted counter, and the counter is incremented for each subsequent block; it is used for general-purpose block-oriented transmission and is useful for high-speed requirements.
-
Explain the RSA algorithm. How are the public and private keys generated?
Topic: Public-Key Cryptography, RSA and Diffie-Hellman
RSA, named after Rivest, Shamir and Adleman, was the first practical implementation of public key encryption. Key generation: let n be the product of two large primes p and q (n = p x q), where n is at least 512 bits. Select a number e, greater than 1 and less than (p-1)(q-1), such that e has no common divisor with (p-1)(q-1) except 1. Publish the pair (n, e) as the public key. Compute the private key d, the unique inverse of e modulo (p-1)(q-1), i.e. ed = 1 mod (p-1)(q-1); the private key is (d, n). Encryption: given a message M with 0 < M < n, the ciphertext is C = M^e mod n using the public key. Decryption: the plaintext is recovered as M = C^d mod n using the private key. RSA is secure because, from n, it is difficult to figure out p and q, and from (n, e) it is difficult to figure out d or M.
-
Explain the Diffie-Hellman key exchange protocol. What is its main security issue?
Topic: Public-Key Cryptography, RSA and Diffie-Hellman
The Diffie-Hellman protocol allows two users to secretly exchange a key over a public network in the presence of an attacker. Either party chooses a prime P and G (a primitive root of P) and exchanges them openly; the attacker can also see them. Each party then chooses a private value: user-1 chooses a and user-2 chooses b. User-1 computes G^a mod P and user-2 computes G^b mod P, and they exchange these values. Finally, each party raises the received value to its own private power modulo P, and both arrive at the same common secret key, G^(ab) mod P. The attacker cannot compute this key because of the one-way function of modular exponentiation. The main security issue is that although Diffie-Hellman is safe against sniffing (interception), it is vulnerable to a man-in-the-middle attack, in which the attacker sits in the middle between the two parties.
-
Differentiate between a hub, a switch and a router.
Topic: Network Devices and Perimeter Security
A hub is a network device that broadcasts data to every computer or Ethernet-based device connected to it; hubs are best suited for small, simple LAN environments. A switch is a network device that connects devices on a local area network (LAN); it operates at the data link layer of the OSI model and uses MAC addresses to direct traffic to the appropriate device. A router is a network device that connects multiple networks and routes traffic between them; it operates at the network layer of the OSI model and uses routing tables to determine the best path for data to travel.
-
What is perimeter security? Differentiate between physical and logical perimeter security with examples.
Topic: Network Devices and Perimeter Security
Perimeter security consists of the measures used to protect a network from unauthorized access and malicious attacks. Physical perimeter security includes measures such as fences, gates, walls and security cameras; these measures restrict access to a physical location and can prevent unauthorized entry. Logical perimeter security includes measures such as firewalls, intrusion detection systems (IDS), virtual private networks (VPNs) and access control; these measures control access to a network and can prevent unauthorized access.
-
What is an intrusion? Explain the different types of intrusions.
Topic: Intrusions, Intrusion Detection Systems and Honeypots
An intrusion is an unauthorized attempt to access, use, or modify a network, system, or device. It can occur through various means, including malware, phishing attacks and brute-force attacks. The types of intrusions are: (1) External intrusion - an attacker attempts to gain access to a network from outside. (2) Internal intrusion - an attacker gains access to a network from within, such as an employee with malicious intent. (3) Insider threat - an employee or contractor intentionally or unintentionally causes harm to a network. (4) Distributed Denial of Service (DDoS) - an attacker floods a network with traffic to disrupt normal operations. Intrusions can cause data theft or loss, financial loss, reputation damage and disruption of operations, so organizations use prevention measures and incident response plans to mitigate the risks.
-
Differentiate between signature-based, anomaly-based and hybrid IDS analysis approaches.
Topic: Intrusions, Intrusion Detection Systems and Honeypots
Signature-based analysis compares network traffic against known attack signatures or patterns. It can identify known attacks with high accuracy, but it may miss new or unknown attacks, and it requires regular updates to stay current with new attack signatures. Anomaly-based analysis detects deviations from normal network traffic or user behavior. It can identify new or unknown attacks, but it may generate more false positives than signature-based analysis, and it requires a baseline of normal traffic or behavior to be established and updated regularly. Hybrid analysis combines signature-based and anomaly-based analysis to achieve a more comprehensive detection capability; it can identify known and unknown attacks with fewer false positives, but it requires more resources to operate effectively.
-
Differentiate between a Network-Based IDS (NIDS) and a Host-Based IDS (HIDS).
Topic: Intrusions, Intrusion Detection Systems and Honeypots
A Network-Based IDS (NIDS) monitors network traffic for suspicious activity, such as unusual traffic patterns or known attack signatures. Its architecture includes network taps, which collect and route network traffic to the NIDS; sensors, which monitor traffic and analyze packets; and a console, through which administrators configure and manage the NIDS and review alerts and logs. A Host-Based IDS (HIDS) monitors activity on individual devices, such as servers or workstations, to detect unauthorized access or system-level attacks. HIDS collects and analyzes system activity logs, file integrity and system performance metrics, and it can detect malicious activity that a NIDS may not capture, such as file modifications, fileless malware or process-level attacks.
-
What is a honeypot? Explain its types and deployment strategies.
Topic: Intrusions, Intrusion Detection Systems and Honeypots
A honeypot is a security tool that simulates a vulnerable system or application to attract attackers and gather information about their techniques and motives. Types of honeypots: production honeypots are real systems or applications deployed to gather information about attackers, while research honeypots are simulated systems or applications deployed in a controlled environment to gather research data about attacker behavior. Deployment strategies are based on the level of interaction: low-interaction honeypots simulate only the most basic functionality of a system, providing limited interaction; medium-interaction honeypots simulate more functionality, allowing attackers to interact more fully; and high-interaction honeypots provide a full simulation of a real system or application, allowing attackers to interact with it as if it were real. Examples of honeypot tools are KFSensor, Honeyd and Cowrie.
-
Define the terms asset, risk, threat, vulnerability and exploit.
Topic: Vulnerability Management, SCAP and Scanning Tools
An asset is anything of value in a system or network that needs to be protected. Risk refers to the potential harm or damage that can be caused by a cyber attack or security breach, including business disruption and financial loss. A threat is anything that can exploit a vulnerability to obtain, damage or destroy an asset. A vulnerability is a weakness or flaw in a system, application or network that can be exploited by attackers to gain unauthorized access, steal data or disrupt operations; vulnerabilities can be caused by software bugs, configuration errors, design flaws or unpatched systems. An exploit is a program or code that takes advantage of a security hole (a vulnerability) in an application or system, so that an attacker can use it for their benefit.
-
Differentiate between vulnerability assessment and vulnerability management. Also explain the vulnerability management life cycle.
Topic: Vulnerability Management, SCAP and Scanning Tools
Vulnerability assessment is the process of identifying and evaluating security vulnerabilities in a system or network; it involves running scans and tests to discover vulnerabilities and analyzing the results to determine the severity and potential impact of each vulnerability. Vulnerability management is the process of addressing and mitigating the vulnerabilities identified through the assessment; it includes prioritizing vulnerabilities based on severity and potential impact, developing a plan to address them, and implementing the necessary fixes or patches. The vulnerability management life cycle consists of: initial assessment (identify assets, define risk and possible business impact), planning (check compliance requirements, decide the best time and tools for the scan), running the automated scan and generating the report, prioritizing the vulnerabilities according to risk level (using CVE information), remediation (research, evaluate, test and apply patches/fixes, and monitor the results), and finally retesting and verifying by rescanning the system and comparing the results. It is a continuous best-practice process, because threats cannot be controlled, but vulnerabilities can be reduced.
-
What is SCAP? Name and briefly explain its components.
Topic: Vulnerability Management, SCAP and Scanning Tools
SCAP (Security Content Automation Protocol) was developed by the National Institute of Standards and Technology (NIST), in collaboration with various government agencies and industry partners, to create a consistent language and format for discussing security issues. Its components are: (1) CWE (Common Weakness Enumeration) - a community-developed list of software and hardware weakness types, which serves as a measuring stick for security tools and as a baseline for weakness identification, mitigation and prevention. (2) CVE (Common Vulnerabilities and Exposures) - a standardized list of publicly known cyber security vulnerabilities and exposures, used to identify and classify vulnerabilities that may impact software and hardware products. (3) CCE (Common Configuration Enumeration) - a standardized method of identifying and describing security-relevant system configuration settings. (4) CPE (Common Platform Enumeration) - a standardized method of describing and identifying software systems, applications and operating systems using a unique identifier format that includes the vendor name, product name and version number. (5) CVSS (Common Vulnerability Scoring System) - a standardized method of assessing and scoring the severity of cyber security vulnerabilities, so they can be prioritized and managed based on their potential impact.
-
What is CVSS? Write the qualitative rating scale of CVSS scores.
Topic: Vulnerability Management, SCAP and Scanning Tools
CVSS (Common Vulnerability Scoring System) is an industry standard that rates the severity of vulnerabilities. It is used in CVE listings to aid in prioritizing vulnerabilities, and it is based on a set of metrics, such as attack vector, attack complexity, privileges required, user interaction, and the impact on confidentiality, integrity and availability. CVSS uses a scoring system ranging from 0 to 10, with higher scores indicating more severe vulnerabilities. The qualitative rating scale is: 0.0 = None; 0.1 - 3.9 = Low; 4.0 - 6.9 = Medium; 7.0 - 8.9 = High; 9.0 - 10.0 = Critical.
-
What is malware? Discuss malware in detail with examples, including viruses, worms and SQL injection.
Topic: Malware: Viruses, Worms, Ransomware and Trojans
Malware (a portmanteau for malicious software) is any software intentionally designed to cause disruption to a computer, server, client or computer network, leak private information, gain unauthorized access to information or systems, deprive access to information, or unknowingly interfere with the user's computer security and privacy. Its sub-types include computer viruses, worms, Trojan horses, ransomware, spyware, adware, rogue software, wipers and keyloggers. A computer virus is a type of program that, when executed, replicates itself by modifying other computer programs and inserting its own code into those programs; viruses generally require a host program, and when the host program runs, the virus code is executed first, causing infection and damage. A computer worm is a standalone malware program that replicates itself in order to spread to other computers; unlike a virus, it does not need a host program, and it often uses a computer network to spread itself, relying on security failures on the target computer. An SQL injection is an attack that targets the database of a web application: the attacker inputs malicious SQL code into a web form to access or modify sensitive information stored in the database, which can result in unauthorized access to sensitive data.
-
Differentiate between a computer virus and a computer worm.
Topic: Malware: Viruses, Worms, Ransomware and Trojans
A computer virus is a type of computer program that, when executed, replicates itself by modifying other computer programs and inserting its own code into those programs. A virus generally requires a host program: it writes its own code into the host program, and when the program runs, the virus code is executed first. A computer worm, by contrast, does not need a host program, as it is an independent program or code chunk; therefore it is not restricted by a host program, but can run independently and actively carry out attacks, spreading itself over a network. Worms almost always cause at least some harm to the network, even if only by consuming bandwidth, whereas viruses almost always corrupt or modify files on a targeted computer.
-
What are the three parts of a computer virus? Explain each briefly.
Topic: Malware: Viruses, Worms, Ransomware and Trojans
A computer virus generally contains three parts: (1) The infection mechanism, which finds and infects new files. (2) The payload, which is the malicious code to execute. (3) The trigger, which determines when to activate the payload.
-
What is ransomware? How does cryptoviral extortion work?
Topic: Malware: Viruses, Worms, Ransomware and Trojans
Ransomware is a type of malware from cryptovirology that threatens to publish the victim's personal data or permanently block access to it unless a ransom is paid. While some simple ransomware may lock the system without damaging any files, more advanced malware uses a technique called cryptoviral extortion: it encrypts the victim's files, making them inaccessible, and demands a ransom payment to decrypt them.
-
What is a Trojan horse? How does it usually operate after installation?
Topic: Malware: Viruses, Worms, Ransomware and Trojans
In computing, a Trojan horse is any malware that misleads users of its true intent by disguising itself as a standard program; the term is derived from the ancient Greek story of the deceptive Trojan Horse that led to the fall of the city of Troy. Once installed, Trojans may perform a range of malicious actions. Many tend to contact one or more Command and Control (C2) servers across the Internet and await instructions. Since individual Trojans typically use a specific set of ports for this communication, it can be relatively simple to detect them.