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. Enforce permissions to folders.

  2. Allow everyone access to the default page only.

  3. Allow only registered users to access the home page of a website.

  4. Make all users log in to access folders

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

Enforcing strict directory permissions prevents directory traversal attacks by blocking access to files outside the intended root. Restricting home page access or requiring logins fails to validate directory paths and does not stop authenticated users from attempting traversal.

Multiple choice technology security
  1. Least Privilege

  2. Leveraging existing components

  3. Economy of mechanism

  4. Fail safe

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

Economy of mechanism advocates for simple, small designs to minimize attack surface. By custom building Apache to include only necessary features, complexity is reduced. Least privilege applies to user permissions, fail-safe defines default secure states, and leveraging components reuses code.

Multiple choice technology security
  1. Error handling

  2. SQL Injection attack

  3. Data and Input Validation

  4. Buffer overflow attack

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

Data and Input Validation is the correct countermeasure because it ensures that incoming data conforms to expected size limits and formats before processing. This prevents attackers from submitting oversized input that could cause buffer overflows. Error handling (A) is a response mechanism, not a preventive measure. SQL Injection (B) and Buffer Overflow (D) are attack names, not countermeasures.

Multiple choice technology security
  1. Invalidated input

  2. Cross site scripting (XSS)

  3. Use of firewall for content verification

  4. web sever misconfiguration

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

Using a firewall for content verification is a defensive security control, not a vulnerability. Invalidated input, cross-site scripting, and web server misconfigurations are software weaknesses or flaws that attackers can exploit to compromise the security of the application.

Multiple choice technology security
  1. Directory structures

  2. Facility security measures

  3. Alarm codes

  4. Password policy

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

HTML source code commonly reveals directory structures through paths in script tags, link tags for stylesheets, image sources, and anchor hrefs. These expose the site's file organization. Physical security measures (B), alarm codes (C), and password policies (D) are operational security details not embedded in HTML.

Multiple choice technology security

Refer URL : http://www.testrun.com/login.aspx?id=' OR 1=1- . Which type of attack refered in this URL

  1. Cross Site Scripting (XSS)

  2. Buffer Overflow

  3. SQL Injection

  4. Cross Site Request Forgeries (CSRF)

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

The input id=' OR 1=1- manipulates the database query logic to bypass authentication, indicating a SQL injection attack. Cross-site scripting targets browser execution, buffer overflows exploit memory boundaries, and cross-site request forgery forces users to execute unwanted actions.

Multiple choice technology security
  1. Defence

  2. Dumpster Diving

  3. Deterrence

  4. Detection

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

Dumpster diving is an attack technique where unauthorized individuals search trash for sensitive details, making it a threat rather than a security mechanism. Defense, deterrence, and detection are valid security mechanisms designed to protect, discourage, and identify unauthorized activities.

Multiple choice technology security
  1. Go-Live (deployment to production)

  2. Support and Maintenance

  3. Requirement Gathering Phase

  4. Prototyping Phase

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

To aim for a secure application as an end result, it is important to consider security from the beginning of the software development lifecycle (SDLC). Therefore, the correct phase of SDLC to start aiming for a secure application as an end result is the Requirement Gathering Phase.

Option A: Go-Live (deployment to production) - This phase involves releasing the software to the end-users. While security testing can be conducted during this phase, it is too late to start aiming for a secure application as an end result.

Option B: Support and Maintenance - This phase involves maintaining and improving the software after it has been deployed to the end-users. While security improvements can be made during this phase, the focus should be on maintaining the security of the existing software rather than starting from scratch.

Option C: Requirement Gathering Phase - This phase involves identifying the business requirements and goals of the software. It is important to consider security requirements during this phase to ensure that the software is designed with security in mind from the beginning.

Option D: Prototyping Phase - This phase involves creating a preliminary version of the software to test its functionality. While security testing can be conducted during this phase, the focus is on testing the software's functionality rather than securing it.

Therefore, the answer is: The Answer is: C.

Multiple choice technology security
  1. Secure-by-default

  2. Secure-by-design

  3. Defense-in-depth

  4. Defense-by-design

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

To solve this question, the user needs to understand different security strategies and their definitions.

The option that describes the security strategy where multiple layers of security controls are used to mitigate the risk of one security control being compromised is:

C. Defense-in-depth

Explanation:

Defense-in-depth is a security strategy that involves layering multiple security controls to protect assets. In this strategy, if an attacker manages to breach one security control, there are other layers of security controls to prevent further access. This approach helps to mitigate the risk of any single security control being compromised. Therefore, the correct answer is option C.

Options A, B, and D are incorrect because:

A. Secure-by-default is a security strategy that involves setting secure defaults to minimize the attack surface. This strategy aims to make the system secure by default without requiring any additional configuration.

B. Secure-by-design is a security strategy that involves designing systems with security in mind from the beginning. This approach aims to make the system inherently secure through design choices such as minimizing attack surfaces and implementing secure coding practices.

D. Defense-by-design is not a recognized security strategy.

Multiple choice technology security
  1. A function that encrypts the data provided.

  2. A function that transforms a string of characters into a number known as the message digest .

  3. A function that uses MD5 algorithm with private key to decrypt

  4. All the above

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

To answer this question, the user needs to understand the concept of hash functions and their purpose in cryptography.

Option A is incorrect because hash functions are not used for encryption; rather, they are used for creating fixed-size and unique representations of input data.

Option B is correct. A hash function takes an input (usually a string of characters) and produces a fixed-size output, called a message digest or hash value. This value is typically much smaller than the input, making it easier to store and compare. Hash functions are used for a variety of purposes, including data integrity checking, password storage, and digital signatures.

Option C is incorrect because hash functions are one-way functions, meaning that they cannot be easily reversed. They are not used for decryption.

Therefore, the correct answer is:

The Answer is: B. A function that transforms a string of characters into a number known as the message digest.

Multiple choice technology security
  1. SQL Injection

  2. Cross site scripting (XSS)

  3. Buffer Overflow

  4. None of the choices

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

This is Cross Site Scripting (XSS). George posts malicious code (script) on a website, and when Alice visits it, her browser executes the code, sending her session key to George. This is the classic XSS attack pattern: inject script, victim visits, script executes in victim's browser context. SQL Injection (A) targets databases, not client-side session theft. Buffer Overflow (C) is a memory corruption vulnerability.

Multiple choice technology security
  1. Buffer overflow

  2. Cross site scripting (XSS)

  3. Directory traversal

  4. Obfuscation

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

This is Directory Traversal (aka Path Traversal). The URL contains encoded sequences (like %2e for '.' and %2f for '/') that attempt to navigate up the directory tree to access /etc/passwd. This attack bypasses web root restrictions by manipulating file paths. Buffer overflow (A) sends excessive data. XSS (B) injects scripts. Obfuscation (D) hides code, not an attack type itself.

Multiple choice technology security
  1. Client Certificates

  2. Basic

  3. Digest

  4. NTLM

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

To solve this question, the user needs to have knowledge of different HTTP authentication mechanisms and their characteristics.

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

A. Client Certificates: This option is incorrect because client certificates are used to authenticate the client to the server and are typically encrypted, not sent in clear text.

B. Basic: This option is correct. Basic authentication is one of the simplest authentication schemes and sends login and password credentials in clear text. This means that if someone intercepts the traffic, they can read the credentials and potentially use them to gain unauthorized access to the system.

C. Digest: This option is incorrect because Digest authentication uses a challenge-response mechanism to authenticate the user and does not send the credentials in clear text.

D. NTLM: This option is incorrect because NTLM authentication uses a challenge-response mechanism and does not send the credentials in clear text.

Therefore, the correct answer is:

The Answer is: B

Multiple choice technology security
  1. Session Fixation Attack

  2. Brute force attack

  3. Insecure Direct Object Reference

  4. Injection Flaws

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

To answer this question, the user needs to know about common types of attacks on web applications and their characteristics.

Option A: Session Fixation Attack, which is also known as a session hijacking attack, involves an attacker fixing the session identifier of a user to gain unauthorized access to the user's account. This option is incorrect because it does not match the given scenario.

Option B: Brute force attack is the correct answer. A brute force attack is a common type of attack where an automated process tries a large number of possible values to crack a password or find a key. This type of attack is often used to gain unauthorized access to a system or application. This option matches the given scenario.

Option C: Insecure Direct Object Reference is a type of attack where an attacker can access an unauthorized resource by manipulating an object reference. This option is incorrect because it does not match the given scenario.

Option D: Injection Flaws are a type of attack where an attacker sends malicious input to an application to exploit a vulnerability and gain unauthorized access to the system. This option is incorrect because it does not match the given scenario.

Therefore, the correct answer is:

The Answer is: B. Brute force attack.

Multiple choice technology security
  1. Absolutely Correct Assumption

  2. Absolutely Incorrect assumption

  3. Partially Correct Assumption

  4. Possibly correct Assumption

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

The answer to this question is C. Partially Correct Assumption.

Explanation:

The cloud provider will take care of the physical security of the infrastructure, such as the data centers and the network. However, the responsibility for application security still lies with the organization that owns the application. This includes things like ensuring that the application is coded securely, that it is properly configured, and that it is regularly updated with security patches.

Therefore, the assumption that security will entirely be the service provider's responsibility is partially correct. The service provider will take care of some aspects of security, but the organization still has a responsibility to ensure the security of their application.

Here is a table that summarizes the different aspects of security that are the responsibility of the cloud provider and the organization:

Aspect of Security Responsibility
Physical security of the infrastructure Cloud provider
Network security Cloud provider
Application security Organization
Data security Organization
Compliance with regulations Organization