spring-security-jwt
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The file
examples/bad-security-config.javacontains a hardcoded secret string literal. While explicitly marked as an anti-pattern ("❌ BAD"), this represents a credential exposure finding to illustrate unsafe development practices. - [INDIRECT_PROMPT_INJECTION]: The skill implements a mechanism to ingest and process Bearer tokens from the
Authorizationheader, which is a potential surface for indirect prompt injection. - Ingestion points:
templates/JwtAuthenticationFilter.javaextracts content from theAuthorizationrequest header. - Boundary markers: The implementation uses
JwtService.validateAccessTokenAndGetSubject(token)to validate token integrity and thereject(response)method to terminate unauthorized requests. - Capability inventory: The filter has the capability to modify the
SecurityContextHolderand control the execution of thefilterChain. - Sanitization: Input is sanitized using the JJWT library's cryptographic signature verification and expiration checking before the user details are loaded.
Audit Metadata