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

  2. ASP.Net

  3. Perl

  4. All of the above

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

To solve this question, the user needs to have knowledge of Cross Site Scripting (XSS) and the programming languages that can be vulnerable to it.

Cross Site Scripting (XSS) is a type of web vulnerability that allows attackers to inject malicious code into web pages viewed by other users. This can result in the theft of sensitive data, such as login credentials, bank account information, and other personal information.

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

A. Java: Java web applications can be vulnerable to XSS attacks if they do not properly sanitize user input. This makes option A partially correct.

B. ASP.Net: ASP.Net web applications can also be vulnerable to XSS attacks if they do not properly sanitize user input. This makes option B partially correct.

C. Perl: Perl web applications can also be vulnerable to XSS attacks if they do not properly sanitize user input. This makes option C partially correct.

D. All of the above: Since options A, B, and C are all partially correct, option D is the correct answer. All of the above languages are vulnerable to XSS attacks if they do not properly sanitize user input.

Therefore, the correct answer is: D

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. Availability, Integrity, Confidentiality

  2. Usability, Reliability, Accountability

  3. Quality, Accountability, Integrity

  4. None of the above

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

The CIA triad (Confidentiality, Integrity, Availability) forms the foundation of information security. These three principles are universally recognized as the core of security practices in cybersecurity and information protection.

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 users to view and modify HTTP headers and parameters in real-time. Unlike SQLninja (SQL injection tool), Bobcat (web application framework), or WebGoat (training application), it's specifically designed as a browser-based HTTP tampering tool.

Multiple choice technology security
  1. No. Because leads to insecure storage of private information of the customer

  2. Yes. Because it is a good logging practice to log all relevant information during an exception

  3. Yes. Because it will help in troubleshooting specific customer problems

  4. No. Because its an additional over head

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

Logging sensitive customer information like credit card numbers creates security vulnerabilities and violates PCI-DSS compliance requirements. Log files can be accessed by unauthorized personnel or leaked in data breaches. The overhead argument is irrelevant compared to the security risk.

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. Is a good programming practice

  2. Is very useful during code reviews

  3. Is the recommended practice for secure code maintenance

  4. May give the attacker valuable information to perform an exploit

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

HTML comments visible in source code can reveal sensitive information to attackers including: debug data, server-side file paths, commented-out security code, developer names, and implementation details. This reconnaissance information helps attackers craft targeted exploits. Comments should be removed before production deployment.