Remote shell
GravityZone provides interactive shell functionality that enables you to connect remotely to an endpoint involved in an incident under investigation and open a remote shell session to run shell commands directly on the endpoint's operating system, to either mitigate threats instantly or collect forensic data for further analysis.
This feature is compatible with the following operating systems:
Windows
Linux
MacOS
Important
This feature requires a separate Remote Shell license key for activation.
Prerequisites
To start a remote shell session, you have to meet the following criteria:
Your company has an active license for one of the following solutions:
A Bitdefender product that includes EDR or XDR, along with a Remote Shell add-on license
Note
More information on products that include EDR or XDR is available at Features by product.
Bitdefender MDR, Bitdefender MDR Plus, Bitdefender MXDR, or Bitdefender MXDR Plus
Note
If the company does not have these required licenses, you can use the Remote Connection feature instead.
For secure communication between GravityZone Control Center and endpoints, the network firewall of your company allows traffic to DigiCert servers.
Important
You might need to configure a firewall rule to allow the required communication. Examples of web addresses the rule should whitelist:
http://crl3.digicert.comhttp://crl4.digicert.comhttp://ocsp.digicert.com
Network access to DigiCert servers is required for the automatic download of certificate revocation lists used to verify the GravityZone server certificate.
You do not need to provide any custom certificates. Endpoints automatically use the DigiCert-signed ones.
If your company uses MITM solutions that decrypt traffic or perform certificate pinning between endpoints and GravityZone, outbound access on port 443 to the following Bitdefender Cloud Servers is allowed:
cloud-wbs-endpoints.gravityzone.bitdefender.comcloudap-wbs-endpoints.gravityzone.bitdefender.comcloudgz-wbs-endpoints.gravityzone.bitdefender.com
Your account has the Manage Networks and Advanced Investigation rights enabled. For more details, refer to User rights.
If you log in with GravityZone credentials, you have two-factor authentication (2FA) enabled.
Note
If you log in via single sign-on (SSO) integrations with 3rd parties, you do not require 2FA to access the feature.
Your company meets the following criteria:
Company type: Customer
Company management: Not managed by a Partner
Important
If the company is managed from above, the Remote Shell connection with endpoint option will not be available in the section.
This requirement does not apply if the company is an MDR-onboarded Customer.
Remote Shell connection with endpoint is enabled from the target endpoint's policy settings, in . For more details, refer to Communication.
Important
This requirement does not apply if your company is an MDR-onboarded Customer.
Enabling the Remote Shell module on the target endpoint may take a couple of minutes.
Enabling this module triggers a reconfiguration of the security agent on the endpoint. This reconfiguration, in turn, initiates an agent update, bringing it to the latest available version or as configured in the policy under General > Agent > Update > Update ring.
The target endpoint is powered on and online.
Note
The Remote Shell Connection page allows you to check the endpoint details, including its current Online or Offline status.
The target endpoint’s policy does not have
powershell.exeadded to the Network Protection > Content Control > Application Blacklisting list.
Limitations
The Remote Shell session has certain operational limitations:
A user can have only one active session on the same target endpoint.
A user can have up to five active sessions on different endpoints at the same time.
No more than five different users can connect to the same target endpoint at the same time.
An active session will be terminated automatically if its browser tab is out of focus for more than 10 minutes.
Starting a Remote Shell session
To start a Remote shell session on an endpoint, follow these steps:
In GravityZone Control Center, go to the Incidents page from the left-side menu.
Select the Endpoint or Organization incident you want to investigate.
Access the Graph view.
Select the Endpoint or Server node that corresponds to the target endpoint to open its details panel.
Depending on the incident type selected earlier:
For Endpoint incidents, click Remote Shell in the Remediation section of the node details panel.

For Organization incidents, in the Response actions section of the node details panel, click Actions to open the response actions menu, then select Remote shell from the Investigation & Containment category.
Tip
When the Remote shell action is grayed out, a tooltip indicates why the action cannot be used. For more information, refer to Prerequisites.
The Remote Shell Connection page opens in a separate browser tab.

If you have 2FA enabled:
Enter the 2FA code generated from your authenticator app in the Authentication code field.
Click Start session.
If you do not have 2FA enabled:
Click Start session.
You will be redirected to your organisation's login page.
Enter your domain username and password.
You will be redirected to GravityZone Control Center.
The Remote shell session starts on the target endpoint.

Once connected, you are logged in as a user with root privileges and can perform various forensic and response actions to investigate suspicious behavior and mitigate threats.

Note
All session activity is logged, and the complete session output is available for download when the session ends.
If the remote shell session is unexpectedly terminated, refer to Taroubleshooting for possible reasons.
Uploading local files
Use this functionality to remotely transfer local files from your endpoint to another endpoint.
Important
To ensure the safety of your data, the files are encrypted in transit, at rest, and in use.
You can upload no more than 20 files at a time, as long as the overall upload size does not exceed 256 MB.
To upload files using Remote shell, follow these steps:
Start a remote shell session. Refer to Starting a Remote Shell session.
In the Remote Shell Connection window, click Upload.
The Upload files page opens.
In the Destination file path field, enter the file path to the local folder where the files will be stored. This must be a valid file path on the target endpoint. Make sure you have the necessary permissions to access the folder.

Note
Remote shell does not support file paths to shared network drives.
Click Browse.
Navigate to your files and select them.
Click Open.
Click Upload.
Wait until the Upload started. Do not end the remote session message disappears.
Your files are now available on the target endpoint. You can proceed with your investigation in the Remote shell terminal.
Uploading scripts from repository
Use this functionality to upload scripts stored in the Script repository to a remote endpoint during a Remote shell session. Once uploaded, you can execute the scripts directly from the Remote shell terminal.
Important
You can upload up to 20 scripts. Total upload size must not exceed 256 MB.
To upload scripts from Script repository:
Start a Remote shell session. For details, refer to Starting a Remote Shell session.
On the Remote Shell Connection page, click Upload from repository.
The Upload scripts page opens.
In the Destination path field, enter the path on the remote endpoint where the files will be stored. This must be a valid file path on the target endpoint. Make sure you have the necessary permissions to access the folder.

Important
Remote shell does not support file paths to shared network drives.
From the Scripts to upload table, select the scripts you want to upload to the remote endpoint. The Selected scripts and Upload size values are updated automatically as you make your selections. Ensure the limits are not exceeded.
Click Upload.
You are returned to the Remote Shell Connection page, where a confirmation banner indicates that the selected scripts were uploaded successfully.
If you upload only one script, its name is automatically displayed in the Remote shell terminal. To run the script, press Enter in the terminal. The script is executed using the execution parameters configured on the Script repository page.
If you upload multiple scripts, you must execute them manually from the terminal. In this case, you also need to specify the execution parameters when running each script, regardless of any parameters previously configured in the Script repository.
Downloading files
Use this functionality to remotely download files from another endpoint.
Important
To ensure the safety of your data, the files are encrypted in transit, at rest, and in use.
You can download a file, or you can select a folder and download all contained files.
The overall download size cannot exceed 256 MB.
To download files using Remote shell, follow these steps:
Start a remote shell session. Refer to Starting a Remote Shell session.
In the Remote Shell Connection window, click Download.
This action opens the Download files page.
In the Download files from field, enter the path to the file or folder you want to download. If you select a folder, all contained files are added to an archive, and then downloaded.

Note
Remote shell does not support file paths to shared network drives.
Optionally, you can protect the file archive with a password by enabling the Password protect the file archive option.

Enter the desired password in the provided fields.
Click Download.
You can retrieve the files in two different ways:
Wait for the files to download. Do not close the Download files page until you are notified that the download was successful. When the download is finished, you will receive a notification in the lower right side of the window.

Click Download to retrieve the archive.
Close the Download files page and retrieve the archive from Network inventory. It is available in the endpoint details > Investigation > Investigation Files Activity table for 24 hours, after which the file is automatically removed from Bitdefender's temporary storage. For more information, refer to the section below.
Note
You may require third-party software to open the archive and extract the files.
Note that, for Linux endpoints, the archives to download are symmetrically encrypted using a GPG tool.
Retrieving downloaded files from Network inventory
To retrieve files downloaded using Remote shell, follow these steps:
Go to the Network page from the left-side menu in GravityZone Control Center
Click the managed endpoint that contains the files you have downloaded.
Go to the Investigation tab.

View the status of your request, along with other data-gathering activities performed in the past 24 hours, in the Investigation Files Activity table.

You can cancel download requests in Pending status. Requests that were canceled or could not be completed for various reasons have the status Failed.
When the download process has completed successfully, the action status changes to Finished, and the archive with the collected files is available for download.
Click Download file in the Action column to download the archive locally.
Note
You may require third-party software to open the archive and extract the files.
Ending a Remote Shell session
When done investigating, click the End session button to close the remote connection, or close the session's browser tab.

Note
If the Remote Shell session is unexpectedly terminated, see Taroubleshooting for possible reasons.
After ending the current session, you can click the Download audit log button to get the logs of the remote shell session you just ended, or you can start a new remote session.
When you click Download audit log, GravityZone will start compiling a zip file with all the session logs. This action may take a couple of minutes to complete, depending on the size of the archive. All session details are also available in the User activity log.
Note
The session's logs are saved by default in a raw format. For easier reading, unzip the file and use one of these tools:
For logs from Windows OS endpoints, run this command in PowerShell:
Get-Content <filePath> -Wait(use the file path and name of the log file)Example:
Get-Content "C:\Users\Documents\sessionLogs.txt" -WaitFor logs from Linux and macOS endpoints, run this command in the terminal:
less <filePath>(use the file path and name of the log file)Example:
less /home/user/sessionLogs.txt
When you click Start a new session, you will be required to go through the authentication steps again.
Taroubleshooting
Your Remote Shell session may drop unintentionally for various reasons. In most cases, restarting the session is the easiest and quickest way to fix the issue. If this doesn't work, you can always contact our Customer Support team, who will gladly assist you in all matters concerning the Bitdefender GravityZoneplatform.
Here is a list of error messages that the remote shell might display, possible reasons that may have caused them, and measurespowered on to mitigate them: