14.3.List scan alerts

14.3.List scan alerts

Shows the individual file alerts detected by a specific scan. Each alert includes the file path, whether it is new, modified, or suspicious, its threat score, and whether it has been acknowledged (marked as safe).

wp admintools scan alerts <scan-id> [--format=<format>]    [--status=<status>] [--search=<search>] [--limit=<limit>]
scan-id

The ID of the scan to show alerts for (required).

--format

Output format: table (default), json, csv, yaml, or count.

--status

Filter alerts by status: new, modified, or suspicious.

--search

Filter alerts by file path (partial match).

--limit

Limit the number of results returned. Default: all results.

Examples

List all alerts for scan #1:

wp admintools scan alerts 1

List only suspicious alerts:

wp admintools scan alerts 1 --status=suspicious

Search for alerts in wp-content:

wp admintools scan alerts 1 --search=wp-content

Count all alerts for a scan:

wp admintools scan alerts 1 --format=count

Sample output

admintools_scanalert_id  path                              filestatus    threat_score  acknowledged1                        wp-content/plugins/bad/shell.php   0-suspicious  85            02                        wp-content/themes/test/footer.php  2-modified    0             03                        wp-content/uploads/new.php         1-new         0             0