📝 Security policy in operating system (10 MCQs)
Rules Governing Access to System Resources
A security policy defines the rules and requirements that govern how users, processes, and services may access operating system resources. It specifies acceptable actions, privilege boundaries, authentication requirements, and responses to security events. Technical mechanisms such as permissions, access control lists, firewalls, and auditing enforce parts of the policy across system components.
Why Protection Mechanisms Need Consistent Rules
Individual access controls are ineffective when their settings conflict or fail to reflect organisational requirements. A policy establishes which information must be protected, who may use it, and under what conditions. It also guides configuration, incident response, account management, and security reviews across multiple computers and services.
Translating Policy into Enforced Controls
Administrators define users, roles, resource classifications, and permitted operations. They translate these requirements into account settings, file permissions, privilege assignments, authentication rules, and network controls. The operating system evaluates requests against the configured mechanisms and records relevant events so administrators can verify whether the policy is being followed.
Example of a University Account Policy
A university policy allows students to read course materials but reserves editing rights for lecturers. Administrators implement group membership and file permissions accordingly. When a student attempts to modify a protected course file, the operating system denies the write request and may record the event for later review.
Policy Consistency, Enforcement and Exceptions
A clear policy improves accountability and reduces inconsistent permission settings. It must address account creation, privilege changes, remote access, data handling, and incident response. Overly broad restrictions can obstruct legitimate work, while undocumented exceptions create weaknesses. Regular reviews are necessary as users, applications, and organisational requirements change.
Misconceptions About Security Policies
'A written policy automatically protects a computer' is false because controls must implement it. 'Every user should receive administrator privileges for convenience' violates least privilege. 'A policy never changes after deployment' ignores evolving threats, software, legal duties, and organisational responsibilities.
Exam Focus: Policy Rules and Technical Enforcement
Distinguish security policy from the mechanisms used to enforce it. Given a user-resource scenario, identify the required rule and suitable permissions, roles, or authentication controls. Questions may examine least privilege, separation of duties, policy exceptions, auditing, and the consequences of inconsistent enforcement.
Key Terms of Security Policy
- Security policy - Rules governing safe resource use.
- Least privilege - Minimum authority required for a task.
- Role - Job-related grouping of permissions.
- Enforcement - Application of policy rules.
- Exception - Approved departure from a standard rule.
📝 All Security policy in operating system MCQs
Q1. Which UNIX utility did the Morris worm exploit to execute remote commands without requiring a password?
📖 Explanation: The worm leveraged the rsh utility because it reads .rhosts files that list trusted host‑login pairs, allowing password‑less logins. SSH requires authentication, telnet also prompts for credentials, and FTP is used for file transfer rather than command execution. Consequently, rsh was the only tool matching the worm’s need for unattended remote command execution, demonstrating how insecure defaults can be abused in real attacks.
Q2. Why was the finger service an attractive target for the Morris worm’s buffer‑overflow attack?
📖 Explanation: Finger accepted a long string without proper bounds checking, enabling a buffer‑overflow that let the worm overwrite the stack and inject code. This vulnerability allowed the worm to spawn a remote shell on the target machine. The other options are incorrect: finger does not store passwords, its rarity does not guarantee stealth, and it does not log traffic, so only the unchecked input explanation fits.
Q3. A system administrator discovers several .rhosts files contain entries for unknown hosts. Which immediate action should the admin take to reduce the risk of worm propagation?
📖 Explanation: Removing unknown host entries directly eliminates the trust relationship that lets rsh connect without passwords, cutting the worm’s easiest path for remote execution. Deleting all .rhosts would break legitimate trusted connections, while replacing rsh with ssh does not address existing .rhosts entries. Disabling interfaces is overly disruptive and does not specifically target the vulnerability.
Q4. How does allowing password‑less logins via .rhosts files conflict with a strong security policy?
📖 Explanation: Password‑less logins skip the fundamental step of verifying a user’s identity, so anyone who can spoof a trusted host can gain access without credentials. Encryption, multi‑factor authentication, and command logging are security controls that enhance protection, not weaken it. Therefore, the primary conflict is the lack of authentication, which directly undermines confidentiality and integrity guarantees of a robust policy.
Q5. An organization patches the finger daemon to fix the buffer‑overflow bug. Which of the following best describes the impact on the Morris worm’s infection ability?
📖 Explanation: Fixing the buffer‑overflow removes the vulnerability the worm exploited in finger, eliminating that specific infection path. The worm still retains its other two methods—rsh‑based remote execution and the sendmail bug—but loses the finger vector, reducing overall spread potential. The other options are inaccurate because the worm cannot exploit a patched service, does not gain new abilities, and does not rely solely on rsh.
Q6. A network is being scanned and the worm attempts to use rsh to spread. Which mitigation provides the greatest reduction in worm propagation?
📖 Explanation: Disabling rsh removes the fundamental mechanism the worm uses for password‑less remote execution, effectively cutting off that propagation channel. Blocking port 514 only limits traffic but may be bypassed if rsh runs on another port; password rotation does not affect a service that does not require credentials; and IDS can detect but not prevent the initial exploitation. Thus, service shutdown offers the most decisive protection.
Q7. What primary security policy principle is violated when a system permits remote execution without password verification?
📖 Explanation: Allowing remote commands without verifying who is issuing them directly breaches the authentication principle, which requires proof of identity before granting access. Confidentiality concerns data secrecy, integrity ensures data is unaltered, and availability focuses on system uptime; none of these address the core issue of unchecked identity verification. Hence, the lack of authentication is the fundamental policy violation exploited by the worm.
Q8. To limit the spread of a worm that exploits rsh and finger, a company segments its network. Which segmentation strategy is most effective?
📖 Explanation: Isolating UNIX servers on their own VLAN and controlling traffic between VLANs prevents the worm from easily reaching vulnerable hosts across the broader network. Keeping them together on one VLAN or a flat network offers no barrier, and using wireless exclusively does not address the underlying protocol vulnerability. Proper segmentation thus reduces the attack surface and limits lateral movement.
Q9. During monitoring, an analyst observes a sudden increase in outbound connections to port 514 on many hosts. Which conclusion is most consistent with a worm using rsh for propagation?
📖 Explanation: Port 514 is the default rsh service port; a spike in outbound connections from many hosts suggests automated attempts to contact other machines for password‑less execution, matching worm behavior. A DDoS would target a victim rather than many internal hosts, SSH uses port 22, and a web service deployment would involve HTTP ports, not 514.
Q10. How does the combination of three infection methods in the Morris worm illustrate the defense‑in‑depth concept?
📖 Explanation: The worm’s use of rsh, finger, and sendmail vulnerabilities demonstrates that if an organization depends on just one protective measure, attackers can bypass it through another vector. Defense‑in‑depth advocates layered controls so that compromising one layer does not grant full access. The other statements misinterpret the principle, as multiple attacks are not guaranteed to succeed and security policies remain essential.