Computer Knowledge · General Awareness

Information Security

4,143 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. 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

Unvalidated input (option A) is the root cause of all listed vulnerabilities. Without proper validation, user-supplied data can overflow buffers, include scripts, inject SQL commands, or exploit format string specifiers. The other options (authentication, error handling, configuration) are important but not the common thread.

Multiple choice technology security
  1. Commercial applications

  2. Custom built applications

  3. In house developed applications

  4. All of the above

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

Configuration Management Security principles are universal (option D). Whether commercial, custom-built, or in-house, all applications need secure defaults, patch management, and proper configuration. There's no exception based on origin or deployment model.

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

Data validation (option A) helps prevent SQL injection by ensuring inputs conform to expected patterns before being used in queries. Secure cookies (B) protect session tokens, not query integrity. Encryption (C) protects data at rest, not injection. Exception handling (D) manages errors but doesn't prevent injection.

Multiple choice technology security
  1. Session ID

  2. Account Privileges

  3. UserName

  4. Password

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

Cookies should store a Session ID - an identifier that references session data on the server, not the actual sensitive data. Account privileges, usernames, and passwords should never be stored directly in cookies as they would be exposed to the client and vulnerable to interception or tampering.

Multiple choice technology security
  1. Ensure that the data has not been tampered with

  2. Ensure that the session is valid

  3. Ensure that the user is valid

  4. All of the above

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

Data hashing ensures integrity - it verifies that data has not been altered by generating a fixed-size digest that changes if any bit of the original data changes. Hashing does not validate sessions (authentication) or users (authorization) - those are separate security mechanisms.

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. 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. 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.