SV-270947r1155102_rule
V-270947
SRG-APP-000133
DRAG-OT-000520
CAT I
10
Uninstall shell environment:
Log in to the Dragos Platform CLI.
Execute the following command:
elevate
Enter the elevate password, then execute the following command:
disable shell
Once this has been executed, users cannot create interactive bash shell sessions. This command removes the shell from the Platform; it can only be enabled again if the dragos_admin user authenticates and changes the configuration for maintenance.
Note: Access to the bash shell via the "run shell" command is disabled bu default.
Verify shell environment:
Log in to the Dragos Platform CLI.
Execute the following command:
elevate
Enter the elevate (admin) password, then execute the following command:
run shell
If the option "run shell" executes successfully and places the terminal session into a shell environment, this is a finding.
Note: A shell environment will be noticeable because the terminal line will be in the format "user@dragos:~$" compared to dragoscmd, which would be "dragos>". If shell is properly uninstalled, the return will be "Error: No such command 'shell'." The shell can be enabled and disabled as needed for troubleshooting efforts with appropriate authentication as dragos_admin.
V-270947
False
DRAG-OT-000520
Verify shell environment:
Log in to the Dragos Platform CLI.
Execute the following command:
elevate
Enter the elevate (admin) password, then execute the following command:
run shell
If the option "run shell" executes successfully and places the terminal session into a shell environment, this is a finding.
Note: A shell environment will be noticeable because the terminal line will be in the format "user@dragos:~$" compared to dragoscmd, which would be "dragos>". If shell is properly uninstalled, the return will be "Error: No such command 'shell'." The shell can be enabled and disabled as needed for troubleshooting efforts with appropriate authentication as dragos_admin.
M
5675