Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request system malware-scan

date_range 29-Nov-24

Syntax

content_copy zoom_out_map
request system malware-scan
integrity-check
quick-scan
  clean-action (clean | warn)
  pids set-of-pids
  test
run-fake-malware | list-fake-malware

Description

Run the Juniper Malware Removal Tool (JMRT), which scans for and removes malware running on Juniper Networks devices. This command can perform multiple types of scans, detailed in the following section.

Options

integrity-check

Check whether integrity mechanisms are enabled and working properly. Integrity mechanisms allow only signed binaries to run on the system.

Note:

Junos OS with Junos Automation Enhancements does not run Veriexec. As such, running the integrity-check command on Junos OS with Junos Automation Enhancements always shows that integrity is not enforced.

quick-scan Start a quick scan, which attempts to scan each process’ executable for malware. If the executable file does not exist, it scans the process memory instead.
clean-action (clean | warn)

Determine the action that JMRT should take when potential malware is detected:

  • clean—Remove infected files and processes. This is the default action.
  • warn—Notify the user of files and processes containing malware, but do not remove them.
pids set-of-pids Set of process IDs (PIDs) to scan. By default, JMRT scans all processes.

You can access the following options by default in Junos OS Evolved. To access them in Junos OS, install the jmrt-test package.

Note:

You will see the run-fake-malware and list-fake-malware options in Junos OS only if you have installed jmrt-test.

Note:

Before 23.3, you must enable the jmrt-test package to gain access to the test option for quick-scan, run-fake-malware, and list-fake-malware.

test Run a test scan that will detect fake malware. Use this option to observe how JMRT works, without needing actual malware on the system.
Note:

This option is deprecated from Junos 24.2R2

Now the quick-scan option is sufficient to scan for fake-malware.

run-fake-malware Spawn a fake malware process on the system.
list-fake-malware List all fake malware processes (PIDs) that are running on the system.

Required Privilege Level

admin

Sample Output

request system malware-scan

content_copy zoom_out_map
user@host> request system malware-scan integrity-check 
Integrity is enforced: No
content_copy zoom_out_map
user@host> request system malware-scan list-fake-malware  
content_copy zoom_out_map
user@host> request system malware-scan quick-scan 
Found potential malware: No  
content_copy zoom_out_map
user@host> request system malware-scan run-fake-malware  
Fake malware PID: 28423  

Release Information

Command introduced in Junos OS Release 19.2R1.

Command option veriexec-check renamed as integrity-check in Junos OS Release 21.4R1.

Command introduced in Junos OS Evolved Release 21.4R1.

footer-navigation