Chapter 3
Information Security
TU BIT past exam questions
Past questions and answers
48 questions set from this chapter. Most repeated first.
- 2079 · 10 marks
What is hash function? Describe how 128-bit of hash value is generated by taking an input message of variable size using MD5 algorithm?
Answer
Hash function
A hash function takes a message of any length and produces a fixed-size output , called a hash value or message digest. A cryptographic hash function should have these properties:
- Variable input size, fixed output size.
- Easy to compute .
- Preimage resistance (one-way) – given , it is infeasible to find with .
- Second preimage resistance – given , it is infeasible to find with .
- Collision resistance – it is infeasible to find any with .
Uses: message authentication, digital signatures, password storage, integrity checking.
MD5 algorithm (128-bit digest)
Step 1 – Append padding bits. The message is padded so that its length is congruent to 448 mod 512 (that is, 64 bits less than a multiple of 512). Padding is a single 1 bit followed by 0 bits, and is always added, even if the length is already 448 mod 512.
Step 2 – Append length. A 64-bit representation of the length of the original message (before padding) is appended (low-order bytes first; modulo if longer). The message is now a multiple of 512 bits, i.e. blocks of 512 bits, or 16 32-bit words each.
Step 3 – Initialise the MD buffer. A 128-bit buffer of four 32-bit registers is initialised (little-endian hex):
Step 4 – Process the message in 512-bit blocks. Each block goes through the compression function , which has 4 rounds of 16 steps each (64 steps in total). Each round uses a different nonlinear function of :
Each step updates the buffer:
then the registers rotate . Here is a 32-bit word of the current block (the order of differs by round), is one of 64 constants, is a circular left shift, and addition is modulo . After the 64 steps, the outputs are added to the input chaining values: , etc. (modulo ). The result is the input to the next block.
Step 5 – Output. After all blocks, the concatenation of the final (little-endian) is the 128-bit message digest.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 10 marks
Explain different ethical issues in computing? Explain RSA algorithm with suitable numerical example.
Answer
Ethical issues in computing
- Privacy – collection, storage and use of personal data without consent; surveillance and data breaches.
- Intellectual property and piracy – copying software, music or content, plagiarism, and licence violation.
- Computer crime and unauthorised access – hacking, malware, identity theft, fraud.
- Accuracy and reliability – responsibility for errors and failures of software, particularly in critical systems.
- Access and digital divide – unequal access to technology and information.
- Confidentiality and professional responsibility – honest reporting, competence, and protection of clients' data.
- Impact on society – job loss from automation, algorithmic bias, harmful content and AI misuse.
RSA algorithm
RSA is a public-key cipher whose security rests on the difficulty of factoring .
Key generation
- Choose two large primes .
- Compute and .
- Choose with and .
- Compute with .
- Public key ; private key .
Encryption: Decryption:
Example
Let . Then and . Choose (gcd(7,60)=1). Find with : , since .
Public key , private key .
Encrypt : , , so . So .
Decrypt: . By the Chinese remainder theorem: mod 7, , ; mod 11, , . Both give 5, so , the original message.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 10 marks
What is symmetric cryptography? Explain round operation of DES algorithm. Describe Sub-Key generation process for DES rounds.
Answer
Symmetric cryptography
In symmetric (conventional, secret-key) cryptography the same secret key is used by sender and receiver for encryption and decryption: , . It is fast and suited to bulk data, but needs a secure way to share the key. Examples: DES, 3DES, AES.
DES
DES is a Feistel block cipher with a 64-bit block, a 56-bit effective key (64 bits with 8 parity bits) and 16 rounds. It starts with an initial permutation (IP), then 16 rounds, then a swap of halves and the inverse permutation .
Round operation
The 64-bit block is split into and (32 bits each):
The function :
- Expansion (E) – is expanded from 32 to 48 bits by permuting and duplicating bits.
- Key mixing – XOR with the 48-bit round key .
- Substitution (S-boxes) – the 48 bits are split into eight 6-bit groups; each goes through an S-box (outer two bits select the row, inner four the column), giving a 4-bit output, i.e. 32 bits in total.
- Permutation (P) – the 32-bit result is permuted.
Sub-key generation
- The 64-bit key goes through Permuted Choice 1 (PC-1), which drops the 8 parity bits and permutes the remaining 56 bits, then splits them into two 28-bit halves and .
- For each round , both halves are circularly shifted left by 1 bit (rounds 1, 2, 9, 16) or 2 bits (other rounds).
- The shifted halves are concatenated (56 bits) and passed through Permuted Choice 2 (PC-2), which selects and permutes 48 bits to give .
- The shifted become the input to the next round. Decryption uses the same subkeys in reverse order, to .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
What is access control? Explain attribute based access control with example.
Answer
Access control is the process of granting or denying requests to use resources, so that only authorised subjects (users, processes) can perform permitted operations (read, write, execute) on objects (files, devices). It rests on authentication, authorisation and audit. Main models are discretionary (DAC), mandatory (MAC), role-based (RBAC) and attribute-based (ABAC).
Attribute-based access control (ABAC)
ABAC decides access from attributes of the subject, the object, the operation and the environment, evaluated against policy rules, rather than from identity or role alone.
Attribute types:
- Subject attributes – name, role, department, clearance, age.
- Object (resource) attributes – owner, type, classification, creation date.
- Environment attributes – time, location, device, threat level.
Operation: a subject requests access; the policy decision point evaluates the policy rules against the attributes; the policy enforcement point permits or denies access.
Example: A hospital policy: "A user may view a patient record if user.role = Doctor AND user.department = record.department AND the request time is within the user's shift." Dr. Sita (Cardiology, on shift) can read a cardiology patient record, but the same doctor is denied access to a neurology record or outside her shift. ABAC is flexible and fine-grained, needs no explicit per-user permission, and scales well, but policy design and attribute management are complex.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Decrypt the cipher text 'CRHG' using the Hill cipher with the key matrix [[3, 4], [3, 5]].
Answer
Hill cipher encryption is , so decryption is , with .
Ciphertext blocks: CRHG gives and .
Key:
. The inverse of 3 mod 26 is 9, since .
Check: and , good.
Block 1:
Block 2:
Plaintext = YPVZ
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Define Euler Totient function. Determine whether 37 is Composite or not using Miller Rabin Primality testing.
Answer
Euler totient function
is the number of positive integers less than that are relatively prime to . Properties: for prime ; for distinct primes; .
Miller-Rabin test for
Write with odd: , so , .
Choose a base and compute :
, (since ).
So , which is neither nor . Square it ():
This equals , so the test passes: 37 is "probably prime" (inconclusive for composite).
Since the test never found a witness for compositeness (and any other base gives the same outcome for a prime), 37 is not composite; it is prime. (Indeed, 37 is not divisible by 2, 3 or 5, and .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Write Short Notes on: (a) Phishing Attack (b) Two Factor Authentication
Answer
(a) Phishing attack
Phishing is a social-engineering attack in which the attacker poses as a trustworthy entity (a bank, an online service, a colleague) in email, SMS (smishing), calls (vishing) or fake websites, to trick victims into revealing usernames, passwords, card numbers or into installing malware. A typical email contains an urgent message and a link to a look-alike login page. Variants include spear phishing (targeted at a person), whaling (executives) and clone phishing.
Countermeasures: check sender and URL, never enter credentials via email links, use spam filters, two-factor authentication, anti-phishing browser tools and user awareness training.
(b) Two-factor authentication (2FA)
2FA requires two different kinds of proof of identity from: something you know (password, PIN), something you have (phone, smart card, token) and something you are (fingerprint, face). Example: an ATM needs the card (have) and PIN (know); a login needs a password followed by a one-time code sent to the mobile phone. Even if the password is stolen, the attacker lacks the second factor, so security is much stronger.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Define authentication. How Biometric information can be used for authentication?
Answer
Authentication is the process of verifying a claimed identity of a user, device or process, i.e. establishing that the entity is who it claims to be. It is done with something the user knows (password), has (token, smart card) or is (biometrics), or with a combination.
Biometric authentication
Biometric authentication uses physical (static) or behavioural (dynamic) characteristics unique to a person, such as fingerprint, face, iris, retina, hand geometry, voice, signature and keystroke dynamics.
Process:
- Enrolment – the user's biometric sample is captured, key features are extracted and stored as a template in a database, along with the user ID.
- Authentication – at login, a fresh sample is captured by a sensor and features are extracted.
- Matching – the new template is compared to the stored one. If the match score exceeds a threshold, the user is authenticated (verification, one-to-one); for identification, the sample is compared with many templates (one-to-many).
Performance is measured by the false accept rate (FAR) and false reject rate (FRR), balanced by the threshold. Advantages: cannot be forgotten or easily shared. Limitations: cost, privacy concerns, errors, and a compromised biometric cannot be reissued.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
What is security risk assessment? What are different aspects of a successful security risk assessment?
Answer
Security risk assessment is the process of identifying the assets of an organisation, the threats and vulnerabilities that affect them, and the likelihood and impact of loss, in order to decide which risks to treat with controls. Risk is considered as a function of threat, vulnerability and impact.
Steps: identify and value assets; identify threats and vulnerabilities; estimate likelihood and consequence; rank the risks; select countermeasures (avoid, reduce, transfer or accept); monitor and review.
Aspects of a successful risk assessment:
- Clear scope and objectives aligned with the business.
- Complete asset identification and valuation (hardware, software, data, people).
- Accurate threat and vulnerability analysis, using current intelligence and testing.
- Realistic likelihood and impact estimation, using a consistent qualitative or quantitative method.
- Management support and involvement of the stakeholders.
- Cost-effective control selection – the cost of control should not exceed the risk.
- Documentation and reporting, with a risk register.
- Regular review, since the threat environment and systems change.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Differentiate between virus, worm and Trojan horse.
Answer
| Basis | Virus | Worm | Trojan horse |
|---|---|---|---|
| Definition | Malicious code that attaches itself to a host program or file and runs when the host is run | Self-contained program that replicates itself and spreads over the network | Program that appears useful or legitimate but carries a hidden malicious function |
| Host needed | Yes (infects files, boot sectors, macros) | No, it is standalone | Not self-attached; disguised as a useful program |
| Replication | Replicates by infecting other files, needs user action to spread | Replicates automatically, exploiting network vulnerabilities, with no user action | Does not replicate itself |
| Spread | Through file sharing, removable media, email attachments | Through networks, email and vulnerable services | Through downloads, user installation (social engineering) |
| Main effect | Corrupts or deletes files, slows the system | Consumes bandwidth and resources, can carry a payload | Backdoor, data theft, remote control |
| Example | Michelangelo, Melissa (macro) | Morris worm, Code Red, Conficker | Back Orifice, Zeus |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
What is Security threat and attack? Describe different types of attacks in brief.
Answer
Security threat: a potential danger that might exploit a vulnerability to breach security and cause harm. It is a possible event (for example, a hacker, a disgruntled employee, a natural disaster).
Attack: an actual attempt, intelligent act or assault on a system to evade security services and violate the security policy. An attack is the realisation of a threat.
Types of attacks
Passive attacks (do not alter data; hard to detect, prevented by encryption):
- Release of message contents – eavesdropping on a conversation, mail or file transfer.
- Traffic analysis – observing patterns, length and frequency of messages even if encrypted.
Active attacks (modify the data stream or create false data; detected and recovered from):
- Masquerade – one entity pretends to be another.
- Replay – captured data is retransmitted to produce an unauthorised effect.
- Modification of messages – part of a legitimate message is altered, delayed or reordered.
- Denial of service – prevents normal use of communications facilities, for example by flooding a server.
Other categories: inside vs. outside attacks (by an authorised user or by an outsider), and malware, phishing, SQL injection, man-in-the-middle attacks.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Explain Diffie Hellman Key Exchange Protocol with suitable example.
Answer
The Diffie-Hellman protocol lets two parties establish a shared secret key over an insecure channel without having previously met. Its security rests on the difficulty of the discrete logarithm problem.
Protocol
- Alice and Bob publicly agree on a prime and a primitive root of .
- Alice chooses a secret and computes the public value ; Bob chooses a secret and computes .
- They exchange and .
- Alice computes ; Bob computes .
Both get .
Example
Let , . Alice's secret , Bob's secret .
- Alice:
- Bob:
The shared secret key is . An eavesdropper sees only and would have to solve a discrete logarithm. The plain protocol is vulnerable to a man-in-the-middle attack because it does not authenticate the parties.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
Describe the role of hash functions in authenticating message? How SHA-1 algorithm is used to produce hash value of a message? Explain.
Answer
Role of hash functions in message authentication
A hash function maps a message of any length to a fixed-length digest. For authentication, the digest acts as a fingerprint of the message:
- Integrity – the sender sends (or a protected form); the receiver recomputes and compares. Any change in changes the hash.
- Encrypted hash – with a shared key gives both confidentiality and authentication.
- Encrypting only the hash – authenticates with less encryption work.
- Digital signature – the hash is encrypted with the sender's private key, , which provides authentication, integrity and non-repudiation.
- Keyed hash (HMAC) – a secret value is combined with the message: style constructions authenticate without encryption and are faster.
SHA-1 algorithm
SHA-1 produces a 160-bit digest from a message of length less than bits, processing 512-bit blocks.
- Append padding bits – a 1 bit then 0 bits, so that the length is .
- Append length – a 64-bit big-endian value of the original length. The message is now a multiple of 512 bits, .
- Initialise the buffer – five 32-bit registers:
- Process each 512-bit block with the compression function of 80 steps in 4 rounds of 20 steps. The 16 words of the block are expanded into 80 words: Each step: where is the round function: for steps 0-19, for 20-39, for 40-59, and for 60-79. Constants are 5A827999, 6ED9EBA1, 8F1BBCDC, CA62C1D6 for the four rounds. Additions are modulo .
- After 80 steps, the registers are added to the block's input values (mod ) to form the input to the next block.
- Output – after the last block, is the 160-bit digest.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
Define Euler totient function with an example. Find the GCD of 12 and 32 using Extended Euclidean algorithm.
Answer
Euler totient function
is the number of positive integers less than that are relatively prime to (with ).
- For a prime : .
- For distinct primes : .
Example: : the numbers below 12 coprime to 12 are 1, 5, 7, 11, so . Check: , . Also and .
GCD(12, 32) by the extended Euclidean algorithm
Euclid steps:
So .
Back-substitution:
So , i.e. , .
Tabular check: : , giving , then , and . Correct.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
Distinguish between threats and attack. Discuss some computer security strategy. Assume a prime number 23 and 9 as its primitive root. Alice select a private key 5 and Bob select the private key 6. Now find the secret key value that Alice and Bob shared using Diffie-Hellman protocol.
Answer
Threat vs. attack
| Threat | Attack |
|---|---|
| A potential danger that could exploit a vulnerability | An actual action or attempt to exploit a vulnerability |
| Only a possibility, may never occur | A realised threat, occurs and can cause damage |
| Example: possibility of a hacker, virus or fire | Example: a DoS flood, SQL injection, password cracking |
| Handled by risk analysis and prevention | Handled by detection, response and recovery |
Computer security strategy
A security strategy has three parts: specification/policy (what is the security scheme supposed to do: assets, threats, objectives), implementation and correctness/assurance. Implementation follows four actions:
- Prevention – stop attacks from succeeding (encryption, authentication, firewalls, access control).
- Detection – discover attacks in progress or after the fact (IDS, logging, audit).
- Response – take action to halt the attack and limit damage.
- Recovery – restore the system after an attack (backups, rollback, redundancy).
Also: defence in depth, least privilege, and regular risk assessment.
Diffie-Hellman calculation
, , Alice's private key , Bob's private key .
Alice's public value: . ; ; . So .
Bob's public value: . So .
Alice's key: .
Bob's key: . Computing stepwise: ; ; .
The shared secret key is 13.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Discuss about two factor authentication with an example.
Answer
Two-factor authentication (2FA) verifies a user with two independent factors taken from different categories:
- Knowledge factor – something you know: password, PIN.
- Possession factor – something you have: mobile phone, hardware token, smart card, ATM card.
- Inherence factor – something you are: fingerprint, face, iris.
Because the factors are independent, an attacker who steals one (for example a password through phishing) still cannot log in without the other.
Example – online banking: The user enters a username and password (factor 1). The bank then sends a one-time password (OTP) by SMS to the registered mobile number, or the user generates a time-based code in an authenticator app; the user enters this code (factor 2). Access is granted only when both are correct. Another everyday example is withdrawing cash from an ATM: the card (have) plus the PIN (know).
Strengths: much stronger than passwords alone. Weaknesses: extra effort, device loss, SIM-swap and real-time phishing can still defeat SMS codes.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Explain the different types of access control principles.
Answer
Access control limits who (subject) may do what (rights) to which resource (object). Different access control principles/models are:
- Discretionary access control (DAC) – the owner of a resource decides who may access it. Permissions are stored in an access control matrix, access control lists (ACL) or capability lists. It is flexible (used in UNIX, Windows) but a user can pass rights on, and it is vulnerable to Trojan horses.
- Mandatory access control (MAC) – access is decided by the system based on security labels: subjects have clearances and objects have classifications (Top Secret, Secret, Confidential...). Users cannot change it. Bell-LaPadula ("no read up, no write down") is a common model. Used in military systems.
- Role-based access control (RBAC) – permissions are assigned to roles, and users get roles according to their job (for example, teller, manager). It simplifies administration, and supports least privilege and separation of duties.
- Attribute-based access control (ABAC) – access depends on attributes of subject, object and environment evaluated against policy rules; it is flexible and fine-grained.
General principles: least privilege, separation of duties and need-to-know.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Describe any two types of malicious software.
Answer
Malicious software (malware) is software designed to damage, disrupt or gain unauthorised access to a system. Two common types are:
1. Virus A piece of code that attaches itself to a host program or file and replicates by infecting other files when the host is run. Phases: dormant, propagation, triggering and execution. Types include parasitic, boot-sector, macro, memory-resident and polymorphic/metamorphic (to evade detection). It needs a user action to spread, and its payload may delete or corrupt data or slow the system.
2. Worm A standalone program that replicates itself and spreads through networks, without needing a host file or user action. It exploits vulnerabilities in services, email or file sharing to find new targets, causing congestion and carrying payloads such as backdoors or bots. Examples are the Morris worm, Code Red and Conficker.
(Other types: Trojan horse, logic bomb, spyware, ransomware, rootkit and bots/zombies.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What is risk assessment? Describe the security auditing architecture.
Answer
Risk assessment
Risk assessment is the process of identifying assets, threats and vulnerabilities in an organisation, estimating the likelihood and impact of each risk, and selecting controls to reduce the risk to an acceptable level. Steps: asset identification, threat and vulnerability identification, likelihood and impact analysis, risk ranking, control selection and monitoring.
Security auditing architecture
A security audit is an independent review and examination of system records and activities to test the adequacy of controls and detect breaches. The architecture (X.816 model) has these parts:
- Event discriminator – a logic that decides which events are of interest and should be recorded (based on the audit policy).
- Audit recorder – a logging component that writes the selected events as audit records.
- Alarm processor – generates alarms/actions when the events suggest a security violation.
- Audit trail (log) storage – the protected store holding the records; later it is read by:
- Audit analyzer – processes the audit trail, detecting patterns and anomalies, and may feed back to the discriminator.
- Audit archiver – retains the old records for future review.
- Audit provider – gives access to the audit trail to an authorised audit trail examiner, who produces reports.
Audit records contain the subject, action, object, time and outcome. The trail itself must be protected against alteration.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Do cybercrime and computer crimes refers to same? Justify with relevant scenarios.
Answer
They are related, but not exactly the same.
Computer crime is any illegal act in which a computer is the target, tool or storage of the crime. It includes offences that can happen on a stand-alone machine without any network.
Cybercrime is crime carried out through or against networks and the Internet (cyberspace). Every cybercrime is a computer crime, but not every computer crime is a cybercrime; cybercrime also covers crimes against people over the net.
| Computer crime | Cybercrime | |
|---|---|---|
| Medium | Computer, may be offline | Internet/networks |
| Example scenarios | An employee copies confidential files from an office PC to a USB drive; destroying data on a local machine; software piracy by copying CDs | Phishing emails for bank credentials; online banking fraud; a DDoS attack on a website; cyberbullying and identity theft on social media; ransomware spread over a network |
So the terms overlap heavily and are often used interchangeably, but cybercrime is the networked subset (plus online crimes like harassment), while computer crime is the broader category involving computers as targets or tools.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What do you mean by countermeasures for malwares? Discuss about audit trail analysis.
Answer
Countermeasures for malware
Countermeasures are the measures to prevent, detect and recover from malware. The ideal is prevention (policy, awareness, patching, least privilege), but when it fails:
- Detection – determine that infection has occurred and locate the malware.
- Identification – identify the specific malware.
- Removal – remove all traces and restore the system.
Generations of antivirus software: simple scanners (signatures), heuristic scanners (integrity checking, suspicious code), activity traps (monitor behaviour) and full-featured protection (combination). Other measures: firewalls, intrusion detection, sandboxing, patching, backups, and user training. Host-based and perimeter scanning, and digital immune systems, are also used.
Audit trail analysis
An audit trail (log) records security-relevant events (logins, file access, privilege use, network connections). Audit trail analysis is the examination of these records to:
- detect intrusions, policy violations and anomalies (for example repeated failed logins);
- reconstruct events after an incident (forensics) and establish accountability;
- check compliance, and assess the effectiveness of controls.
Analysis may be real-time or post-hoc, using filtering, statistical profiling, rule-based and automated correlation tools. Logs must be protected from tampering and kept long enough.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
List some issues for user authentication. What is trust framework?
Answer
Issues for user authentication
- Weak or reused passwords – guessable, shared or written down; vulnerable to brute-force, dictionary attacks and credential stuffing.
- Credential theft – phishing, keyloggers, shoulder surfing and social engineering.
- Eavesdropping and replay of authentication data over the network.
- Storage of credentials – plain-text or poorly hashed password databases.
- Biometric errors (false accept/reject), privacy and non-revocability.
- Token loss or theft, and cost of tokens/cards.
- Usability and account recovery – the trade-off between security and convenience; weak reset procedures.
- Insider and impersonation threats, and multiple accounts across services.
Trust framework
A trust framework is a set of agreed technical standards, operational rules, policies and legal agreements that lets different organisations (identity providers, relying parties, users) rely on each other's identity and authentication assertions. It specifies the required assurance level, identity proofing, credential management and liability, so that a user authenticated by one provider can be trusted by another. Examples: federated identity (SAML, OpenID Connect), national digital identity schemes, and the NIST levels of assurance. It supports single sign-on across organisations.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What is the role of digital signature in message authentication? List any two natures of zombies.
Answer
Role of digital signatures in message authentication
A digital signature is created by encrypting (signing) a hash of the message with the sender's private key: . The receiver verifies it by decrypting with the sender's public key and comparing the result with a newly computed .
It provides:
- Message authentication – proves that the message came from the claimed sender, since only the sender has the private key.
- Integrity – any modification of the message changes the hash, so verification fails.
- Non-repudiation – the sender cannot later deny having sent it, because a third party can verify the signature with the public key (unlike a MAC, where the key is shared).
Algorithms: RSA signatures, DSA/DSS, ECDSA.
Two natures of zombies
A zombie (bot) is a compromised computer controlled remotely by an attacker, usually as part of a botnet.
- It is controlled remotely without the owner's knowledge, and the owner usually notices nothing.
- It is used to launch attacks such as DDoS, spam, phishing and click fraud, while hiding the attacker's identity.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Write the algorithm for RSA key generation with encryption and decryption.
Answer
RSA is an asymmetric (public-key) cryptosystem whose security rests on the difficulty of factoring a large number .
Key generation
- Choose two large distinct primes and .
- Compute .
- Compute Euler's totient .
- Choose an integer with and .
- Compute such that (using the extended Euclidean algorithm).
- Public key ; private key . Discard , and (or keep them secret).
Encryption (sender uses the receiver's public key), plaintext :
Decryption (receiver uses own private key):
Decryption works because , so by Euler's theorem.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
RSA with p=11, q=7: (i) give the public key (e, n), (ii) give the private key (d, n), (iii) find the ciphertext for M=6.
Answer
Given , .
(i) Public key. Choose , since and .
Public key .
(ii) Private key. Find with . Taking : , so .
Private key .
(iii) Ciphertext for .
Hence .
(Check: recovers the message.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Explain how encryption and decryption work in DES.
Answer
DES (Data Encryption Standard) is a symmetric Feistel block cipher. It encrypts a 64-bit block using a 56-bit key (64 bits with 8 parity bits) in 16 rounds.
Encryption
- Initial Permutation (IP): the 64-bit plaintext block is rearranged by a fixed table and split into a left half and a right half of 32 bits each.
- 16 Feistel rounds: for
- Round function :
- Expansion (E): is expanded from 32 to 48 bits.
- Key mixing: the 48 bits are XORed with the 48-bit round subkey .
- Substitution: the result is split into eight 6-bit groups; each passes through an S-box giving 4 bits (32 bits in total).
- Permutation (P): the 32 bits are permuted.
- Swap and Final Permutation (): after round 16 the halves are swapped () and the inverse initial permutation gives the 64-bit ciphertext.
Subkeys: the 56-bit key (after PC-1) is split into two 28-bit halves, which are rotated left by 1 or 2 bits each round and compressed by PC-2 to a 48-bit .
Decryption
Decryption uses the same algorithm with the subkeys applied in reverse order (). This works because of the Feistel structure: and , so each round can be undone without inverting .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Define subjects, objects, and access rights in access control with examples. Differentiate role-based access control from attribute-based access control.
Answer
Subjects: active entities that request access to resources, such as a user, a process running on behalf of a user, or an application. Example: a user Ram or a running program.
Objects: passive resources to which access is controlled, such as files, records, databases, devices or programs. Example: salary.xlsx, a database table.
Access rights: the operations a subject may perform on an object, such as read, write, execute, delete, create, search. Example: Ram has read and write on report.doc but only read on salary.xlsx.
Together they form the access matrix, with subjects as rows, objects as columns and rights in the cells.
RBAC versus ABAC
| Basis | Role-Based Access Control | Attribute-Based Access Control |
|---|---|---|
| Decision based on | The role assigned to the user | Attributes of subject, object, action and environment |
| Policy | Permissions attached to roles; users assigned to roles | Rules evaluated over attributes (e.g. department = HR and time < 6 pm) |
| Granularity | Coarse | Fine-grained and context-aware |
| Flexibility | Rigid; many roles needed for varied cases ("role explosion") | Highly flexible; no new role needed |
| Administration | Simple and easy to audit | More complex to design and audit |
| Example | A "Teller" can view accounts | A doctor can view a record only if the patient is assigned to them and the access is from the hospital network |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Describe how online and offline dictionary attacks are carried out against password-based authentication.
Answer
A dictionary attack tries likely passwords (common words, names, leaked passwords and their variations) rather than all possible combinations.
Offline dictionary attack
- The attacker first obtains the system's password file of hashed passwords (by breaching the server, a backup or a leak).
- They hash each word of a dictionary, with common variations, using the same hash function (and salt, if known).
- They compare each result against the stolen hashes; a match reveals the password.
It needs no interaction with the system, so lockouts and rate limits do not apply and it can run at very high speed (also with precomputed rainbow tables and GPUs). Defences: salting, slow hash functions (bcrypt, scrypt, Argon2), protecting the password file.
Online dictionary attack
- The attacker targets a specific account on a live system.
- They submit candidate passwords from the dictionary through the normal login interface, one after another.
- A success is recognised by a login being accepted.
It is slow and noisy because every attempt goes through the server. Defences: account lockout, rate limiting, CAPTCHA, multi-factor authentication, monitoring of failed logins.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Describe the roles of relying parties, attribute providers, and identity providers in the Open Identity Trust Framework.
Answer
The Open Identity Trust Framework (OITF) is a model for federated identity in which trust between the parties is defined by common rules. It has three main roles.
- Identity provider (IdP): creates and manages the user's digital identity, authenticates the user, and issues assertions of identity (for example a login with Google). Relying parties trust its assertion.
- Attribute provider (AP): an authoritative source that holds and supplies additional attributes about the user, such as age, address, qualification or credit rating, usually with the user's consent. Examples are a bank, a university or a government registry.
- Relying party (RP): the service provider or application that needs to know the user's identity or attributes before granting access. It does not manage credentials itself but relies on the identity and attribute assertions from the IdP and APs to make its authorisation decision.
The user (subject) consents to the exchange, and a trust framework (legal, technical and policy rules) binds all the parties.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Define zombies, rootkits, and Trojans.
Answer
Zombie: a compromised computer connected to the Internet that has been taken over by an attacker through malware and is controlled remotely, without the owner's knowledge. Large numbers of zombies form a botnet, used for DDoS attacks, spam and further attacks that hide the attacker's identity.
Rootkit: a set of programs installed on a system to gain and maintain hidden, privileged (root/administrator) access. It modifies the operating system, hiding its own files, processes, network connections and other malware from the user and from antivirus tools, and is therefore difficult to detect and remove.
Trojan horse: a program that appears to be useful or legitimate but contains hidden malicious code which runs when the user executes it. It does not replicate by itself. It is used to steal data, open backdoors, install other malware or damage the system, and spreads by tricking users into running it.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Briefly describe the status of cyber law in Nepal.
Answer
Nepal's cyber law is still developing.
- Electronic Transactions Act, 2063 (2008): the main law. It gives legal recognition to electronic records and digital signatures, regulates the Controller of Certifying Authorities and certifying authorities, and defines computer-related offences such as unauthorised access, damage to computer systems and source code, publishing illegal material in electronic form, and breach of confidentiality. It provides penalties of fines and imprisonment and creates the Information Technology Tribunal and an appellate tribunal to deal with cases.
- Constitution of Nepal (2072): guarantees the right to privacy.
- Related laws: the Individual Privacy Act, 2075, the Muluki Criminal Code, 2074 (some cyber-related provisions), and the National Cyber Security Policy, 2080 and the Information Technology and Cyber Security Bill, which were introduced to address gaps.
- Weaknesses: the Act is old and does not adequately cover modern crimes such as cyberbullying, online fraud, data protection and social-media abuse; enforcement capacity, trained manpower and awareness are limited. A comprehensive and updated law is needed.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Discuss the methods of risk treatment in security risk analysis.
Answer
After risks are identified and assessed in security risk analysis, an organisation chooses how to treat each risk. The main options are:
- Risk acceptance: knowingly accepting the risk without further action when its likelihood or impact is low, or when the cost of control exceeds the potential loss.
- Risk avoidance: eliminating the risk by not carrying out the activity or not using the vulnerable system or service (for example, not exposing a service to the Internet).
- Risk reduction (mitigation): applying controls to reduce the likelihood or the impact, such as firewalls, patching, encryption, access control, backups and staff training.
- Risk transfer (sharing): shifting the financial consequences to a third party, for example through insurance or outsourcing, with contractual agreements.
The selected treatment is documented in a risk treatment plan; any residual risk that remains after treatment must be reviewed and formally accepted by management.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain the use of S-boxes in DES and illustrate an S-box operation with an example.
Answer
Use of S-boxes in DES. The S-boxes provide the substitution step of each DES round and are its only non-linear component, giving confusion (a complex relationship between key and ciphertext). Without them, DES would be linear and easily broken. There are eight S-boxes; each takes a 6-bit input and produces a 4-bit output, so the 48-bit output of the key-mixing step becomes 32 bits.
Operation. Each S-box is a table of 4 rows (0-3) and 16 columns (0-15). For a 6-bit input :
- the row is given by the outer bits ;
- the column is given by the inner four bits ;
- the entry at that row and column, written in 4 bits, is the output.
Example. Input to S1 = 011011.
- Outer bits
0and1give01= row 1. - Inner bits
1101= column 13. - S1, row 1, column 13 = 5, so the output is
0101.
The 6-bit block 011011 is thus replaced by the 4-bit block 0101.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain how SHA-2 generates a hash value.
Answer
SHA-2 is a family of hash functions (SHA-224, 256, 384, 512). The description below is for SHA-256, which produces a 256-bit digest from a message of up to bits, using 512-bit blocks.
- Padding: append a single
1bit, then0bits until the length is 448 mod 512, then a 64-bit field holding the original message length, so the total is a multiple of 512 bits. - Parsing: divide the padded message into 512-bit blocks .
- Initial hash value: eight 32-bit words (the fractional parts of the square roots of the first eight primes).
- Message schedule: for each block, expand the 16 words into 64 words using
- Compression: initialise working variables with the current hash value. For 64 rounds, update them using the functions Ch, Maj, , (bitwise rotations, shifts and XOR), the word and a round constant (from the cube roots of the first 64 primes). All additions are modulo .
- Update the hash: add the working variables to the current hash value ().
- Output: after the last block, the concatenation is the 256-bit digest.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Write the Rabin-Miller primality testing algorithm and use it to test whether 341 is prime.
Answer
Rabin-Miller (Miller-Rabin) algorithm to test whether (odd) is prime:
- Write with odd.
- Choose a random base with .
- Compute . If or , is probably prime for this base.
- Otherwise repeat times: . If , is probably prime for this base; if , is composite.
- If was never reached, is composite.
- Repeat with several bases; if passes all, it is probably prime (error probability at most for bases).
Test of
, so , . Take .
- .
- . This is neither 1 nor 340.
- . This is 1, not 340.
The value never appears, and we reached 1 without passing through . Hence 341 is composite (indeed ), even though it passes the simple Fermat test to base 2.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Define interception, repudiation, and incapacitation with examples.
Answer
Interception: an attack on confidentiality in which an unauthorised party gains access to data or communication in transit or storage without altering it. Example: sniffing packets on an unsecured Wi-Fi network to read someone's login details, or wiretapping a phone call.
Repudiation: a party denies having performed an action, such as sending a message or making a transaction, or denies having received it. Example: a customer claims they never placed an online order, or a sender denies sending an email. It is countered by non-repudiation measures: digital signatures, logs and audit trails.
Incapacitation: an attack that disables or reduces the availability of a system, service or resource, or its ability to perform its function. Example: a DDoS attack making a website unreachable, or malware that destroys a server's data or damages equipment.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
Distinguish between substitution and transposition cipher. How 16 sub keys are generated in DES? Describe in brief. Define finite field with its implications.
Answer
Substitution versus transposition cipher
| Substitution cipher | Transposition cipher |
|---|---|
| Replaces each plaintext symbol with another symbol | Rearranges the positions of the plaintext symbols |
| Identity of symbols changes, positions stay | Identity of symbols stays, positions change |
| Provides confusion | Provides diffusion |
| Examples: Caesar, monoalphabetic, Vigenere | Examples: rail fence, columnar transposition |
| Letter-frequency analysis breaks it | Letter frequency is unchanged, so anagramming is used to break it |
Generation of the 16 DES subkeys
- The 64-bit key is passed through Permuted Choice 1 (PC-1), which drops the 8 parity bits and permutes the rest, giving 56 bits.
- The 56 bits are split into two 28-bit halves and .
- In each round , both halves are circularly shifted left by 1 bit (rounds 1, 2, 9, 16) or 2 bits (other rounds), giving and .
- and are joined (56 bits) and passed through Permuted Choice 2 (PC-2), which selects and permutes 48 bits to give subkey .
- The shifted halves are carried to the next round. This is repeated to get .
Finite field
A finite field (Galois field, ) is a set with a finite number of elements in which addition, subtraction, multiplication and division (except by zero) are defined and obey the usual field axioms. The number of elements is always a prime power . is the integers modulo a prime ; uses polynomials modulo an irreducible polynomial.
Implications: arithmetic never leaves the set, so results stay of fixed size; every non-zero element has a multiplicative inverse, which allows decryption and key calculation. Finite fields are the basis of AES (GF()), elliptic-curve cryptography, RSA-related modular arithmetic and Diffie-Hellman.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
What are the purposes of message authentication? Explain the working mechanism of MD5.
Answer
Purposes of message authentication
- To verify the integrity of a message, i.e. that it was not altered in transit.
- To verify the authenticity of the source, i.e. that it really came from the claimed sender.
- To detect replay, delay or reordering (timeliness and sequence).
- To support non-repudiation when combined with digital signatures.
Techniques include message authentication codes (MACs), hash functions and digital signatures.
MD5 (Message Digest 5) produces a 128-bit hash from a message of any length, processing 512-bit blocks.
- Padding: append a
1bit and then0bits until the length is 448 mod 512. - Append length: add the original length as a 64-bit value, so that the total is a multiple of 512 bits.
- Initialise the buffer: four 32-bit registers , , , (hex).
- Process each 512-bit block (sixteen 32-bit words) in four rounds of 16 steps (64 steps in total). Each round uses a different nonlinear function: , , , . Each step is with a constant from the sine function and a left-rotation amount; the registers are then rotated.
- After each block, the results are added to the previous values of .
- Output: the concatenation of (128 bits) is the message digest.
MD5 is now considered insecure because collisions can be found easily.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
Define malicious software. Explain the different types of malicious softwares.
Answer
Malicious software (malware) is any program or code deliberately created to harm, disrupt, or gain unauthorised access to a computer system, its data or its users, without the owner's knowledge or consent.
Types of malware
- Virus: attaches itself to a legitimate program or file and replicates when the host is executed, spreading to other files. It may corrupt data or slow the system.
- Worm: a self-replicating program that spreads over networks by itself exploiting vulnerabilities, without needing a host file or user action. It consumes bandwidth and resources.
- Trojan horse: appears to be a useful program but carries hidden malicious functions; does not replicate itself.
- Ransomware: encrypts the victim's files, or locks the system, and demands payment for the key.
- Spyware: secretly gathers information, such as browsing habits and passwords, and sends it to an attacker. Keyloggers record keystrokes.
- Adware: displays unwanted advertisements and may track user behaviour.
- Rootkit: hides its presence and gives the attacker privileged persistent access.
- Backdoor (trapdoor): a hidden entry point that bypasses normal authentication.
- Logic bomb: code that is triggered by a certain condition or date and performs a harmful action.
- Bots/zombies and botnets: compromised machines controlled remotely, used for DDoS and spam.
- Fileless malware and scareware also exist; they run in memory or deceive users into buying fake security tools.
Protection includes antivirus software, patching, firewalls, backups and user awareness.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Perform polynomial addition, subtraction and multiplication of and over GF(7).
Answer
Let and over , so all coefficients are reduced mod 7.
Addition
Subtraction
Multiplication
Reducing mod 7 (, , , ):
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain about threats, attacks and assets.
Answer
Assets: anything of value to the organisation that needs protection: hardware, software, data and information, network infrastructure, services, people, and reputation. Security measures are chosen according to the value of the asset.
Threats: potential events or actors that could exploit a vulnerability and cause harm to an asset. Examples: hackers, malware, natural disasters, insider misuse, hardware failure. A threat is only a possibility of harm.
Attacks: actual attempts or actions that exploit a vulnerability to compromise an asset. They are the realisation of a threat.
- Passive attacks only observe or monitor (eavesdropping, traffic analysis); they are hard to detect.
- Active attacks modify data or disrupt service (masquerade, replay, modification of messages, denial of service).
Relationship: an attacker (threat agent) carries out an attack by exploiting a vulnerability in an asset; the result is loss of confidentiality, integrity or availability. Risk is the combination of threat likelihood and asset impact.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Why do we need two factor authentication? Discuss about security issues for user authentication.
Answer
Need for two-factor authentication (2FA)
A password alone is a single factor ("something you know") and is weak: it can be guessed, phished, stolen from a database, captured by a keylogger or reused across sites. 2FA requires a second, independent factor, from "something you have" (OTP token, phone, smart card) or "something you are" (fingerprint, face), so that a stolen password alone is not enough to log in. It greatly reduces account takeover.
Security issues in user authentication
- Weak, default or reused passwords and poor user practice.
- Dictionary and brute-force attacks (online and offline).
- Phishing and social engineering.
- Eavesdropping on credentials in transit, replay attacks and man-in-the-middle attacks.
- Theft of the password file or a poorly protected (unsalted) hash store.
- Keyloggers and shoulder surfing.
- Lost or stolen tokens and smart cards; cloned cards.
- Biometric problems: false acceptance and rejection, spoofing, and the fact that a compromised biometric cannot be changed.
- Weak account recovery procedures.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Differentiate between role based and attribute based access controls.
Answer
| Basis | Role-Based Access Control (RBAC) | Attribute-Based Access Control (ABAC) |
|---|---|---|
| Access decided by | The role of the user within the organisation | Attributes of the subject, object, operation and environment |
| Permission assignment | Permissions are assigned to roles, and users to roles | Policy rules written over attributes are evaluated at request time |
| Granularity | Coarse | Fine-grained |
| Context awareness | Little (time, location not considered) | High (time, location, device, sensitivity) |
| Flexibility and scale | Role explosion when requirements vary | Flexible; new rules without new roles |
| Management | Simple and easy to audit | More complex to define and audit; heavier evaluation |
| Example | "Manager" role may approve leave | Allow if department = HR, document class = internal, time within office hours |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain the security auditing architecture.
Answer
Security auditing is the independent review and analysis of system records and activities to check compliance with policy, detect violations and support investigation. The security auditing architecture (as in X.816 and Stallings) has these components:
- Event discriminator: logic that decides which events (for example logins, access to files, privilege changes) are of interest and passes them on for audit.
- Audit recorder: takes the selected events, formats them and writes them to the audit trail (log).
- Alarm processor: generates alarms or notifications for certain critical events, such as repeated failed logins.
- Audit trail: the stored record of events, protected from tampering, and used for later analysis.
- Audit analyzer: analyses the trail to detect patterns, anomalies or intrusions and may feed new rules back to the discriminator.
- Audit archiver: moves old audit records to long-term storage.
- Audit provider: gives authorised users access to the records.
- Audit trail examiner and reports: the auditor uses these to review activity and produce summary reports.
Data may be collected at application, system, network and user level, and it must be protected for integrity and confidentiality.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Define cybercrime and computer crime. Discuss about intellectual property.
Answer
Cybercrime: any criminal activity carried out using computers, networks or the Internet, where the computer may be a tool, a target or a place of crime. Examples: online fraud, hacking, identity theft, cyberstalking, child exploitation material.
Computer crime: a crime in which a computer is the target or is directly involved in the offence, for example unauthorised access, data theft or damage, malware and denial-of-service attacks. It is often treated as a narrower category within cybercrime, which also includes traditional crimes committed online.
Intellectual property (IP): creations of the mind that are legally protected so that the creator controls their use.
- Copyright: protects original works, such as software, books, music and databases.
- Patents: protect inventions for a limited period.
- Trademarks: protect names, logos and brands.
- Trade secrets: protect confidential business information.
Cyber-related IP issues include software piracy, illegal copying and distribution of content, counterfeiting, domain-name squatting and theft of source code or trade secrets. Law and digital rights management try to protect them.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
What is attack tree? Describe about password based authentication.
Answer
Attack tree: a hierarchical, tree-structured diagram that models how a system can be attacked. The root node is the attacker's ultimate goal; child nodes are sub-goals or steps needed to reach it. Nodes are joined by OR (any child suffices) or AND (all children are required). Leaf nodes are individual attacks and may be given costs or probabilities. It helps to analyse threats, find the weakest paths and decide on countermeasures. Example: goal "obtain user's password" with branches phishing, keylogger, guessing and stealing the password file.
Password-based authentication: the user proves identity by supplying a secret password (something you know) with a user ID.
- The system stores not the password but a hash of it, usually with a salt (a random per-user value), as in the password file.
- At login, the entered password is hashed with the stored salt and compared with the stored value.
- It is simple and cheap but vulnerable to guessing, dictionary and brute-force attacks, phishing and keyloggers.
- Countermeasures: strong password policy, slow hashing algorithms, salting, account lockout, restricted access to the password file, and multi-factor authentication.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 2.5+2.5 marks
What do you mean by subjects, objects and access rights? Discuss about ethical issues in cyber security.
Answer
Subjects, objects and access rights
- Subject: an active entity that requests access, such as a user or a process acting for the user.
- Object: a passive resource that is accessed, such as a file, database, device or program.
- Access right: the permitted operation of a subject on an object, such as read, write, execute, delete, create.
Example: user Sita (subject) has read and write rights on grades.db (object) but only read right on policy.pdf.
Ethical issues in cyber security
- Privacy and confidentiality: monitoring of users, collection and handling of personal data, and the extent to which it is justified.
- Responsible disclosure: how a security researcher or ethical hacker reports a vulnerability instead of exploiting or selling it.
- Authorised testing: penetration testing must be done only with permission and within scope.
- Misuse of privileged access by administrators and insiders.
- Intellectual property: piracy and misuse of licensed software and content.
- Professional conduct: honesty, competence, following codes of ethics (ACM, IEEE), and avoiding conflicts of interest.
- Dual-use tools and cyberwarfare or surveillance concerns.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Define security policy. How do you implement logging function?
Answer
Security policy: a formal, documented statement of an organisation's rules, practices and responsibilities for protecting its information and systems. It specifies what is to be protected, what is allowed and prohibited, and the consequences of violations. It is approved by management and forms the basis for choosing controls, for example acceptable-use, password, access control and incident response policies.
Implementing the logging function
- Decide which events must be logged according to the policy: logins and failures, privilege changes, access to sensitive files, configuration changes, errors and network connections.
- Record for each event: timestamp (synchronised clocks), user or process ID, source address, action, object and outcome. Never record passwords or secrets.
- Implement logging at the right levels: application (code calls a logging library), operating system (syslog, event log), and network devices (firewall and IDS logs).
- Send the logs to a central, separate log server to prevent tampering by a compromised host.
- Protect them with restricted access, integrity checks (hashes, signatures), encryption in transit and in storage.
- Define retention, rotation and archiving, and review them regularly using automated analysis or SIEM tools with alerts.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BIT 2079 Fifth Semester Web Technology II (TU IOST semester board exam, 2079 (BS), via StudyNp), TU BIT 2080 Fifth Semester Web Technology II (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Fifth Semester Web Technology II (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Fifth Semester Web Technology II (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2079 Fifth Semester Software Engineering (TU IOST semester board exam, 2079 (BS), via StudyNp), TU BIT 2080 Fifth Semester Software Engineering (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Fifth Semester Software Engineering (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Fifth Semester Software Engineering (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2079 Fifth Semester Information Security (TU IOST semester board exam, 2079 (BS), via StudyNp), TU BIT 2080 Fifth Semester Information Security (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Fifth Semester Information Security (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Fifth Semester Information Security (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2079 Fifth Semester Computer Graphics (TU IOST semester board exam, 2079 (BS), via StudyNp), TU BIT 2080 Fifth Semester Computer Graphics (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Fifth Semester Computer Graphics (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Fifth Semester Computer Graphics (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2079 Fifth Semester Technical Writing (TU IOST semester board exam, 2079 (BS), via StudyNp) and TU BIT 2082 Fifth Semester Technical Writing (TU IOST semester board exam, 2082 (BS), via StudyNp). Answers are written for this site; check them against your class notes.