OPEN SOURCE DEEP DIVE
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.
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.
| Layer | Action | Evidence produced | What is still missing |
|---|---|---|---|
| Target intake | Normalize the URL and load proxy or headers | A requestable target root | Scope allowlists and rate policy |
| Fingerprinting | Check favicon hash or error-page markers | A Spring signal | Version and component inventory |
| Endpoint discovery | Request dictionary paths, reject login pages, deduplicate responses | Candidate sensitive endpoints and lengths | Structured evidence and confidence scores |
| Vulnerability validation | Run selected checks or interactive exploit flows | A hit, proof URL, or interactive result | Independent 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.
| Argument | Purpose | Execution model | Primary output |
|---|---|---|---|
-u | Single-target endpoint scan | Sequential dictionary walk | urlout.txt |
-uf | Batch endpoint scan | Async, default concurrency of 10 | output.txt |
-v | Single-target validation or exploitation | Select numbered checks, then run them | Console results |
-vf | Batch vulnerability validation | Each target crossed with selected checks | vulout.txt |
-d | Single-target sensitive-file probe and download | HEAD checks followed by streaming download | Downloaded files |
-df | Batch sensitive-file probe | Each target and each known file path | dumpout.txt |
-p | HTTP or HTTPS proxy | Connectivity test before the task | Shared proxy for later requests |
-t | Custom request headers | JSON or line-based key-value file | Merged header map |
-c | Cookie header | Direct header insertion | Authenticated request context |
-z/-f/-y | ZoomEye, Fofa, or Hunter export | Third-party asset-search API | Provider-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. | Check | Validation approach |
|---|---|---|
| 1 | JeeSpring 2023 file upload | Upload a test file and attempt to read it from the returned path |
| 2 | CVE-2022-22947 | Create a temporary Gateway route and inspect command output |
| 3 | CVE-2022-22963 | Validate the Spring Cloud Function SpEL request pattern |
| 4 | CVE-2022-22965 | Exercise Spring Core data binding and verify the shell path |
| 5 | CVE-2021-21234 | Check file-read behavior and operating-system markers |
| 6 | SnakeYAML RCE | Identify mutable environment endpoints for Spring 1.x or 2.x |
| 7 | Eureka XStream RCE | Check writable Eureka configuration, then require explicit consent |
| 8 | Jolokia RCE | Inspect Jolokia MBeans and available JNDI paths |
| 9 | CVE-2018-1273 | Validate the Spring Data Commons form-binding request |
| 10 | CVE-2025-41243 | Validate environment-property modification through Gateway |
| 11 | CVE-2024-37084 | Validate Spring Cloud Data Flow with a DNS callback |
| 12 | CVE-2025-22235 | Probe EndpointRequest path matching and authorization bypass |
| 13 | CVE-2025-24813 | Write and read a harmless partial-PUT marker, then clean up |
| 14 | CVE-2026-59378 | Confirm default authentication, then compare non-GET health responses |
| 15 | CVE-2026-47884 | Detect XSLT errors and validate a local-file read marker |
| 16 | Whitelabel SpEL RCE | Inject 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.