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

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

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/7851