6.12.5 Ensure Local Logging is Set for Interactive-Commands

Information

Logging data for Interactive Commands should be saved to a local file.

Rationale:

When responding to a security incident or fault, a record of all of the commands issued on the JUNOS Devices, either through the CLI or through management APIs such as JUNOScript or NETCONF, can provide vital clues.

A local SYSLOG file should be configured to record all interactive-commands issued on the JUNOS Device, along with details of the user who issued them and when. Having this data available locally, as well as on remote SYSLOG or SIEM Servers, can aide Incident Responders and enable a faster resolution to both Security and Operational related issues.

Impact:

Events detailing Interactive Commands will be logged to the configured file in the JUNOS Device's /var/log/ folder. You may wish to specify the size of files to be recorded, the number of zipped older files the JUNOS Devices should keep and automatic archiving settings to appropriate values for the device and environment you are using. Details of the related commands are linked in the References section.

Solution

To configure a local SYSLOG file for Interactive Commands, issue the following command from the [edit system syslog] hierarchy;

[edit system syslog]
user@host#set file <filename> interactive-commands any

Where <filename> is the file, in the default /var/log/ folder, that should be used to log these messages. You may, for example, choose to call the file interactive-commands, in which case it can be read with the show log interactive-commands command.

Default Value:

Messages from the interactive-commands facility are logged to the /var/log/interactive-commands file at the info Severity Level, by default on most JUNOS platforms (though this may vary by platform and version).

See Also

https://workbench.cisecurity.org/files/3069

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-3, 800-53|AU-12, CSCv7|6.2

Plugin: Juniper

Control ID: ad8af064c37733f20fa528c3b1b4b4b1fadf4e266d324c511e12bc8b1c00e301