JWT authentication bypass attempt
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。
Goal
Detect when a web service is subject to processing insecure, unsigned JWT tokens. Such security activity generally indicates an attacker is tampering tokens to gain unauthorized access to protected resources or impersonate another user.
Strategy
Monitor application security events to detect JWT authentication bypass (@appsec.rule_id:dog-920-001
).
Also, look at SQL injection triggers because CQL syntax is similar enough to SQL syntax that the SQL patterns catch CQL injection payloads.
The signal severity is determined based on the underlying service behavior:
HIGH
: The application is determining a valid user, this could indicate impact.MEDIUM
: The application is successfully responding to a substantial number of requests containing unsecured tokens.LOW
: High rate of unsuccessful requests containing unsecured tokens are being sent to the application.
Triage and response
- Consider blocking the attacking IPs temporarily to prevent them from reaching deeper parts of your production systems.
- Review if any user or role was effectively impersonated to assess the impact on the services.
- Validate if the application accepts unsigned JWT tokens. If it does, fix the code.