Skip to content

Get the attacks stopped on a server

GET /v1/servers/{serverId}/security/incidents

Returns the attacks Imunify360 stopped (or only logged) on the server in the last 24 hours, newest first: web application firewall rules, attacks the WordPress plugin stopped inside a site, password guessing, denial of service, bots, port scans and addresses known for attacks. The server keeps at most 500. They aren't paged: an incident's id isn't kept from one look to the next, so look again for newer ones.

A site's own are also in GET /sites/{siteId}/malware-protection (incidents), for a token with sites:read.

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).

servers:read
View servers. See servers, their graphs, snapshots, logs and security (Imunify360).

Path parameters

FieldType and description
serverId Required

string

The server's id.

Query parameters

FieldType and description
siteId

string

Only attacks on this site.

kind

string

Only this kind of attack.

One of: wafwordpressbrute_forcedosbotport_scanblocklistmalwareother

severity

string

Only this severity.

One of: criticalhighmediumlow

action

string

Only what Imunify360 did this: blocked, challenged or logged.

One of: blockedchallengedlogged

Example request

curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/incidents?action=challenged" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the ServerSecurityIncidents object in data.

The ServerSecurityIncidents object's fields 19 fields
FieldType and description
incidents

array of objects

The attacks of the last 24 hours (at most 500), newest first. Not paged: an incident's id isn't kept from one look to the next, so look again for a newer list. Empty while Imunify360 isn't on.

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.

Example response

200 OK
{
  "data": {
    "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
      }
    ]
  }
}

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.

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