INS Question Bank Boards
INS Question Bank Boards
Unit 1
1. Explain the architecture of OSI security.
Ans.
● The OSI (Open Systems Interconnection) Security Architecture defines a systematic
approach to providing security at each layer. It defines security services and security
mechanisms that can be used at each of the seven layers of the OSI model to provide
security for data transmitted over a network.
● These security services and mechanisms help to ensure the confidentiality, integrity, and
availability of the data.
● OSI architecture is internationally acceptable as it lays the flow of providing safety in an
organization.
The security services specified in X.800 are organized into four categories:
1. Authentication Service (X.800 Part 2):
● Authentication is the process of verifying the identity of communicating entities.
2. Access Control Service (X.800 Part 3):
● Access control involves restricting access to resources only to authorized entities.
3. Confidentiality (X.800 Part 4):
● Confidentiality ensures that information is not disclosed to unauthorized entities.
4. Integrity (X.800 Part 5):
● Integrity ensures that data is not tampered with or altered during transmission.
7. What are various Security mechanisms available?
Ans.
● Security mechanisms are the tools and techniques used to implement security services
and safeguard information in computer systems and networks.
● These mechanisms work in conjunction with security services to provide a layered
defense against various types of cyber threats.
Here are some common security mechanisms:
1. Encryption:
● Encryption transforms data into a secure format that is unreadable without the
appropriate decryption key.
2. Access Control:
● Access control mechanisms manage and restrict user or system access to resources
based on predefined policies.
3. Firewalls:
● Firewalls monitor and control incoming and outgoing network traffic based on
predetermined security rules.
4. Antivirus Software:
● Antivirus software scans, detects, and removes malicious software (malware) from
computer systems.
5. Digital Signatures:
● Digital signatures use cryptographic techniques to provide a way to verify the
authenticity and integrity of digital messages or documents.
6. Biometric Authentication:
● Biometric authentication uses unique physical or behavioral characteristics (such as
fingerprints or facial recognition) for user identification.
8. Explain X.800 Security mechanism in detail.
Ans.
The X.800 recommendation from the International Telecommunication Union (ITU) defines a
framework for network security and describes various security mechanisms. It categorizes
these mechanisms into specific and pervasive groups. Specific mechanisms are applied at a
certain point in the communication process, while pervasive mechanisms are not tied to any
specific point and are used throughout the entire process.
Specific Security Mechanisms:
1. Encipherment: The transformation of data into an unreadable format to prevent
unauthorized access, commonly known as encryption.
2. Digital Signature: A technique for validating the authenticity and integrity of a message,
software, or digital document.
3. Access Control: Mechanisms to ensure that access to resources is granted only to
authorized entities.
4. Data Integrity: Ensures the correctness and reliability of data during transmission,
preventing unauthorized data alteration.
5. Authentication Exchange: A process that verifies the identity of an entity or the origin of a
message.
6. Traffic Padding: The addition of non-information bits into data to thwart traffic analysis
attacks.
7. Routing Control: Mechanisms to control the path data takes to ensure it passes only
through trusted networks.
8. Notarization: The use of a trusted third party to ensure the integrity and origin of a
transaction.
9. Explain Symmetric Cipher Model
Ans.
● The Symmetric Cipher Model, also known as symmetric-key cryptography or secret-key
cryptography, is a cryptographic approach where the same key is used for both
encryption and decryption of the data.
● In this model, the sender and the receiver share a secret key, and this key is kept
confidential between the communicating parties.
1. Plain Text (x): This is the original data/message that is to be communicated to the receiver
by the sender. It is one of the inputs to the encryption algorithm.
2. Secret Key (k): It is a value/string/textfile used by the encryption and decryption algorithm
to encode and decode the plain text to cipher text and vice-versa respectively.
3. Encryption Algorithm (E): It takes the plain text and the secret key as inputs and produces
Cipher Text as output. It implies several techniques such as substitutions and
transformations on the plain text using the secret key. E(x, k) = y
4. Cipher Text (y): It is the formatted form of the plain text (x) which is unreadable for humans,
hence providing encryption during the transmission.
Decryption Algorithm (D): It performs a reversal of the encryption algorithm at the
recipient’s side.
10. Explain Principles of Public-Key Cryptosystems.
Ans.
● Public-key cryptosystems, also known as asymmetric-key cryptosystems, are cryptographic
systems that use pairs of keys: a public key and a private key.
● The principles of public-key cryptosystems are based on the mathematical properties of
certain algorithms, allowing for secure communication and digital signatures without the
need for the communicating parties to share a secret key beforehand.
So, if we want to encrypt the word "HELLO" using a Caesar cipher with a shift of 3:
Plaintext: HELLO
Ciphertext: KHOOR
Here's how the encryption works for each letter:
H -> K
E -> H
L -> O
L -> O
O -> R
In this example, each letter in the plaintext is shifted by three positions to the right in the
alphabet to obtain the corresponding letter in the ciphertext.
14. Explain Transposition Techniques.
Ans.
● Transposition techniques in information network security involve rearranging the order of
characters or blocks of data without altering their actual values.
● These techniques focus on the permutation of data elements to achieve confidentiality
and protect information from unauthorized access.
● Transposition ciphers are a type of symmetric-key encryption where the same key is
used for both encryption and decryption.
Here are some key points about transposition techniques:
Basic Principle:
● The fundamental idea behind transposition is to change the order of the characters in
the plaintext to produce the ciphertext.
Columnar Transposition:
● In a columnar transposition, the characters of the plaintext are written horizontally into a
grid of a certain number of columns.
Row Transposition:
● Row transposition involves rearranging the characters by permuting the rows of the
plaintext.
Rail Fence Cipher:
● The rail fence cipher is a specific type of transposition technique where the plaintext is
written diagonally on alternate lines, forming a pattern resembling a fence.
Key Management:
● The security of transposition ciphers relies heavily on the effective management of
encryption keys.
Security Considerations:
● While transposition techniques provide a level of security, they are generally considered
less secure than modern encryption algorithms, such as block ciphers like AES.
Combination with Substitution:
● Transposition techniques are often used in combination with substitution techniques to
create more complex and secure encryption methods.
Cryptanalysis:
● Transposition ciphers can be susceptible to certain cryptanalysis techniques, especially
if the key length is short or if the structure of the rearrangement is predictable.
Application:
● While transposition ciphers are not commonly used for serious security applications in
modern contexts, they can be used for educational purposes, puzzles, or simple
applications where strong cryptographic security is not a primary requirement.
15. Write a short note on Steganography.
Ans.
● Steganography is the art and science of concealing information within other data in such
a way that the presence of the hidden information is not readily apparent.
● Unlike cryptography, which focuses on making the content of a message unreadable to
unauthorized users, steganography is concerned with hiding the existence of the
message itself.
● The primary goal of steganography is to ensure that the embedded information remains
undetected by unintended recipients.
Key Concepts and Techniques in Steganography:
● Cover Medium: This refers to the carrier or host medium in which the secret information
is hidden. Common cover media include images, audio files, video files, text, or even
network traffic.
● Stego Object: The cover medium after embedding the secret information is referred to
as the stego object. The stego object appears unchanged to the casual observer, but it
contains the hidden data.
16. Describe the Feistel Structure of Encryption & Decryption.
Ans.
● The Feistel structure is a symmetric structure used in the construction of block ciphers.
● It is a fundamental component in many modern encryption algorithms, including the
Data Encryption Standard (DES) and the Advanced Encryption Standard (AES). The
Feistel structure provides a way to create invertible ciphers, meaning that encryption and
decryption processes are easily reversible.
● Feistel cipher structure encrypts plain text in several rounds, where it applies substitution
and permutation to the data. Each round uses a different key for encryption, and that
same key is used for the decryption process.
Encryption
1. Convert plain text into binary using ASCII codes of each character.
2. Divide the data into blocks, processed one at a time
Decryption
● The decryption process uses a similar procedure: cipher text is fed to the algorithm and
the exact steps are followed. The only difference is that the keys used in the decryption
process follow a reverse order of that used in the encryption process.
Symmetric-Key Encryption:
DES is a symmetric-key algorithm, meaning the same secret key is used for both encryption and
decryption. This requires secure key distribution between communicating parties.
Block Cipher:
DES operates on fixed-size blocks of data, specifically 64 bits. Each 64-bit block of plaintext is
independently encrypted into a 64-bit block of ciphertext.
Key Length:
The key used in DES is 56 bits long. Originally, DES used a 64-bit key, but 8 bits are used for parity,
resulting in an effective key length of 56 bits.
18. Explain Triple DES in detail.
Ans.
The speed of exhaustive key searches against DES after 1990 began to cause discomfort
amongst users of DES.
However, users did not want to replace DES as it takes an enormous amount of time and money
to change encryption algorithms that are widely adopted and embedded in large security
architectures.
The pragmatic approach was not to abandon the DES completely, but to change the manner in
which DES is used. This led to the modified schemes of Triple DES (sometimes known as 3DES).
Incidentally, there are two variants of Triple DES known as 3-key Triple DES (3TDES) and 2-key Triple
DES (2TDES).
3-KEY Triple DES
Before using 3TDES, user first generate and distribute a 3TDES key K, which consists of three
different DES keys K1, K2 and K3.
This means that the actual 3TDES key has length 3×56 = 168 bits. The encryption scheme is
illustrated as follows −
That means it takes 128 bits as input and outputs 128 bits of encrypted cipher text as output.
AES relies on substitution-permutation network principle which means it is performed using a
series of linked operations which involves replacing and shuffling of the input data.
20. Write a short note on the Electronic Code Book (ECB).
Ans.
● Electronic Codebook (ECB) is a basic and widely-used mode of operation in block ciphers. In
ECB mode, each block of plaintext is independently encrypted using the same cryptographic
key.
● This means that identical blocks of plaintext will always produce identical blocks of
ciphertext, making it deterministic.
● ECB is straightforward to implement and allows for parallel processing of blocks, making it
suitable for scenarios where parallelization is essential.
● Electronic code book is the easiest block cipher mode of functioning. It is easier because of
direct encryption of each block of input plaintext and output is in the form of blocks of
encrypted ciphertext.
● Generally, if a message is larger than b bits in size, it can be broken down into a bunch of
blocks and the procedure is repeated.
21. What are the different modes of operation in DES?
Ans.
● The Data Encryption Standard (DES) supports various modes of operation, which define how
the encryption and decryption processes are applied to blocks of data.
Here are the commonly used modes of operation in DES:
1. Electronic Codebook (ECB):
2. Cipher Block Chaining (CBC):
3. Cipher Feedback (CFB):
4. Output Feedback (OFB):
5. Cipher Text Stealing (CTS):
6. Propagating Cipher Block Chaining (PCBC):
Key Generation
a. Select Two Prime Numbers: Choose two distinct large prime numbers, pp and qq.
b. Compute nn: Calculate n=p×qn=p×q. The value of nn is used as the modulus for both the
public and private keys. Its length, usually expressed in bits, is the key length.
c. Calculate ϕ(n)ϕ(n): Compute Euler's totient function, ϕ(n)=(p−1)×(q−1)ϕ(n)=(p−1)×(q−1).
This value is used in determining the public and private keys.
d. Choose Public Key Exponent ee: Select an integer ee such that 1<e<ϕ(n)1<e<ϕ(n) and ee is
co-prime to ϕ(n)ϕ(n), which means ee and ϕ(n)ϕ(n) share no factors other than 1.
Commonly, 65537 is used for its balance of security and performance.
e. Determine Private Key dd: Calculate dd as the modular multiplicative inverse of ee modulo
ϕ(n)ϕ(n). In simpler terms, dd is a number such that d×ed×e is 1 modulo ϕ(n)ϕ(n).
Encryption with Public Key:
- The public key is the pair (n,e)(n,e).
Decryption with Private Key:
- The private key is the pair (n,d)(n,d).
Unit 2
1. Explain Diffie-Hellman Key Exchange.
Ans.
● Diffie-Hellman key exchange is a method of digital encryption that securely exchanges
cryptographic keys between two parties over a public channel without their conversation
being transmitted over the internet.
● The two parties use symmetric cryptography to encrypt and decrypt their messages.
● Published in 1976 by Whitfield Diffie and Martin Hellman, it was one of the first practical
examples of public key cryptography.
● Diffie-Hellman key exchange raises numbers to a selected power to produce decryption
keys. The components of the keys are never directly transmitted, making the task of a
would-be code breaker mathematically overwhelming.
● The method doesn't share information during the key exchange. The two parties have no
prior knowledge of each other, but the two parties create a key together.
● Diffie-Hellman key exchange's goal is to securely establish a channel to create and share a
key for symmetric key algorithms.
● Generally, it's used for encryption, password-authenticated key agreement and forward
security.
● Password-authenticated key agreements are used to prevent man-in-the-middle (MitM)
attacks. Forward secrecy-based protocols protect against the compromising of keys by
generating new key pairs for each session.
● Diffie-Hellman key exchange is commonly found in security protocols, such as Transport
Layer Security (TLS), Secure Shell (SSH) and IP Security (IPsec). For example, in IPsec,
the encryption method is used for key generation and key rotation.
2. Explain Public-Key Cryptosystems.
Ans.
● Public-key cryptosystems, also known as asymmetric cryptography, are cryptographic
systems that use pairs of keys: a public key and a private key.
● These keys are mathematically related but have different roles in the encryption and
decryption processes.
● The fundamental idea behind public-key cryptography is to address the key distribution
problem that exists in symmetric key cryptography.
Here's a basic explanation of how public-key cryptosystems work:
1. Key Pairs:
● Public Key: This key is freely distributed and available to anyone. It is used for encryption
by anyone who wants to send an encrypted message to the owner of the public key.
● Private Key: This key is kept secret and known only to the owner. It is used for decrypting
messages that were encrypted with the corresponding public key.
2. Encryption:
If Alice wants to send a confidential message to Bob, she uses Bob's public key to
encrypt the message.
3. Digital Signatures:
Public-key cryptography is also used for digital signatures. If Bob wants to sign a
message to prove that it was indeed sent by him, he uses his private key to create a
digital signature.
4. Security:
The security of public-key cryptosystems relies on the difficulty of certain mathematical
problems, such as factoring large numbers into their prime factors.
For example, the widely used RSA algorithm is based on the difficulty of factoring the
product of two large prime numbers.
5. Key Exchange:
Public-key cryptography is often used in combination with symmetric-key cryptography to
secure communications. For example, in a secure web connection, the public-key system
may be used to exchange a symmetric key, which is then used for the actual data
encryption.
3. Explain the use of Hash function
Ans.
● Hashing is the process of generating a value from a text or a list of numbers using a
mathematical function known as a hash function.
● A Hash Function is a function that converts a given numeric or alphanumeric key to a small
practical integer value.
● The mapped integer value is used as an index in the hash table.
● In simple terms, a hash function maps a significant number or string to a small integer that
can be used as the index in the hash table.
● The pair is of the form (key, value), where for a given key, one can find a value using some
kind of a “function” that maps keys to values.
● The key for a given object can be calculated using a function called a hash function.
● For example, given an array A, if i is the key, then we can find the value by simply looking up
A[i].
4. State various applications of Cryptographic Hash Functions.
Ans.
● Cryptographic hash functions play a crucial role in information security by providing a way to
generate fixed-size, unique hash values (digests) from arbitrary input data.
● These hash functions have various applications in different aspects of cybersecurity.
Here are several applications of cryptographic hash functions:
1. Data Integrity: Hash functions are used to ensure the integrity of data. By generating a hash
value (checksum) of a piece of data, users can later recompute the hash and compare it to
the original. If the hashes match, the data has not been altered.
2. Digital Signatures: In digital signatures, a hash value of the message is created, and then
this hash is encrypted with the sender's private key.
The recipient can use the sender's public key to decrypt the hash and verify the integrity and
authenticity of the message.
3. Password Storage: Hash functions are commonly used to securely store passwords.
Instead of storing the actual passwords, systems store the hash values of passwords.
During login attempts, the system hashes the entered password and compares it to the
stored hash.
4. Data Deduplication: Hash functions help identify duplicate data efficiently. By comparing
hash values, systems can quickly determine if two sets of data are identical, which is useful
for data deduplication in storage systems.
5. Blockchain and Cryptocurrencies: Blockchain technology relies heavily on cryptographic
hash functions. Hashes are used to link blocks in the chain, ensuring the integrity of the
entire transaction history. Miners also use hash functions in the process of adding new
blocks to the blockchain.
6. Digital Forensics: Hash functions are employed in digital forensics to verify the integrity of
digital evidence. Investigators can hash digital files and compare the hash values with those
recorded during the collection process to ensure that the evidence has not been tampered
with.
7. File Verification: When downloading files from the internet, users can check the integrity of
the downloaded files by comparing the hash value provided by the source with the hash
value computed locally after downloading.
8. Message Authentication Codes (MACs): Cryptographic hash functions are used to create
Message Authentication Codes, which are used to authenticate the source of a message. A
MAC is generated by combining the message with a secret key and hashing the result.
9. Digital Certificates: Hash functions are used in the creation and verification of digital
certificates. The hash value of a certificate is signed by a certificate authority, providing a
means for others to verify the authenticity of the certificate.
5. What is known as Message Authentication Codes (MAC).
Ans.
● A Message Authentication Code (MAC) is a short piece of information used to authenticate
a message and confirm its integrity. It is generated by applying a cryptographic hash
function and a secret key to the message.
● The purpose of a MAC is to ensure that a message has not been tampered with during
transmission and to verify the authenticity of the sender.
Managing Keys in the Cryptosystem: The security of a cryptosystem relies on its keys. Thus, it
is important that we have a solid key management system in place. The 3 main areas of key
management are as follows:
2. Authentication Process
a. Initial Authentication:
i. The user logs in, and the client sends a request to the AS, including the user's ID and
the desired service.
ii. The AS verifies the user's credentials (typically a password) and sends back two
things: a TGT (encrypted using the TGS's secret key) and a session key (encrypted
using the user's password).
b. TGT Request:
i. The client decrypts the session key using the user's password.
ii. When accessing a service, the client sends a request to the TGS, including the TGT
and a service request, both encrypted with the session key.
c. Service Authentication:
i. The TGS decrypts the TGT, validates it, and issues a service ticket (encrypted with
the service's secret key) and a new session key.
ii. The client forwards the service ticket to the desired service.
d. Service Use: The service decrypts the ticket using its secret key, validating the user's
identity. The service and client now use the new session key for secure communication.
3. Security Features
a. Time Stamps: Prevent replay attacks. Tickets and authenticators have a limited lifespan.
b. Secret Keys: No passwords are transmitted over the network.
c. Mutual Authentication: Both client and server verify each other's identities.
d. Delegated Authentication: Services can authenticate users on behalf of other services.
Usage: Kerberos is widely used in various environments, especially in Windows Active Directory
networks, and is often integrated into web applications, database systems, and other networked
services. It's known for its ability to provide strong authentication over insecure networks,
making it a valuable tool for securing network communications.
Unit 3
1. What are Firewalls? Explain the Types of Firewalls.
Ans.
● Network Firewalls are the devices that are used to prevent private networks from
unauthorized access.
● A Firewall is a security solution for the computers or devices that are connected to a
network, they can be either in form of hardware as well as in form of software.
● It monitors and controls the incoming and outgoing traffic (the amount of data moving
across a computer network at any given time ).
● The major purpose of the network firewall is to protect an inner network by separating it
from the outer network.
● Inner Network can be simply called a network created inside an organization and a network
that is not in the range of inner network can be considered as Outer Network.
Types of Network Firewall :
1. Packet Filters –
● It is a technique used to control network access by monitoring outgoing and
incoming packets and allowing them to pass or halt based on the source and
destination Internet Protocol (IP) addresses, protocols, and ports.
● This firewall is also known as a static firewall.
2. Stateful Inspection Firewalls –
● It is also a type of packet filtering which is used to control how data packets
move through a firewall. It is also called dynamic packet filtering.
● These firewalls can inspect that if the packet belongs to a particular session or
not. It only permits communication if and only if, the session is perfectly
established between two endpoints, otherwise it will block the communication.
3. Application Layer Firewalls –
● These firewalls can examine application layer (of OSI model) information like an
HTTP request.
● If it finds some suspicious application that can be responsible for harming our
network or that is not safe for our network then it gets blocked right away.
4. Next-generation Firewalls –
● These firewalls are called intelligent firewalls.
● These firewalls can perform all the tasks that are performed by the other types
of firewalls that we learned previously but on top of that, it includes additional
features like application awareness and control, integrated intrusion prevention,
and cloud-delivered threat intelligence.
5. Circuit-level gateways –
● A circuit-level gateway is a firewall that provides User Datagram Protocol (UDP)
and Transmission Control Protocol (TCP) connection security and works between
an Open Systems Interconnection (OSI) network model’s transport and
application layers such as the session layer.
6. Software Firewall –
● The software firewall is a type of computer software that runs on our computers.
● It protects our system from any external attacks such as unauthorized access,
malicious attacks, etc. by notifying us about the danger that can occur if we open
a particular mail or if we try to open a website that is not secure.
7. Hardware Firewall –
● A hardware firewall is a physical appliance that is deployed to enforce a network
boundary.
● All network links crossing this boundary pass-through this firewall, which
enables it to perform an inspection of both inbound and outbound network traffic
and enforce access controls and other security policies.
8. Cloud Firewall –
● These are software-based, cloud-deployed network devices. This cloud-based
firewall protects a private network from any unwanted access.
● Unlike traditional firewalls, a cloud firewall filters data at the cloud level.
Before discussing SET further, let’s see a general scenario of electronic transactions, which
includes client, payment gateway, client financial institution, merchant, and merchant financial
institution.
Requirements in SET: The SET protocol has some requirements to meet, some of the important
requirements are:
● It has to provide mutual authentication i.e., customer (or cardholder) authentication by
confirming if the customer is an intended user or not, and merchant authentication.
● It has to keep the PI (Payment Information) and OI (Order Information) confidential by
appropriate encryptions.
● It has to be resistive against message modifications i.e., no changes should be allowed in
the content being transmitted.
SET also needs to provide interoperability and make use of the best security mechanisms.
SET functionalities:
● Provide Authentication
1. Merchant Authentication – To prevent theft, SET allows customers to check previous
relationships between merchants and financial institutions. Standard X.509V3
certificates are used for this verification.
2. Customer / Cardholder Authentication – SET checks if the use of a credit card is done
by an authorized user or not using X.509V3 certificates.
● Provide Message Confidentiality: Confidentiality refers to preventing unintended people
from reading the message being transferred. SET implements confidentiality by using
encryption techniques. Traditionally DES is used for encryption purposes.
● Provide Message Integrity: SET doesn’t allow message modification with the help of
signatures. Messages are protected against unauthorized modification using RSA digital
signatures with SHA-1 and some using HMAC with SHA-1,
● Dual Signature: The dual signature is a concept introduced with SET, which aims at
connecting two information pieces meant for two different receivers :
3. Explain Intrusion Detection systems.
Ans.
● Intrusion Detection Systems (IDS) are security mechanisms designed to monitor network or
system activities for signs of malicious or unauthorized activities.
● The primary goal of an Intrusion Detection System is to detect, log, and respond to
security-related events in real-time.
● IDS plays a crucial role in enhancing the overall security posture of a network or system by
providing early detection and response to potential security threats.
● There are two main types of IDS: Network-based IDS (NIDS) and Host-based IDS (HIDS).
● An IDS (Intrusion Detection System) monitors the traffic on a computer network to detect
any suspicious activity.
● It analyzes the data flowing through the network to look for patterns and signs of abnormal
behavior.
● The IDS compares the network activity to a set of predefined rules and patterns to identify
any activity that might indicate an attack or intrusion.
● If the IDS detects something that matches one of these rules or patterns, it sends an alert to
the system administrator.
● The system administrator can then investigate the alert and take action to prevent any
damage or further intrusion.
2. Detection Methods:
● Signature-Based Detection: Similar to NIDS, but focuses on host-level activities.
● Anomaly-Based Detection: Learns what is normal for a specific host and triggers alerts
for deviations.
Advantages:
● Provides detailed visibility into host-level activities.
● Can detect insider threats and attacks targeting specific hosts.
Disadvantages:
● May not be as effective in detecting network-wide attacks.
● Increased resource utilization on individual hosts.
IDS systems maintain logs of detected events, which can be used for analysis, forensics,
and compliance reporting.
Response Mechanisms: Depending on the type of IDS, response mechanisms can include
logging, alerting, and even automated responses like blocking malicious IP addresses.
Centralized Management: Many IDS solutions offer centralized management consoles for
monitoring and configuring multiple sensors or agents.
Updates and Maintenance: Regular updates to attack signatures and system rules to stay
current with emerging threats.
4. Explain SSL in detail.
Ans.
Secure Socket Layer (SSL) provides security to the data that is transferred between web browser
and server.
SSL encrypts the link between a web server and a browser which ensures that all data passed
between them remains private and free from attack.
Secure Socket Layer Protocols:
● SSL record protocol
● Handshake protocol
● Change-cipher spec protocol
● Alert protocol
Handshake Protocol:
● Handshake Protocol is used to establish sessions.
● This protocol allows the client and server to authenticate each other by sending a series
of messages to each other.
● Handshake protocol uses four phases to complete its cycle.
Change-cipher Protocol:
● This protocol uses the SSL record protocol. Unless Handshake Protocol is completed,
the SSL record Output will be in a pending state
● . After the handshake protocol, the Pending state is converted into the current state.
● Change-cipher protocol consists of a single message which is 1 byte in length and can
have only one value.
● This protocol’s purpose is to cause the pending state to be copied into the current state.
Alert Protocol:
● This protocol is used to convey SSL-related alerts to the peer entity. Each message in
this protocol contains 2 bytes.
salient Features of Secure Socket Layer:
● The advantage of this approach is that the service can be tailored to the specific needs
of the given application.
● Secure Socket Layer was originated by Netscape.
● SSL is designed to make use of TCP to provide reliable end-to-end secure service.
● This is a two-layered protocol.
In conclusion, web security is essential for safeguarding user data, protecting against cyber
threats, and maintaining the trust of users and customers. It is a foundational aspect of the
digital landscape, ensuring the integrity, confidentiality, and availability of information
exchanged over the internet. Organizations and individuals alike must prioritize and invest in
web security to navigate the online environment safely and securely.
7. Explain Viruses and threats.
Ans.
Viruses and threats in the context of information network security refer to malicious software
and potential risks that can compromise the confidentiality, integrity, and availability of data in a
computer network.
These threats are designed to exploit vulnerabilities in systems, networks, and applications,
posing risks to the security of sensitive information. Here are key concepts related to viruses and
threats in the context of information network security:
1. Viruses:
● Definition: A computer virus is a type of malicious software that attaches itself to
legitimate programs or files, spreading from one computer to another when the infected
file is shared.
● Characteristics:
A. Self-Replication: Viruses can replicate themselves and spread across a network,
infecting other files or systems.
B. Payload: Viruses often carry a payload, which may be harmful code, designed to
perform malicious activities.
● Impact: Viruses can corrupt or delete files, disrupt system operations, and sometimes
serve as a delivery mechanism for other types of malware.
2. Worms:
● Definition: Worms are self-replicating malware that can spread independently across
networks without requiring user intervention or attaching to host files.
● Characteristics:
A. Network Propagation: Worms exploit network vulnerabilities to propagate and
infect other systems automatically.
B. Resource Consumption: Worms can consume network bandwidth and system
resources, leading to performance degradation.
● Impact: Worms can rapidly infect a large number of systems, causing widespread
disruption.
3. Trojans (Trojan Horses):
● Definition: Trojans are disguised as legitimate software but contain malicious code that
performs unauthorized actions when executed.
● Characteristics:
A. Deceptive Appearance: Trojans often masquerade as benign or useful programs
to trick users into installing them.
B. Backdoors: Trojans may create backdoors for remote attackers to gain
unauthorized access to the infected system.
● Impact: Trojans can facilitate unauthorized access, data theft, or further malware
installation.
4. Ransomware:
● Definition: Ransomware is a type of malware that encrypts files on a victim's system,
demanding payment (usually in cryptocurrency) for the decryption key.
● Characteristics:
A. Data Encryption: Ransomware encrypts files, making them inaccessible to the
user until a ransom is paid.
B. Payment Demands: Attackers demand payment in exchange for providing the
decryption key.
C. Impact: Ransomware can lead to data loss, financial losses, and operational
disruptions.
5. Spyware:
● Definition: Spyware is software that secretly monitors and collects user information
without their knowledge, often for advertising or malicious purposes.
● Characteristics:
A. Stealthy Behavior: Spyware operates in the background without user consent or
awareness.
B. Data Collection: Collects sensitive information such as keystrokes, login credentials, or
browsing habits.
● Impact: Spyware can compromise user privacy, leading to identity theft or unauthorized
access to personal information.
6. Phishing Attacks:
● Definition: Phishing attacks involve deceptive tactics, such as fake emails or websites,
to trick users into disclosing sensitive information like usernames, passwords, or
financial details.
● Characteristics:
A. Social Engineering: Phishing relies on manipulating individuals through social
engineering techniques.
B. Imitation: Phishing emails or websites often mimic legitimate entities to appear
trustworthy.
● Impact: Phishing can lead to unauthorized access, identity theft, or financial fraud.
7. Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS) Attacks:
● Definition: DoS attacks overwhelm a system or network, causing service disruption.
DDoS attacks involve multiple systems coordinated to flood a target with traffic.
● Characteristics:
A. Traffic Overload: DoS and DDoS attacks flood network resources, rendering them
unavailable.
B. Service Disruption: These attacks aim to disrupt the availability of services.
● Impact: DoS and DDoS attacks can lead to downtime, loss of business, and financial
repercussions.
Importance of Addressing Threats in Information Network Security:
● Protection of Confidential Information: Web security measures safeguard sensitive data
from unauthorized access, ensuring the confidentiality of information.
● Maintaining User Trust: Addressing threats helps maintain user trust by providing a
secure environment for online interactions, transactions, and communication.
● Preventing Financial Losses: Cyber threats, if successful, can lead to financial losses
due to data breaches, ransom payments, or disruptions to business operations.
● Avoiding Legal Consequences: Organizations that fail to address security threats may
face legal consequences, especially if they are responsible for protecting customer or
employee data.
● Ensuring Business Continuity: Effective security measures help prevent disruptions to
operations, ensuring the continuity of business activities.
8. Explain DDOS.
Ans.
A Distributed Denial of Service (DDoS) attack is a malicious attempt to disrupt the regular
functioning of a targeted system, service, or network by overwhelming it with a flood of traffic.
Here's an explanation of DDoS attacks:
● A DDoS attack is a type of cyberattack in which multiple compromised computers or
devices are coordinated to flood a target system or network with an overwhelming
volume of traffic.
● The objective is to exhaust the target's resources, such as bandwidth, processing power,
or network connections, rendering it incapable of responding to legitimate user requests.
Execution :
● DDoS attacks are executed by a network of computers, often called a botnet, that are
under the control of a malicious actor.
● The attacker commands these compromised devices to send a large volume of traffic to
the target simultaneously. This coordinated effort amplifies the impact of the attack,
making it challenging for the target to distinguish between legitimate and malicious
traffic.
Digital Signatures:
● PGP supports digital signatures, allowing users to sign their messages or files with their
private key.
● Recipients can then verify the authenticity of the sender and ensure that the content has not
been tampered with during transit.
● This enhances the integrity of the information being exchanged.
Web of Trust:
a. PGP operates on the principle of a "web of trust." Users can sign each other's public keys,
establishing a network of trusted relationships.
b. This decentralized trust model enables users to verify the authenticity of public keys and
enhances the overall security of the PGP system.
Email Security:
a. PGP is commonly used to secure email communication, providing end-to-end encryption for
the contents of emails.
b. This ensures that even if emails are intercepted during transit, the information remains
confidential.
File Encryption and Decryption:
a. PGP can be used to encrypt and decrypt files, ensuring the security of sensitive documents
or data stored on a computer or transmitted over a network.
b. This is particularly valuable for securing data at rest and in transit.
Cross-Platform Compatibility:
a. PGP is available on various platforms, including Windows, macOS, and Linux, making it a
versatile tool for securing communication across different operating systems.
b. This cross-platform compatibility contributes to its widespread adoption.
OpenPGP Standard:
a. PGP has an open standard known as OpenPGP, allowing for interoperability between
different PGP implementations.
b. This standardization ensures that users can employ different PGP-compatible tools while
maintaining compatibility and security.
Resistance to Eavesdropping:
1. By using strong encryption algorithms, PGP resists eavesdropping attempts, protecting
sensitive information from unauthorized access.
2. This is especially important in the context of information network security, where data may
traverse through potentially insecure networks.
In conclusion, PGP is a robust and widely adopted cryptographic tool that plays a crucial role in
ensuring the confidentiality, integrity, and authenticity of information exchanged over networks.
Its ability to provide end-to-end encryption, digital signatures, and a decentralized web of trust
makes it a valuable asset in the realm of information network security, particularly for securing
email communication and files.
10. Write a short note on S/MIME.
Ans.
● S/MIME, or Secure/Multipurpose Internet Mail Extensions, is a widely used standard for
securing email communication through the application of cryptographic techniques.
● S/MIME enhances the security of email messages by providing encryption, digital
signatures, and certificate-based authentication. Here's a short note on S/MIME:
Overview:
● S/MIME is a protocol that enables the secure exchange of emails over the Internet.
● It builds upon the MIME standard, which defines the format of multimedia data in email
messages, by adding security features.
● S/MIME is commonly employed to protect the confidentiality and integrity of email content,
as well as to verify the authenticity of the sender.
Key Features:
1. Digital Signatures:
a. S/MIME allows users to sign their email messages using their private keys.
b. The digital signature provides a way for the recipient to verify the origin and integrity of
the message.
c. If the signature is valid, the recipient can be confident that the message has not been
tampered with and was indeed sent by the claimed sender.
2. Email Encryption:
a. One of the primary features of S/MIME is email encryption.
b. Users can encrypt the content of their email messages, ensuring that only the intended
recipient, who possesses the corresponding private key, can decrypt and read the
message.
c. This protects sensitive information from unauthorized access during transmission.
3. Certificate-Based Authentication:
a. S/MIME relies on digital certificates to establish the identity of email users. These
certificates are issued by trusted Certificate Authorities (CAs) and bind a public key to an
individual or organization
b. Certificate-based authentication helps prevent email spoofing and ensures that the
sender is who they claim to be.
4. Interoperability:
a. S/MIME is a widely adopted standard, and email clients that support S/MIME can
interoperate seamlessly.
b. This interoperability allows users to exchange secure emails across different email
platforms and clients without compatibility issues.
5. Compliance with Security Standards:
a. S/MIME adheres to established security standards, providing a robust framework for
secure email communication.
b. It aligns with the principles of public-key cryptography, X.509 certificates, and
cryptographic algorithms to ensure a high level of security.
6. Ease of Use:
a. S/MIME is designed to be user-friendly, and once set up, users can sign and encrypt their
emails with relative ease.
b. Most modern email clients support S/MIME, offering a straightforward way for users to
enable and manage security features.
Use Cases:
Secure Communication:
S/MIME is commonly used to secure sensitive and confidential communications, such
as business negotiations, legal correspondence, or financial transactions, where privacy
and data integrity are paramount.
IP Security Architecture:
3. Encryption algorithm: The encryption algorithm is the document that describes various
encryption algorithms used for Encapsulation Security Payload.
5. Authentication Algorithm: The authentication Algorithm contains the set of documents that
describe the authentication algorithm used for AH and for the authentication option of ESP.
6. DOI (Domain of Interpretation): DOI is the identifier that supports both AH and ESP protocols.
It contains values needed for documentation related to each other.
7. Key Management: Key Management contains the document that describes how the keys are
exchanged between sender and receiver.
Here are key aspects of the Encapsulating Security Payload (ESP) in IPsec:
1. Confidentiality:
a. Encryption:
i. ESP primarily addresses the confidentiality of data by encrypting the payload (the
actual data being transmitted).
ii. This ensures that even if the packets are intercepted, the content remains
confidential and unreadable without the appropriate decryption key.
3. Header Fields:
a. SPI (Security Parameter Index): Identifies the security association (SA) to be used for
processing the packet.
b. Sequence Number: Helps prevent replay attacks by ensuring the correct order of
received packets.
c. Payload Data: Contains the encrypted original IP packet.
d. Padding: Used to ensure that the payload data meets the encryption algorithm's block
size.
e. Pad Length: Specifies the length of the padding field.
f. Next Header: Identifies the type of data in the payload.
4. Optional Authentication:
a. Integrity Check Value (ICV):
i. ESP allows for optional authentication by including an Integrity Check Value (ICV)
in the ESP trailer.
ii. This is achieved using cryptographic algorithms, such as Hash-based Message
Authentication Codes (HMACs).
b. Authentication Data:
i. The ICV provides a way to verify the integrity of the packet, ensuring that it has not
been tampered with during transit.
ii. This is crucial for detecting and preventing data manipulation or injection attacks.
6. Tunnel Mode:
a. In tunnel mode, ESP encrypts the entire original IP packet, including the IP header.
b. This mode is often used for securing communication between network gateways.
Security Consideration:
1. Updated Software: You need to always update your software. Hackers may be aware of
vulnerabilities in certain software, which are sometimes caused by bugs and can be used to
damage your computer system and steal personal data.
Older versions of software can become a gateway for hackers to enter your network.
Software makers soon become aware of these vulnerabilities and will fix vulnerable or
exposed areas. That’s why It is mandatory to keep your software updated, It plays an
important role in keeping your personal data secure.
2. Beware of SQL Injection: SQL Injection is an attempt to manipulate your data or your
database by inserting a rough code into your query.
For e.g. somebody can send a query to your website and this query can be a rough code
while it gets executed it can be used to manipulate your database such as change tables,
modify or delete data or it can retrieve important information also so, one should be aware of
the SQL injection attack.
3. Cross-Site Scripting (XSS): XSS allows the attackers to insert client-side script into web
pages. E.g. Submission of forms.
It is a term used to describe a class of attacks that allow an attacker to inject client-side
scripts into other users’ browsers through a website.
As the injected code enters the browser from the site, the code is reliable and can do things
like sending the user’s site authorization cookie to the attacker.
4. Error Messages: You need to be very careful about error messages which are generated to
give the information to the users while users access the website and some error messages
are generated due to one or another reason and you should be very careful while providing
the information to the users.
For e.g. login attempt – If the user fails to login the error message should not let the user
know which field is incorrect: Username or Password.
5. Data Validation: Data validation is the proper testing of any input supplied by the user or
application. It prevents improperly created data from entering the information system.
Validation of data should be performed on both server-side and client-side.
If we perform data validation on both sides that will give us the authentication. Data
validation should occur when data is received from an outside party, especially if the data is
from untrusted sources.
6. Password: Password provides the first line of defense against unauthorized access to your
device and personal information. It is necessary to use a strong password. Hackers in many
cases use sophisticated software that uses brute force to crack passwords. Passwords
must be complex to protect against brute force. It is good to enforce password
requirements such as a minimum of eight characters long must including uppercase letters,
lowercase letters, special characters, and numerals.
a. Confidentiality
b. Message Integrity
In the SSL Record Protocol application data is divided into fragments. The fragment is
compressed and then encrypted MAC (Message Authentication Code) generated by algorithms
like SHA (Secure Hash Protocol) and MD5 (Message Digest) is appended. After that encryption
of the data is done and in last SSL header is appended to the data.
● Change-cipher Protocol: This protocol uses the SSL record protocol. Unless Handshake
Protocol is completed, the SSL record Output will be in a pending state. After the handshake
protocol, the Pending state is converted into the current state. Change-cipher protocol
consists of a single message which is 1 byte in length and can have only one value. This
protocol’s purpose is to cause the pending state to be copied into the current state.
● Alert Protocol: This protocol is used to convey SSL-related alerts to the peer entity. Each
message in this protocol contains 2 bytes.
Working of TLS: The client connect to server (using TCP), the client will be something.
● The server checks what the highest SSL/TLS version is that is supported by them both, picks
a cipher suite from one of the clients option (if it supports one) and optionally picks a
compression method.
● After this the basic setup is done, the server provides its certificate. This certificate must be
trusted either by the client itself or a party that the client trusts.
● Having verified the certificate and being certain this server really is who he claims to be (and
not a man in the middle), a key is exchanged. This can be a public key, “PreMasterSecret” or
simply nothing depending upon cipher suite.
Both the server and client can now compute the key for symmetric encryption. The handshake is
finished and the two hosts can communicate securely. To close a connection by finishing. TCP
connection both sides will know the connection was improperly terminated. The connection
cannot be compromised by this through, merely interrupted.
16. Differentiate between IDS & IPS.
Ans.
In the realm of information network security, Intrusion Detection Systems (IDS) and Intrusion
Prevention Systems (IPS) are two distinct technologies designed to enhance the security
posture of computer networks.
Here's a differentiation between IDS and IPS:
Mobile Malware:
● Trojan Horses: Malicious apps disguised as legitimate ones, tricking users into installing
them. Once installed, they may perform unauthorized activities without the user's
knowledge.
● Spyware: Software designed to spy on the user's activities, collect sensitive information, and
transmit it to malicious actors. This may include monitoring calls, text messages, or
browsing habits.
● Ransomware: Malware that encrypts the user's data, rendering it inaccessible. Attackers
then demand payment for the decryption key.
● Adware: Unwanted software that displays intrusive advertisements, often disrupting the user
experience and potentially leading to other security issues.
Drive-by Downloads:
● Malicious code can be injected into legitimate websites or ads, exploiting vulnerabilities
in the mobile device's browser or operating system.
● When a user visits the compromised site or interacts with the malicious content, the
code is automatically downloaded and executed on the device.
Bluetooth and NFC Exploits: Malicious actors may exploit vulnerabilities in Bluetooth or Near
Field Communication (NFC) to spread malware between devices. For example, attackers might
use Bluetooth to deliver malware to nearby devices.
Zero-Day Exploits: Malicious mobile code can take advantage of previously unknown
vulnerabilities (zero-day exploits) in mobile operating systems or apps. Once a vulnerability is
identified, attackers may create and distribute code to exploit it before a patch or update is
available.
Phishing Attacks: Social engineering techniques, such as phishing, are commonly used to trick
mobile users into divulging sensitive information. Malicious code may be delivered through fake
websites or emails designed to mimic legitimate services.
Man-in-the-Middle Attacks: Malicious actors may use code to intercept and manipulate
communications between a mobile device and the intended server. This can lead to
unauthorized access, data interception, or other security breaches.
Protecting against malicious mobile code involves implementing security best practices, such
as:
● Installing Security Software: Using reputable mobile security apps to scan for and detect
malicious code.
● Keeping Software Updated: Regularly updating the mobile operating system and
applications to patch known vulnerabilities.
● Downloading Apps from Official Stores: Only downloading apps from official app stores to
reduce the risk of malicious software.
● Being Cautious with Links: Avoiding clicking on suspicious links in messages, emails, or
websites.
● Using Strong Authentication: Implementing strong authentication methods to protect
against unauthorized access.
As mobile devices become increasingly integral to our daily lives, the threat landscape for
malicious mobile code continues to evolve, making it crucial for users to stay vigilant and adopt
security measures to safeguard their devices and data.
19. Define Virus. State its types of Viruses.
Ans.
● A virus, in the context of computer security, is a type of malicious software (malware) that
attaches itself to legitimate programs or files with the intent of spreading and causing harm
to computer systems.
● A computer virus is capable of replicating itself and can spread from one computer to
another, typically by attaching to executable files or documents. Viruses can carry out a
variety of harmful actions, including damaging data, stealing information, or disrupting the
normal operation of a computer.
Deployment:
1. Production Honeypots: Deployed within a live environment to attract and detect real
attacks. Production honeypots may have limited interaction to avoid risks.
2. Research Honeypots: Used for research purposes to gather detailed information about
attacker behavior. These honeypots are often deployed in controlled environments.
Characteristics:
1. Isolation: Honeypots are isolated from critical systems and data to prevent any impact on
the production environment.
2. Monitoring: Activities within the honeypot are closely monitored, and any interactions or
attacks are logged for analysis.
3. Deception: Honeypots use deception to appear as attractive targets, mimicking
vulnerabilities or services that may entice attackers.
4. Capture and Analysis: Gather information about the tactics, techniques, and tools used by
attackers for further analysis and improvement of cybersecurity measures.
Challenges:
1. Risk of Compromise: High-interaction honeypots carry the risk of being compromised,
and caution must be exercised to prevent attacks from spreading to the actual network.
2. Resource Intensity: High-interaction honeypots may require significant resources,
including time, expertise, and computing power.
3. Ethical Considerations: The use of honeypots raises ethical concerns, especially when
interacting with attackers. Careful consideration of legal and ethical implications is
necessary.
4. Legal and Ethical Considerations: The deployment of honeypots should comply with legal
and ethical standards. Unauthorized interaction with attackers could potentially lead to
legal consequences, and privacy considerations must be taken into account.
Honeypots serve as valuable tools in the field of cybersecurity, providing organizations with
insights into emerging threats and attacker tactics. When deployed and managed responsibly,
honeypots contribute to improving overall security posture by enhancing detection capabilities
and facilitating research on evolving cyber threats.