backend-spring-security

Detect misconfigured Spring Security protection in Spring Boot 3.x application code.

3|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/infraspecdev/tesseract --skill backend-spring-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-spring-security
Source: https://github.com/infraspecdev/tesseract/tree/main/shield/skills/backend/spring-security
Command: npx skills add https://github.com/infraspecdev/tesseract --skill backend-spring-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you review Spring Security configuration for mistakes that weaken authentication and authorization, such as unsafe defaults, missing protections, and overly broad access rules.

Core Features & Use Cases

  • Security filter chain review: Checks SecurityFilterChain configuration for deliberate authorization rules, CSRF handling, CORS setup, session policy, and logout behavior.
  • Authentication hardening: Validates password encoding, authentication providers, JWT or OAuth2 wiring, and safe login or session flows.
  • Method-level protection: Reviews PreAuthorize and PostAuthorize usage for sensitive service operations that should not rely on URL rules alone.
  • Use case: Use this Skill when auditing a Spring Boot application before release to catch security gaps that could expose private endpoints or weaken browser-based protections.

Quick Start

Review the Spring Security configuration in my Spring Boot project and identify any unsafe authentication, authorization, CSRF, CORS, session, or token-validation settings.

Frequently Asked Questions about backend-spring-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Spring Boot 3.x project for Spring Security misconfigurations?

To catch Spring Security misconfigurations, review your SecurityFilterChain, authentication providers, and method-level authorization rules. This detects unsafe defaults, missing CSRF handling, and overly broad access rules across your Spring Boot application code.

What does method-level authorization look for in Spring Security service operations?

Method-level authorization reviews PreAuthorize and PostAuthorize usage on sensitive service operations. It ensures these critical endpoints do not rely on URL rules alone, validating that deliberate access controls protect your private services.

Can I use this to audit JWT and OAuth2 wiring in Spring Boot?

Yes, you can audit JWT and OAuth2 wiring in Spring Boot. It validates token authentication, explicit password hashing, and authentication providers to ensure your login flows and session handling are securely configured.

Does this review cover CSRF and CORS settings for browser and API protections?

Yes, it checks CSRF and CORS settings within your SecurityFilterChain. It requires clear decisions for any relaxed browser or API protections, ensuring deliberate CSRF handling and proper CORS setup are in place.

When should I audit session policies and logout behavior in Spring Security?

Audit session policies and logout behavior when reviewing your SecurityFilterChain before a release. This verifies secure session handling and catches security gaps that could expose private endpoints or weaken browser-based protections.