CrowdSec LAPI Secret
Description
General
- Documentation: https://docs.crowdsec.net/docs/local_api/authentication/
- Summary: CrowdSec is an open-source, collaborative intrusion prevention system, usually
self-hosted. Its Local API (LAPI) receives alerts from the security engines and
serves ban decisions to bouncers. Bouncers authenticate to the LAPI with an API
key sent in the
X-Api-Keyheader, and the LAPI signs the tokens of machines and agents with theCS_LAPI_SECRETsecret. A leaked bouncer key exposes the decision list, and a leaked signing secret lets an attacker forge machine tokens to push or delete alerts and decisions, for example to unban an IP address.
Revoke the secret
For a bouncer API key, delete the bouncer with cscli bouncers delete <name>
and register it again with cscli bouncers add <name> to get a new key.
For the LAPI signing secret (CS_LAPI_SECRET / csLapiSecret), set a new
random value and restart the Local API; this invalidates every token issued
to machines and agents, which then log in again.
Details for CrowdSec LAPI Secret
-
Family: token
-
Category: other
-
Company: CrowdSec
-
High recall: False
-
Validity check available: False
-
Analyzer available: False
-
Revoker available: False
-
Occurrences found for one million commits: 0.82
-
Prefixed: False