Friday, November 27, 2026

SpearX for managing an arsenal of security and developer tools on macOS

SpearX for managing an arsenal of security and developer tools on macOS

SpearX is a Wails-based desktop manager that catalogs, categorizes, and one-click launches security tooling—Java JARs, terminal utilities, web apps, and custom commands—for authorized testers.

Toolsspsec/Spear — modern security & developer toolbox manager built with Go, Wails v2, and Vue 3
CategoryDesktop tool manager / launcher for security and development arsenals
Primary UseOrganizing and launching mixed toolkits (jar packages, CLI scanners, web apps, Docker containers) with per-tool configs in tool.yml
Safe UseWorkflow organization for authorized penetration tests, internal labs, and defensive research environments; it launches tools you already own and run legitimately
Telemetry NotePurely local: state lives in human-readable tool.yml and per-tool Markdown notes; no network beaconing, so defenders would only observe the child processes it spawns (e.g., java -jar, docker run)

Anyone who has accumulated more than a couple dozen security tools knows the real bottleneck is not finding exploits or scanners—it is remembering where the .jar lives, which Java version it needs, and which JVM flags keep it from exhausting memory. SpearX, published as sspsec/Spear on GitHub, is a desktop answer to that organizational problem. It is a native macOS application written in Go on the backend and Vue 3 with Element Plus on the frontend, glued together by the Wails v2 framework. The project carries an MIT license, sits at 273 stars at time of writing, and is maintained under the name Spe4r.

The core value proposition is multi-type tool execution. SpearX understands five launch modes, each expressed as a VALUE field in its YAML configuration. Java applications run under Java8, Java11, or Java17 selectors with optional custom JVM flags; terminal tools use the openterm mode, opening a terminal directly in the tool's working directory; web apps and bookmarks use Browser to open remote URLs or local HTML reports; native apps and files use Open, delegating to OS associations for .app bundles, documents, and folders; and finally Custom runs arbitrary shell, Docker, or Python commands with variable substitution. That last mode is the flexible escape hatch that makes the tool genuinely useful for heterogeneous arsenals.

The Java story deserves particular attention because it reflects a real pain point in security work. Many classic tooling artifacts are distributed as Java packages that pin to specific JDK generations, and running a legacy jar under the wrong runtime produces inscrutable failures. SpearX lets you declare the Java version per tool—its own README example configures Burp Suite Professional with VALUE: Java11 and -Xmx4g -XX:+UseG1GC as optional flags. The JavaPaths block in tool.yml can either point at explicit JDK binaries or be left empty, in which case the application auto-detects java from your system PATH.

What impressed me reading the README is the execution priority and fallback logic, which is more thoughtful than most launcher front-ends bother with. When a tool's type is ambiguous, SpearX resolves it in four stages: an explicit VALUE wins outright; failing that, file extensions are inspected so .jar maps to Java and .app maps to Open; then actual file headers and executable permissions are checked; and as a last resort the OS default file association handles the launch. This layered detection means a directory scan can import tools with sensible defaults even when metadata is absent, and you only override VALUE when the heuristic guesses wrong.

Smart directory scanning is the feature that turns initial adoption from a chore into a five-minute exercise. Point the scanner at an existing tools folder and it identifies executables by extension (.jar, .exe, .app, .sh, .py), documentation (README.*, *.md, *.pdf), web files (*.html), configurations (*.yaml, *.json), and shortcuts (.url, .webloc). More interestingly, it categorizes folders by keyword heuristics—info/recon, scan/vulnerability, exploit/penetration, web, and system—so a conventionally named toolkit self-organizes into a reasonable taxonomy. It is a simple trick, but it mirrors how most operators already name their directories, and it rewards that habit.

Configuration lives in a single human-readable tool.yml, which the README correctly frames as a benefit: it is trivially backup-able, version-controllable, and editable by hand or visually in the app's settings. Each tool entry carries ToolName, PATH, FileName, VALUE, COMMAND, and Optional fields. The Custom mode supports template variables—{path}, {filename}, {name}, {optional}—so a Docker-wrapped tool can be declared once with docker run -it --rm -v {path}:/workspace tool:latest and reused regardless of where the tool directory sits. Relative paths, absolute paths, and URLs are all accepted in PATH, which keeps config portable across machines.

Organization features extend beyond categories. There is a tagging system, instant search across names, tags, and descriptions, and per-tool Markdown notes stored as <ToolName>.md files inside each tool's own directory. That last detail is quietly excellent design: notes travel with the tool when you move the folder, rather than being orphaned in an application database. For a consultant carrying an arsenal between engagements, notes recording command syntax quirks and remediation references are often as valuable as the tools themselves.

From an architecture standpoint, the split is conventional but sound. The Vue 3 frontend handles UI components, state management, and events; the Go backend exposes a tool manager, file operations, a runner engine, and a config parser; and the Wails bridge connects the two while providing desktop runtime and OS integration. The build chain requires Go 1.24+, Node.js 18+, and the Wails CLI v2.10.1, verified via wails doctor. Cross-platform builds are documented with wails build -platform darwin/arm64, darwin/amd64, windows/amd64, and linux/amd64, though the README states macOS 10.15 Catalina as the minimum supported platform and the distribution focus is clearly Mac-first.

Installation is straightforward: prebuilt binaries are available on the GitHub Releases page, or you can clone the repository and run wails build -clean inside the Spear X subdirectory. One macOS friction point the FAQ addresses directly is Gatekeeper complaining about unsigned code; the documented remedies are xattr -rd com.apple.quarantine Spear.app or, on macOS Sequoia, an ad-hoc codesign --sign - Spear.app. Note that bypassing quarantine attributions is a trust decision you should make deliberately on software you have reviewed, since SpearX will be launching other binaries on your behalf.

There is a defensive observation worth making for blue teams that encounter this tool on corporate macOS fleets: SpearX is purely organizational and leaves no network telemetry of its own, but it centralizes process-spawning behavior. A Custom mode entry executing Docker or Python commands means that endpoint monitoring will see java -jar, docker run, or python3 child processes originating from the SpearX application—exactly the visibility you want when auditing what an authorized tester's workstation actually executes. Inventorying tool.yml on an assessment machine is a fast way to enumerate the operator's toolkit posture.

The README also hints at the project's history: legacy Fyne-based builds (Spear-V3, Spear-V4) are preserved in the repository with migration notes from V5's resources/tool.yml layout, and a full Chinese translation (README_CN.md) exists alongside the English document. That continuity suggests an actively maintained personal project that has already survived one full UI framework migration. For authorized professionals drowning in unorganized tooling, SpearX is a lightweight, transparent, and genuinely practical way to restore order to the arsenal.

Official project repository for sspsec/Spear.
Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.

Sponsored
Share articleFacebookXLinkedIn

Continue exploring

Browse all articles →

0 comentários:

Post a Comment

Note: Only a member of this blog may post a comment.