To scan behind a login with HawkScan, configure both the login mechanics and the session proof. In stackhawk.yml under `app.authentication`, set `usernamePassword` with `type: FORM`, the login paths, the form field names, and the scan credentials; then add `cookieAuthorization.cookieNames` with your session cookie (e.g. JSESSIONID) so the scanner keeps the session. Add `excludePaths: ["/logout"]` so the spider does not log itself out mid-scan, set `antiCsrfParam` if your app uses CSRF tokens, and give the scanner a `testPath` with a success pattern plus `loggedInIndicator`/`loggedOutIndicator` regexes so it can verify it is actually logged in. Without the indicators, a scan can run fully unauthenticated and report a clean bill of health on pages it never reached.