latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Security

Return Security Advisor results

This function returns the cPanel Security Advisor's security scan data. It advises you of how to resolve any security issues that it finds.

Note:

For more information, read the cPanel Security Advisor documentation at the WebPros International, LLC GitHub® repository.

get/fetch_security_advice

Response

HTTP Request was successful.

Example response

{
  "data": {
    "payload": [
      {
        "advice": {
          "key": "ClamAV_not_installed",
          "suggestion": "Install ClamAV within \"<a target=\\\"_blank\\\" href=\\\"https://example.com:2087/scripts2/manage_plugins\\\">Manage Plugins</a>\".",
          "summary": "ClamAV is not installed.",
          "type": "ADVISE_BAD"
        },
        "message": "Can't call method \"get_raw_conf\" on an undefined value at /usr/local/cpanel/Whostmgr/Services/SSH/Config.pm line 160.",
        "module": "Cpanel::Security::Advisor::Assessors::ClamAV",
        "type": "mod_advice"
      }
    ]
  },
  "metadata": {
    "command": "fetch_security_advice",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}