Skip to content

Malware protection

Imunify360's malware scanning and cleaning for a site. For the same in the control panel, see Protect a server with Imunify360.

Operations

OperationRequest
Get a site's malware protection GET /v1/sites/{siteId}/malware-protection
Turn on a site's malware protection POST /v1/sites/{siteId}/malware-protection/actions/enable
Turn off a site's malware protection POST /v1/sites/{siteId}/malware-protection/actions/disable
Change a site's malware protection emails PATCH /v1/sites/{siteId}/malware-protection/settings
List a site's malware threats GET /v1/sites/{siteId}/malware-protection/threats
Clean a site's malware threats POST /v1/sites/{siteId}/malware-protection/threats/actions/clean
Undo a clean-up of a site's threats POST /v1/sites/{siteId}/malware-protection/threats/actions/undo-clean
Mark a site's threats as not malware POST /v1/sites/{siteId}/malware-protection/threats/actions/ignore
Have malware scans skip a path on a site POST /v1/sites/{siteId}/malware-protection/ignored-paths
Stop malware scans skipping a path DELETE /v1/sites/{siteId}/malware-protection/ignored-paths/{ignoredPathId}
Scan a site for malware POST /v1/sites/{siteId}/malware-protection/actions/scan
Change Imunify360's WordPress plugin in a site PATCH /v1/sites/{siteId}/malware-protection/wordpress-plugin

The SiteMalwareProtection object

A site's malware protection: Imunify360 scans the site, cleans what it finds (each clean-up can be undone) and watches what it has installed for known security holes. The server's first site to have it on is included; each other site is $2.99 a month.

FieldType and description
serverId

string

The site's server.

available

boolean

Whether the site can have malware protection: a live site (not a staging copy) on a server that can run Imunify360.

unavailableReason

string or null

Why it can't (with available: false). Null otherwise.

serverSecurityStatus

string

Imunify360 on the site's server (malware protection needs it on): off, installing (a few minutes; then server.security_enabled), on, failed (see lastError; turn it on again to retry), or removing (being turned off).

Known values: offinstallingonfailedremoving More can appear.

enabled

boolean

Whether malware protection is on for the site.

included

boolean

The site that comes with the server at no charge: the first to have it on.

priceCents

integer

What the site's malware protection costs a month, in US cents: 0 while the site is the included one (or would be, turned on now, with no other site on), else 299. Billed after each month, by the days it was on.

currency

string Always "usd"

Always usd: amounts are in US cents.

sitesEnabledOnServer

integer

How many of the server's sites have it on (this one too, when it has).

checkedAt

string or null An ISO 8601 time, in UTC

When the server last reported its figures. Null while Imunify360 isn't on.

refreshing

boolean

Newer figures are being fetched from the server: read again in a few seconds.

realtime

boolean

Whether the server scans each file written at once (settings.realtime of the server's security).

keepCopiesDays

integer

Days a copy of each cleaned file is kept, so a clean-up can be undone (the server's setting).

alerts

boolean

Whether the account's owner is emailed about this site (threats, clean-ups, blacklists, security holes).

scans

array of objects

Recent scans of the site, newest first.

kind

string

nightly (the schedule's), manual (asked for: …/actions/scan) or realtime.

Known values: nightlymanualrealtime More can appear.

status

string

running, done or failed.

Known values: runningdonefailed More can appear.

startedAt

string or null An ISO 8601 time, in UTC

When it started. Null when not known.

finishedAt

string or null An ISO 8601 time, in UTC

When it finished. Null while it runs.

files

integer or null

Files it checked. Null when not known.

found

integer

Threats it found.

ignoredPaths

array of objects

Files and folders scans skip.

id

string

The entry's id (digits): DELETE /sites/{siteId}/malware-protection/ignored-paths/{ignoredPathId} removes it.

path

string

The file or folder, inside the site's folder, as it was added.

addedAt

string or null An ISO 8601 time, in UTC

When it was added. Null when not known.

vulnerabilities

array of objects

What the site has installed with known security holes.

id

string

Its id.

kind

string

A plugin, a theme, WordPress itself (core), or other files.

Known values: pluginthemecoreother More can appear.

folder

string

Its folder, like contact-form-7; wordpress for WordPress itself; empty for other files.

name

string

Its name, like Contact Form 7.

version

string or null

The version installed. Null when it doesn't say.

status

string

vulnerable (update it) or patched (Imunify360 patched the holes).

Known values: vulnerablepatched More can appear.

files

integer

How many of its files carry the holes.

holes

array of objects

Its known holes.

Show its 3 fields
FieldType and description
cve

string or null

The hole's CVE id. Null when it has none.

type

string

The kind of hole, like Upload or XSS.

description

string

What it lets an attacker do.

wordpressPlugin

object

Imunify360's WordPress plugin (Imunify Security) in this site.

serverEnabled

boolean

Whether Imunify360's WordPress plugin is on for the server (servers.security.wordpressPlugin.enable).

status

string or null

The plugin in this site: on, adding (about a minute), failed (WordPress there didn't work) or off (taken off). Null while it's off for the server, or the site's malware protection is off.

Known values: onaddingfailedoff More can appear.

firewall

boolean or null

The plugin's firewall in the site. Null as for status.

aiBotProtection

boolean or null

AI bot protection in the site. Null as for status.

preset

string or null

How strict AI bot protection is: balanced, strict or monitor. Null as for status.

Known values: balancedstrictmonitor More can appear.

incidents

array of objects

Attacks on this site in the last 24 hours (at most 500), newest first. Not paged: an incident's id isn't kept from one look to the next.

id

string

The incident's id.

occurredAt

string An ISO 8601 time, in UTC

When it happened (the last time, when it happened more than once).

ip

string or null

The address it came from. Null when not known.

country

string or null

Where that address is, as a two-letter country code. Null when not known.

siteId

string or null

The site attacked. Null when it was the server, or the site isn't known.

domain

string or null

The domain attacked. Null when it was the server.

kind

string

waf (the web application firewall), wordpress (stopped inside a site by the WordPress plugin: an attack on a known hole), brute_force (password guessing), dos (too many connections or requests), bot, port_scan, blocklist (an address known for attacks), malware, or other.

Known values: wafwordpressbrute_forcedosbotport_scanblocklistmalwareother More can appear.

description

string

What it was.

ruleId

string or null

The rule that matched, when it can be turned off for false alarms (servers.security.rules.disable). Null otherwise.

severity

string

critical, high, medium or low.

Known values: criticalhighmediumlow More can appear.

action

string

What Imunify360 did: blocked the address, challenged it (a CAPTCHA), or only logged it.

Known values: blockedchallengedlogged More can appear.

times

integer

How many times it happened.

wordpress

object or null

With kind: "wordpress": what was attacked. Null otherwise.

Show its 5 fields
FieldType and description
target

string or null

What was attacked: a plugin, a theme or WordPress itself (core). Null when not known.

Known values: pluginthemecore More can appear.

folder

string or null

The plugin's or theme's folder, like contact-form-7. Null when not known.

version

string or null

Its version then. Null when not known.

cve

string or null

The hole's CVE id. Null when it has none.

ruleOff

boolean

Whether its rule is turned off for the site (or every site) now.

disabledRules

array of objects

Rules turned off for this site, or for the whole server (servers.security.rules.disable).

ruleId

string

The rule: a web application firewall rule's number, or a WordPress plugin rule's name (like RULE-CVE-2024-1234-01).

name

string

What it's for: the note it was turned off with (your own words), or the attack it stops.

source

string

waf: a rule of the web application firewall. wordpress: a rule of Imunify360's WordPress plugin.

Known values: wafwordpress More can appear.

siteIds

array of strings

The sites it's off for. Empty: the whole server.

domains

array of strings

Those sites' domains, as the rule names them. Empty: the whole server.

Example

The SiteMalwareProtection object
{
  "serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
  "available": true,
  "unavailableReason": null,
  "serverSecurityStatus": "on",
  "enabled": true,
  "included": true,
  "priceCents": 0,
  "currency": "usd",
  "sitesEnabledOnServer": 1,
  "checkedAt": "2026-11-25T09:14:02.000Z",
  "refreshing": false,
  "realtime": true,
  "keepCopiesDays": 14,
  "alerts": true,
  "scans": [
    {
      "kind": "nightly",
      "status": "done",
      "startedAt": "2026-11-25T03:00:12.000Z",
      "finishedAt": "2026-11-25T03:02:40.000Z",
      "files": 4334,
      "found": 1
    }
  ],
  "ignoredPaths": [
    {
      "id": "3",
      "path": "wp-content/plugins/my-backup-tool/restore.php",
      "addedAt": "2026-11-24T16:20:00.000Z"
    }
  ],
  "vulnerabilities": [
    {
      "id": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d:plugin:contact-form-7",
      "kind": "plugin",
      "folder": "contact-form-7",
      "name": "Contact Form 7",
      "version": "5.3.1",
      "status": "vulnerable",
      "files": 2,
      "holes": [
        {
          "cve": "CVE-2020-35489",
          "type": "Upload",
          "description": "Unrestricted file upload vulnerability"
        }
      ]
    }
  ],
  "wordpressPlugin": {
    "serverEnabled": true,
    "status": "on",
    "firewall": true,
    "aiBotProtection": true,
    "preset": "balanced"
  },
  "incidents": [
    {
      "id": "1",
      "occurredAt": "2026-11-25T09:10:02.000Z",
      "ip": "45.146.165.10",
      "country": "DE",
      "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "domain": "shop.example.com",
      "kind": "waf",
      "description": "Information disclosure attempt via WordPress plugins",
      "ruleId": "77350218",
      "severity": "high",
      "action": "challenged",
      "times": 12,
      "wordpress": null
    }
  ],
  "disabledRules": [
    {
      "ruleId": "77350218",
      "name": "Turned off for the shop's page builder",
      "source": "waf",
      "siteIds": [
        "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
      ],
      "domains": [
        "shop.example.com"
      ]
    }
  ]
}

The MalwareThreat object

Malware or another threat found on a site.

FieldType and description
id

string

The threat's id (digits): what the clean, undo and ignore actions take in threatIds.

kind

string

file or database.

Known values: filedatabase More can appear.

location

string or null

The file, relative to the site's folder. Null for a threat in the database, or a file outside the site's folder.

threat

string

What it is, in words.

signature

string

The malware signature that matched, as Imunify360 names it.

severity

string

critical, high, medium or low.

Known values: criticalhighmediumlow More can appear.

foundBy

string

realtime (as the file was written), scan (one asked for), nightly (a scheduled scan) or database.

Known values: realtimescannightlydatabase More can appear.

foundAt

string or null An ISO 8601 time, in UTC

When it was found. Null when not known.

status

string

open (clean or ignore it), cleaned or ignored (marked not malware).

Known values: opencleanedignored More can appear.

doneAt

string or null An ISO 8601 time, in UTC

When it was cleaned. Null otherwise.

canUndo

boolean

Whether the clean-up can be undone (a copy of the file is kept keepCopiesDays).

Example

The MalwareThreat object
{
  "id": "1",
  "kind": "file",
  "location": "wp-content/uploads/cache.php",
  "threat": "Web shell (a backdoor that lets attackers run commands)",
  "signature": "SMW-SA-20634-php.bkdr.wshll-0",
  "severity": "critical",
  "foundBy": "realtime",
  "foundAt": "2026-11-25T08:14:02.000Z",
  "status": "open",
  "doneAt": null,
  "canUndo": false
}

Popular

API docs