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
-
SSL/TLS Implementation
-
URL/HTML Encoding
-
Using parameterized queries
-
Configuring web server to restrict directory listing
C
Correct answer
Explanation
Parameterized queries separate SQL logic from data, preventing injection by treating user input as literal values not executable code. SSL/TLS (A) encrypts transmission but doesnt stop injection. URL/HTML encoding (B) mitigates XSS, not SQLi. Directory restrictions (D) address information disclosure, not injection. Parameterized queries (also called prepared statements) are the primary defense.
-
Authentication testing
-
Session Management
-
Information Gathering
-
Authorization Testing
C
Correct answer
Explanation
Spiders, robots, and crawlers automate information gathering by traversing websites and cataloging content, links, and structure. This reconnaissance phase identifies targets, technologies, and potential vulnerabilities. Authentication (A) and authorization (D) testing focus on access controls. Session management (B) concerns maintaining user state. These tools primarily enable discovery and mapping.
-
Finding default files and directories
-
Finding maximum attempts for account lockout
-
Finding a password for a given user ID
-
Finding the information displayed on a validation CAPTCHA
D
Correct answer
Explanation
CAPTCHAs specifically resist automated solving by design - they test humanity. Fuzzers like WebScarab send massive automated requests but cannot interpret visual/audio challenges meant for humans. Fuzzers can discover files (A), test lockout limits (B), and attempt passwords (C). CAPTCHA breaking requires human interaction or specialized AI, not simple request automation, making it unsuitable for fuzzing tools.
-
Rescure, Strategise & Act
-
Rescure, Secure & Act
-
Rivest, Shamir & Adleman
-
Ruskin, Shammy & Atkinson
C
Correct answer
Explanation
RSA encryption is named after its inventors: Ron Rivest, Adi Shamir, and Leonard Adleman. Option C correctly identifies these three cryptographers who developed this public-key cryptosystem.
-
Group based access control should be implemented to assign permissions to application users
-
Consistent authorization checking should be performed on all application pages
-
A set of all allowable actions should be defined for each user role and all other's denied
-
All failed access authorization requests should be logged to a secure location for review by administrators
C
Correct answer
Explanation
The principle of least privilege means granting only the minimum necessary access. Option C correctly states this: define exactly what each role CAN do, deny everything else by default. Group-based access (A) is an implementation detail, not the principle itself. Consistent checking (B) is about execution, not privilege assignment. Logging failures (D) is auditing, not the principle itself.
-
TCS Security API
-
TCS Security Library
-
TCS Application Security API
-
TCS e-Security Library
A
Correct answer
Explanation
TCS Security API is the TCS security library used for remediation of security vulnerabilities found during assessments. The other options (B, C, D) are plausible variations but not the correct product name.
-
Client (Browser)
-
Database
-
Web Application
-
Web Server
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 from a vulnerable website, not the server, database, or web application itself.
-
Secure
-
Domain
-
Expires
-
Static
A
Correct answer
Explanation
The Secure cookie flag ensures cookies are only transmitted over encrypted HTTPS connections, preventing their interception over insecure HTTP channels. The Domain flag specifies cookie scope, Expires sets cookie lifetime, and Static is not a valid cookie attribute.
-
Compromise of users
-
Loss of data integrity
-
Destruction of data
-
None of the above
A
Correct answer
Explanation
The primary risk of XSS is user compromise - attackers can steal session cookies, credentials, or perform actions on behalf of victims. While data integrity and destruction are potential consequences, the core threat is compromising user accounts and sessions through script injection.
-
Equivalent to normal users
-
Less than those of normal users as all administrators are trustworthy
-
No authentication is required for administrators
-
Greater than those of normal users
D
Correct answer
Explanation
Administrator accounts require stronger authentication than normal users because they have elevated privileges that can cause greater damage if compromised. Trust assumptions are security vulnerabilities - admins must face stricter access controls.
-
Cannot be treated as a secure practice
-
Is a good way to hide passwords from hackers
-
Is perfectly fine for internal applications
-
Is perfectly fine for external user facing applications
A
Correct answer
Explanation
Hard coding credentials means embedding passwords or API keys directly in source code, which is a serious security vulnerability. Credentials exposed in code can be easily discovered through version control history, decompilation, or unauthorized access to the repository. Options B, C, and D are incorrect because hardcoding credentials is never secure, regardless of application type or intended audience.
-
Cross-Site Scripting
-
Buffer over flows
-
Command injection
-
Path traversal attack
A
Correct answer
Explanation
Cross-Site Scripting (XSS) attacks occur when an attacker injects malicious scripts into content from a seemingly trusted source, like a compromised link or reflected input. The script executes in the victim's browser context. Buffer overflows and command injection are different vulnerability classes that don't involve malicious links.
-
Escape the invalid characters and continue processing the input data
-
Accept the input data without modifying it and log the validation error
-
Delete the invalid characters and continue processing the input data
-
Reject the entire input data and send an error message back to the user
D
Correct answer
Explanation
The most secure response to invalid input is complete rejection (option D) because sanitization (escaping or deleting characters) can be bypassed and attackers might craft malicious payloads that survive filtering. Simply accepting invalid input (B) is dangerous, and partial processing after modification (A, C) risks introducing vulnerabilities.
-
Hashing the password twice
-
Encrypting the password using the private key
-
Use an encryption algorithm you wrote your self so no one knows how it works
-
Salting the hash
D
Correct answer
Explanation
Salting (adding random data before hashing) prevents dictionary and rainbow table attacks by ensuring identical passwords produce different hashes. Hashing twice (A) adds negligible security. Private key encryption (B) isn't applicable to password storage. Custom encryption (C) violates Kerckhoffs's principle and is rarely secure.
-
Can be done as it as an internal IP
-
Can be done for internet facing servers as there are no chances of IP conflicts
-
Is a good security practice
-
Is a bad security practice
D
Correct answer
Explanation
Hard-coded IP access control is fundamentally insecure because IP addresses can be spoofed, are dynamic (especially for ISPs), and create inflexible, brittle security. Option D correctly identifies this as bad practice. Internal IPs (A) and IP conflicts (B) aren't the core issues.