Whether a site's configuration is still what its reference says (ISO 27001 A.8.9, A.8.20 to A.8.22): the deviations of a target from the probe's options, which are the reference -- versioned with the project, in its hub.json ("probes": {"hardening": {...}}), read the same by the hub and by php scripts/admin.php harden-check.
class MMO\admin\monitoring\probes\HardeningProbe extends MMO\admin\monitoring\aProbe
It only reads, in two parts:
- from here, over http(s) ([`httpChecks`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-httpchecks)): http goes to https, HSTS and the security headers on a page and on a
static file ([`$asset`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-asset)), no `X-Powered-By: PHP`, a TLS older than 1.2 refused ([`legacyTls`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-legacytls));
- on the target's server, one sh script over its shell ([`script`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-script), [`serverChecks`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-serverchecks)): the `display_errors` and
`expose_php` of php-fpm's and apache's php.ini, the mode of the key files ([`$keyFiles`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-keyfiles)), the versions of php and
of the database, the clock synchronized (NTP), the database listening on the loopback only.
Each check is `ok`, `deviation` or `unknown` (what a webspace does not let it read: never a deviation). A deviation
makes the reading a warning, or critical for those of [`$critical`](https://mmoframework.fr/documentation/mmo.admin/php/monitoring/probes/HardeningProbe.md#hardeningprobe-critical). It is off by default (`"enabled": true` in
`hub.json`): it asks every site three more requests and its server one more script.
Metrics: `hardening.deviations`, `hardening.unknown`. Details: `checks`, a list of {id, status, expected, actual,
measure}. Facts: `php`, `database`.