📝 Security in Windows 7 (11 MCQs)
Security Architecture Across Windows 7 Components
Windows 7 security combines authentication, access control, process isolation, code integrity, firewall protection, and auditing. Its NT security architecture applies security descriptors to objects and evaluates access through security tokens and the Security Reference Monitor. User Account Control reduces unnecessary administrative execution, while Windows Defender, Windows Firewall, and BitLocker in eligible editions provide additional protection facilities.
Why Desktop Systems Need Layered Protection
Personal computers run software from different sources and connect to local and public networks. A single unrestricted account could expose system files and administrative functions to malicious programs. Windows 7 therefore separates standard and administrative privileges and applies access checks to protected resources, although configuration and software updates remain essential.
Tokens, Access Checks and Security Services
After authentication, Windows creates a security token containing the user's SID, group SIDs, and privileges. When a process requests access to a protected object, the security subsystem checks its token against the object's security descriptor. UAC can require consent or administrative credentials before an elevated process receives additional rights.
Example of a Restricted System File
A standard user attempts to modify a protected file under the Windows directory. The object security descriptor grants modification rights only to authorised identities. The access check denies the request. An administrator may perform the change through an elevated process, subject to applicable system policy and permissions.
Security Controls and Legacy Limitations
Windows 7 offers account separation, firewall filtering, UAC, NTFS permissions, and optional drive encryption. These mechanisms reduce unauthorised access but cannot compensate for unsupported software, weak passwords, or unpatched vulnerabilities. Because Windows 7 support has ended, its original security facilities should not be mistaken for a currently maintained security platform.
Misconceptions About Windows 7 Security
'UAC is a replacement for antivirus protection' is false because it controls privilege elevation. 'Administrator accounts bypass every security mechanism' ignores mandatory checks and additional protections. 'A firewall prevents malware from executing locally' overlooks threats delivered through files and removable media.
Exam Focus: Tokens, UAC and Object Permissions
Trace authentication, token creation, access checking, and privilege elevation. Distinguish UAC prompts from ordinary access-control decisions and firewall filtering. Questions may ask how a standard user is restricted or how an NTFS security descriptor determines whether a process can read, modify, or execute an object.
Key Terms of Windows 7 Security
- Security token - Contains user identity and privileges.
- SID - Security identifier for an account.
- UAC - Controls administrative elevation.
- Security descriptor - Stores object security information.
- Firewall - Filters network communication.
📝 All Security in Windows 7 MCQs
Q1. A shared workstation allows fast user switching. Which security risk is highest when users switch without logging off?
📖 Explanation: Fast user switching lets a new user take control of the console while the previous user's processes and open files remain active. The most immediate threat is that the new user can access files left open or stored in the previous session, leading to unauthorized file access. Malware persistence and credential leakage are possible but less direct, and network sniffing is unrelated to local session switching.
Q2. What primary security benefit does running each operating system instance in a separate virtual machine provide?
📖 Explanation: Virtual machines create distinct virtualized hardware environments, ensuring that processes and data in one VM cannot directly affect another. This isolation limits the impact of a compromise to the affected VM only. Enhanced graphics, licensing, and UI simplicity are advantages of virtualization but do not directly address security; isolation is the core protective mechanism.
Q3. In which Windows version was the Desktop Window Manager first introduced as a user‑mode process?
📖 Explanation: Microsoft moved the Desktop Window Manager (DWM) out of kernel mode starting with Windows Vista, making it a user‑mode process that handles desktop compositing. This shift helped reduce the kernel’s attack surface. Windows XP never included DWM, Windows 7 later refined it, and Windows 8 continued the user‑mode design, but the initial introduction was in Vista.
Q4. An admin wants to allow simultaneous terminal‑service sessions while keeping each session isolated. Which Windows feature must be enabled?
📖 Explanation: Remote Desktop Services (formerly Terminal Services) provides the infrastructure for multiple concurrent user sessions, assigning each its own session ID and security context. Fast user switching only alternates the console user, UAC manages privilege elevation, and Credential Guard protects credentials, but none guarantee session isolation for simultaneous connections.
Q5. How does moving the graphical user interface back to user mode in Windows Vista improve system security?
📖 Explanation: By running GUI components like the Desktop Window Manager in user mode, Windows Vista limits the amount of code executing with kernel privileges. This reduction in privileged code decreases opportunities for attackers to exploit kernel vulnerabilities. Faster rendering, driver simplicity, and higher resolutions are performance or usability benefits, not security improvements.
Q6. A kernel‑mode driver is exploited to execute arbitrary code on a 64‑bit Windows 7 system with DWM optimized. Which built‑in defense most likely blocks this attack?
📖 Explanation: PatchGuard, also known as Kernel Patch Protection, monitors critical kernel structures and prevents unauthorized modifications, thwarting many kernel‑mode code‑execution exploits. Secure Boot ensures only trusted bootloaders run, ASLR randomizes addresses but does not stop a driver from writing to them, and Credential Guard protects credentials, not kernel integrity. Therefore PatchGuard is the primary barrier against this type of attack.
Q7. When a server runs a 64‑bit Windows OS with large physical memory, what security implication becomes most critical?
📖 Explanation: Large physical memory expands the addressable space, giving attackers a broader target for memory‑corruption techniques such as pointer overflows. Proper access controls for kernel objects and careful memory management become essential to prevent exploitation. Faster CPUs, licensing, and hardware reliability are operational concerns but do not directly affect the security posture related to memory size.
Q8. A public kiosk uses fast user switching. After a user logs off, a background process from the previous session remains running. Which Windows mechanism can automatically end such stray processes?
📖 Explanation: Group Policy can be configured to run logoff scripts that terminate any processes owned by the departing user, ensuring no residual code persists that could be misused. Task Scheduler runs tasks on a schedule, Defender focuses on malware detection, and Session 0 Isolation separates services from user sessions, none of which specifically clean up stray user processes at logoff.
Q9. How does terminal services multiplexing of keyboard, mouse, and monitor affect confidentiality of each user's input?
📖 Explanation: Multiplexing assigns each active session its own virtual input channel, so keystrokes, mouse movements, and display output are kept separate. This isolation preserves confidentiality because one user cannot see or capture another's input. Sharing devices without isolation would be insecure, encryption is not automatic, and logging every key press would raise privacy concerns, making option C the correct description.
Q10. A developer wants a custom graphics component to run in user mode rather than kernel mode to avoid privilege escalation. Which Windows API should they use?
📖 Explanation: The Desktop Window Manager operates as a user‑mode process that handles compositing and visual effects, allowing developers to leverage its services without entering kernel mode. Direct3D and GDI+ can also run in user mode but often rely on kernel‑mode drivers for rendering. Win32k is a kernel component. Using DWM thus minimizes privileged code execution, reducing escalation risk.
Q11. Why can fast user switching on a multi‑user workstation lead to privilege escalation if session data is not cleared?
📖 Explanation: When fast user switching does not properly purge the previous session’s security context, the new user may inadvertently inherit elevated tokens or handles left open, providing a pathway to privilege escalation. Simultaneous file editing is a collaboration issue, forcing processes to run as Administrator is not a default behavior, and firewall rules remain active, making option B the accurate security concern.