affaan-m avatar

Springboot Security

This is your Spring Security checklist in skill form. It covers JWT and OAuth2 authentication, method-level authorization with @PreAuthorize, Bean Validation for inputs, CSRF and CORS config, secrets management, rate limiting with Bucket4j, and dependency scanning. The code samples are production-ready, not toys: proper filter chains, parameterized queries to stop SQL injection, BCrypt password encoding, security headers. Activate it when you're adding auth to an endpoint, handling user input, or reviewing a PR before release. The pre-deploy checklist alone is worth having around. If you're building Spring Boot APIs and don't want to reinvent security patterns, this gives you the guardrails.

skills.sh installs
6K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill springboot-security --agent claude-code

Installs into .claude/skills of the current project.

Files

Spring Boot Security Review

Use when adding auth, handling input, creating endpoints, or dealing with secrets.

When to Activate

  • Adding authentication (JWT, OAuth2, session-based)
  • Implementing authorization (@PreAuthorize, role-based access)
  • Validating user input (Bean Validation, custom validators)
  • Configuring CORS, CSRF, or security headers
  • Managing secrets (Vault, environment variables)
  • Adding rate limiting or brute-force protection
  • Scanning dependencies for CVEs

Authentication

  • Prefer stateless JWT or opaque tokens with revocation list
  • Use httpOnly, Secure, SameSite=Strict cookies for sessions
  • Validate tokens with OncePerRequestFilter or resource server
@Component
public class JwtAuthFilter extends OncePerRequestFilter {
  private final JwtService jwtService;

  public JwtAuthFilter(JwtService jwtService) {
    this.jwtService = jwtService;
  }

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Security, Java & JVM
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263

Recommended

More Security
1trailofbits avatarcosmos-vulnerability-scannertrailofbits/skillsScans Cosmos SDK blockchain modules and CosmWasm contracts for consensus-critical vulnerabilities — chain halts, fund loss, state divergence. 25 core + 16 IBC +5.7Kskills.sh installs
2affaan-m avatarllm-trading-agent-securityaffaan-m/eccSecurity patterns for autonomous trading agents with wallet or transaction authority. Covers prompt injection, spend limits, pre-send simulation, circuit breake5.6Kskills.sh installs
3dpearson2699 avatarauthenticationdpearson2699/swift-ios-skillsImplement iOS authentication flows with AuthenticationServices and LocalAuthentication. Use when building Sign in with Apple, passkey/WebAuthn registration or s4.1Kskills.sh installs
4yaklang avatarmacos-security-bypassyaklang/hack-skillsmacOS security bypass playbook. Use when targeting macOS endpoints and need to bypass TCC, Gatekeeper, SIP, sandbox, code signing, or entitlement-based protecti3.7Kskills.sh installs
5markdown-viewer avatarsecuritymarkdown-viewer/skillsCreate security architecture diagrams using PlantUML syntax with identity, encryption, firewall, and compliance stencil icons. Best for IAM flows, zero-trust mo2.9Kskills.sh installs
6trailofbits avatarvulnerability-triage-brocardstrailofbits/skillsThis skill should be used when the user asks to "triage a vulnerability report", "assess a CVE", "evaluate a bug bounty submission", "decide if a finding is val1.8Kskills.sh installs