/viperclaw:viper-java-spring-auditfrom viperclaw
Audits Java Spring Boot and Spring Security code for vulnerabilities including Actuator exposure, SpEL injection, @PreAuthorize misconfiguration, Jackson polymorphic deserialization, and JNDI/JDBC safety. Modeled on FindSecBugs and Semgrep Java patterns.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-java-spring-audit)p/java & p/spring.flowchart LR
Req["Spring HTTP Request"] --> Sec["@PreAuthorize + Actuator Lockdown"] --> DTO["Record DTO + Safe Jackson Typing"] --> JPA["Parameterized @Query + SimpleEvaluationContext"]
viperclaw taint . --db .viperclaw/graph.db
management.endpoints.web.exposure.include, SpelExpressionParser, @Query(, enableDefaultTyping, DriverManager.getConnection, ObjectInputStream.application.properties / application.yml does not set management.endpoints.web.exposure.include=* in production (which exposes /actuator/env, /actuator/heapdump, and /actuator/mappings). Expose only health and info on an isolated management port.SpelExpressionParser.parseExpression(); if expressions are required, use SimpleEvaluationContext.forReadOnlyDataBinding() instead of StandardEvaluationContext.@Query annotations and EntityManager.createQuery(), always use :namedParam or ?1 positional binding—never string concatenation.ObjectMapper.enableDefaultTyping(); use @JsonTypeInfo with explicit @JsonSubTypes allowlists, and bind @RequestBody to dedicated Record/DTO classes rather than @Entity models.autoDeserialize=true, allowLoadLocalInfile=true, H2 INIT=RUNSCRIPT) and disable remote JNDI class loading.// ❌ VULNERABLE: StandardEvaluationContext allows arbitrary class instantiation & RCE
ExpressionParser parser = new SpelExpressionParser();
Object val = parser.parseExpression(userFilter).getValue(new StandardEvaluationContext(rootObj));
// ✅ HARDENED: Read-only data binding context blocks method calls and type references
EvaluationContext safeCtx = SimpleEvaluationContext.forReadOnlyDataBinding().build();
Object val = parser.parseExpression(allowlistedField).getValue(safeCtx, rootObj);
FindSecBugs, OWASP Java/Spring, CWE-917, CWE-502, CWE-89| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.0–10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Unauthenticated remote code execution, cross-tenant authentication or isolation gap, or direct theft of funds/keys. |
| HIGH (7.0–8.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | Authenticated privilege escalation, unauthorized sensitive data exposure, or single-request service outage. |
| MEDIUM (4.0–6.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | Scoped information disclosure, non-admin state mutation, or configuration weakness requiring user interaction. |
| LOW (0.1–3.9) | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | Defense-in-depth hardening gap requiring high precondition complexity and minimal direct impact. |
viperclaw taint . --db .viperclaw/graph.db and viperclaw verify to record the verified state in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas./viper-auth-oauth-jwtAuthentication, OAuth 2.0 / OIDC & JWT Security Auditor. Reviews token verification, algorithm allowlisting, claim validation, and OAuth redirect_uri configurations./viper-aws-iam-cloud-auditAWS IAM, STS, S3, KMS & Lambda Security Auditor (modeled on Prowler, Parliament & CloudSplaining). Reviews iam:PassRole escalation, STS ExternalId, S3 policies, and IMDSv2./viper-bola-idorObject & Function-Level Authorization (BOLA / BFLA) Audit Skill. Reviews resource access controls, tenant scoping, and ownership checks across API endpoints and controllers.npx claudepluginhub zahidoverflow/viperclaw --plugin viperclawOther plugins' skills for the same job