# Security checkup

> Check a tenant's sign-in settings against good practice, and print a security summary for a customer's security questionnaire.

Source: https://9in.io/docs/security-checkup/

The security checkup compares a tenant's settings with good practice and lists what to change, most serious first. It also prepares a **security summary**: one printable page describing how sign-in is set up, for the security questionnaire a customer sends you.

Open **Security checkup** in the console, under Authentication. Owners, admins, developers and viewers can run it; support and billing members can't, because it reads the configuration ([Your team](https://9in.io/docs/team/)).

## What it checks

The checkup reads the tenant's configuration, its signing keys and its custom domains. It doesn't look at users or their activity. Both environments share one configuration, so the sandbox gets the same findings, except for the two checks marked "production" below.

| Check | Severity | Raised when |
|---|---|---|
| `mfa.off` | High | Two-factor authentication is off. |
| `mfa.optional` | Medium | Two-factor is optional rather than required for everyone. |
| `mfa.no_authenticator_app` | Low | Users can set up text-message or email codes, but not an authenticator app. |
| `password.min_length` | High below 8, medium below 10 | People sign in with passwords and the minimum length is under 10 characters. |
| `lockout.lenient` | Medium | The lockout settings allow more than 2,000 password guesses per account a day (failed attempts before lockout × lockouts a day). The defaults allow 960. |
| `captcha.off` | Medium | Bot protection is off. |
| `captcha.custom_domain` | Medium | Production: a custom domain is active and bot protection uses 9in's widget, which only covers 9in.io addresses. Sign-in on the custom domain then runs without a challenge. |
| `captcha.gaps` | Low | Turnstile is on but skips sign-up, password recovery or sign-in. |
| `adapter.plain_http` | High | Your [adapter](https://9in.io/docs/own-database/) URL starts with `http://`, so passwords travel unencrypted. |
| `apps.legacy_grants` | Medium | An application has the implicit flow or the password grant turned on. |
| `apps.development_urls` | Medium | Production: a web app or single-page app lists a `localhost` or `127.0.0.1` address as a callback, logout or origin URL. Native apps and CLIs are left out, because they receive sign-ins on a loopback address by design. |
| `apps.http_origins` | Medium | An allowed web origin uses `http://` on a host other than your own computer. |
| `tokens.access_token_ttl` | Low over 1 hour, medium over 4 hours | JWT access tokens last longer than 1 hour, by default or for an API or application. Opaque tokens are left out: introspection sees a revocation at once. |
| `tokens.refresh_token_ttl` | Low | Refresh tokens last longer than 90 days. |
| `sessions.ttl` | Low | Sessions last longer than 90 days. |
| `sms.any_country` | Medium through 9in, low through your own Twilio | Codes go out by text (phone sign-in or text-message two-factor) and **Allowed countries** is empty. |
| `keys.default_key_age` | Low | The default signing key is more than a year old. |
| `keys.shared_secret` | Low | An API or application signs its tokens with an HMAC key. |
| `logs.retention` | Low | Your plan keeps the activity log for less than 90 days. |

Each finding says why it matters and which setting fixes it, with a link that opens that setting. A new tenant starts with three findings: two-factor is optional, passwords can be 8 characters, and bot protection is off. On the Free plan there is a fourth, because its activity log keeps 7 days.

Problems that come and go, such as failing webhooks, adapter errors or refresh-token reuse, aren't part of the checkup: they show as alerts on the tenant's Overview. Neither is anything the configuration can't tell, such as how your own app stores tokens.

## The security summary

**Security checkup → Security summary** opens a page you can print or save as a PDF from your browser's print dialog. It describes production and covers:

- identifiers, sign-in methods, social and enterprise connections, and where users are kept;
- the two-factor policy and methods;
- password rules and how passwords are stored;
- account and IP lockouts, one-time code limits, bot protection and limits on text messages;
- session lifetime and revocation;
- token lifetimes, refresh-token rotation and reuse detection, PKCE and legacy flows;
- signing key algorithms, when each key was created, and rotation;
- where data is stored and what is encrypted at rest;
- how long the activity log is kept;
- webhook endpoints and how deliveries are signed.

Every row is marked **Setting** (this tenant's configuration when you opened the page) or **9in** (how 9in works for every tenant, as described in [Sessions and security](https://9in.io/docs/security/)). The summary states settings only. It isn't the result of an independent assessment, so send it alongside your own policies and any reports you have. Settings change, so prepare a new copy for each review.
