4.5.3.11 sshd_config: sftp-server arguments include '-u 027 -f AUTH -l INFO'

Information

The sftp-server is started by the sshd server after authentication has been completed successfully. The process runs with the euid of the authenticated user.

Rationale:

SSH provides several logging levels with varying amounts of verbosity. DEBUG is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information. INFO level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field.

Like sshd (see Recommendation: OpenSSH: LogLevel) the sftp-server needs to be configured with syslog information. Additionally, the umask value needs specification.

Solution

Edit the /etc/ssh/sshd_config:

vi /etc/ssh/sshd_config

Set:

Subsystem sftp /usr/sbin/sftp-server -u 027 -f AUTH -l VERBOSE

or

Subsystem sftp /usr/sbin/sftp-server -u 027 -f AUTH -l DEBUG

Re-cycle the sshd daemon to pick up the configuration changes:

stopsrc -s sshd
sleep 5
startsrc -s sshd

See Also

https://workbench.cisecurity.org/benchmarks/13069

Item Details

Category: CONFIGURATION MANAGEMENT, MAINTENANCE

References: 800-53|CM-7, 800-53|MA-4, CSCv7|9.2

Plugin: Unix

Control ID: ef96bcf61a60beb89ccbe2d96748b043f4ff7aa1f5c56d07b31a42fd801cba0e