I use this as a checklist when I harden a unit file, because it tells me which options are still missing.
systemd-analyze security nginx.service
systemd-analyze security --no-pager | head
With a unit name it prints a table of sandboxing settings, each with an exposure value, and ends with an overall exposure level from 0.0 to 10.0 plus a label such as OK. Without a name it rates all loaded, long-running services. The score is a heuristic: a high number means open settings, not a vulnerability. Raising it with ProtectSystem= and similar options can break the service, so test after each change.
Further reading: systemd-analyze manual page