Signature detections
|
cure-file <path>
|
Cure the file that has the detected threat signature.
Actions (such as deleting, curing the content, replacing it, and additional system actions) are defined by the signature detected in the file. File location, its activity in the system, etc. are considered when curing by deleting. Additional actions such as pending delete, cleaning up startup items, blocking path till restart, etc. are performed if necessary.
If the file is clean when invoking the command, nothing happens.
Example:
cure-file "C:\Windows\System32\malware.exe"
|
|
File system
|
fs-move <source> <destination>
|
Move or rename the file or directory.
If source — is an existing directory source will be moved to destination. Otherwise source is renamed to destination.
Example:
fs-move "c:\con" "c:\lpt1"
|
|
fs-remove <path>
|
Delete the file or directory with the specified path.
All remaining links between the object and other elements in the system will be specified at the end of the report.
Example:
|
fs-reset-acl [-r] <path>
|
Set parent ACL for the file or directory.
If the -r option is specified, ACL is set recursively for each file and subdirectory.
If setting the ACL fails for the specified directory, the recursive traversal is stopped for the directory to avoid incorrect ACL setting for child elements.
Example:
fs-reset-acl -r "c:\test1\test2"
|
|
fs-clear-ads <path>
|
Delete all ADS of the file or directory.
Example:
fs-clear-ads "C:\windows\explorer.exe"
|
|
Registry
|
reg-remove <sid> <key_path> [<value>]
|
Delete a value or key. <sid> is a profile specified in the registry.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
All remaining links between the object and other elements in the system will be specified at the end of the report.
Examples:
reg-remove HKLM "SOFTWARE\Test"
reg-remove HKLM "SOFTWARE\Test" Value
|
|
reg-set-value [-f] <sid> <key_path> <value_name> <type> <value_data>
|
Set a value for the specified key. <sid> is a profile specified in the registry.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
If the -f option is specified, parent keys are created (if they do not exist) and the key is overwritten with the new type.
•To specify REG_SZ or REG_EXPAND_SZ type values, the string format is used.
•To specify REG_BINARY or REG_MULTI_SZ type values, the binary format is used.
•To specify REG_DWORD or REG_QWORD type values, the numeric format is used.
Examples:
reg-set-value -f HKLM "SOFTWARE\Test" TestSZ REG_SZ "Test"
reg-set-value -f HKLM "SOFTWARE\Test" TestBINARY REG_BINARY "5300530044005000530052005600"
reg-set-value -f HKLM "SOFTWARE\Test" TestDWORD REG_DWORD 0x1
|
|
reg-reset-acl [-r] <key_path>
|
Set parent ACL for the key.
If the -r option is specified, ACL is reset recursively for each subkey.
If setting the ACL fails for the specified directory, the recursive traversal is stopped for the directory to avoid incorrect ACL setting for child elements.
Example:
reg-reset-acl -r HKLM "SOFTWARE\Test"
|
|
Processes
|
proc-dump [-f] --pid <pid> / --imagename <imagename> / --imagepath <imagepath> / --modulename <dllname> / --modulepath <dllpath> / --cmdline <cmdline>
|
Generate a short or full (-f) memory dump for a process that meets given criteria. A dump is created in the temporary directory and then stored in the artefacts during report generation.
When either the --modulename or --modulepath option is specified, a memory dump is generated for processes that have a DDL library loaded with a matching dllname or dllpath respectively.
Examples:
proc-dump --pid 4123
proc-dump -f --imagepath "C:\tools\procexp.exe"
proc-dump -f --cmdline "C:\test\procexp64.exe"
|
|
proc-execute [-w] <path> [<args>]
|
Start the process at the specified path with the specified arguments. In the path, system variables can be used. Adding the -w flag makes the command wait until the process is done.
Example:
proc-execute "c:\Windows\System32\win32calc.exe"
|
Examples with system variables:
proc-execute "%TEMP%\sample.exe"
proc-execute "\\/?\%windir%\notepad.exe"
|
|
proc-kill --pid <pid> / --imagename <imagename> / --imagepath <imagepath> / --modulename <dllname> / --modulepath <dllpath> / --cmdline <cmdline>
|
Terminate the specified process.
When either the --modulename or --modulepath option is specified, processes that have a loaded DDL library (identified by dllname or dllpath) will be terminated.
Example:
proc-kill --imagename win32calc.exe
|
|
proc-suspend --pid <pid> / --imagename <imagename> / --imagepath <imagepath> / --modulename <dllname> / --modulepath <dllpath> / --cmdline <cmdline>
|
Freeze the specified process.
When either the --modulename or --modulepath option is specified, processes that have a loaded DDL library (identified by dllname or dllpath) will be freezed.
Example:
proc-suspend --imagename win32calc.exe
|
|
Services
|
svc-start <name>
|
Start the service with the specified name.
Example:
|
svc-stop <name>
|
Stop the service with the specified name.
Example:
|
svc-delete <name>
|
Delete the service with the specified name.
Information about remaining references (service-related files) is added to the end of the report.
Example:
|
svc-control <name> <ctrl_code>
|
Send the control code to the service with the specified name.
Example:
svc-control TestService 3
|
|
Scheduled tasks
|
task-run <path>
|
Start the task with the specified name.
Example:
task-run "\Microsoft\Windows\TestTask"
|
|
task-delete <path>
|
Delete the task with the specified name.
Information about unprocessed references from the object to files is added to the end of the report.
Example:
task-delete "\Microsoft\Windows\TestTask"
|
|
Layered service providers
|
lsp-delete <guid>
|
Delete registered providers with the specified GUID.
Example:
lsp-delete {f9eab0c0-26d4-11d0-bbbf-00aa006c34e4}
|
|
Namespace service providers
|
nsp-delete <guid>
|
Delete registered providers with the specified GUID.
Example:
nsp-delete {6642243a-3ba8-4aa6-baa5-2e0bd71fdd83}
|
|
WMI providers
|
wmi-delete-eventconsumer <namespace> <classname> <name>
|
Delete a WMI EventConsumer object from a specified namespace.
Example:
wmi-delete-eventconsumer ROOT\subscription CommandLineEventConsumer CommandLineTemplate
|
|
wmi-query <namespace> <query> <values>
|
Run a WMI query and write returned values to a log.
Example:
wmi-query root\cimv2 "SELECT * FROM Win32_Process" Name,ProcessId,CommandLine,ThreadCount,WorkingSetSize
|
|
HOSTS file
|
hosts-clear <path> <string> [<strings>]
|
Comment out ("#" + line) the specified strings from the HOSTS file. Numbering starts with 1.
Example:
hosts-clear c:\Windows\System32\drivers\etc\hosts 44 45 46
|
|
hosts-default <path>
|
Restore the standard HOSTS file for the system.
Example:
hosts-default c:\Windows\System32\drivers\etc\hosts
|
|
hosts-cure <path>
|
Check all entries in the HOSTS file and comment out those that contain malicious IP addresses. The command also adds the entry # cured by Dr.Web.
Example:
hosts-cure c:\Windows\System32\drivers\etc\hosts
|
|
Browser extensions and configuration
|
chromium-remove-ext <browser> <sid> <profile> <ext_id>
|
Remove the browser extension for the specified profile.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
Examples:
chromium-remove-ext Chrome S-1-5-21-120241661-1916511805-682617159-1001 default geadmilgigoffmcnlfdlpihockonlopf
chromium-remove-ext Opera S-1-5-21-120241661-1916511805-682617159-1001 "" geadmilgigoffmcnlfdlpihockonlopf
|
|
firefox-remove-ext <browser> <sid> <profile> <ext_id>
|
Remove the browser extension for the specified profile.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
Example:
firefox-remove-ext Firefox S-1-5-21-120241661-1916511805-682617159-1001 default default-theme@mozilla.org
|
|
chromium-clear <browser> <sid> <profile> <url>
|
Remove the URL from browser configuration for the specified profile.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
Example:
chromium-clear Chrome S-1-5-21-120241661-1916511805-682617159-1001 Default malware.com
|
|
firefox-clear <browser> <sid> <profile> <url>
|
Remove the URL from browser configuration for the specified profile.
The possible values for <sid> are: .DEFAULT, HKLM, HKCU, HKU, and values starting with S-1-5.
Example:
firefox-clear Firefox S-1-5-21-120241661-1916511805-682617159-1001 default malware.com
|
|
Dr.Web
|
drweb-remove
|
Remove Dr.Web software and/or all of its traces from the system.
Example:
|
Users
|
user-delete <name>
|
Delete a specified user in a workstation.
|
System
|
reboot [-f]
|
Reboot the system with a 1-minute countdown timer in a system dialog box. The command will stop the generation of a report.
|
shutdown [-f]
|
Shut down the system with a 1-minute countdown timer in a system dialog box. The command will stop the generation of a report.
|