Cyber Security Interview Questions with Answers (original) (raw)

Last Updated : 14 Apr, 2026

Cybersecurity is the act of protecting computer systems, networks, programs and data from digital attacks, unauthorized access, damage or theft. Cybersecurity is a critical aspect of modern technology, with its importance growing as digital systems become increasingly integrated into our daily lives. With threats ranging from data breaches to malicious software attacks, the need for skilled cybersecurity professionals is higher than ever. They typically aim to access, alter or destroy sensitive information, extort money from users or disrupt normal business processes.

1. What are the common Cyberattacks?

Common cyberattacks include various techniques used by attackers to compromise systems, steal data or disrupt services.

2. What are the elements of cyber security?

Cyber security consists of several key elements that work together to protect systems, networks and data from cyber threats.

3. Define DNS

The Domain Name System (DNS) is a network service that translates human-readable domain names (like website names) into IP addresses used by computers to identify each other on the internet. This allows users to access websites easily without remembering numerical IP addresses.

4. What is a Firewall?

A firewall is a hardware or software-based network security device that monitors all incoming and outgoing traffic and accepts, denies or drops that particular traffic based on a defined set of security rules.

firewal

Firewell

5. What is a VPN?

VPN stands for Virtual Private Network. A virtual private network (VPN) is a technology that creates a secure, encrypted connection over an insecure network like the Internet. A virtual private network is a method of extending a private network using a public network such as the Internet. The name only indicates that it is a virtual "private network". A user may be part of a local area network at a remote location. Create a secure connection using a tunnelling protocol.

6. What are the different sources of malware?

The different sources of malware are given below:

7. How does email work?

When an email is sent, the sender’s email client transfers it to a mail server using SMTP. The server checks the recipient’s domain and uses DNS to locate the correct mail server if needed. The email is then delivered to the recipient’s mail server, where it is stored until the recipient accesses it using POP or IMAP. If delivery fails, the message is queued and may eventually be returned as undelivered.

8. What is the difference between active and passive cyber attacks?

Zero Trust is a security framework that assumes no user or device should be trusted by default, whether inside or outside the network. It requires strict identity verification and continuous authentication before granting access to resources, reducing the risk of unauthorized access.

10. Who are black hat, white hat and grey hat hackers?

11. Define encryption and decryption?

**Encryption: Encryption is the process of converting readable data (plaintext) into an unreadable format (ciphertext) to protect its confidentiality. Only authorized users with the correct key can convert it back to its original form. It is used to secure data during storage and transmission.

**Decryption: Decryption is the process of converting encrypted data (ciphertext) back into its original readable form (plaintext) using a cryptographic key. It ensures that only authorized users can access the original information. It is the reverse process of encryption.

12. What is the difference between plaintext and cleartext?

**Plaintext: Plaintext is the original readable data that is intended to be encrypted into ciphertext using an encryption algorithm. It serves as the input for encryption processes in cryptography.

**Cleartext: Cleartext is readable data that is stored or transmitted without any encryption and is not intended to be encrypted. It is directly accessible and understandable without any transformation.

13. What is a block cipher?

A block cipher is an encryption method that converts plaintext into ciphertext by processing data in fixed-size blocks (such as 64-bit or 128-bit blocks) using a secret key. Each block is encrypted separately according to a specific algorithm, ensuring secure data transformation.

14. What is the CIA Triad?

When it comes to network security, the CIA Triad is one of the most important models developed to guide information security policy within an organization.
CIA stands for:

15. What is the Three-way handshake?

TCP uses a three-way handshake to establish reliable connections. The connection is full-duplex, with synchronization (SYN) and acknowledgment (ACK) on both sides. The exchange of these four flags is done in three steps: SYN, SYN to ACK and ACK.

16. How can identity theft be prevented?

Steps to prevent identity theft:

17. What are some common Hashing functions?

The hash function is a function that converts a specific numerical key or alphanumeric key into a small practical integer value. The mapped integer value is used as an index for hash tables. Simply put, a hash function maps any valid number or string to a small integer that can be used as an index into a hash table. The types of Hash functions are given below:

18. What do you mean by two-factor authentication?

Two-factor authentication refers to using any two independent methods from a variety of authentication methods. Two-factor authentication is used to ensure users have access to secure systems and to enhance security. Two-factor authentication was first implemented for laptops due to the basic security needs of mobile computing. Two-factor authentication makes it more difficult for unauthorized users to use mobile devices to access secure data and systems.

19. What does XSS stand for? How can it be prevented?

XSS stands for Cross-Site Scripting. It is a web application vulnerability where attackers inject malicious scripts into trusted websites, which then execute in the user’s browser. This can lead to data theft, session hijacking, account compromise or malware infection.

**Prevention of XSS:

20. What do you mean by Shoulder Surfing?

A shoulder surfing attack describes a situation in which an attacker can physically look at a device's screen or keyboard and enter passwords to obtain personal information. Used to access malware. Similar things can happen from nosy people, leading to an invasion of privacy.

21. What is the difference between hashing and encryption?

Hashing Encryption
Converts data into a fixed-length hash value representing the original information Converts data into an unreadable format (ciphertext) using a key
Used for fast data retrieval and data integrity verification Used to ensure confidentiality of data
One-way process; original data cannot be recovered Two-way process; data can be decrypted back to original form
No key is used for reversing the output Requires a key for both encryption and decryption
Output is always fixed in length Output length varies and usually increases with input size
Commonly used for password storage and digital signatures Commonly used in secure communication and online transactions

22. Differentiate between Information security and information assurance.

23. Write a difference between HTTPS and SSL.

HTTPS SSL
It is called Hypertext Transfer Protocol Secure. It is called Secured Socket Layer
This is a more secure version of the HTTP protocol with more encryption capabilities. It is the one and only cryptographic protocol in computer networks.
HTTPS is created by combining the HTTP protocol and SSL. SSL can be used for encryption.
HTTPS is primarily used by websites for logging into banking details and personal accounts. SSL cannot be used alone for a particular website. Used for encryption in conjunction with the HTTP protocol.
HTTPS is the most secure and latest version of the HTTP protocol available today. SSL is being phased out in favour of TLS (Transport Layer Security).

24. What do you mean by System Hardening?

System hardening is the process of securing a system by reducing its attack surface. The attack surface includes all possible vulnerabilities, such as default passwords, unnecessary services and misconfigured settings, that attackers can exploit. By minimizing these weaknesses, system hardening makes the system more secure and resistant to attacks.

25. Differentiate between spear phishing and phishing.

26. What do you mean by Perfect Forward Secrecy?

Perfect Forward Secrecy (PFS) is an encryption technique that generates a new, temporary session key for each communication session between a client and a server. This ensures that even if long-term encryption keys are compromised, past communications remain secure. It is widely used in secure applications like websites, messaging and VoIP services to protect user privacy.

27. How to prevent MITM?

28. Differentiate EDR and XDR

**EDR (Endpoint Detection and Response) **XDR (Extended Detection and Response)
EDR is a security solution focused on monitoring and responding to threats on endpoint devices like laptops, desktops and servers. XDR is an advanced security solution that integrates data from multiple sources like endpoints, networks, servers and applications.
It detects and investigates suspicious activity at the device level. It provides a centralized view of threats across the entire security environment.
It offers real-time threat detection and response for endpoints only. It correlates security data from multiple layers for better detection accuracy.
It is limited to endpoint protection. It provides broader organization-wide threat detection and response.

29. What is Public Key Infrastructure?

A Public Key Infrastructure or PKI, is the governing authority behind the issuance of digital certificates. Protect sensitive data and give users and systems unique identities. Therefore, communication security is ensured. The public key infrastructure uses keys in public-private key pairs to provide security. Public keys are vulnerable to attacks, so maintaining public keys requires a healthy infrastructure.

public_key_infrastructure_pki_

Public Key Infrastructure

30. What is Spoofing?

Spoofing is a type of cyberattack in which an attacker impersonates a legitimate user, device or system to gain unauthorized access, steal data or bypass security measures. It is commonly used to trick users or systems into trusting fake identities.

**Types of Spoofing:

31. What are the steps involved in hacking a server or network?

The following steps must be ensured in order to hack any server or network:

32. What are the various sniffing tools?

Sniffing tools are used to capture and analyze network traffic for monitoring, troubleshooting and security analysis.

Some common network sniffing tools include:

33. What is SQL injection?

SQL injection is a technique used to exploit user data through web page input by injecting SQL commands as statements. Essentially, these instructions can be used by a malicious user to manipulate her web server for your application. SQL injection is a code injection technique that can corrupt your database. Preventing SQL Injection is given below:

34. What is a Distributed Denial of Service attack (DDoS)?

A denial of service (DoS) is a cyber attack against an individual computer or website aimed at denying service to intended users. Its purpose is to interfere with the organization's network operations by denying her access. Denial of service is usually achieved by flooding the target machine or resource with excessive requests, overloading the system and preventing some or all legitimate requests from being satisfied.

35. How to avoid ARP poisoning?

Following are the five ways of avoiding ARP Poisoning attacks:

36. What is a proxy firewall?

A proxy firewall is a type of firewall that operates at the application layer and monitors traffic by acting as an intermediary between clients and servers. It uses a proxy server to process requests on behalf of users, preventing direct communication with the destination system. This helps in filtering and securing application-level data such as HTTP, FTP and SMTP traffic.

37. Explain SSL Encryption.

Secure Socket Layer (SSL) provides security for data transferred between web browsers and servers. SSL encrypts the connection between your web server and your browser, keeping all data sent between them private and immune to attack. Secure Socket Layer Protocols: SSL recording protocol.

38. What do you mean by penetration testing?

Penetration testing is done to find vulnerabilities, malicious content, flaws and risks. It's done to make the organization’s security system defend the IT infrastructure. It is an official procedure that can be deemed helpful and not a harmful attempt. It is part of an ethical hacking process that specifically focuses only on penetrating the information system.

39. What are the risks associated with public Wi-Fi?

40. Explain the main difference between Diffie-Hellman and RSA.

41. Give some examples of asymmetric encryption algorithms.

Asymmetric key cryptography is based on public and private key cryptography. It uses two different keys to encrypt and decrypt messages. More secure than symmetric key cryptography, but much slower.

42. Explain social engineering and its attacks.

Social engineering is a hacking technique based on forging someone's identity and using socialization skills to obtain details. There are techniques that combine psychological and marketing skills to influence targeted victims and manipulate them into obtaining sensitive information. The types of social engineering attacks are given below:

43. State the difference between a virus and worm.

44. Explain the concept of session hijacking.

Session hijacking is a security attack on user sessions over a protected network. The most common method of session hijacking is called IP spoofing, where an attacker uses source-routed IP packets to inject commands into the active communication between two nodes on a network, allowing an authenticated impersonation of one of the users. This type of attack is possible because authentication usually only happens at the beginning of a TCP session. The types of session hijacking are given below:

45. Explain the honeypot and its types.

A honeypot is a networked system that acts as a trap for cyber attackers to detect and investigate hacker tactics and types of attacks. Acting as a potential target on the Internet, it notifies defenders of unauthorized access to information systems. Honeypots are classified based on their deployment and intruder involvement. Based on usage, honeypots are classified as follows:

46. What do you mean by a Null Session?

A null session is an unauthenticated connection to a Windows system that allows access to certain network resources without a username or password. It was commonly used in older Windows systems to share information but could be exploited to gather sensitive data about users, groups and network settings.

47. What is IP blocklisting?

IP blacklisting is a method used to block unauthorized or malicious IP addresses from accessing your network. A blacklist is a list of ranges or individual IP addresses to block.

48. What are Polymorphic viruses?

A polymorphic virus is a type of malware that changes its code or appearance each time it infects a new system, making it difficult for antivirus programs to detect using fixed signatures. It uses encryption and a mutation engine to modify its decryption routine while keeping its core malicious behavior the same. When an infected program runs, a decryption routine temporarily decrypts the virus so it can execute and spread to other files. Because its structure keeps changing, detection becomes very difficult.

49. What is Replay Attack?

A replay attack is a type of cyberattack where an attacker intercepts and retransmits valid data or authentication messages to trick a system into granting unauthorized access. The attacker does not need to decrypt the data but simply reuses it.

50. What is an Eavesdropping Attack?

Eavesdropping occurs when a hacker intercepts, deletes or modifies data sent between two devices. Eavesdropping, also known as sniffing or snooping, relies on unsecured network communications to access data sent between devices.

Cyber Security Interview Questions for Experienced

51. What is the man-in-the-middle attack?

Man In the Middle Attack is a type of cyber attack in which the attacker stays between the two to carry out their mission. The type of function it can perform is to modify the communication between two parties so that both parties feel like they are communicating over a secure network.

52. What is a traceroute? Why is it used?

Traceroute is a network diagnostic command-line tool used to trace the path that data packets take from a source device to a destination over an IP network. It also measures the time (latency) taken at each intermediate hop (router) along the route, helping identify delays or failures in the network path.

53. What is the difference between HIDS and NIDS?

54. What is the difference between VA (Vulnerability Assessment) and PT (Penetration Testing)?

55. What is RSA?

The RSA algorithm is an asymmetric encryption algorithm. Asymmetric means that it actually works with two different keys. H. Public and Private Keys. As the name suggests, the public key is shared with everyone and the private key remains secret.

56. What is the Blowfish algorithm?

Blowfish is an encryption technique developed by Bruce Schneier in 1993 as an alternative to the DES encryption technique. It is considerably faster than DES and provides excellent encryption speed even though no effective cryptanalysis techniques have been discovered so far. It was one of the first secure block ciphers to be patent-free and therefore freely available to everyone.

57. What is the difference between a vulnerability and an exploit?

58. What do you understand by Risk, Vulnerability and threat in a network?

59. Explain Phishing and how to prevent it.

Phishing is a type of cyber attack where attackers impersonate trusted entities (such as banks, companies or services) to trick users into revealing sensitive information like passwords, credit card details or personal data. It is usually carried out through fake emails, messages or websites that appear legitimate.

**How to prevent phishing:

60. Define Cloud Security

Cloud security refers to the practices and technologies used to protect data, applications and services hosted in cloud environments. It ensures that cloud resources remain secure from unauthorized access and cyber threats.