Skip to content

List a site's malware threats

GET /v1/sites/{siteId}/malware-protection/threats

Lists the malware and other threats found on the site: open ones to clean or ignore, and those cleaned or ignored (kept while the server keeps them, at most 1000 a server). Empty while Imunify360 isn't on.

The panel's own limit applies too: 120 looks a minute per person, shared with the panel (429 rate_limited).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Path parameters

FieldType and description
siteId Required

string

The site's id.

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default foundAt

The field to sort by. Each list names the fields it can be sorted by.

One of: foundAt

order

string Default desc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

status

string

Only threats in this state.

One of: opencleanedignored

severity

string

Only this severity.

One of: criticalhighmediumlow

kind

string

Only in files, or only in the database.

One of: filedatabase

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/malware-protection/threats?status=open" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of MalwareThreat objects in data, with a Pagination object in pagination.

The MalwareThreat object's fields 11 fields
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 response

200 OK
{
  "data": [
    {
      "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
    }
  ],
  "pagination": {
    "limit": 25,
    "hasMore": false,
    "nextCursor": null
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

400 invalid_cursor

The cursor isn't one this list gave, or was made with other filters or another sort.

Start again from the first page, or keep the filters and sort the cursor was made with.

403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

409 server_restoring

The server is being restored, and nothing else can change it or its sites until that's done.

Wait until the restore finishes (the server's pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

Rate limit

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Popular

API docs