Security hardening checklist

Security hardening checklist

Work through this checklist before a portal goes live, and again after each upgrade. Each item links to the article with the full setup steps.

Portal users are Contacts, not Salesforce users. They sign in with a magic link, an emailed access code or a passkey, and every request they make carries a session key. Two hosting contexts are supported: guest users on a Salesforce Site, and Experience Cloud users whose Contact is resolved from the community session. See Guest user vs Digital Experience.

1. Turn on Secure Session Keys

2. Set session lifetimes

3. Supply your own credentials

Use credentials from your own accounts, entered before go live.

4. Restrict builder access

5. Scope every component to the signed-in user

6. Keep the guest profile bare

7. Configure lockout and recovery

8. Set up passkeys correctly, if you use them

9. Check network access

10. Monitor sign in activity

Web_Event__c records sign in events per Contact: Registration, Access Code Request, Invalid Access Code Entered, Attempted Login While Disabled, Success Validating Access Code, Login, Logout, Passkey Registered, Passkey Login and Passkey Revoked. Report on these to spot unusual sign in patterns and to audit access. See the Object model.