Computer Knowledge · General Awareness

Information Security

4,634 Questions

Information security involves protecting computer systems and data from unauthorized access, cyber threats, and damage. It is a core part of the computer knowledge section in various banking and government exams. Practicing these concepts helps in understanding digital signatures, network security, and access control effectively.

Cybersecurity threatsAccess controlCryptography basicsSecurity risk managementDatabase protection

Information Security Questions

Multiple choice technology security
  1. The type of users who would be accessing the data

  2. Availability, Integrity and Confidentiality

  3. The threat level the company faces

  4. Access controls protecting the data

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Data classification is fundamentally based on the CIA triad - Confidentiality (who can access), Integrity (accuracy/trustworthiness), and Availability (when needed). User types, threat levels, and access controls are implementation details, not the foundational consideration.

Multiple choice technology security
  1. LiveHTTPHeaders

  2. Sqlninja

  3. Bobcat

  4. WebGoat

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

LiveHTTPHeaders is a Firefox browser extension that allows viewing and modifying HTTP headers in real-time, making it useful for debugging and testing web applications. Sqlninja is SQL injection tool, Bobcat is a web application fuzzer, and WebGoat is a vulnerable training app.

Multiple choice technology security
  1. Group based access control should be implemented to assign permissions to application users

  2. Consistent authorization checking should be performed on all application pages

  3. A set of all allowable actions should be defined for each user role and all other's denied

  4. All failed access authorization requests should be logged to a secure location for review by administrators

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The principle of least privilege means each user role gets only the minimum permissions needed to perform their job - all actions are denied by default except those explicitly allowed. Group-based access, authorization checking, and logging are important security practices but do not define least privilege itself.

Multiple choice technology security
  1. Group based access control should be implemented to assign permissions to application users

  2. Consistent authorization checking should be performed on all application pages

  3. A set of all allowable actions should be defined for each user role and all other's denied

  4. All failed access authorization requests should be logged to a secure location for review by administrators

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The principle of least privilege ensures users have only the minimum access necessary to perform their roles, which is achieved by defining allowable actions for each role and denying everything else by default. Group-based access, authorization logging, and page-checking are access control practices but do not define the principle.

Multiple choice technology security
  1. TCS Security API

  2. TCS Security Library

  3. TCS Application Security API

  4. TCS e-Security Library

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

TCS Security API provides standardized methods and functions for addressing common security vulnerabilities in applications. Using a dedicated security library ensures consistent remediation practices across projects and helps developers implement security fixes more efficiently.

Multiple choice technology security
  1. Escape the invalid characters and continue processing the input data

  2. Accept the input data without modifying it and log the validation error

  3. Delete the invalid characters and continue processing the input data

  4. Reject the entire input data and send an error message back to the user

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Rejecting the entire input is the most secure response because it prevents any potentially malicious data from being processed. Attempting to sanitize (escape or delete) invalid characters is risky, as new encoding techniques or attack vectors could bypass the filter. Complete rejection ensures the system remains in a secure state.

Multiple choice technology security
  1. Hidden tags

  2. Query Strings

  3. Header

  4. Cookies

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Web servers log the query string portion of GET requests because it's part of the URL line in the HTTP request. Query strings appear after the ? in URLs and contain parameters that web servers automatically record in their access logs for debugging and analytics purposes.

Multiple choice technology security
  1. Hashing the password twice

  2. Encrypting the password using the private key

  3. Use an encryption algorithm you wrote your self so no one knows how it works

  4. Salting the hash

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To prevent dictionary attacks on password hashes, we can use a technique called "salting." A salt is a random string of characters that is added to a password before it is hashed. This adds an additional layer of complexity to the hash, making it more difficult for an attacker to use a pre-computed dictionary of hashes to crack passwords.

Now, let's go through each option and explain why it is right or wrong:

A. Encrypting the password using the private key: This option is incorrect. Encryption and hashing are two different techniques. Encryption is a two-way process that can be reversed using a key, while hashing is a one-way process that cannot be reversed. Also, using a private key to encrypt the password would not prevent dictionary attacks.

B. Hashing the password twice: This option is incorrect. Hashing the password twice does not provide any additional security against dictionary attacks. In fact, it can create a vulnerability known as "hash collision," where two different passwords can produce the same hash.

C. Use an encryption algorithm you wrote yourself so no one knows how it works: This option is incorrect. Creating your encryption algorithm is not recommended since it is hard to ensure that the algorithm can resist all types of attacks.

D. Salting the hash: This option is correct. Salting the hash involves adding a random string of data to the password before hashing it. This makes it more difficult for an attacker to precompute a dictionary of hashes and use it to crack passwords. Thus, option D is the correct answer.

The Answer is: D

Multiple choice technology security
  1. Can be done as it as an internal IP

  2. Can be done for internet facing servers as there are no chances of IP conflicts

  3. Is a good security practice

  4. Is a bad security practice

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Hard-coded IP addresses for access control are a bad security practice because IPs can be spoofed, shared, or reassigned. Internal IPs may change, and IP-based control provides no strong authentication mechanism. This creates a false sense of security and can be easily bypassed by attackers.

Multiple choice technology security
  1. Unvalidated input

  2. Lack of authentication

  3. Improper error handing

  4. Insecure configuration management

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To solve this question, the user needs to know the common cause of several types of attacks, such as buffer overflows, cross-site scripting, SQL injection, and format string attacks.

The common cause of these types of attacks is unvalidated input. Attackers can exploit vulnerabilities in a program by providing input that is not properly validated by the program. This can allow them to execute arbitrary code, manipulate data, or gain unauthorized access to a system.

Option A is correct because unvalidated input is the root cause of all the attacks listed in the question.

Option B (Lack of authentication) is incorrect because authentication is not directly related to these types of attacks. While authentication can help prevent unauthorized access to a system, it does not address the issue of unvalidated input.

Option C (Improper error handling) is incorrect because while improper error handling can be a vulnerability that can be exploited, it is not the root cause of these types of attacks.

Option D (Insecure configuration management) is incorrect because while insecure configuration management can lead to vulnerabilities that can be exploited, it is not the root cause of these types of attacks.

The Answer is: A

Multiple choice technology security
  1. Data Validation

  2. Secure Cookies

  3. Encryption

  4. Comprehensive exception handling

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To solve this question, the user needs to understand the concept of SQL injection and the methods to prevent it.

SQL injection is a type of vulnerability that allows an attacker to insert malicious SQL code into a database query. This can result in unauthorized access to sensitive data, modification of data, or even the deletion of data. To prevent SQL injection attacks, various methods can be used.

Now, let's go through each option and explain why it is right or wrong:

A. Data Validation: This option is correct. Data validation is a technique used to ensure that the data entered by the user is in the correct format. By validating the user input, it is possible to prevent SQL injection attacks as the malicious SQL code will not be executed.

B. Secure Cookies: This option is incorrect. Secure cookies are used to prevent session hijacking and cross-site scripting attacks. However, they have no effect on SQL injection attacks.

C. Encryption: This option is incorrect. Encryption is used to protect data in transit and at rest. However, it does not prevent SQL injection attacks.

D. Comprehensive exception handling: This option is incorrect. Comprehensive exception handling is used to handle errors and exceptions that occur during program execution. It does not prevent SQL injection attacks.

The Answer is: A

Multiple choice technology security
  1. Client (Browser)

  2. Database

  3. Web Application

  4. Web Server

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Cross Site Scripting (XSS) attacks target the client's browser by injecting malicious scripts that execute in the victim's browser context. The attack exploits the browser's trust in content coming from what appears to be a trusted source, enabling attackers to steal cookies, session tokens, or redirect users to malicious sites.

Multiple choice technology security
  1. Secure

  2. Domain

  3. Expires

  4. Static

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To answer this question, the user needs to have knowledge about cookie flags and their purposes.

The Secure flag is used to ensure that cookies are only transmitted over an encrypted (HTTPS) connection. So, it is the flag that will prevent cookies from being transmitted over a non-secure channel.

Option A: Secure is correct.

Option B: Domain is used to specify the domain name to which the cookie should be sent. This flag is not related to preventing transmission over non-secure channels.

Option C: Expires is used to set an expiration time for the cookie. This flag is not related to preventing transmission over non-secure channels.

Option D: Static is not a valid cookie flag.

Therefore, the answer is:

The Answer is: A. Secure.

Multiple choice technology security
  1. Compromise of users

  2. Loss of data integrity

  3. Destruction of data

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To solve this question, the user needs to know about cross-site scripting (XSS) attacks and their impact on web applications.

Cross-site scripting (XSS) attacks occur when an attacker injects malicious code into a web page viewed by other users. The attack allows the attacker to steal user data, such as passwords or session tokens, or to manipulate the content of the web page in a way that is harmful to users.

Now, let's go through each option and explain why it is right or wrong:

A. Compromise of users: This option is correct. One of the main risks of a cross-site scripting attack is that it can compromise the security of users. An attacker can use the attack to steal user data, such as login credentials or session tokens, and use that data to gain unauthorized access to other parts of the application or other applications entirely.

B. Loss of data integrity: This option is incorrect. While cross-site scripting attacks can result in the loss of data, the greater risk is the compromise of user security.

C. Destruction of data: This option is incorrect. Cross-site scripting attacks are not typically used to destroy data. Instead, they are used to steal data or manipulate web content.

D. None of the above: This option is incorrect. As explained above, option A is the correct answer.

The Answer is: A

Multiple choice technology security
  1. Host Header

  2. Cookie

  3. Referrer Header

  4. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To solve this question, the user needs to know about user input validation.

User input validation is the process of verifying that the input provided by the user is within the expected parameters. It is essential to validate user input, as it can prevent attacks such as SQL injection and cross-site scripting.

Now, let's go through each option and explain why it is right or wrong:

A. Host Header: The Host header is an HTTP header that specifies the domain name of the server where the current request is being handled. This header is typically used to map a domain name to an IP address. While Host header is used as user input, it is typically not considered a user-controlled input, and validation is not needed.

B. Cookie: Cookies are small text files that are stored on a user's computer by a web browser. They are commonly used to store user preferences, session information, and other data. Cookies are generated and managed by the server-side, and the user cannot modify their content. Therefore, validation of cookies is not required.

C. Referrer Header: The Referrer header is an HTTP header that identifies the URL of the web page that linked to the current page. Like the Host header, the Referrer header is typically not considered user-controlled input, and validation is not needed.

D. None of the above: This option is incorrect since we have explained that options A, B, and C do not require user input validation.

The Answer is: D. None of the above.