Users and sign-in¶
Everyone who signs in to Signalith has one of three roles. People can sign in in four ways:
| Account | Where it lives | Managed on |
|---|---|---|
| The built-in admin | auth.admin_user and auth.admin_password_hash in signalith.yaml |
The server, with signalith passwd |
| Local users | users.json in the lookups folder |
The Users page |
| Directory users | Your Active Directory or LDAP server; Signalith keeps a record after their first sign-in | The directory; on the Users page you can only disable or delete them |
| Single sign-on users | Your OpenID Connect identity provider (Entra ID, Okta, Google, Keycloak); Signalith keeps a record after their first sign-in | The provider; on the Users page you can only disable or delete them. See Single sign-on |
Servers that share one OpenSearch keep all of this in OpenSearch instead, once every one of them runs this version: see Users on several servers.
Roles¶
Each role can do everything the roles above it can.
| Role | For | Can |
|---|---|---|
| Viewer | Managers, auditors, other teams | Run searches and see dashboards, findings, investigations, detections, risk and intel. Cannot change anything. |
| Analyst | SOC analysts | Also triage findings, work investigations, build dashboards and hunting notebooks, use Ask and add or remove intel indicators by hand. |
| Admin | Whoever runs Signalith | Also create and change detections, add and change threat intel feeds and upload intel, edit asset and identity lists, set up agents and create and revoke agent tokens and API tokens, manage users and set up directory sign-in, and change server settings. |
By area:
| Area | Viewer | Analyst | Admin |
|---|---|---|---|
| Search, query builder, explain, field lists | Yes | Yes | Yes |
| Ask (plain English; can call a paid AI model) | No | Yes | Yes |
| Dashboards: view and run | Yes | Yes | Yes |
| Dashboards: create, edit, delete, add panels | No | Yes | Yes |
| Findings: view | Yes | Yes | Yes |
| Findings: status, owner, comments, bulk changes, create | No | Yes | Yes |
| Investigations: view | Yes | Yes | Yes |
| Investigations: create, edit, add findings, notes, entities | No | Yes | Yes |
| Investigations: remove someone else's note, pinned event or search | No | No | Yes |
| Detections and ATT&CK coverage: view | Yes | Yes | Yes |
| Detections: create, edit, delete, test, run, Sigma import | No | No | Yes |
| Risk, asset and identity context: view | Yes | Yes | Yes |
| Asset and identity lists: edit | No | No | Yes |
| Threat intel: view and look up | Yes | Yes | Yes |
| Threat intel: add or remove indicators by hand | No | Yes | Yes |
| Threat intel: add, change, test and refresh feeds, upload files | No | No | Yes |
| Playbooks: see runs, approve or reject steps that wait | No | Yes | Yes |
| Playbooks: create, edit, delete, turn on and off | No | No | Yes |
| Add data (agent setup, agent tokens) | No | No | Yes |
| Agent tokens: list names and use (API only) | No | Yes | Yes |
| Users and directory sign-in | No | No | Yes |
| Server settings (Settings page, restart) | No | No | Yes |
| Change your own password (local users) | Yes | Yes | Yes |
Dashboards have no owner: any analyst can change or delete any custom dashboard. Investigation notes, pinned events and saved searches are evidence: an analyst can remove only the ones they added, and an admin any of them.
When someone tries something their role does not allow, Signalith answers
403 and says what is needed, for example "This needs the Analyst role, and your
role is Viewer. Ask an admin if you need access." The API section lists
the role of every route.
A role change, disabling or deleting a user takes effect on that user's next request: Signalith looks up the role every time instead of remembering it in the session. If they have Signalith open and try something their new role does not allow, the page reloads to match the new role and says why.
Locked out or forgot a password¶
Arriving with the next release
Temporary passwords that stop working after 24 hours, and signalith passwd -reset-mfa,
are on main and come with the release after 0.4.2.
Signalith has no "forgot password" email. Every reset is done by an admin, or on the server itself, so a reset never depends on someone's inbox.
| Who is locked out | What to do |
|---|---|
| A local user forgot their password, or their temporary password expired | An admin opens Settings > Users, Actions on their row, Reset password. The user gets a temporary password, which works for 24 hours, and must choose a new one at their next sign-in. See Managing local users. |
| A user lost their phone or passkey | They sign in with a recovery code. If those are gone too, another admin chooses Reset two-step sign-in on their row. See Two-step sign-in. |
| An admin forgot their password | Another admin resets it on the Users page, as for any local user. |
| Every admin is locked out, or nobody knows the built-in admin's password | Set the built-in admin's password on the server, as below. |
| A directory or single sign-on user | Reset it in the directory or at the identity provider. |
Reset the built-in admin's password on the server. Run the command on a server
as root or Administrator. It asks for the new password twice without showing it; a
script can give it in the SIGNALITH_NEW_PASSWORD environment variable instead
(never on the command line, where other users can see it).
- Linux packages:
sudo signalith passwd, thensudo systemctl restart signalithif the command says to. - Windows: in PowerShell opened as Administrator,
& "$env:ProgramFiles\Signalith\signalith.exe" passwd, thenRestart-Service Signalithif the command says to. - Docker quick start: from the Signalith folder,
docker compose -f deploy/docker/docker-compose.yml exec signalith signalith passwd, thendocker compose -f deploy/docker/docker-compose.yml restart signalith. - Kubernetes:
kubectl -n signalith exec -it signalith-0 -- signalith passwd.
Then sign in as the built-in admin (signalithadmin on a new install, admin on one
made before 0.3.1). If the built-in admin was turned off, this turns it on again; turn
it off once you have fixed what went wrong. On servers that share their users, the new
password works on every server at once. If SIGNALITH_ADMIN_PASSWORD is set for the
service, it wins over the file: change it there instead. More detail is in
The built-in admin and
The built-in admin on several servers.
The built-in admin lost its phone, passkeys and recovery codes too? Add
-reset-mfa, for example sudo signalith passwd -reset-mfa. It sets the new password
and removes the built-in admin's two-step sign-in with it: at once on servers that share
their users, or when the server restarts with the new password on a server that keeps
its own (so the old password alone never works meanwhile). Sign in with the new password
alone and set two-step sign-in up again from the account menu. The audit log records
two-step sign-in reset with by=signalith passwd (or cli: and who ran the command).
Another admin can also reset it from the Users page, without the command.
The built-in admin¶
The account in auth.admin_user (signalithadmin on a new install, admin on one made
before 0.3.1, unless you changed it) works even
when the directory server is down or every other admin has been removed, so you can
always get back in, unless you turn it off (see
Turning the built-in admin off). It shows on the
Users page as Built-in and cannot be edited or deleted there. Change its password
on the server (on servers that share
their users, see The built-in admin on several servers):
With the Docker quick start, run
docker compose -f deploy/docker/docker-compose.yml exec signalith signalith passwd and
then docker compose -f deploy/docker/docker-compose.yml restart signalith. There the
first password comes from a file the setup step made (signalith initial-password shows
it), and the new one is kept in admin-password-hash in the signalith-data volume,
where it replaces the first one.
The first password must be changed. When Signalith made the built-in admin's
password (the Docker quick start's setup step, the packages, or signalith init), the
first sign-in with it is like a local user's with a temporary password: the sign-in page
asks for a new password, and until one is chosen every other request, with the session
or HTTP Basic credentials, is refused with 403 and "code": "password_change_required"
(GET /api/me, POST /api/me/password and signing out still work). The new password is
kept in admin-password-hash in the state folder, as signalith passwd keeps it, and
works at once, with no restart. On servers that share their users it is the cluster's
password, on every server. From then on signalith initial-password says the first
password was changed instead of showing it, and the packages' file next to the config
file is removed where Signalith may (signalith passwd, run as root, always may; the
Docker quick start's file is on a read-only volume and stays, but no longer works).
Later changes are made with signalith passwd as above.
Signalith knows the first password is still in use by checking the password in use
against the file that keeps it, where the server can read that file (the Docker quick
start, and Windows), or against the hash signalith init noted in
first-admin-password.json in the state folder (the Linux packages, whose file only
root can read; an upgrade of the package notes it for an install made before). An
install that still uses the first password after an upgrade is asked once too, however
often it signed in with it before: that is intended. A password you chose yourself, in
signalith.yaml, SIGNALITH_ADMIN_PASSWORD or a SIGNALITH_ADMIN_PASSWORD_FILE of
your own, is never asked to be changed.
Scripts that sign in with the first password must choose a new one first, as an admin would:
curl -sk -u "signalithadmin:$FIRST" -H 'Content-Type: application/json' \
-d "{\"current_password\":\"$FIRST\",\"new_password\":\"$NEW\"}" \
https://localhost:9000/api/me/password
Keep its password somewhere safe and use your own account day to day. No local user or directory user can have the built-in admin's name.
Turning the built-in admin off¶
Every install has the built-in admin, with the same well-known name and full rights, so once people sign in with admin accounts of their own it is best turned off (CIS benchmarks ask the same of default accounts). The Security page recommends it as soon as you can.
- Turn it off on the Users page: Actions on the built-in admin's row, then Turn off. Signalith asks for your password or code again first. Another admin does it, signed in with their own account: the built-in admin cannot turn itself off.
- Only while another admin can take over. It turns off only while at least one other enabled local admin exists (directory and single sign-on admins don't count, since their role can change outside Signalith, and neither do a tenant's admins). While it is off, that last local admin cannot be disabled, demoted or deleted. Give that admin two-step sign-in or a passkey.
- What happens. Its sessions end on every server at once, and its password,
passkeys and HTTP Basic credentials stop working. A password sign-in is answered as
a wrong password (
401,"code": "wrong_credentials"), so the well-known name never confirms a guessed password; a passkey gets403with"code": "disabled". API tokens are their own accounts and keep working; revoke them on the API tokens tab if they should stop too. Turning off or deleting any admin who made API tokens that still work writes anapi_token.keptaudit record naming them, and the answer lists them underapi_tokens. The audit log recordsuser disabled(anduser enabled) withsource=builtinand who did it. - Never without an admin. Each server checks for the other admin on its own copy of
the users, so two changes made at the same moment on two servers (one turns the
built-in admin off while another disables the last other admin) could both pass.
Whenever a server then sees the built-in admin off and no other enabled local admin,
it turns the built-in admin on again, within seconds, and the audit log records
user enabledwithreason="no other enabled local admin was left". A change made to users.json by hand is recorded too. - Turn it on again on the Users page (Turn on), as any admin.
- Locked out? If every other admin is locked out, run
signalith passwdon a server, as above: setting the built-in admin's password from the server also turns it on again, and says so. On servers that share their users this works at once on every server. A server that keeps its own users uses the new password only from its next start, so the built-in admin stays off until then (the old password must not work again meanwhile) and turns on as the server starts, withuser enabledandby=signalith passwdin the audit log; restart the server, assignalith passwdsays. Sign in, fix what went wrong, and turn it off again.signalith passwd -localdoes not turn it on. - While OpenSearch is down. On servers that share their users, the
signalith passwd -localbreak-glass password stops working too while the built-in admin is off, as long as the server still has its copy of the shared settings. Local admins whose copy is recent can still sign in then (see When OpenSearch cannot be used); after a long outage, with no recent copy, nobody can, until OpenSearch answers again or you runsignalith passwdonce it does. A server that has no copy of the shared settings at all still takes the-localpassword. - On several servers it can be turned off once every server runs a version that
supports it (the cluster's level 12). Until then the Users page says to upgrade the
others first. A server that keeps its own users and is turned into a member of a
cluster brings the built-in admin in turned off once the cluster is at that level;
below it, it comes in on, with
user enabledin the audit log, so turn it off again later. - Going back to an older version on a server that keeps its own users drops the setting, so the built-in admin is on again there; turn it off again after the next upgrade.
Managing local users¶
Admins manage users on the Users page (Settings > Users).
Add a user. Enter a username, optionally a name and email address, and pick a
role (Viewer if you don't). Usernames are 1 to 64 lower-case letters, digits, dots,
dashes, underscores or @, starting with a letter or digit; they are not case
sensitive. Signalith makes up a temporary password and shows it once (or you can
type one that follows the password rules). Give it to the person: at their first sign-in they
must choose their own password before they can do anything else. From the release after 0.4.2, a
temporary password works for 24 hours (Temporary passwords work for, auth.temp_password_max_age,
from 1 hour to 30 days); after that the Users page shows Temporary password
expired and the person cannot sign in with it until an admin resets the password
again.
Change a user. Edit their name and email, change their role, disable or enable them, reset their password (they get a new temporary password, which works for 24 hours, and must change it at the next sign-in), or delete them. Disabling, deleting or resetting a password signs that user out everywhere at once. Resetting a password also removes their passkeys.
To stop anyone locking everyone out:
- You cannot disable, delete or change the role of your own account. Ask another admin.
- Signalith always keeps at least one enabled admin, and the built-in admin counts as one.
Passwords are stored as bcrypt hashes, at cost 12, and never shown again. A local user's hash made by an older version at a lower cost is made again at cost 12 the next time they sign in with it. Since that changes the hash, that user's sessions on other devices end once (on a server that keeps sessions in its own memory), and their other browsers sign in once more before they are recognized again. The built-in admin's hash changes cost only when its password is next set.
Changing your password¶
Local users change their password from the user menu (Change password): enter the current password and the new one, which follows the password rules. Every other browser signed in as you is signed out, on every server that shares the users file too. Scripts using your old password with HTTP Basic auth stop working at once.
Directory users change their password in the directory (for example with
Ctrl+Alt+Del on Windows). The built-in admin's password is changed with
signalith passwd; on servers that share their users, the built-in admin can also
change it here, from the user menu or Change password on its own row of the
Users page.
Password rules¶
A new password, chosen on the Users page, at Change password, with
signalith passwd or SIGNALITH_NEW_PASSWORD for signalith init, must be:
- at least 8 and at most 256 characters, in any script (a password longer than the 72 bytes bcrypt reads is reduced to a keyed SHA-256 of all of it first, so nothing is cut off; a server older than this one in the same cluster cannot check such a password);
- not on a list of about 2,000 commonly used passwords (from SecLists), whatever the case;
- not one character or a short group repeated (
aaaaaaaa,abcabcabc) or a run of characters in order (12345678,abcdefgh,87654321); - not containing the username (for usernames of 3 or more characters), and not
signalithwith only digits or symbols added (Signalith2026!).
Passwords are compared in Unicode normalization form NFKC, as NIST SP 800-63B asks: an accented letter typed as one character or as a letter plus an accent, and full-width characters, all match the same password, and the rules above check that form. A password set before this keeps working as it was typed then.
These follow NIST SP 800-63B: there are no rules about mixing upper case, digits or symbols. Passwords set before these rules are not checked again; they keep working until they are changed. Temporary passwords Signalith makes up always pass.
Signing in¶
Sign-in checks the name in this order:
- The built-in admin. If the name is
auth.admin_user, only its password works. - Local users. If a local user has the name, only the local password works.
The directory is never asked about a local username, even with a domain in front
(
CORP\jane). - The directory, if directory sign-in is on.
Failed sign-ins all get the same answer, "Username and password don't match.", so they do not reveal which usernames exist. Other answers are:
code |
When |
|---|---|
wrong_credentials (401) |
Wrong username or password, or an empty one |
disabled (403) |
The account is disabled in Signalith |
not_in_group (403) |
A directory user in no group mapped to a role: "Your directory account is not in a group that can use Signalith." |
password_expired (403) |
Active Directory says the password expired or must be changed |
temporary_password_expired (403) |
A local user's temporary password is older than auth.temp_password_max_age (24 hours by default); an admin resets it again |
directory_unavailable (503) |
The directory server could not be reached, or too many directory sign-ins are being checked at once |
locked_out (429) |
Too many wrong passwords; see below |
mfa_required, mfa_wrong, mfa_basic |
See Two-step sign-in |
passkey_wrong, passkey_expired, passkey_cloned, passkey_password |
See Passkeys |
Failed sign-in limits. Wrong passwords are counted so that guessing stays slow, but someone guessing your password cannot keep you out:
| Counted | Limit | Then |
|---|---|---|
| One address, one account | 10 in 15 minutes | That account is refused from that address for 15 minutes, even with the right password |
| One address, any accounts | 30 in 15 minutes | That address is refused for 15 minutes, except to browsers and addresses that signed in to the account before (below) |
| One account, from browsers and addresses that never signed in to it | 30 in an hour | Their next tries at that account wait: 1 second, then twice as long after each wrong password, up to 15 minutes. The account itself is never locked |
A successful sign-in clears only the count for its own address and account, so signing in to one account never helps someone guess another's password. Sign-ins still being checked count too, so a burst of parallel guesses cannot get past the limit. Wrong directory passwords count; an unreachable directory does not. Basic auth, Test a user with a password, and Change password share these limits. An IPv6 address is counted with the rest of its /64 network, since one computer can usually use any address in it. A username over 256 bytes or a password over 1,024 bytes is refused at once, as a wrong one, without being checked, counted or logged.
Each failed sign-in is written to the audit log, up to 10 a minute from one address
and 120 a minute from all of them together, so someone sending made-up names from
many addresses cannot flood it. A record past the first in a minute counts the
failures since the address's last record (failures). One that locks or slows
anything down is always written, and when the total left records out, the first
record of the next minute, "audit records left out", says how many.
Servers that share their users share these limits too (see
Failed sign-in limits on several servers).
Browsers you signed in with keep working. When you sign in, Signalith gives your
browser a cookie that says it has signed in to that account before. The cookie is
sent only over HTTPS, cannot be read by scripts on the page, and lasts a year from
your last sign-in. While someone elsewhere guesses your password, that browser is
not slowed down, and it keeps working even when its address is paused for wrong
passwords to other accounts. An address you signed in from in the last 30 days is not
slowed down either, and it keeps working for your account while it is paused for wrong
passwords to other accounts, which keeps scripts using HTTP Basic auth working (they
keep no cookies). Your own wrong passwords count against that browser or address only: 10 in
15 minutes pause it for 15 minutes. Browsers that signed in before share 30 wrong
passwords an hour per account, and addresses that did share another 30; past that
they wait like everyone else, so the guesses an account can take stay limited.
Someone else at an address you once used, such as an office or hotel network, can use
up the addresses' share, but not your browser's. Changing or resetting the password of
a local user or the built-in admin makes every browser and address sign in once more
before it is recognized again (the browser you change your own password in stays
recognized). A built-in admin password from SIGNALITH_ADMIN_PASSWORD or
SIGNALITH_ADMIN_PASSWORD_FILE keeps its browsers recognized across restarts while it
stays the same.
Change password counts against your signed-in browser, so it works while someone
else is guessing your password. The cookie needs HTTPS: over plain HTTP no browser
is remembered. Each server keeps its own key for these cookies, signin.key in its
state folder; deleting it only means every browser signs in once more before it is
recognized. Servers that share their users use one key instead, made from the cluster
key, so a browser recognized by one server is recognized by every one.
Many people behind one address. When people reach Signalith through one address, such as a reverse proxy, a load balancer, a NAT gateway or Docker Desktop's port forwarding, Signalith sees that address for all of them, and 30 wrong passwords from anyone behind it would pause sign-ins for everyone who has not signed in from it before, in that browser or with their current password in the last 30 days. To avoid that, list the address on the Settings page:
- A reverse proxy (nginx, Caddy, IIS, most load balancers): add it under
Trusted reverse proxies (
server.trusted_proxies). If the proxy setsX-Forwarded-Foritself, also choose X-Forwarded-For under Client address header (server.client_header); for nginx that takesproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;(see Behind a reverse proxy). Signalith then counts and logs each person by the address the proxy got the request from: the right-most address in the header that is not a trusted proxy, since the addresses further left come from the sender. It reads the header only from the addresses listed there, since anyone else could send a made-up one. Without Client address header, or for a request that comes from the proxy without the header, the proxy counts like an address under Proxies and gateways. - Anything else (a NAT gateway, a proxy that cannot send the header): add it
under Proxies and gateways (
server.shared_addresses). Wrong passwords from that address are counted for each account only, so it is never refused as a whole, and one person's wrong passwords never affect another account.
Such an address has one limit of its own: after 300 wrong passwords in a minute,
further sign-ins through it are paced to 300 a minute, one at a time (429 with
Retry-After). Nothing is locked. The limit never applies to a browser that signed in
to the account before, nor to an account that was signed in to through that address
before with its current password, so wrong passwords (or made-up names) from one person
behind it cannot keep the others out. Trusted reverse proxies without Client address
header make every visitor one such client, so signalith validate, the server log
at start and the Health page warn about it.
When an address is refused as a whole, the server log says so and names these settings.
The web UI keeps you signed in with a session cookie. Sessions end after
auth.session_timeout without activity (Sign out after on the Settings page, 1
hour by default) unless you tick Keep me signed in, and always after
auth.session_max_age from sign-in (Sign in again after, 24 hours by default,
from 1 hour to 30 days), with Keep me signed in too. The defaults are the NIST SP
800-63B limits for AAL2, and the Security page flags longer ones. An admin can take
Keep me signed in away with Offer Keep me signed in (auth.keep_signed_in,
on by default) on the Settings page: the box is then hidden, every new session ends
after Sign out after without use, and sessions kept signed in before stay so until
they end. Sessions also end
when you sign out, when your password is changed, or when an
admin disables, deletes or resets your account, or signs you out everywhere. Servers that share the users file end
them too, within a second or so. Servers that share their users in OpenSearch keep the
sessions there, so a session works on every server at once (see
Sessions on every server).
Signed-in sessions in the account menu lists the browsers signed in as you, this one first: the address each signed in from, when, when it was last used, and whether it was kept signed in. End any you don't recognize with its sign-out button, or all but this one with Sign out other sessions, then change your password. To end your current session, sign out. An admin can sign another user out of every browser with Sign out everywhere in the user's row on the Users page, without disabling them: they can sign in again. Each is in the audit log.
Scripts and API clients can use HTTP Basic auth with the same username and password. Signalith remembers a correct username and password briefly so it does not check the hash or ask the directory on every request: for 10 minutes for local users and the built-in admin, and 2 minutes for directory users. Changing or resetting a local password, or changing the directory settings, ends that at once. A password changed in the directory keeps working for Basic auth for up to 2 minutes. Group changes and accounts disabled in the directory are picked up as described in Directory users who change or leave.
Temporary passwords. Signing in with a temporary password works, but the reply
says "must_change_password": true and the sign-in page asks for a new password.
Until it is changed, every request other than GET /api/me and
POST /api/me/password answers 403 with code password_change_required.
From the release after 0.4.2, a temporary password works for auth.temp_password_max_age (24 hours by default),
counted from when an admin last set it or changed the account. After that, signing in
with it, and changing it at POST /api/me/password, answer 403 with code
temporary_password_expired, and an admin resets the password again. A password the
person chose themselves never expires this way, and neither does the built-in admin's
first password.
Two-step sign-in¶
Two-step sign-in asks for a second step after your password, so a stolen password
alone cannot sign in. The second step is a passkey, a code from an
authenticator app on your phone, or both. Any app that makes 6-digit codes
works: Microsoft Authenticator, Google Authenticator, 1Password, Bitwarden, Authy and
others. It works for local users, the built-in admin and directory users. Users who
sign in with single sign-on get their second step from their identity provider, and
Signalith does not ask again, so require it there: Require two-step sign-in does
not reach them by itself. With it set to everyone, Signalith can also check that the
provider asked for a second step: see Two-step sign-in at the provider.
Turn it on. Open the user menu (your name, top right) and choose Two-step sign-in. Add a passkey (see Passkeys), or under Authenticator app choose Set up:
- Scan the QR code with your authenticator app. Without a camera, type the key shown under it into the app instead.
- Enter the 6-digit code the app shows, and choose Turn on. The QR code works for 15 minutes; after that, start again.
- Save the 10 recovery codes shown next (Copy or Download). Each one signs you in once in place of a code from the app, for when you lose your phone. They are not shown again.
Every other browser signed in as you is signed out.
Signing in then asks for the code after the password. A code works once, and the code just before or after the current one also works, for a phone clock a little off. Use a recovery code instead takes one of the recovery codes; after one is used, the page says how many are left. Make new recovery codes in the same menu replaces them all.
Turn it off from the same menu, with a code from the app, a recovery code or a passkey. Turning the app off keeps your passkeys and recovery codes; two-step sign-in stays on until the last passkey is removed too.
Lost your phone and your recovery codes? An admin opens Settings > Users and
chooses Reset two-step sign-in on your row. You then sign in with your password
alone, and set it up again. Admins cannot reset their own; another admin can. The
built-in admin can also be reset by another admin, or (from the release after 0.4.2) with
signalith passwd -reset-mfa on a server when no other admin can sign in (see
Locked out or forgot a password).
Require it. On the Settings page, Require two-step sign-in
(auth.mfa_required) is off (the default), admins (every admin) or everyone.
Someone it applies to who has not set it up is taken straight to setting it up after
their password, and can do nothing else until they have.
Two things to keep in mind when you require it:
- The first to set it up binds it. Until an account has two-step sign-in, its
password alone is enough to set it up. For a new account, or one whose two-step
sign-in an admin just reset, whoever knows the password first chooses the app or
passkey. Give new accounts a temporary password (they must change it at their first
sign-in) and tell the person to sign in soon; after a reset, make sure the person
sets it up straight away, and look for
two-step sign-in turned onin the audit log. The reset leaves the account's sessions running. - It covers local and directory users and the built-in admin, not single sign-on
users. Those sign in at the identity provider, which decides whether a second
factor is asked for: require it there. Signalith does not check what the provider
says it asked for (
acr,amr).
Wrong codes count toward the failed sign-in limits like wrong passwords, so someone who knows your password still cannot guess the code. Scripts cannot use HTTP Basic auth with an account that has two-step sign-in, or is required to: a script that only reads can use an API token, which is never asked for a code; one that changes things needs its own account without two-step sign-in.
The app's key is stored encrypted: in users.json with the master key, and on servers
that share their users with the cluster key (re-encrypted when the cluster key is
rotated). Recovery codes are kept only as hashes keyed with the app's key, so a copy
of the file without the key that decrypts it gives them away no more than the key
itself. If the key cannot be decrypted (for example, users.json restored next to
another master key), neither codes from the app nor recovery codes work until an admin
resets two-step sign-in.
code |
When |
|---|---|
mfa_required (401) |
The password was right; send it again with "code" |
mfa_wrong (401) |
Wrong code, or one used already |
mfa_basic (403) |
HTTP Basic auth for an account with two-step sign-in, or required to have it |
mfa_setup_required (403) |
Two-step sign-in is required and not set up yet; only the routes under Every role work |
mfa_unavailable (503) |
The code could not be checked just now (for example the shared settings cannot be written) |
Passkeys¶
A passkey signs you in with your fingerprint, face, device PIN or a security key, in place of a code. It cannot be phished: your browser offers it only to the address it was made on, and the server checks that too. Windows Hello, an iPhone, iPad or Mac, an Android phone, a password manager that keeps passkeys (1Password, Bitwarden and others) and FIDO2 security keys (YubiKey and others) all work.
Add one. Open the user menu, choose Two-step sign-in, then Add a passkey. Give it a name you will recognize (such as Work laptop) and follow your browser. Your first passkey turns two-step sign-in on, shows 10 recovery codes to save, and signs every other browser out, as setting up an app does. You can have up to 10 passkeys, with or without an authenticator app.
Signing in. Local users and the built-in admin can choose Sign in with a passkey on the sign-in page and skip the password. Your passkey asks for your fingerprint, face or PIN, so it is two steps in one. Anyone can also enter their password first and then use a passkey as the second step. Directory users always enter their directory password first, so the directory still decides whether they may sign in. Single sign-on users sign in at their identity provider.
Remove one from the same menu (Remove on its row). Removing the last passkey without an app turns two-step sign-in off. An admin's Reset two-step sign-in removes every passkey too, and so does an admin's Reset password: a passkey signs in without the password, so whoever added one must not keep a way in past the reset. Changing your own password keeps your passkeys (it signs other browsers out), and says how many you have: if you don't recognize one, remove it.
Things to know:
- Passkeys need Signalith opened by its name over HTTPS (such as
https://siem.example.com); browsers refuse them for an IP address or plain HTTP.localhostalso works, for trying it out. - A passkey works only at the address it was made on. If people reach Signalith by two names, a passkey made at one is not offered at the other; the menu shows where each one works. Add one at each name, or keep an app or recovery codes for the other.
- A passkey that syncs (iCloud Keychain, Google Password Manager, a password manager) is marked Synced in the menu: it is on every device of that account, which is convenient, and as safe as that account. A security key never leaves the key.
- Each answer from a passkey is accepted once, on whichever server checks it, and only at the address its challenge was made for.
- If a passkey's signature counter goes backwards, it may have been copied, so it is
refused (
passkey_cloned) and logged. Sign in another way and remove it. - Signalith keeps each passkey's public key, name, address and last use with your two-step sign-in. A public key is no secret: it can check a passkey's signature but not make one.
code |
When |
|---|---|
passkey_wrong (401) |
The passkey was not accepted: unknown, made for another address, without your fingerprint, face or PIN when signing in with it alone or confirming it's you, or already used for this challenge |
passkey_expired (401) |
The challenge was older than 5 minutes, or made for something else; ask for a new one |
passkey_cloned (401) |
The passkey's counter went backwards |
passkey_password (401) |
A directory user tried to sign in with a passkey alone; enter the password first |
Wrong passkey answers count toward the failed sign-in limits like wrong passwords.
Confirming it's you¶
Some changes ask for your password again when you have not entered it in the last 15 minutes, so someone at a computer you left signed in cannot make them:
- adding, changing, disabling or deleting a user, resetting a password or two-step sign-in, saving the directory sign-in settings, and setting up your own two-step sign-in;
- making an API token, an agent token or a token to add a server, accepting an old shared agent token, approving a new server, and rotating the cluster key;
- changing what the Signalith Agents of an install line collect, since turning a log off hides what happens on those computers, and sending a live query to endpoints;
- changing retention policies, the default or the disk guard, and running retention now;
- switching certificate authority, and saving response actions, playbooks, notifications or ticketing connections, or removing the detection content pack;
- linking a Slack or Teams account to yourself, making a code to link one, or confirming that a Teams app channel moves to another Teams channel;
- saving the networks to scan for vulnerabilities, and adding, changing or removing a scan login;
- running a response action and approving a playbook step that waits, which change other systems at once. These ask when you have not entered the password in the last 5 minutes, not 15. Rejecting a step does not ask;
- saving a setting that affects sign-in, encryption or where data goes: Sign out
after, Require two-step sign-in, single sign-on and the other
auth.*settings, HTTPS and the certificate files (server.tls*), Listen address, Trusted reverse proxies, Client address header, Proxies and gateways, the PROXY protocol, the OpenSearch connection (opensearch.*andcluster.opensearch_url), syslog over TLS and Allowed senders, threat intel feeds on this computer (intel.allow_loopback_feeds), the AI assistant's address and masked fields, the Microsoft 365 and Okta connections (m365.*,okta.*), the scheduled snapshots (backup.*), or Reset all.
With two-step sign-in on, a passkey, a code from your app or a recovery code works instead of the password. Signing in counts, so for 15 minutes after you sign in nothing is asked (5 minutes for response actions and playbook approvals). People who sign in with single sign-on are asked to sign in again instead. Wrong passwords and codes count toward the failed sign-in limits. Turning off your own authenticator app and making new recovery codes always take a code or a passkey. Scripts that use HTTP Basic auth send the password with every request, so they are never asked. API tokens are never asked either: they can only read, so they cannot run a response action or approve a step (see API tokens).
Sign in with Active Directory or LDAP¶
Directory sign-in lets people use their Active Directory or LDAP account, with their role decided by the groups they are in.
How it works¶
When someone signs in with a name that is not the built-in admin or a local user:
- Signalith connects to the directory server (the failover server if the first cannot be reached), over TLS when set up to.
- It signs in as the service account (or searches anonymously if there is none).
- It searches under the user base DN with the user filter, the typed name in place
of
{username}. Exactly one entry must match; none or several refuse the sign-in.CORP\janeis looked up asjane, and with the Active Directory filterjane@corp.example.comworks too. - It checks the password by signing in to the directory as that entry's DN. Empty passwords are refused before anything is sent: many LDAP servers treat a sign-in with an empty password as anonymous and let it through.
- It finds the user's groups and maps them to a role. A user in several mapped groups gets the highest role. A user in none is refused, unless you choose to let such users in as viewers.
- The user appears on the Users page as a directory user, with their name, email and DN from the directory. Their role is updated at every sign-in, and checked again every few minutes while they use Signalith (see below).
Directory users who have never signed in are not listed. You can disable a directory user in Signalith (they stay out whatever the directory says), or delete their record (it comes back at their next sign-in). Turning directory sign-in off signs out every directory user at their next request.
Directory users who change or leave¶
While a directory user is signed in, Signalith looks them up again with the service account (without their password) every 5 minutes, and right away when the directory settings are saved:
- Groups changed. Their role follows their groups from their next request.
- No longer in a mapped group, disabled or deleted in the directory. Their sessions end, and the Users page shows them with no role and the reason. With the Active Directory preset, disabled accounts are not found, so they count as deleted. A refused sign-in does the same at once.
- The directory cannot be reached. They keep the access they had and are checked again 5 minutes later. If the settings were changed since their role was last checked, their sessions end instead.
So someone who leaves keeps access for at most about 5 minutes. To stop someone at once, disable them on the Users page.
Set it up¶
On the Users page, open Directory sign-in and click Set up directory sign-in:
- Pick Active Directory or OpenLDAP. This fills in the filter and attribute defaults below; change any of them if your directory differs.
- Enter the server address and, if you have one, a failover server.
- Enter the service account's DN and password. The saved password is only used with the saved servers, bind DN and TLS settings: change any of those and you type the password again, so it can never be sent to a server someone else chose.
- Enter the user base DN. A group base DN is optional: when it is empty,
Signalith searches for groups in the whole domain (the
DC=part of the user's DN). - Map groups to roles by their full DN.
- Click Test connection, then Test a user with your own account, then turn directory sign-in on and save.
Settings can be saved switched off while you work on them; they are only required to be complete when directory sign-in is on.
Use an encrypted connection. Passwords are sent to the directory to check them.
Use ldaps://host (port 636), or ldap://host (port 389) with StartTLS. Signalith
accepts TLS 1.2 or newer and checks the server's certificate against the system's
trusted CAs plus any CA certificate you paste. Plain ldap:// without StartTLS works
but shows a warning, and so does turning certificate checks off.
The service account needs only read access to users and groups. In Active Directory any domain user account can do this; a dedicated account whose password does not expire is best, so sign-in does not stop when it expires.
Active Directory¶
| Setting | Example |
|---|---|
| Server | ldaps://dc1.corp.example.com |
| Failover server | ldaps://dc2.corp.example.com |
| Service account DN | CN=svc-signalith,OU=Service Accounts,DC=corp,DC=example,DC=com |
| User base DN | DC=corp,DC=example,DC=com |
| Admin groups | CN=Signalith Admins,OU=Groups,DC=corp,DC=example,DC=com |
| Analyst groups | CN=SOC Analysts,OU=Groups,DC=corp,DC=example,DC=com |
| Viewer groups | CN=SOC Viewers,OU=Groups,DC=corp,DC=example,DC=com |
The Active Directory preset:
- finds users by logon name or
user@domain, and skips disabled accounts:(&(objectCategory=person)(objectClass=user)(|(sAMAccountName={username})(userPrincipalName={username}))(!(userAccountControl:1.2.840.113556.1.4.803:=2))) - reads
sAMAccountName(username),displayName(name) andmail(email) - reads groups from
memberOf, and with Nested groups on (the default) also counts groups inside groups: ifIT Leadsis a member ofSignalith Admins, members ofIT Leadsare admins. The domain controller works this out with theLDAP_MATCHING_RULE_IN_CHAINrule (1.2.840.113556.1.4.1941).
Your domain controllers need an LDAPS certificate for ldaps:// (most domains with
Active Directory Certificate Services have one). Paste your enterprise root CA's
certificate in CA certificate if the Signalith server does not trust it already.
OpenLDAP¶
| Setting | Example |
|---|---|
| Server | ldap://ldap.example.org with StartTLS on, or ldaps://ldap.example.org |
| Service account DN | cn=signalith,ou=services,dc=example,dc=org |
| User base DN | ou=people,dc=example,dc=org |
| Group base DN | ou=groups,dc=example,dc=org |
| Admin groups | cn=signalith-admins,ou=groups,dc=example,dc=org |
| Analyst groups | cn=soc,ou=groups,dc=example,dc=org |
The OpenLDAP preset finds users with (&(objectClass=inetOrgPerson)(uid={username})),
reads uid, cn and mail, and finds groups by searching the group base DN with a
filter that covers the three usual kinds of group:
(|(&(objectClass=groupOfNames)(member={dn}))(&(objectClass=groupOfUniqueNames)(uniqueMember={dn}))(&(objectClass=posixGroup)(memberUid={username})))
{dn} is the user's DN and {username} their username as stored in the directory.
If your server has the memberof overlay, you can set Groups to memberOf
attribute instead. Nested groups are only followed on Active Directory.
The same preset works for 389 Directory Server and FreeIPA (users under
cn=users,cn=accounts,dc=..., groups under cn=groups,cn=accounts,dc=...).
Testing¶
Test connection connects to each server, signs in as the service account and checks that the base DNs exist. It tests what is in the form, saved or not. Each step says what worked or, in plain words, what went wrong and what to do: a name that does not resolve, a port nothing listens on, a firewall, an untrusted certificate, a certificate for another name, a refused service account password, a base DN that does not exist.
Test a user looks a user up exactly as sign-in would and shows their DN, every group found, the groups that matched a role, and the role they would get, or why they would be refused. Enter their password too to check it; a wrong password there counts toward the failed sign-in limit like a real sign-in.
Setting it in signalith.yaml¶
Instead of the Users page you can put the settings in signalith.yaml under
auth.ldap, for example to deploy the same settings to several servers. The Users
page then shows them read-only, marked From signalith.yaml, and changes made in
the file apply when Signalith restarts.
auth:
ldap:
type: ad
url: ldaps://dc1.corp.example.com
failover_url: ldaps://dc2.corp.example.com
ca_cert_file: /etc/signalith/corp-root-ca.pem
bind_dn: CN=svc-signalith,OU=Service Accounts,DC=corp,DC=example,DC=com
# bind_password: set SIGNALITH_LDAP_BIND_PASSWORD instead
user_base_dn: DC=corp,DC=example,DC=com
admin_groups:
- CN=Signalith Admins,OU=Groups,DC=corp,DC=example,DC=com
analyst_groups:
- CN=SOC Analysts,OU=Groups,DC=corp,DC=example,DC=com
viewer_groups:
- CN=SOC Viewers,OU=Groups,DC=corp,DC=example,DC=com
Directory sign-in is on whenever auth.ldap is present, unless it says
enabled: false. type defaults to ad. Keep the service account's password out
of the file with the SIGNALITH_LDAP_BIND_PASSWORD environment variable (for example
in the systemd unit's EnvironmentFile, or the container's environment). That
variable only applies to auth.ldap in signalith.yaml: settings made on the Users
page keep their own password in directory.json, and Signalith logs a warning at
start-up when the variable is set without auth.ldap.
On servers that share their users, auth.ldap no longer makes the page read-only:
the settings in signalith.yaml are applied to the shared ones only when they change
(see Directory settings on several servers).
signalith validate checks the settings, so run it with the same environment as the
service. signalith passwd works without the variable, so the built-in admin's
password can always be reset from a shell.
Settings reference¶
The keys are the same in signalith.yaml and the API.
| Key | Default | Meaning |
|---|---|---|
enabled |
off on the Users page; on in signalith.yaml |
Directory sign-in on or off |
type |
ad |
ad or openldap; fills in the defaults marked preset |
url |
required | ldaps://host[:port] or ldap://host[:port] |
failover_url |
none | Tried when url cannot be reached (not when it refuses a password) |
start_tls |
false |
Encrypt an ldap:// connection before anything else is sent |
ca_cert |
none | PEM certificate(s) of the CA that issued the server's certificate, added to the system's trusted CAs |
ca_cert_file |
none | signalith.yaml only: read ca_cert from this file |
tls_skip_verify |
false |
Accept any certificate. Only for testing: anyone who can intercept the connection can read passwords |
connect_timeout_seconds |
5 |
How long to wait for a server to answer a connection (1-120) |
timeout_seconds |
10 |
How long to wait for each request (1-300) |
bind_dn |
none (anonymous) | The service account that searches for users |
bind_password |
none | Its password. The API never returns it, only bind_password_set. Leave it empty to keep the saved one, which only works while url, failover_url, bind_dn, start_tls, tls_skip_verify and ca_cert are unchanged. In signalith.yaml, SIGNALITH_LDAP_BIND_PASSWORD can provide it instead |
user_base_dn |
required | Where to search for users |
user_filter |
preset | LDAP filter with {username} for the typed name (escaped, so * and ( match only themselves) |
username_attribute |
preset | Attribute holding the username: sAMAccountName, uid |
name_attribute, email_attribute |
preset | displayName or cn; mail |
group_search |
preset | memberof (read the user's memberOf) or search (search with group_filter) |
nested_groups |
true for ad |
Count groups inside groups (Active Directory only) |
group_base_dn |
the whole domain | Where to search for groups (nested groups and search). Empty uses the DC= part of the user's DN, such as DC=corp,DC=example,DC=com |
group_filter |
preset | Filter for search, with {dn} and/or {username} |
admin_groups, analyst_groups, viewer_groups |
none | Group DNs whose members get each role; the highest wins. Compared the way the directory compares DNs (case and spacing do not matter) |
default_role |
none |
Role for users in no mapped group: none refuses them, viewer lets them in as viewers |
Sign in with single sign-on¶
People can also sign in with an OpenID Connect identity provider, such as Microsoft Entra ID, Okta, Google or Keycloak, from a button on the sign-in page. Their role comes from their groups at the provider, at every sign-in, and they show on the Users page with the source Single sign-on. Set it up on Settings > Single sign-on; see Single sign-on.
Troubleshooting¶
Start with Test connection and Test a user; their messages name the problem. Every sign-in failure is also in the server log with the reason (see Audit log).
"The server's TLS certificate is not trusted." Paste the certificate of the CA that issued the directory server's certificate (for Active Directory, usually the enterprise root CA, exported as Base-64) under CA certificate.
"The server's TLS certificate is for dc1.corp.example.com, not 10.0.0.5." Use a name that is on the certificate in the server address, not an IP address.
"The server did not answer with TLS." The port does not speak LDAPS. Use
ldaps:// with port 636, or ldap:// with port 389 and StartTLS.
"refused the connection" or "did not answer within 5 seconds". Check the address and port, and that firewalls let the Signalith server reach the directory.
"The directory refused the service account's bind DN or password." Check the
full DN (not CORP\svc-signalith) and the password. Active Directory adds a reason,
such as password expired or account disabled.
"The server does not allow anonymous searches." Enter a service account. Active Directory always needs one.
"The server only accepts sign-ins over an encrypted connection." Use ldaps:// or
StartTLS. Active Directory with LDAP signing required refuses plain binds.
"No user matches." Check the user base DN (the user must be under it) and the user filter. With the Active Directory preset, disabled accounts are never found.
"More than one entry matches." The filter is too loose, for example two accounts
with the same uid in different branches. Narrow the base DN or the filter.
A user is refused with "Your account can’t use Signalith yet". Test a user
lists every group found. Map one of them to a role, or set default_role: viewer.
Check that the DN in the mapping is the group's full DN. Group changes in the
directory apply within about 5 minutes, or at the user's next sign-in.
Nested groups are not counted. Nested groups only work on Active Directory with Nested groups on. The groups must be under the group base DN; leave it empty to search the whole domain. For OpenLDAP, map each group directly.
"Enter the service account's password again." You changed the server address, the failover server, the bind DN or a TLS setting. The saved password is only sent to the saved servers, so type it again.
"Too many failed sign-ins." See failed sign-in limits. Wait the time shown, or sign in as another admin, from another address, or as the built-in admin if it is not the account being guessed. The log shows which address and account failed. If everyone behind one proxy or NAT gets this message, list that address as described under Many people behind one address in Signing in.
"Many wrong passwords were tried for this account, so sign-ins to it from new
browsers are slowed down." Someone is guessing that account's password. Sign in
from a browser you have signed in to the account with before, which is not slowed
down, or wait the time shown. The log's sign-in failed lines show where the guesses
come from.
"Your directory password has expired or must be changed." Active Directory accepted the password but requires a new one first. The user changes it (for example by signing in to Windows) and signs in again.
"Signalith could not reach the directory server." Sign-in with the built-in admin and local users still works. Fix the connection, or add a failover server.
A directory user who left still has access. Signed-in directory users are looked up again every 5 minutes (see Directory users who change or leave), and Basic auth credentials are checked with the directory again after at most 2 minutes. If the directory cannot be reached, they keep their access until it can. Disable them on the Users page to stop them at once.
signalith validate says to set SIGNALITH_LDAP_BIND_PASSWORD. Your shell does
not have the service's environment. Load the service's environment file first, for
example sudo sh -c 'set -a; . /etc/signalith/signalith.env; signalith validate -c /etc/signalith/signalith.yaml'.
Users on several servers¶
Servers that share one OpenSearch as a cluster (see Servers) share
their users too, once every one of them runs this version: the local users, the
directory users seen so far, their roles and password hashes, the built-in admin's
password, the directory sign-in settings and the sign-in sessions. A user added,
changed, disabled or deleted on any server's Users page is the same on every server
within a couple of seconds, and a session made on one server works on all of them.
Give the OpenSearch user the right to create, read and write <prefix>_sessions too
(or <prefix>_*).
When the users become shared¶
- A new cluster shares them from the start.
- Servers upgraded from an earlier version share them once every server that ran
in the last 24 hours runs this version: a server of an earlier version would not see
them. Until then each server keeps its own
users.json,directory.jsonand sessions, as before, and the Users page and the Servers page say which servers still need the upgrade. A server removed for good stops counting 24 hours after it was last seen. Once the users are shared, a server of an earlier version refuses to start on this OpenSearch and says it needs a newer version. - Where they come from. The server that founded the cluster brings in its users,
its directory settings and the built-in admin's password in use there (an
admin-password-hashfile fromsignalith passwdincluded), as soon as every server runs this version, whether or not it runs the background jobs. While it is down, the Servers page says the users wait for it. If it has not been seen for 7 days, the server that runs the jobs does it instead, and the Servers page names the servers whose users differed from its own. Users that only another server had are not brought in: add them again on the Users page.users.jsonanddirectory.jsonstay as they were, unused. - Sessions carry over when the users become shared: a browser signed in to a
server stays signed in to it, as long as the shared users have its user as they were
there (same source, role and password, enabled). The others, such as a server's own
users that were not brought in, or a built-in admin whose password differed, sign in
once more. A carried session works on the server that made it, until it ends as any
session does (a new password, disabled, signed out, idle,
auth.session_max_age) or that server stops; signing in again gives a session that works on every server.
What stays per server: auth.session_timeout and auth.session_max_age (each server
ends idle and old sessions after its own values) and the Basic auth cache. auth.admin_user is taken from the server that
brought the users in; a server whose auth.admin_user differs logs a warning and uses
the shared name.
Password hashes in OpenSearch. Users are kept in the <prefix>_config index,
signed with the cluster key, so a user changed or added in OpenSearch outside
Signalith is refused. Their bcrypt password hashes are stored as they are, not
encrypted: encrypting them with the cluster key would lock everyone out after
signalith cluster reset-key. Anyone who can read <prefix>_config can read the
hashes, as anyone who can read Signalith's indices can read your events: give that
right only to Signalith's own OpenSearch user. The directory's service account
password is encrypted with the cluster key.
Sessions on every server¶
A session cookie made by one server works on every server at once, so a load balancer needs no sticky sessions, and when a server stops, the people it served keep working on the others. Signing out, a password change or reset, disabling or deleting a user ends their sessions on every server within about 2 seconds (at most 15 seconds if a server cannot read OpenSearch meanwhile). A user has at most 50 sessions; a 51st ends the oldest.
The session cookie is a __Host- cookie, which browsers keep for exactly the address
they used. Through one load balancer address, people sign in once; reaching
siem-a.example.com and siem-b.example.com directly takes a sign-in on each.
The built-in admin on several servers¶
The built-in admin has one password for every server.
signalith passwdon any server of the cluster changes it for every server within a few seconds, with no restart. When OpenSearch cannot be reached, or the users are not shared yet, it changes this server's files as before and says what that does on a member: a password it keeps inadmin-password-hashin the state folder (the Docker quick start, or a service given the password) is used only while this server keeps its users in its own files, not as the cluster's password and not while OpenSearch is down; one it writes toauth.admin_password_hashin signalith.yaml becomes the password of every server the next time this server starts with OpenSearch available, since the file changed. Run it again once OpenSearch answers to change the cluster's password at once.- On the page. Signed in as the built-in admin, use Change password in the user menu, or on the built-in admin's row on the Users page. Other admins cannot change it there.
signalith passwd -localkeeps a password on this server only. On a server that was ever a member of a cluster it is kept inadmin-password-localin its state folder and works only while the shared settings cannot be used (OpenSearch down or refusing writes), within a few seconds and with no restart, so you can always sign in to fix that. It is the only break-glass password: anadmin-password-hashan earliersignalith passwdwrote (as on Docker and service installs) is not used once the users are shared, so a password that leaked before does not come back while OpenSearch is down. When the built-in admin has an authenticator app and this server can still read it, the sign-in asks for its code too (each code works once on this server); when it cannot, the password is enough. The sign-in's audit record hasbreak_glass=true, and raises the Built-in admin signs in audit alert. Change or deleteadmin-password-localwhen the person who knew it should no longer have it. On a server that was never a member,-localwritesadmin-password-hash, which replaces the configured password at the next restart, assignalith passwddoes there.auth.admin_password_hash,SIGNALITH_ADMIN_PASSWORDandSIGNALITH_ADMIN_PASSWORD_FILEapply only when they change: a server that starts with a changed value sets it as the shared password and logsauth.admin_password_hash applied from the environment on siem-b. An unchanged value, such as the Docker quick start's password file, never undoes a latersignalith passwd.
Directory settings on several servers¶
The servers share one set of directory sign-in settings, which an admin can change on
the Users page of any server, also when they came from auth.ldap in signalith.yaml.
The page says where the settings in use came from: applied from signalith.yaml, saved
on the page, brought in, or the service account password set from
SIGNALITH_LDAP_BIND_PASSWORD, with the server and the time.
auth.ldap and SIGNALITH_LDAP_BIND_PASSWORD apply only when they change, like the
admin password above: an unchanged signalith.yaml never undoes a change made on the
page, and a server whose file differs without having changed only notes it in its
heartbeat (settings_drift). SIGNALITH_LDAP_BIND_PASSWORD is used only on a server
whose signalith.yaml has auth.ldap, and only while the shared settings connect to the
same servers, as the same bind DN and with the same TLS settings as that file: when
someone changed them on the page, a new password from the environment is not used with
them, and the server logs a warning instead.
The service account's password is encrypted with the cluster key for the saved servers, bind DN and TLS settings: change any of them and it must be typed again, so it can never be sent to a server someone else chose, even by editing OpenSearch.
Signed-in directory users are looked up again every 5 minutes, and right after the settings change, by the server that runs the background jobs, for every server. The other servers ask the directory only to sign people in.
Failed sign-in limits on several servers¶
Each server counts wrong passwords, with the limits divided by the number of servers that are up, but never below 3: with two servers, 5 wrong passwords for one account from one address pause it, and 15 from one address pause the address. A pause on one server applies on every server within seconds. As on one server, an account is never locked, only slowed down for strangers, and an address under Proxies and gateways is never paused as a whole. While OpenSearch cannot be used, each server applies its own limits only.
Changes at the same moment¶
GET /api/users gives each user's version (etag), and GET /api/auth/directory the
settings'. A change sent with If-Match and that version is refused with 412 when
someone changed the user or the settings meanwhile; the answer says who, on which
server and when, and the page says so and shows their change. Without If-Match, a
change applies to the user as they are now, so a change made on another server at the
same moment is kept. While a server cannot write the shared settings, changes there
answer 503.
When OpenSearch cannot be used¶
When a server cannot reach OpenSearch, or OpenSearch refuses writes because its disk is full:
- Sessions it has already checked keep working for 5 minutes after it last confirmed them with OpenSearch, even one signed out on another server meanwhile.
- A session it cannot check (it just restarted and has no copy of it, or its copy is
older than 5 minutes) is not signed out: requests answer
503with the codesession_uncheckedand aRetry-After, and the page says to try again in a few seconds. The same happens for a moment when one read of a session fails, after the server tried it again briefly. A session OpenSearch says was signed out, changed outside Signalith or belongs to a user who was deleted, disabled or given a new password is refused as always. - Only admins can sign in, with a session or with HTTP Basic credentials: the
built-in admin (with the password this server last read, or the one
signalith passwd -localset), and local admins when this server's copy of the users is at most 24 hours old. Everyone else gets503with the codedegraded, which does not count as a failed sign-in. Their session works on this server only, for at most an hour, and the log says so. Once OpenSearch takes writes again, it is stored for every server if the user is still an enabled admin whose password did not change meanwhile; otherwise it ends. Directory users and everyone else sign in again once OpenSearch is back. - Changes on the Users page answer
503. Last sign-ins and pauses of addresses are not shared meanwhile.
Where user data is stored¶
| File | Holds | Default place |
|---|---|---|
users.json |
Local users (with bcrypt password hashes), directory users seen so far, last sign-in times, two-step sign-in (the app's key encrypted, recovery codes hashed, passkeys' public keys) | The lookups folder (lookups.dir), or auth.users_file / SIGNALITH_USERS_FILE |
directory.json |
Directory sign-in settings from the Users page, including the service account's password | Next to users.json |
The lookups folder is:
| Install | Folder |
|---|---|
| Docker | /var/lib/signalith/lookups in the signalith-data volume |
| Linux (systemd) | /var/lib/signalith/lookups |
| Windows | C:\ProgramData\Signalith\lookups |
| Anywhere else | lookups next to signalith.yaml |
Both files are written with permissions 0600 (readable only by the account
Signalith runs as), by writing a new file and renaming it so a crash never leaves
half a file. Back them up with the rest of the lookups folder. Edit them only while
Signalith is stopped.
Signalith reads directory.json at start-up. It also looks at users.json while it
runs, because servers that share a lookups folder share that file (see
Servers): before every change it reads the file as it is now, and
otherwise it checks for changes about once a second. While a server changes
users.json it keeps a small users.json.lock file next to it; leave that file
alone, it goes away by itself.
On servers that share their users, these files are only what the users were brought in from: see Users on several servers.
If users.json is damaged, Signalith refuses to start and says so. If it becomes
damaged while Signalith runs, everyone signed in keeps working, but every change on
the Users page fails with a message that says so. Either way, fix the file, or
stop Signalith, move the file away and start Signalith again with only the
built-in admin.
Audit log¶
Signalith logs every sign-in, sign-out and change to users or directory settings to
its log (journald, the Windows event log, or the container's output), with
audit=true, who did it and from which address. Passwords never appear. Changes on
the Settings page and restarts are logged the same way; see
Server settings.
| Message | Fields |
|---|---|
signed in |
user, role, source, client, method (session, basic or passkey), mfa (app, recovery or passkey, when a second step was asked for), recovery_codes_left |
password accepted, waiting for the two-step code |
user, client, method |
sign-in failed |
user, client, method, reason (for example wrong password, account disabled, directory: in no group mapped to a role), locked_out (further tries are refused or slowed down for a while) |
sign-ins from this address are paused … |
client, minutes |
signed out |
user, client |
session ended |
by, user, session (its ID in GET /api/me/sessions), pending (true when OpenSearch could not be written, so it ends once it can) |
other sessions ended |
by, user, sessions_ended |
user's sessions ended |
by (the admin), user, sessions_ended |
user created |
by, user, role, must_change_password |
user changed |
by, user, fields |
user role changed |
by, user, from, to |
user disabled, user enabled |
by, user, sessions_ended; source=builtin for the built-in admin |
user deleted |
by, user, source, role, sessions_ended |
password reset |
by, user, sessions_ended |
password changed |
by, user, other_sessions_ended |
password change refused |
user, client, reason, locked_out |
two-step sign-in turned on |
by, user, with (passkey for a first passkey), other_sessions_ended |
two-step sign-in turned off |
by, user |
authenticator app turned off |
by, user (passkeys stay on) |
passkey added |
by, user, passkey (its name), host, synced |
passkey removed |
by, user, passkey, host |
passkeys removed |
by (the admin), user, count, reason (password reset) |
passkey refused |
user, client, locked_out; with passkey when its counter went backwards |
two-step sign-in reset |
by (the admin, or signalith passwd or cli: and the operating system user for signalith passwd -reset-mfa), user; for the command also source=builtin and reason |
new recovery codes made |
by, user |
recovery code used |
by, user, recovery_codes_left |
two-step code refused |
user, client, locked_out |
password or code entered again |
by, user, with (password, app, recovery or passkey) |
recheck refused |
user, client, reason, locked_out |
directory settings changed |
by, enabled, servers, fields (names only) |
directory connection tested |
by, servers, bind_dn, ok |
directory user looked up |
by, user, servers, ok, code, password_checked |
directory user lost access |
by=directory, user, reason, sessions_ended |
directory user's role changed |
by=directory, user, from, to |
Servers that share their users also log these:
| Message | Fields |
|---|---|
kept the sign-in sessions made before the users were shared |
kept, ended: when this server starts using the shared users (see When the users become shared) |
signed in while OpenSearch cannot be written; … |
user, method, client: a session kept on this server only (see When OpenSearch cannot be used) |
wrote through a session made while OpenSearch could not be written |
user |
a session made while OpenSearch could not be written ended: … |
user |
session.tamper: … |
session, user, node: a session in OpenSearch was changed or made outside Signalith, and is refused |
password reset, user enabled, user changed with source=builtin and changed_on |
by (cli: and the operating system user who ran the command), user, changed_on (the server the command ran on), reason; for a rename also fields=username and from. A change to the built-in admin made with a command on a server: signalith passwd (a new password for every server, and the built-in admin turned on again) or signalith cluster apply (renamed). The command itself only prints its lines to the terminal. The server that runs the cluster's jobs writes the record when it sees the change, within a few seconds, so there is one record whichever server the command ran on. No record is written while no server is running the jobs, or for a change made while that server was stopped. |
auth.admin_password_hash applied from the environment on siem-b, auth.ldap applied from signalith.yaml on siem-b |
setting, server |
client is the address the request came from. Behind a reverse proxy listed under
Trusted reverse proxies, with Client address header chosen, it is the address
the proxy forwarded the request for, and peer names the proxy. When that header held
no usable address, such as unknown, forwarded shows what it held, and the request
counts under the proxy's own address.
For example:
level=INFO msg="user role changed" audit=true by=ann client=10.0.0.12 user=sam from=analyst to=admin
level=WARN msg="sign-in failed" audit=true user=dave client=10.0.0.40 method=session reason="directory: in no group mapped to a role" locked_out=false
level=WARN msg="sign-in failed" audit=true user=admin client=203.0.113.9 peer=10.0.0.5 method=session reason="wrong password" locked_out=false
API¶
All routes need a signed-in user (session cookie or HTTP Basic auth) except
POST /api/login, POST /api/logout, POST /api/demo (the one-click sign-in of a
public demo, which answers 404 on any other server), GET /api/tls/ca.pem, POST /api/ingest and
POST /api/otlp/v1/logs and the HEC routes under /services/collector (which take an agent token, never a session or
password), and osquery's routes under /api/osquery/ (POST /api/osquery/enroll takes an agent
token; the others take the node key a host got when it enrolled; see
Endpoints (osquery)), and the two routes a new server joins the cluster with,
GET /api/cluster/join/ca (the certificate a join token names, which is public) and
POST /api/cluster/join (which takes a proof that the new server holds a join token, never the
token itself; it counts against the sign-in limits per token and per address, its body is at most
16 KiB, and every refusal gets the same answer: 403, with its own text only once the proof
matched and the token was left unused, such as another version; 500 when the token was used but
the join could not be finished, so the new server needs a new token), and GET /api/cluster/join/install.sh,
GET /api/cluster/join/install.ps1 and GET /api/cluster/join/binary (the install scripts and this server's
program, which a new server downloads before it can sign in; see Adding servers),
GET /api/sensor/install.sh (the network sensor's install script, also public), and the two
routes that script calls with the sensor's own agent token, GET /api/sensor/config (the
sensor's Fluent Bit configuration) and GET /api/sensor/seen (whether the sensor's data
arrives), and GET /api/sensor/tuning (the Suricata rule tuning the sensor fetches every 10
minutes); all three take only an active token made for a sensor (see
Building a new sensor).
GET /api/agent/install.sh, GET /api/agent/install.ps1 and GET /api/agent/install-macos.sh (the
Signalith Agent's install scripts for Linux, Windows and macOS, also public), and the five routes the script and the agent call with the agent's token,
GET /api/agent/program (the agent program), GET /api/agent/manifest (the programs' signed
manifest, for updates), GET /api/agent/config (what the agent runs),
POST /api/agent/status (how its collectors run) and POST /api/agent/enroll (the computer's
own key); all five take only an active token made for
the Signalith Agent, or a computer's key.
The two single sign-on routes are public too: GET /api/auth/oidc/start sends the browser to
the identity provider, and GET /api/auth/oidc/callback is where it comes back (see
Single sign-on). So are the three SAML routes: GET /api/auth/saml/start sends the
browser to the SAML identity provider, POST /api/auth/saml/acs is where the provider posts its
signed response, and GET /api/auth/saml/metadata is Signalith's own SAML metadata (see
Single sign-on). The /api/scim/v2 routes, through which the identity provider
provisions single sign-on users, take the SCIM token instead of a sign-in, and only over HTTPS
(see Single sign-on). GET /metrics, outside /api/, answers 404 until an admin turns
it on, and then takes the scrape token instead of a sign-in, only over HTTPS or from the server itself
(see Metrics (Prometheus)). Requests from a browser that change something must come from the Signalith
page itself.
Every answer carries the server's build token in X-Signalith-Build. Answers to
signed-in requests (and to a successful sign-in) also carry the server's version in
X-Signalith-Version, and X-Signalith-Config,
once the server has read the shared settings. Behind a load balancer, send the
X-Signalith-Config of a change's answer as X-Signalith-Config-Min on the next
request, so a server that has not yet read that change reads it first (see
Several servers behind one address).
Roles of every route¶
Every role (also allowed while a password change is pending): GET /api/me,
POST /api/me/password, GET /api/me/mfa, POST /api/me/mfa/setup,
POST /api/me/mfa/confirm, POST /api/me/mfa/recovery, POST /api/me/mfa/off,
POST /api/me/recheck, POST /api/me/passkeys/options, POST /api/me/passkeys,
DELETE /api/me/passkeys/{id}, POST /api/me/passkeys/challenge,
GET /api/me/sessions, DELETE /api/me/sessions, DELETE /api/me/sessions/{id}.
Viewer: GET /api/me/setup, PUT /api/me/setup (your own answers to the setup guide), GET /api/me/finding-views, PUT /api/me/finding-views (your own saved views of the findings queue), GET /api/health (with ?scope=cluster, totals for every server), POST /api/search, POST /api/explain,
POST /api/build, POST /api/parse, GET /api/datamodels, GET /api/fields,
GET /api/fields/values, GET /api/language, GET /api/ask,
GET /api/detections, GET /api/detections/{id}, GET /api/detections/{id}/yaml,
GET /api/coverage, GET /api/detections/packs, GET /api/detections/content, GET /api/detections/exceptions, GET /api/findings, GET /api/findings/summary,
GET /api/findings/{id}, GET /api/cases, GET /api/cases/summary,
GET /api/cases/{id}, GET /api/case-templates (case templates), GET /api/cases/reports/keys (the report keys), GET /api/cases/{id}/files/{file} (downloading a case's attached file), GET /api/cases/{id}/tickets (a case's Jira and ServiceNow tickets), GET /api/lookups/context, GET /api/lookups/{kind}, GET /api/lookuptables, GET /api/lookuptables/{name},
GET /api/risk, GET /api/risk/object, GET /api/storyline (the attack storyline), GET /api/intel, GET /api/intel/feeds,
GET /api/intel/catalog, GET /api/intel/indicators, GET /api/intel/lookup, GET /api/posture,
GET /api/dashboards, GET /api/dashboards/{id}, GET /api/dashboards/{id}/yaml,
POST /api/dashboards/{id}/run, POST /api/panels/run, GET /api/notebooks,
GET /api/notebooks/{id}, GET /api/notebooks/{id}/markdown, POST /api/notebooks/{id}/run
(hunting notebooks shared with everyone and the starter hunts; a
viewer's run is not saved), GET /api/compliance,
GET /api/compliance/export, GET /api/compliance/history, GET /api/compliance/history/{id}
(the Compliance page, its evidence reports and their signed history,
so an auditor can work with a Viewer account), GET /api/cluster/features
(which features wait until every server runs a newer version; only admins see which servers
they wait for), GET /api/tenants (the tenants of a multi-tenant
install), POST /api/chat/link/check, POST /api/chat/link, POST /api/chat/code,
GET /api/chat/accounts, DELETE /api/chat/accounts/{id} (linking your own Slack or Teams
account for the buttons in chat messages; the
clicks still need the Analyst role), and the web UI.
Analyst: POST /api/tenants/switch (switching to another tenant's data), POST /api/ask, POST /api/findings, POST /api/findings/bulk,
PATCH /api/findings/{id}, POST /api/cases, PATCH /api/cases/{id},
POST /api/cases/{id}/findings, DELETE /api/cases/{id}/findings/{fid},
POST /api/cases/{id}/entries, DELETE /api/cases/{id}/entries/{entry},
POST /api/cases/{id}/entities, POST /api/cases/{id}/tasks, PATCH /api/cases/{id}/tasks/{task}, DELETE /api/cases/{id}/tasks/{task} (a case's tasks), GET /api/cases/{id}/report (exporting a case's report), POST /api/cases/reports/verify (checking a report), POST /api/cases/{id}/files (attaching a file), POST /api/cases/{id}/tickets (opening a ticket for a case), POST /api/dashboards, PUT /api/dashboards/{id},
DELETE /api/dashboards/{id}, POST /api/dashboards/{id}/panels, POST /api/notebooks,
PUT /api/notebooks/{id}, DELETE /api/notebooks/{id}, POST /api/notebooks/{id}/cells,
POST /api/notebooks/{id}/cases, DELETE /api/notebooks/{id}/cases/{case} (an analyst changes
their own notebooks and ones shared for editing; only the owner or an admin changes the sharing
or deletes one), POST /api/intel/indicators, DELETE /api/intel/indicators/{id}, GET /api/endpoints,
GET /api/endpoints/{id}, GET /api/endpoints/settings, GET /api/endpoints/checks,
GET /api/vulns, GET /api/vulns/hosts/{id} (what vulnerability scans found),
GET /api/respond/actions, GET /api/respond/runs, POST /api/respond/run (running
response actions), GET /api/playbooks/runs,
POST /api/playbooks/runs/{id}/approve, POST /api/playbooks/runs/{id}/reject
(the Approvals page; see Playbooks), POST /api/findings/{id}/propose-exception,
GET /api/exception-requests (proposing an exception for an admin to approve), GET /api/agent-tokens (the names,
status and use of the agent tokens, never a secret), GET /api/agent-hosts (the
computers with keys of their own, never a key), GET /api/agents (the
agents that send events, shown on the Endpoints page), GET /api/investigate,
POST /api/findings/{id}/investigate/preview, POST /api/findings/{id}/investigate
(Investigate with AI, once an admin turns it on).
Admin: POST /api/tenants and PATCH /api/tenants/{id} (adding a tenant, renaming it or turning it off; the provider's admins only), GET /api/agents/config, GET /api/agents/destinations (where agents can send,
with a DNS check; see Load balancers),
GET /api/sensor/install (the line that sets up a
network sensor), GET /api/agent/install (the line that installs the
Signalith Agent), GET /api/sensors (every network
sensor's health and checklist, and the sensor tokens), GET /api/sensors/tuning and
PUT /api/sensors/tuning (the Suricata rule tuning sensors fetch; see
Rule tuning from Signalith), POST /api/agent-tokens,
PATCH /api/agent-tokens/{id}, POST /api/agent-tokens/{id}/revoke,
POST /api/agent-tokens/legacy/{id}/refuse, POST /api/agent-tokens/legacy/{id}/accept,
POST /api/agent-hosts/{host}/revoke, POST /api/agent-hosts/{host}/release
(see Agent tokens), PUT /api/agent-tokens/{id}/collect (what the
Signalith Agents of an install line collect; see
Change what agents collect), GET /api/api-tokens, POST /api/api-tokens,
POST /api/api-tokens/{id}/revoke (the API tokens of the AI tools
server, which can only read and expire after expires_in_days, 90 unless set), GET /api/metrics and POST /api/metrics/token (the Metrics tab of Settings and its scrape token; see Metrics (Prometheus)), POST /api/tls/names, GET /api/security,
POST /api/security/ca, POST /api/detections,
POST /api/detections/test, POST /api/detections/draft, POST /api/detections/backtest, POST /api/detections/sigma, POST /api/detections/convert (reading a shared file of rules for review), POST /api/detections/enable, POST /api/detections/{id}/exceptions, DELETE /api/detections/{id}/exceptions/{exception}, POST /api/detections/exceptions, DELETE /api/detections/exceptions/{exception}, POST /api/findings/{id}/suppress, POST /api/exception-requests/{id}/approve, POST /api/exception-requests/{id}/decline, PUT /api/case-templates, POST /api/cases/reports/keys/{id}/revoke (revoking a report key),
PUT /api/detections/{id}, DELETE /api/detections/{id},
POST /api/detections/{id}/run, POST /api/detections/content/check, POST /api/detections/content/upload, DELETE /api/detections/content, PUT /api/lookups/{kind}, PUT /api/lookuptables/{name}, DELETE /api/lookuptables/{name},
GET /api/parsers, POST /api/parsers/analyze, POST /api/parsers/refine, GET /api/parsers/{name}/input,
PUT /api/parsers/{name}, DELETE /api/parsers/{name} (custom log parsers),
POST /api/intel/feeds, PUT /api/intel/feeds/{name}, DELETE /api/intel/feeds/{name},
POST /api/intel/feeds/test, POST /api/intel/feeds/{name}/refresh, POST /api/intel/catalog,
POST /api/intel/taxii/collections, POST /api/intel/upload,
GET /api/respond/config, PUT /api/respond/config, POST /api/respond/test
(setting up response actions),
GET /api/playbooks, PUT /api/playbooks (the Playbooks page; see Playbooks),
GET /api/sample, POST /api/sample/load, POST /api/sample/remove
(the one-click sample data), PUT /api/endpoints/settings,
DELETE /api/endpoints/{id}, GET /api/endpoints/blocked, DELETE /api/endpoints/blocked/{host},
POST /api/endpoints/queries, GET /api/endpoints/queries/{id} (the Endpoints page),
GET /api/vulns/setup, GET /api/vulns/scanners, PUT /api/vulns/settings, POST /api/vulns/networks/{id}/scan,
POST /api/vulns/scans/{id}/stop, GET /api/vulns/logins, PUT /api/vulns/logins/{id}, DELETE /api/vulns/logins/{id}
(setting up and running vulnerability scans, and their scan logins),
PUT /api/compliance/notes (marking a compliance control as handled outside
Signalith or not applicable), POST /api/compliance/history (taking a record of the
compliance evidence now), GET /api/baselines, PUT /api/baselines,
POST /api/baselines/{check}/reset, POST /api/baselines/{check}/unlearn (the behavior baselines and their exceptions),
GET /api/summaries (how far each data model's summaries reach, for every tenant),
GET /api/cluster (the Servers page; see Servers), GET /api/cluster/opensearch (its OpenSearch card; see OpenSearch with several nodes), POST /api/cluster/restart
(restart servers one at a time to apply the shared settings), GET /api/cluster/tls,
POST /api/cluster/tls/choose, POST /api/cluster/tls/rotate-ca (the cluster's one certificate authority, and
replacing it; see Servers), GET /api/cluster/join/tokens,
POST /api/cluster/tokens, DELETE /api/cluster/tokens/{id} (join tokens that add a server to
the cluster; a token is shown once, in the answer that makes it), GET /api/cluster/pending,
POST /api/cluster/servers/{id}/approve (servers that wait to join, approved by their
fingerprint), GET /api/cluster/opensearch-identity
(who each server signs in to OpenSearch as; see
Each server's own OpenSearch certificate), GET /api/cluster/lifecycle,
POST /api/cluster/servers/{id}/drain, POST /api/cluster/servers/{id}/resume,
DELETE /api/cluster/servers/{id}, POST /api/cluster/jobs/move, POST /api/cluster/rotate-key
(draining and removing servers, and rotating the cluster key; see
Draining and removing a server), GET /api/cluster/upgrade (the upgrade checklist of the Servers
page; see Upgrading servers you set up by hand), GET /api/cluster/join/prepare,
GET /api/cluster/servers/{id}/check (Add a server; see Adding servers), GET /api/requests/{id}
(work asked of the server that runs the background jobs, such as a feed download or a retention
run; see Shared feeds and retention policies), every
/api/notify route (the Notifications page; see Notifications),
GET /api/chat/links and DELETE /api/chat/links/{id} (every linked chat account), every
/api/ticketing route (GET and PUT /api/ticketing, POST /api/ticketing/test: Settings >
Ticketing; see Ticketing (Jira, ServiceNow)), every
/api/retention route (see Data retention), GET /api/audit,
GET /api/audit/servers and GET /api/audit/verify (the Audit page), every
/api/users, /api/auth/directory, /api/auth/oidc, /api/auth/saml and /api/auth/scim route below (the last
four are GET /api/auth/oidc, POST /api/auth/oidc/test, POST /api/auth/saml/test and POST /api/auth/scim/token; see
Single sign-on), GET /api/auth/notice (the Sign-in notice tab of Settings; see
Sign-in notice), and every /api/settings route
(GET and PUT /api/settings, POST /api/settings/test/opensearch,
POST /api/settings/test/assistant, POST /api/settings/test/m365, POST /api/settings/test/okta, POST /api/settings/assistant/models, POST /api/settings/restart,
GET /api/settings/export; see Server settings).
Provider only: on a multi-tenant install, the routes about the server
itself rather than one tenant's data are refused to tenants' users, whatever their role:
every /api/settings, /api/cluster (but GET /api/cluster/features), /api/security,
/api/tls, /api/auth, /api/audit, /api/requests, /api/tenants, /api/api-tokens,
/api/compliance, /api/vulns, /api/sensor, /api/sensors, /api/parsers, /api/chat, /api/summaries and /api/metrics route. So are the routes
that make the server send requests to addresses a user gives, though they change a
tenant's own settings: POST /api/intel/feeds, PUT /api/intel/feeds/{name},
DELETE /api/intel/feeds/{name}, POST /api/intel/feeds/test,
POST /api/intel/feeds/{name}/refresh, POST /api/intel/catalog,
POST /api/intel/taxii/collections, PUT /api/notify, POST /api/notify/test,
PUT /api/respond/config, POST /api/respond/test, PUT /api/ticketing and
POST /api/ticketing/test; and POST /api/cases/reports/keys/{id}/revoke, since every
tenant's case reports are signed with the cluster's one report key. Every other route
works on the tenant the request is in.
A route added without a role is admin-only, and a test fails until it gets one. That
includes routes registered outside the role table, straight on the server's outer
router: any /api/ route there other than the public ones (sign-in, sign-out, agent
ingest, the CA certificate, GET /api/tls/ca.pem, the two join routes, the three install
downloads, the two single sign-on routes and the two routes Slack and Teams post button clicks
to, which check the chat app's signature instead) is admin-only.
On a public demo the demo's visitor may use only the Viewer and Analyst routes that read (and running a search, dashboard or notebook, and Ask), and some routes are refused to every role: see What demo mode turns off.
A refused request:
{"error": "This needs the Analyst role, and your role is Viewer. Ask an admin if you need access.",
"code": "forbidden", "role": "viewer", "required": "analyst"}
The signed-in user¶
GET /api/me, and the reply to POST /api/login:
{"username": "jlee", "user": "jlee", "name": "Jordan Lee", "email": "",
"role": "analyst", "role_label": "Analyst", "source": "local",
"must_change_password": true, "can_change_password": true, "auth": "session"}
source is builtin, local or directory; auth is session or basic.
GET /api/me/sessions lists your sessions that have not ended, this one first:
{"sessions": [{"id", "created", "last_seen", "client", "method", "remember", "current"}]}.
id is a hash that names the session in this list, never its cookie; client is the
address it signed in from, when known. On servers that share their users, a session
another server keeps only in memory while it cannot write to OpenSearch is not
listed. DELETE /api/me/sessions/{id} ends one (404 when it has ended already,
409 for the one you are using: sign out instead), and DELETE /api/me/sessions
ends all but the one you are using, answering {"ended": 2}.
POST /api/me/password with {"current_password": "...", "new_password": "..."}
returns the same object. Errors are 400 with a code: wrong_password (field
current_password), same_password, invalid_password (field new_password),
builtin or directory (those passwords are changed elsewhere). On servers that
share their users, the built-in admin may change its own password here too
(can_change_password says so), and the answer sets a new session cookie: the
password change ended every session of the user, this one's too. On a server that
keeps its own users, the built-in admin may change it here only while it is the
first password Signalith made (must_change_password is then true; see
The built-in admin); a 500 means the state folder could not
keep the new one.
Two-step sign-in¶
POST /api/login with {"username", "password"} answers 401 with
"code": "mfa_required" when the account has two-step sign-in; send the same body
again with "code": "123456" (or a recovery code). The reply then has "mfa": true,
and recovery_codes_left when a recovery code was used. GET /api/me also has
"mfa" and "must_setup_mfa".
| Route | Body | Reply |
|---|---|---|
GET /api/me/mfa |
{"on", "app", "required", "possible", "passkeys", "passkey_alone", "passkey_host" or "passkey_problem", "since", "recovery_left"} |
|
POST /api/me/mfa/setup |
{"secret", "otpauth", "qr_svg", "expires_in"}: a new key, not used until confirmed |
|
POST /api/me/mfa/confirm |
{"code"} |
{"recovery_codes": [...], "mfa": {...}}, and a new session cookie |
POST /api/me/mfa/recovery |
{"code"} or {"passkey"} |
{"recovery_codes": [...], "mfa": {...}} |
POST /api/me/mfa/off |
{"code"} or {"passkey"} |
{"mfa": {...}}: turns the authenticator app off, keeping passkeys; an empty body only drops a setup not confirmed yet |
POST /api/me/passkeys/options |
{"publicKey", "token"}: options for navigator.credentials.create() |
|
POST /api/me/passkeys |
{"token", "credential", "name"} |
{"mfa": {...}}, with "recovery_codes" and a new session cookie for a first passkey |
DELETE /api/me/passkeys/{id} |
{"mfa": {...}}; id is the passkey's ID in base64url, as GET /api/me/mfa lists it |
|
POST /api/me/passkeys/challenge |
{"publicKey", "token"}: options for navigator.credentials.get(), answered as {"passkey": {"token", "credential"}} in the routes that take one |
|
DELETE /api/users/{username}/mfa (admin) |
{"username", "mfa": false}; 409 for your own account |
With passkeys, the mfa_required reply also has "passkey": {"publicKey", "token"}
(or "passkey_hosts" when none works at this address), "app" and "recovery"; send
the same body again with "passkey": {"token", "credential"} in place of "code".
To sign in with a passkey alone (local users and the built-in admin),
POST /api/login/passkey/options returns {"publicKey", "token"}, and
POST /api/login/passkey with {"token", "credential", "remember"} signs in like
POST /api/login. Both need the browser's Origin to match. A token is good for 5
minutes and one answer.
A wrong code answers 400 with "code": "mfa_wrong" and counts toward the failed
sign-in limits. Single sign-on users get 400 with "code": "mfa_elsewhere".
With a sign-in notice that asks people to agree, POST /api/login,
POST /api/login/passkey and POST /api/demo need "agreed": true in their body, and
answer 400 with "code": "notice_not_agreed" without it.
Confirming it's you¶
A change that needs the password again (see Confirming it's you)
answers 403:
{"code": "recheck_required", "with": "password", "minutes": 15,
"error": "Enter your password to make this change."}
with is password, password_or_code (two-step sign-in is on) or sign_in (the
account signs in elsewhere, so sign in again); "passkey": true when a passkey works
here. POST /api/me/recheck with {"password": "..."}, {"code": "123456"} or
{"passkey": {"token", "credential"}} (from POST /api/me/passkeys/challenge) sets a cookie for this sign-in session
that lasts 15 minutes; then send the change again. POST /api/respond/run and
POST /api/playbooks/runs/{id}/approve take only a password, code or sign-in from the
last 5 minutes, and say "minutes": 5. A wrong password answers 400 with
"code": "wrong_password", a wrong code "code": "mfa_wrong".
Users (admin)¶
GET /api/users:
{
"users": [
{"username": "signalithadmin", "name": "", "email": "", "role": "admin", "source": "builtin",
"disabled": false, "must_change_password": false, "created": null, "updated": null,
"last_sign_in": "2026-10-12T15:35:22Z", "you": true, "actions": []},
{"username": "alice", "name": "Alice Admin", "email": "alice@corp.example.com",
"role": "admin", "source": "directory", "disabled": false, "must_change_password": false,
"dn": "CN=Alice Admin,OU=Staff,DC=corp,DC=example,DC=com",
"created": "2026-10-12T15:35:11Z", "updated": "2026-10-12T15:35:11Z",
"last_sign_in": "2026-10-12T15:35:11Z", "you": false, "actions": ["disable", "delete", "end_sessions"]}
],
"roles": [{"id": "viewer", "label": "Viewer", "description": "..."}, ...],
"directory": {"enabled": true, "from_config": false},
"shared": false,
"shared_pending": null
}
Each user also has etag, its version for If-Match. On servers that share their
users, shared is true and last_sign_in_server names the server of the last
sign-in. On a server of a cluster whose users are not shared yet, shared_pending
says why: {"version": "1.6.0", "servers": [{"name": "siem-b", "version": "1.5.0"}]}
lists the servers whose version must be upgraded first, and an empty servers means
the users wait to be brought in (see
When the users become shared).
actions lists what the signed-in admin may do to that user: edit (name and
email), role, reset_password, reset_mfa, disable or enable, delete, and
end_sessions (on every enabled user's row but your own); and, on the
built-in admin's own row when the users are shared, change_password (with
POST /api/me/password). On the built-in admin's row, other admins get disable or
enable, and "disabled": true means it is turned off. A directory
user the directory no longer lets in has "role": "" and "refused" saying why, for
example "in no group mapped to a role".
| Route | Body | Reply |
|---|---|---|
POST /api/users |
{"username", "name", "email", "role", "password", "must_change_password"}; only username is required. role defaults to viewer, an empty password makes one up, must_change_password defaults to true |
201 {"user": {...}, "temporary_password": "kqpp-bsqy-b6hq-mwfm"} (temporary_password only when made up) |
PUT /api/users/{username} |
Any of {"name", "email", "role", "disabled"}; for the built-in admin only {"disabled"}, which turns it off or on (see Turning the built-in admin off) |
{"user": {...}} |
POST /api/users/{username}/password |
Optional {"password"} |
{"user": {...}, "temporary_password": "..."} |
DELETE /api/users/{username} |
{"deleted": "priya"} |
|
DELETE /api/users/{username}/sessions |
{"username", "ended"}: ends every session of the user, who can sign in again; 409 for your own account |
Errors are {"error": "..."}, with "field" naming the form field when one value is
the problem (username, name, email, role, password): 400 for a bad value,
404 for an unknown user, 409 for a taken name, the built-in admin, a change to
your own account, the last admin, turning the built-in admin off while no other
enabled local admin exists, or a directory user's name, email, role or password.
PUT and DELETE /api/users/{username} and POST /api/users/{username}/password
take an optional If-Match header with the user's etag. When the user changed
since, they answer 412; on servers that share their users the answer says who
changed it, where and when:
{"error": "it was changed on siem-b by ann at 2026-10-14T09:12:03Z; reload it", "code": "stale",
"changed_by": "ann", "changed_on": "siem-b", "changed_at": "2026-10-14T09:12:03Z"}
While a server cannot write the shared settings, changes answer 503.
Directory sign-in (admin)¶
GET /api/auth/directory (and the reply to a successful PUT):
{
"settings": {"enabled": true, "type": "ad", "url": "ldaps://dc1.corp.example.com",
"failover_url": "", "start_tls": false, "ca_cert": "", "tls_skip_verify": false,
"connect_timeout_seconds": 5, "timeout_seconds": 10,
"bind_dn": "CN=svc-signalith,OU=Service Accounts,DC=corp,DC=example,DC=com",
"bind_password_set": true,
"user_base_dn": "DC=corp,DC=example,DC=com", "user_filter": "(&(objectCategory=person)...)",
"username_attribute": "sAMAccountName", "name_attribute": "displayName",
"email_attribute": "mail", "group_search": "memberof", "nested_groups": true,
"group_base_dn": "", "group_filter": "",
"admin_groups": ["CN=Signalith Admins,OU=Groups,DC=corp,DC=example,DC=com"],
"analyst_groups": [], "viewer_groups": [], "default_role": "none"},
"from_config": false,
"warnings": [],
"presets": {"ad": {...}, "openldap": {...}},
"directory_users": 3
}
from_config is true when the settings come from signalith.yaml on a server that
keeps them in its own files; config_file then names the file, and PUT answers
409. etag is the settings' version for If-Match on PUT (412 when they changed
since). from says where the settings in use came from:
{"source": "yaml", "node": "siem-a", "at": "..."}, with source yaml, page,
import (the first server's files, when the servers began sharing users) or env
(the service account password from SIGNALITH_LDAP_BIND_PASSWORD changed); node and
at are given on servers that share their users, where shared is true.
PUT /api/auth/directory takes the settings object (with bind_password instead
of bind_password_set; leave it empty to keep the saved one). Settings that need
fixing answer 400:
{"error": "Some settings need fixing: ...",
"problems": ["\"http://x\" must be ldaps://host or ldap://host, with an optional :port and nothing after it"],
"fields": {"url": "\"http://x\" must be ldaps://host or ldap://host, with an optional :port and nothing after it"}}
POST /api/auth/directory/test with an optional {"settings": {...}} (the unsaved
form; the saved settings when left out):
{"ok": true, "message": "Connected and signed in as the service account.",
"servers": [{"url": "ldaps://dc1.corp.example.com", "ok": true,
"message": "Connected to dc1.corp.example.com over TLS 1.3.",
"steps": [{"step": "connect", "ok": true, "message": "Connected to dc1.corp.example.com over TLS 1.3."},
{"step": "bind", "ok": true, "message": "Signed in as CN=svc-signalith,..."},
{"step": "user_base", "ok": true, "message": "Found DC=corp,DC=example,DC=com."}]}]}
A failed server has "ok": false, a code (connect, tls_untrusted,
tls_hostname, tls_expired, tls_handshake, starttls_refused, ca_cert,
encryption_required, bind_refused, bind_failed, bind_required,
base_not_found, search_refused, search_failed), a plain message and the
technical detail.
POST /api/auth/directory/test-user with {"username": "alice", "password": "...",
"settings": {...}} (password and settings optional):
{"ok": true, "message": "alice would sign in as Admin. The password was not checked.",
"user": {"username": "alice", "dn": "CN=Alice Admin,OU=Staff,DC=corp,DC=example,DC=com",
"name": "Alice Admin", "email": "alice@corp.example.com",
"groups": ["CN=All Staff,OU=Groups,DC=corp,DC=example,DC=com",
"CN=IT Leads,OU=Groups,DC=corp,DC=example,DC=com",
"CN=Signalith Admins,OU=Groups,DC=corp,DC=example,DC=com"],
"matched_groups": ["CN=Signalith Admins,OU=Groups,DC=corp,DC=example,DC=com"],
"role": "admin"},
"password_checked": false}
When the user would be refused, ok is false and code is user_not_found,
multiple_matches, wrong_password, password_expired, no_role, refused, or
one of the connection codes above. warning is added when the name belongs to the
built-in admin or a local user, since sign-in would then never ask the directory.