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. 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. Cross-Site Scripting

  2. Buffer over flows

  3. Command injection

  4. Path traversal attack

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

To answer this question, the user needs to have knowledge about different types of cyber attacks and their characteristics.

The correct answer is:

A. Cross-Site Scripting (XSS): In this type of attack, the attacker injects malicious code (usually in the form of a script) into a link that appears to be from a trustworthy source, such as a website or an email. When a user clicks on the link, the malicious code is executed in the user's web browser, allowing the attacker to steal sensitive information or perform other malicious actions.

B. Buffer overflows: In this type of attack, the attacker sends more data to a program than it can handle, causing it to crash or allowing the attacker to execute arbitrary code.

C. Command injection: In this type of attack, the attacker injects malicious code into a system command that is executed by the target system, allowing the attacker to gain unauthorized access or perform other malicious actions.

D. Path traversal attack: In this type of attack, the attacker exploits a vulnerability in a web application to access files or directories that are outside the web root directory.

Therefore, the correct answer is:

The Answer is: A. Cross-Site Scripting.

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

A session identifier is the only appropriate data to store in a cookie. Sensitive data like passwords should never be stored in cookies as they can be intercepted or stolen. Account privileges and usernames should be retrieved from the server using the session ID.

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 primarily considers the CIA triad: Availability, Integrity, and Confidentiality. These three principles determine how data should be protected and accessed. While user types and access controls are relevant, the core classification framework is built around these security principles.

Multiple choice technology security
  1. Equivalent to normal users

  2. Less than those of normal users as all administrators are trustworthy

  3. No authentication is required for administrators

  4. Greater than those of normal users

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

Administrator accounts have elevated privileges that can cause catastrophic damage if compromised. They require stronger authentication than normal users - this includes longer passwords, multi-factor authentication, and more frequent password changes. Trusting all administrators is not a valid security control.

Multiple choice technology security
  1. Cannot be treated as a secure practice

  2. Is a good way to hide passwords from hackers

  3. Is perfectly fine for internal applications

  4. Is perfectly fine for external user facing applications

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

Hard-coded credentials in source code are visible to anyone with access to the codebase, including insiders after deployment and attackers if the code is leaked. This applies to both internal and external applications. Secure practice requires using environment variables, secure vaults, or configuration management systems.

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 applies universally - commercial software has default settings that must be secured, custom-built applications need proper configuration, and in-house applications require the same security rigor. Security through proper configuration is vendor-agnostic.

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 creates a fixed-size signature from input data using a cryptographic hash function. Any change to the original data produces a completely different hash value, making tampering detectable. Hashing does not validate sessions or user identity - those are separate authentication mechanisms.

Multiple choice technology security
  1. The configuration management

  2. The session management

  3. The change management process

  4. The authorization process

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

Forced browsing attacks occur when attackers guess or enumerate URLs to access resources without proper authorization. A successful forced browsing attack indicates that the application's authorization process is flawed - it fails to properly verify whether the authenticated user has permission to access the requested resource. This is different from configuration or session management issues, as the vulnerability specifically relates to access control decisions.

Multiple choice technology security
  1. A mechanism that requires only a password

  2. Basic authentication

  3. 2/3 factor authentication

  4. A mechanism with no lock-out, to prevent accidentally denying legitimate access

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

Administrative pages are high-value targets and require strong authentication. Multi-factor authentication (2FA or 3FA) is the best practice because it requires something you know (password) plus something you have (token) or something you are (biometric). Options A and B offer only single-factor protection which is insufficient for admin access. Option D (no lockout) is dangerous as it prevents protection against brute force attacks.

Multiple choice technology security
  1. Sent to the user in a hidden field so that tech support can retrieve the information later

  2. Destroyed if it occurs to minimize the chances that this information might be inadvertently disclosed

  3. Logged on the server side

  4. A and C

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

Stack traces and detailed error messages contain sensitive implementation information that can aid attackers. Best practice is to log this information server-side for troubleshooting while showing only generic error messages to users. Option A (hidden field) exposes data to users. Option B (destroying it) loses debugging information. Option D is incorrect because A is not recommended.

Multiple choice technology security
  1. Servers are generally configured in a secure manner when they are first installed

  2. It is impossible to securely configure a web server

  3. Out of the box settings normally meet what is called minimum baseline security standards

  4. The default settings on web servers are not generally secure

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

Web server default settings prioritize ease of use and features over security. They often include unnecessary services, default credentials, verbose error messages, and known insecure configurations. Security requires explicit hardening: disabling unused modules, applying security patches, configuring encryption, and following security benchmarks.

Multiple choice technology security
  1. Filtering data with a default deny regular expression

  2. Running the application with the least privilege necessary

  3. Client side data validation

  4. Retrieving data from database using pre-compiled stored procedures

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

Client-side validation is NOT a security control because it can be easily bypassed by disabling JavaScript, modifying the request, or using tools like curl. Secure applications must validate on the server side. Options A (default-deny regex), B (least privilege), and D (stored procedures) ARE recommended practices for securing web applications.

Multiple choice technology security
  1. The web server is not patched

  2. The attack entices a user to perform a certain action

  3. Users do not patch their machines

  4. Users share email accounts

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

Phishing attacks succeed when they entice or manipulate users into performing actions they wouldn't normally do - clicking malicious links, entering credentials, downloading malware, or making payments. The attack exploits human psychology rather than technical vulnerabilities. Option A refers to unpatched servers (not phishing). Option C refers to user patching (relevant but not phishing success). Option D is unrelated.