Scan a site for malware
malware_scanQuick malware check of a site (most thorough for Magento and WordPress; for the other kinds list_sites shows it checks the files, upload folders, cron and processes, not the database): backdoor patterns in PHP, PHP in upload folders, disguised and hidden PHP, recently changed code, scripts injected into the database (Magento design/head/includes, CMS blocks; WordPress options and posts), recent admin users, suspicious cron entries and processes, WordPress checksums, and 130 maintained rules: signatures of known skimmers and backdoors in files and stored content, Magento security patches that are missing, modules with known vulnerabilities, leftover archives and database tools, programs and cron jobs posing as system services. It runs in the background (about a minute per 40,000 files) and returns a job_id: call job_output with offset 0 until status is finished; the output is the JSON report. Findings are leads to read, not proof. Read the files it names before concluding anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How far back counts as recently changed. Default 14. | |
| site | No | Site root folder, like /var/www/shop, or one of the site's domains. Optional when the server has one site (see list_sites). | |
| server | No | Server name or id. Optional when the account has one server. |