The request shield
Every 6.0.15 installation includes the request shield, a small web application firewall that decides each request before the kernel starts: scanners, floods, stray form posts and requests for system files are turned away. It ships enforcing; Setup, Request shield in the administration shows its decisions and lets you pause it or switch it to monitor mode.
Two-step sign-in
The sevenx_authentication_2fa extension adds a second step to sign-in: a code from an authenticator app, an e-mail code, or a passkey. By default the second step is asked on the web sign-in form. REST, SOAP, WebDAV and other sign-in paths use the password alone unless the site turns the second step on for them ([OtherSignInPaths] Guard[] in sevenxauthentication2fa.ini, from 6.0.15). Console commands never ask for a second step.
exp:user:2fa shows or resets an account's second step.
Passwords
Passwords are stored with PHP's password_hash (HashType=php_default), and older hashes are upgraded when the user next signs in. Well-known weak passwords are refused, and a password reset link is valid for one hour.
Form tokens
The ezformtoken extension protects every POST request with a per-session token, so a form posted from another site is refused.
Security headers and CSP
site.ini, [ContentSecurityPolicy] Mode takes disabled, report-only, enforce or auto. auto reports on the administration and is off on sites. [HTTPHeaderSettings] SecurityHeaders[] sets the other headers.
Hardening
- Keep rewrite rules in the virtual host and serve only the entry scripts.
- Make only var/, settings/override and settings/siteaccess writable.
- Keep kickstart.ini and backups out of the web root.
- The install guide has a full hardening chapter in the technical manual.