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. Reset password functionality was invoked during the testing

  2. Change password form was submitted by appscan

  3. Somebody changed your password while the scan was running

  4. This is a result of an SQL injection test by appscan

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

AppScan systematically tests all forms including password change functionality, so it submitted the change password form during automated testing. This is not an attack but rather AppScan exercising the application's functionality, which is why testing should be done against non-production environments.

Multiple choice technology web technology
  1. Use HTTPS only cookie

  2. Output Encoding

  3. Data Validation

  4. Use HTTPS protocol

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

XSS defenses require preventing malicious script execution. Output encoding converts special characters to safe equivalents (e.g., < to <), blocking script injection. Data validation ensures input matches expected patterns before processing. HTTPS alone (options A and D) protects transmission but not XSS execution.

Multiple choice technology security
  1. User account compromised

  2. Steal user sessions

  3. Site defacement and complete take over of the application

  4. Complete user account compromise

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

Malicious file execution allows attackers to run arbitrary code on the server. This most severely leads to site defacement and complete application takeover (C) as the attacker gains server-level access. User account compromise (A, D) and session theft (B) are possible but less severe than full server control.

Multiple choice technology security
  1. Use https

  2. Use encryption

  3. Black box testing

  4. Secure coding

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

Secure coding (D) is foundational - building applications without vulnerabilities from the start prevents entire attack classes. HTTPS (A) and encryption (B) protect data in transit but don't prevent application logic flaws. Black box testing (C) finds issues but doesn't prevent them.

Multiple choice technology security
  1. Displaying “Welcome, “+request.getParameter(“userid”)

  2. Displaying “You entered either a wrong user id or password” error message

  3. Call stack trace

  4. Return error code 404

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

Information leakage exposes internal system details to users. Call stack traces (C) reveal file paths, function names, and internal architecture - valuable intelligence for attackers. Options A and B show normal user-facing messages; 404 (D) is a standard error code.

Multiple choice technology security
  1. the network layer, the web application, the webserver

  2. the operating system, the web application platform, the database

  3. the web application, the web server, the web application platform

  4. the web application platform, the network layer, the web server

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

IBM AppScan is a dynamic application security testing (DAST) tool designed to scan the web application itself, the underlying web server hosting it, and the web application platform. It does not scan operating systems or network-layer devices, which are handled by network vulnerability scanners.

Multiple choice technology security
  1. By hacking the firewall

  2. By installing viruses on the users machine

  3. By sending malicious HTTP requests

  4. By sniffing the traffic between a user and the web server

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

Attackers exploit web application vulnerabilities by crafting and sending malicious HTTP requests that contain payloads designed to trigger flaws like SQL injection or XSS. Firewalls operate at the network level and cannot inspect HTTP payloads, while viruses and traffic sniffing target different attack surfaces.

Multiple choice technology security
  1. Insecure cryptographic storage

  2. Injection Flaw

  3. Failure to restrict URL access

  4. Insecure communication

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

Failure to restrict URL access allows attackers to browse sensitive directories, files, or privileged pages directly. Injection flaws involve untrusted input execution, insecure storage exposes data at rest, and insecure communication lacks encryption, none of which directly permit directory browsing via URLs.

Multiple choice technology security
  1. to prevent SQL injection

  2. to prevent sensitive information from being stolen

  3. to prevent cross site scripting

  4. to prevent Web site defacement

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

HTTPS encryption prevents sensitive information like passwords, session tokens, and personal data from being intercepted during transmission between client and server. It does not prevent server-side attacks like SQL injection or XSS, which occur at the application layer.

Multiple choice technology security
  1. steal sensitive information from other users

  2. run scripts on other user's browser

  3. alter the communication protocol used by the site

  4. can potentially understand the query's structure

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

To answer this question, the user needs to know what an SQL debug message is and how it can be exploited by an attacker.

An SQL debug message is a type of error message that can occur when there is an issue with an SQL query on a website or application. These messages can contain sensitive information about the query being executed, such as the database name, table name, and even the query itself.

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

A. steal sensitive information from other users: This option is possible because if an attacker can access the debug message, they can potentially see sensitive information about the database and query being executed. This information can be used to steal data from other users.

B. run scripts on other user's browser: This option is not directly related to an SQL debug message. It is more related to cross-site scripting (XSS) attacks, which are a different type of vulnerability.

C. alter the communication protocol used by the site: This option is not directly related to an SQL debug message. It is more related to protocol-level attacks, which are a different type of vulnerability.

D. can potentially understand the query's structure: This option is correct. An attacker who can access the SQL debug message can potentially understand the query's structure, which can be used to craft more effective SQL injection attacks.

Therefore, the correct answer is:

The Answer is: D

Multiple choice technology security
  1. Network firewalls cannot prevent attacks because ports 80 and 443 must be open

  2. If configured properly, network firewalls can prevent attacks

  3. Network firewalls cannot prevent attacks because its too comples to configure

  4. Network firewalls can prevent attacks because they can detect malicious HTTP traffic

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

Network firewalls operate at the network and transport layers, filtering based on IP addresses and port numbers but not inspecting HTTP payload content. Since web applications require ports 80 and 443 to remain open for legitimate traffic, firewalls cannot block or detect web application attacks like SQL injection or XSS that travel through these ports.

Multiple choice technology security
  1. HTTP-ONLY is set

  2. Domain is not set

  3. Expiration is set to one week

  4. Expiration is set to one day

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

The HTTPOnly flag prevents client-side JavaScript from accessing the cookie value, which protects session tokens from being stolen via XSS attacks. Setting expiration duration only affects when the cookie expires, while the domain attribute controls cookie scope - neither directly protects against XSS.

Multiple choice technology security
  1. The website could be defaced, and database tables could be deleted

  2. Sensitive data could be stolen

  3. A malicious script could be executed, and database tables could be deleted

  4. A malicious script could be executed, and session tokens could be predicted

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

Insecure cryptographic storage means sensitive data is either stored in plaintext or using weak encryption that can be broken. This directly enables data theft if the database is compromised. The other options describe different vulnerability classes (defacement, script execution, session prediction) that are not implications of crypto storage flaws.

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 scripts steal cookies, session tokens, or redirect users to fake sites. The attack surface is the client, not the server or database.

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 granting each user role only the minimum permissions necessary to perform their functions. You define exactly what actions each role can perform, and deny everything else. This minimizes damage from compromised accounts or errors.