Skip to content
←Back to Open Source

OPEN SOURCE DEEP DIVE

AI CodingCode IntelligenceSecurity TestingSpring Boot

SpringBoot-Scan: Deterministic Security Evidence for Spring Services

A deterministic Spring Boot security scanner that turns fingerprinting, endpoint discovery, sensitive-file checks, and 16 vulnerability probes into reviewable evidence for authorized coding-agent workflows.

AabyssZG/SpringBoot-Scan2.4kPythonMIT16 min read

SpringBoot-Scan is a command-line security scanner focused on Spring Boot services. It combines endpoint discovery, sensitive-file checks, framework fingerprinting, vulnerability validation, and a small set of controlled exploitation flows in one Python project. The current README identifies version V3.1.1, the repository uses the MIT license, and the codebase contains sixteen numbered vulnerability checks plus both single-target and batch execution paths.

Placed in an AI Coding context, the project needs a precise definition. It is not a language-model product, and it does not plan an attack autonomously. The repository contains no model call, no natural-language reasoning layer, and no agent that writes its own investigation report. Its decisions come from fixed path dictionaries, status codes, response text, content hashes, random-suffix comparisons, and targeted validation code. That determinism is exactly why it can serve as an evidence probe beside a coding agent. The agent can define scope, invoke checks, and summarize evidence; the scanner can issue known requests and preserve observations. Those are related roles, not the same capability.

This distinction matters in practical software delivery. A coding assistant may change Spring configuration, Actuator exposure, authentication rules, or dependency versions without knowing what the deployed service actually exposes. A deterministic external checker can answer a narrower question: does the service look like Spring, which known paths return non-generic content, can a sensitive file be read, and does a vulnerability precondition appear to hold? The scanner does not replace code review. It gives code review a runtime evidence layer.

Authorized use comes before every other feature

The README describes the project as an open-source penetration framework for Spring Boot and includes active vulnerability and exploitation modules. That alone rules out casual use against production systems without written authorization. Endpoint scans create request volume, while vulnerability checks may modify configuration, upload files, execute commands, or depend on external callback infrastructure. Calling the whole tool “read-only” would be false.

A responsible test needs a target list, permitted methods, time window, request ceiling, a decision on temporary writes, a decision on external DNS or HTTP callbacks, and an emergency contact who can stop the run. The repository does not provide a policy engine around those requirements. It gives operators technical entry points; the surrounding process must establish authorization, isolation, and accountability.

The central output is an evidence chain, not a Spring logo

Spring Boot applications often place business routes, management endpoints, diagnostics, and framework-specific handlers under one origin. A homepage may reveal nothing useful, while Actuator, Gateway, Hystrix, Druid, or historical vulnerability paths expose material that changes the risk picture. Manual testing usually means visiting a list of known paths and recording responses. SpringBoot-Scan turns that repetitive process into a repeatable command.

A run can be understood in four layers. The target is first normalized into a usable HTTP root URL. A fingerprint layer then looks for Spring-specific favicon or error-page signals. Endpoint and file modules collect path-level evidence such as status codes, response lengths, and content hashes. Finally, vulnerability modules run more specific validation requests against selected targets.

These layers communicate through command-line arguments, interactive input, and text files in the working directory. The principal outputs are urlout.txt, output.txt, dumpout.txt, and vulout.txt. For an operator, this design is transparent. For an automation platform, it means that parsing, normalization, and confidence handling must be added outside the scanner.

LayerActionEvidence producedWhat is still missing
Target intakeNormalize the URL and load proxy or headersA requestable target rootScope allowlists and rate policy
FingerprintingCheck favicon hash or error-page markersA Spring signalVersion and component inventory
Endpoint discoveryRequest dictionary paths, reject login pages, deduplicate responsesCandidate sensitive endpoints and lengthsStructured evidence and confidence scores
Vulnerability validationRun selected checks or interactive exploit flowsA hit, proof URL, or interactive resultIndependent confirmation and impact assessment

The CLI separates discovery, downloads, validation, and asset export

SpringBoot-Scan.py defines the public argument surface, while inc/proxycheck.py prepares proxy, header, and Cookie state before dispatching to the console controller. Single-target modes normally fingerprint the target before continuing. The batch endpoint mode skips that per-target gate and focuses on asynchronous path scanning.

ArgumentPurposeExecution modelPrimary output
-uSingle-target endpoint scanSequential dictionary walkurlout.txt
-ufBatch endpoint scanAsync, default concurrency of 10output.txt
-vSingle-target validation or exploitationSelect numbered checks, then run themConsole results
-vfBatch vulnerability validationEach target crossed with selected checksvulout.txt
-dSingle-target sensitive-file probe and downloadHEAD checks followed by streaming downloadDownloaded files
-dfBatch sensitive-file probeEach target and each known file pathdumpout.txt
-pHTTP or HTTPS proxyConnectivity test before the taskShared proxy for later requests
-tCustom request headersJSON or line-based key-value fileMerged header map
-cCookie headerDirect header insertionAuthenticated request context
-z/-f/-yZoomEye, Fofa, or Hunter exportThird-party asset-search APIProvider-specific text file

The single-target endpoint walker requests each dictionary entry and records a path only when the response is HTTP 200, does not contain a small set of login or denial phrases, is not a known fixed-length placeholder, and has not already appeared through the same content hash. This reduces obvious duplicate and blocked pages. It does not establish that the remaining content is sensitive, so an operator still needs to inspect the response.

The batch walker uses aiohttp with a semaphore-controlled concurrency setting and an optional delay. Targets are consumed in blocks of one hundred rather than creating every task at once. For a candidate path, it also requests a modified URL with a fixed suffix and compares response lengths. That is a useful catch-all control: many applications return the same generic shell for every unknown route. Length comparison is still fragile because compression, timestamps, request-specific rendering, and personalized errors can change without indicating a real endpoint.

Fingerprinting uses two narrow signals

inc/springcheck.py first requests the target root and exits when the root returns 502 or 503. It then requests favicon.ico and a deliberately nonexistent path. A response body containing timestamp is treated as a Spring error-page signal. An image or octet-stream response is hashed with MD5 and compared with the repository’s known Spring favicon hash.

The implementation is easy to understand and useful as a quick filter, but the signals are not a component-identification system. A custom icon, custom error page, CDN, reverse proxy, or common timestamp field can defeat or confuse it. timestamp is not exclusive to Spring, and favicon bytes can be changed without changing the underlying framework. Better inventory evidence would combine response headers, static asset names, management-page structure, build metadata, JAR or SBOM data, and dependency versions. The scanner does not perform that multi-source attribution today.

The valuable architectural idea is that fingerprinting precedes the more intrusive single-target paths. Even though the result is heuristic, it gives the user a chance to distinguish “a URL responds” from “a Spring service appears to be present.” An external coding agent should preserve that distinction in its report rather than collapsing both observations into a confident framework claim.

Endpoint discovery turns raw responses into a bounded candidate set

Dir.txt is the core corpus for endpoint discovery. It covers Actuator, Druid monitoring, environment and configuration paths, routes, sessions, and common diagnostics. The tool does not use semantic page classification. It sends requests and keeps URLs that satisfy hard-coded acceptance rules. This is a practical benefit for auditability: a new rule appears as a reviewable dictionary change, and the team can explain why a request was generated.

The single and batch modes do not produce equally strong evidence. Single-target discovery relies on status, denial keywords, a fixed-length filter, and content-hash deduplication. Batch discovery adds the random-suffix length comparison. An operator should treat batch hits as candidates that deserve a second request and human inspection, not as completed vulnerability findings.

The scanner checks for phrases such as need login, forbidden access, missing permission, and authentication failure. This is a sensible attempt to remove blocked pages, but it only covers a few languages and response styles. A localized JSON error, an application shell delivered with status 200, or a generic reverse-proxy page can still enter the candidate set. Conversely, a legitimate sensitive endpoint that includes one of those phrases can be suppressed.

Sensitive-file handling focuses on six known locations

The single-target file module checks actuator/heapdump, gateway/actuator/heapdump, heapdump, heapdump.json, hystrix.stream, and artemis-portal/artemis/heapdump. When the HEAD status matches the expected condition, the response is downloaded with a progress bar. Hystrix treats both 200 and 401 as worth reporting; the heapdump variants primarily expect 200.

After one download succeeds, the single-target flow exits. It is designed to retrieve a high-value sample quickly, not to enumerate every exposed object. The batch flow checks the same six paths and writes 200 responses to dumpout.txt, but it does not download the content. That difference should be explicit in any runbook so that a batch output is not mistaken for a set of downloaded evidence files.

Heap dumps and related diagnostics can contain credentials, configuration, session material, object graphs, and business data. Handling them requires more than a successful download. Operators should restrict file permissions, isolate the analysis environment, avoid public upload services, and follow the authorized retention and destruction rules. The scanner itself does not encrypt, redact, classify, or expire evidence.

Sixteen checks form a numbered vulnerability toolbox

inc/exploits.py registers sixteen checks in the VULNS dictionary. The single-target interactive flow and the batch flow use the same menu. An operator can select one number, a comma-separated list, or press Enter to select all entries. The names below reflect the current implementation; the presence of a check does not independently certify the vulnerability advisory.

No.CheckValidation approach
1JeeSpring 2023 file uploadUpload a test file and attempt to read it from the returned path
2CVE-2022-22947Create a temporary Gateway route and inspect command output
3CVE-2022-22963Validate the Spring Cloud Function SpEL request pattern
4CVE-2022-22965Exercise Spring Core data binding and verify the shell path
5CVE-2021-21234Check file-read behavior and operating-system markers
6SnakeYAML RCEIdentify mutable environment endpoints for Spring 1.x or 2.x
7Eureka XStream RCECheck writable Eureka configuration, then require explicit consent
8Jolokia RCEInspect Jolokia MBeans and available JNDI paths
9CVE-2018-1273Validate the Spring Data Commons form-binding request
10CVE-2025-41243Validate environment-property modification through Gateway
11CVE-2024-37084Validate Spring Cloud Data Flow with a DNS callback
12CVE-2025-22235Probe EndpointRequest path matching and authorization bypass
13CVE-2025-24813Write and read a harmless partial-PUT marker, then clean up
14CVE-2026-59378Confirm default authentication, then compare non-GET health responses
15CVE-2026-47884Detect XSLT errors and validate a local-file read marker
16Whitelabel SpEL RCEInject a multiplication expression and check the 15701 result

The side effects and evidence quality differ substantially across these entries. The Whitelabel check uses a large multiplication result rather than a generic echo string, which reduces accidental matches. The Tomcat partial-PUT check writes a random text marker and attempts deletion in a finally block. The Gateway check uses a random route identifier and calls delete plus refresh after validation. The Eureka flow warns that the exploit can disrupt the service and requires an uppercase Y before continuing.

Other flows set environment properties, upload files, execute commands, or contact callback infrastructure. A test label does not make those operations harmless. There is no global dry-run mode, scope allowlist, request budget, or transaction rollback layer. Isolation and authorization remain the primary controls around the tool.

Several checks strengthen evidence, but the improvement is not universal

The newer validation logic contains good examples. CVE-2026-59378 does not report every health endpoint that accepts a non-GET method. It first looks for protected paths returning 401 or 403, which supports the claim that default authentication is present. Batch mode records only candidates that satisfy that precondition. CVE-2026-47884 first looks for XSLT exception signatures and then tries representative Linux and Windows file markers; batch mode reports success only when a file-read marker is present.

These controls reduce the gap between “a technical feature exists” and “exploitation has been demonstrated,” but they remain project-defined heuristics. A CVE label and source comment provide provenance for the rule, not independent proof of every target’s vulnerability. A coding agent should attach the scanner result as a hypothesis with observable evidence, then require a separate review of version, configuration, response, and logs before presenting a confirmed finding.

The HTTP layer is consistent, not secure by default

The shared request wrapper sets a ten-second timeout, disables redirects, and disables TLS certificate verification. Endpoint requests use a randomized User-Agent. Users can merge custom headers from JSON or line-based files and can supply a Cookie directly. When a proxy is configured, the tool first requests a fixed public site and requires a 200 response before continuing.

Those choices create predictable behavior, but they also create explicit limitations. Disabling certificate verification makes self-signed development environments easier to reach, while removing the client’s ability to detect an unexpected certificate. Disabling redirects preserves original status codes, but can make ordinary HTTP-to-HTTPS or legacy-domain migrations look unreachable. The fixed proxy health check depends on public network access, so it may fail in isolated lab environments even when an internal proxy works. Neither the timeout nor the random User-Agent is a rate limit.

Asset-search integrations create candidates, not authorization

The ZoomEye, Fofa, and Hunter modules accept an API key and a query, then export matching assets to zoomout.txt, fofaout.txt, or hunterout.txt. The README’s default queries use Spring favicon or Whitelabel markers, which can produce a broad candidate list quickly.

An internet-wide asset index describes public observations, not ownership or permission. Results can include shared infrastructure, stale hosts, subsidiaries, cloud addresses, and third parties. A responsible workflow verifies asset ownership, removes duplicates, excludes critical production systems until approved, and selects targets from an authorized scope. API keys should be loaded from protected environment state rather than pasted into shared shells and command history.

A deterministic evidence layer for AI coding workflows

AI coding agents are useful at reading code, proposing changes, running builds, and explaining errors, but they have only indirect knowledge of what a deployed service exposes. A stronger loop can connect the two sides. The coding agent reviews configuration and dependency changes, invokes a fixed scanner against an authorized test environment, captures runtime observations, and writes those observations back into the review record. The reasoning belongs to the outer agent. SpringBoot-Scan remains a rule executor.

That combination offers three practical benefits. First, a deterministic tool produces comparable path evidence across repeated runs. Second, selected checks can become regression gates, such as verifying in a pre-production environment that an internal Actuator path is no longer exposed. Third, raw evidence forces the coding agent to cite a status code, response length, and specific check instead of asserting risk from code patterns alone.

Integration still needs an engineering boundary that the repository does not provide. Current outputs are console text and plain text files. They do not include a stable JSON schema, per-evidence timestamps, complete request parameters, response hashes, confidence fields, checker versions, or meaningful exit-code semantics. A robust wrapper should preserve the command, scope, start time, target, selected checks, raw output, and tool revision without changing the scanner’s conclusion.

Privilege should also be split. Read-oriented fingerprinting and bounded endpoint discovery may be safe enough to automate in a dedicated lab with explicit scope. Checks that modify configuration, upload files, create routes, execute commands, or rely on callbacks should require human approval. The scanner exposes capabilities; the orchestration layer decides which capabilities are allowed.

Current limitations that should remain visible

The project has no structured report format, which limits direct use in ticketing, risk scoring, and cross-version comparison. Its endpoint dictionary is static, so it cannot discover business routes from application code. Fingerprinting uses only favicon and error-page signals and does not establish a version or software inventory. Response filtering is based on a small set of phrases, lengths, and hashes, all of which can be disturbed by dynamic pages and catch-all routing.

The concurrency model supports a semaphore and optional delay, but it does not implement per-target adaptive rate control, an error budget, or circuit breaking. Validation and exploitation live in one numbered menu, so callers must distinguish operations with different side effects. Several checks depend on external callbacks, logs, or narrowly defined markers. A console result of “not found” means that the current rule did not produce a hit, not that the target is proven secure.

Finally, the repository is not an AI coding product. It does not compress evidence for a model context, rank observations by significance, or decompose an investigation into agent tasks. Teams that need those capabilities should build them in the orchestration layer. Adding a chat interface would not turn fixed security rules into autonomous reasoning.

Who should use it

The project fits authorized security testers, platform teams responsible for Spring service release checks, and developers studying how coding agents can invoke deterministic security tools. Testers get an established path corpus and a collection of validation entry points. Agent developers get a useful boundary case: rules can execute known actions, while context, judgment, approval, and scope remain outside the scanner.

It does not fit use as an unattended production attack platform, an autonomous vulnerability certification service, or a tool that can be placed in an unrestricted agent loop. Its strongest use is bounded evidence collection in a controlled environment, followed by a review owned by a named operator.

SpringBoot-Scan is valuable because it records practical Spring investigation knowledge in code that can run, be diffed, and be invoked by other programs. It does not solve AI security reasoning. It provides a more modest and more defensible foundation: let a coding agent propose a configuration change, then demand that the deployed service return evidence from an authorized target in a traceable test run. That is more useful than describing the scanner as AI, and it is closer to how reliable security engineering is actually done.

Related Projects

nextlevelbuilder/ui-ux-pro-max-skillMIT

UI UX Pro Max: a 132k-star AI coding skill that generates complete design systems from 192 industry reasoning rules

An open-source AI skill that injects design intelligence into coding agents: one request generates a complete design system (style + colors + typography + anti-patterns) from 192 industry reasoning rules, 79 searchable UI styles, 192 color palettes, 74 font pairings, 25 chart types and 22 tech stacks (React, Next.js, Astro, SwiftUI, Flutter, Three.js and more). The v2.0 flagship Design System Generator runs five parallel searches (product type, style, palette, landing pattern, typography) through a BM25-ranked reasoning engine to output pattern, style, colors, typography, effects, anti-patterns and a pre-delivery checklist (4.5:1 contrast, no emoji icons, cursor-pointer, prefers-reduced-motion, four responsive breakpoints). MIT licensed, one-line npm CLI install, works with Claude Code and other coding agents.

AI CodingUI/UX
addyosmani/agent-skillsMIT

Agent Skills: Production Workflows for Coding Agents

A production-oriented workflow library for coding agents, covering specification, planning, incremental implementation, testing, review, and shipping with explicit evidence gates.

AI CodingAgent Skills
Egonex-AI/Understand-AnythingMIT

Understand Anything: Turn a Codebase Into an Interactive Knowledge Graph

Turns codebases, documentation, and wikis into an interactive knowledge graph by combining deterministic Tree-sitter structure with LLM-generated summaries, layers, tours, and incremental analysis.

Code IntelligenceKnowledge Graph
pbakaus/impeccableApache-2.0

Impeccable: the design language that makes your AI coding agent better at design

An open-source design skill by Paul Bakaus: 1 skill, 24 commands and 61 deterministic anti-pattern detector rules that kill AI frontend slop (Inter everywhere, purple gradients, cards-in-cards). Installs into 16 harnesses including Claude Code, Cursor, Codex and Gemini CLI; live browser iteration plus a Chrome extension. Pure Markdown rules with a zero-LLM detector engine. Apache-2.0, 75k+ stars.

HarnessAI Coding

As an Amazon Associate, we earn from qualifying purchases.