| United States-English |
|
|
|
![]() |
HP Servers and Workstations: Managing Systems and Workgroups > Chapter 8 Administering a System: Managing
System SecurityControlling Security on a Network |
|
From the perspective of security, networked systems are more vulnerable than standalone systems. Networking increases system accessibility, but also add greater risk of security violations. While you cannot control security over the network, you can control the security of each node on the network to limit penetration risk without reducing the usefulness of the system or user productivity. All network administration programs should be owned by a protected, network-specific account, such as uucp, nso, or daemon, rather than root. An administrative domain is a group of systems connected by network services that allow users to access one another without password verification. An administrative domain assumes system users have already been verified by their host machine. Follow these steps to identify and control an administrative domain.
Modes, owners, and groups on all system files are set carefully. All deviations from these values should be noted and corrected. Pay particular attention to network control files, which reside in /etc, and are notable targets because they provide access to the network itself. Network control files should never be writable by the public. Among them are:
HP-UX provides various networking services, each providing a means of authentication, either through password verification or authorization set up in a file on the remote system. Table 8-2 Access Verification for Network Services
For information on using the services, refer to the manpage specific to the services. We have identified here some of the major security concerns related to these network services. Access control to individual network services can be set in /var/adm/inetd.sec, an optional security file for the Internet daemon. You can explicitly allow or deny use of most networking services by listing them on a per-machine or per-subnet basis. The syntax of entries in /var/adm/inetd.sec is: service-name allow|deny {host-address|host-name}... The service-name is the official name (not an alias) of a valid service in the file /etc/services. The service-name for RPC-based services (NFS) is the official name (not an alias) of a valid service in the file /etc/rpc. The wildcard character * and the range character - are permitted in addresses. Refer to inetd.sec(4) for complete details on the syntax and use of this file. ftpd, the file transfer protocol server, is run by the Internet daemon (see inetd(1M)) when a service request is received at the port indicated in /etc/services. ftpd rejects remote logins to local user accounts named in /etc/ftpd/ftpusers. Each restricted account name must appear by itself on a line in the file. The line cannot contain any spaces or tabs. User accounts with restricted login shells in /etc/passwd should be listed in /etc/ftpd/ftpusers, because ftpd accesses local accounts without using their login shells. uucp accounts should also be listed in /etc/ftpd/ftpusers. If /etc/ftpd/ftpusers does not exist, ftpd skips the security check.
A Network File System (NFS) is used to
NFS streamlines file-sharing between server and client systems by controlling access via the /etc/exports file. Entries in /etc/exports provide permission to mount a file system existing on the server onto any client machine or a specified list of machines. Once a file system is put into /etc/exports, the information is potentially available to anyone who can do an NFS mount. Thus, the NFS client user can access a server file system without having logged into the server system. See “Managing File Systems” for more information. See also exports(4) for further information on controlling access to exported file systems. Server security is maintained by setting restrictive permissions on the file /etc/exports. Root privileges are not maintained across NFS. Thus, having root privileges on a client system does not provide you with special access to the server. The server performs the same permission checking remotely for the client as it does locally for its own users. The server side controls access to server files by the client by comparing the user ID and group ID of the client, which it receives via the network, with the user ID and group ID of the server file. Checking occurs within the kernel. A user with privileges on an NFS client can exploit that privilege to obtain unlimited access to an NFS server. Never export any file system to a node on which privilege is granted more leniently than from your own node’s policy! In earlier releases of NFS for workstations, the /dev inode had to reside on the client’s disk. NFS now allows for the /dev inode containing the major and minor numbers of a client-mounted device to exist on the server side. This opens the possibility for someone to create a Trojan Horse that overrides permissions set on the client’s mounted device, by accessing the device via the file and inode number found on the server side. Although lacking permission to make a device file on the client side, a system violator wanting to sabotage the client can create an undermining device file, such as /dev/kmem, using root permissions on the server side. The new /dev file is created with the same major and minor number as that of the target device on client side, but with the following permissions: crw-rw-rw-. The violator can then go to the client, log in as an ordinary user, and, using NFS, open up the newly created server-side device file and use it for devious means — to wipe out kernel memory on the server, read contents of everyone’s processes, or other mischief.
Link-level access is a very powerful facility that permits a programmer to access the link driver on the host directly. In the wrong hands, this capability can enable an ordinary user to fabricate any network packet, including network control packets. To protect link-level access, make sure that the files /dev/ether*, /dev/ieee*, and /dev/lan* are owned and writable only by root. See “Security Considerations for Device Files”.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||