arXiv:2610.19830cs.CROct 2026

Manuscript Offprint

arXiv:2610.19830

DarKnight: Retrieval-Guided Agentic Framework for Breaking Dark Web CAPTCHA Gates

Binghui Wu, Yeo Zi Yi, Darren Tan, Manit Baser, Levente Csikor, Dinil Mon Divakaran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Binghui Wu, Yeo Zi Yi, Darren Tan, Manit Baser

National University of Singapore

Singapore

Levente Csikor, Dinil Mon Divakaran

A*STAR Institute of Advanced Intelligence and Compute

Singapore

Abstract—Cyber Threat Intelligence (CTI) investigators who monitor dark web marketplaces for leaked credentials and breach listings must pass the diverse CAPTCHAs that operators deploy to block automated collection. Existing solvers either need unscalable per-site fine-tuning or rely on commercial Vision-Language Model (VLM) APIs, which surrender operational sovereignty: provider policies, Tor-exit blocking, government regulation, or model updates outside the investigator's control can halt or alter the solver overnight, and per-call costs recur with every session and retry. We present DARKNIGHT, a self-improving agentic framework designed to run on a single workstation GPU inside an investigator's Tor crawler and solve CAPTCHAs with small, locally hosted open-weight VLMs that no provider decision can withdraw, without per-market training or third-party services. For each CAPTCHA, DARKNIGHT retrieves successful and failed past attempts on similar images (dual-signal RAG), composes an image-specific preprocessing pipeline, and learns from the site's pass/fail verdict. In a case study on four real-world dark web marketplaces, agentic tool selection outperformed parameter scaling. A deployable open-weight VLM with DARKNIGHT reached 83.2% on the most heavily defended market, 37.2 percentage points above its base model, outperforming even the frontier Claude Opus 5 (44%). DARKNIGHT recovered 48.2% of baseline failures at a 7.6% degeneration cost, indicating that selective tool use can avoid much of the degradation caused by uniform preprocessing.

Index Terms—Dark web, VLM, Agentic, Threat Intelligence

I. INTRODUCTION

Dark web marketplaces demonstrate resilience against law enforcement efforts, with new platforms rapidly emerging to replace those that are disrupted [1]. The scale of illicit activity continues to grow: data breaches posted on underground forums increased by 43% in 2024, compromised credentials rose by 34%, and the number of ransomware group leak sites grew by 53% over the same period [2]. Beyond data and credentials, dark web forums host exploit listings that are subsequently linked to known vulnerabilities in production systems [3]. Phishing kits are openly traded and deployed at industrial scale [4], [5]. The emergence of malicious LLM services, sold openly on underground markets to lower the barrier to crafting phishing lures and malware, further amplifies the threat [6]. Cryptocurrency facilitates pseudonymous settlement of nearly all transactions across these markets [7].

Security teams monitor dark web marketplaces to detect, as early as possible, newly listed data breaches, emerging ransomware strains, and exposed customer records before they are exploited [1], [8]. The value of this monitoring scales with coverage and speed, which makes automated, large-scale collection a requirement rather than a convenience. To resist such automation, marketplaces deploy several defensive layers, including headless-browser blocking, dynamic link generation, request-rate limiting, and CAPTCHAs [9]–[11]. Most of these layers can be circumvented through careful crawler engineering [11], [12]. CAPTCHAs are the exception. Deployed at registration, login, and checkout, they are designed to admit humans and turn away bots [13], [14]. It is the chokepoint that if overcome cheaply and at scale, makes automated dark-web measurement feasible; otherwise collection stalls behind manual intervention [10].

What sits at that gate is not a clear web CAPTCHA. Mainstream services such as reCAPTCHA, hCaptcha, and Cloudflare Turnstile are largely absent from dark web sites for structural reasons [13]–[16]. They require the client to contact a third-party endpoint the site operator does not control. On a hidden service, that adds the risky de-anonymization layer and logging surface; neither do legit CAPTCHA provider serve the dark web market. Moreover, those endpoints also degrade or block Tor exit traffic. For these anonymity reasons mainstream CAPTCHAs are not used on the dark web [14]. The visitors compound the issue: many Tor users disable JavaScript to shrink their fingerprinting surface, which makes the behavioral, slider, and interactive challenges common on the clear web impractical to deploy. Dark web site operators therefore build their own [9], [10], [13]; the result is a population of bespoke, locally hosted, server-rendered CAPTCHAs [13]. Due to the lack of JavaScript, they tend to be less diverse than commercial offerings using standard image libraries, random fonts and additive noise. The answer is bound to a server-side session, often at low character entropy. The dominant form is the OCR text CAPTCHA. It appears in a few recurring variants such as distorted Latin alphanumeric strings, image-rendered arithmetic, and non-Latin script. Non-Latin rendering is a low-cost anti-OCR measure on regionally targeted markets. It defeats common off-the-shelf recognizers trained predominantly on Latin text.

Existing empirical evaluations of modern CAPTCHAs study the clear web systems above [17], [18]. They explicitly place dark web challenges out of scope [19], leaving this design space comparatively unmeasured. Prior works approach solving dark web CAPTCHAs from two directions, neither of which fits a dark web Cyber Threat Intelligence (CTI) deployment. The first trains a recognizer per CAPTCHA type. CNN (Convolutional Neural Network) and GAN (Generative Adversarial Network) solvers reach high accuracy on the styles they are trained on [10], [13], [14]. However, they require labeled data and retraining for each new style. Besides, they do not generalize across the heterogeneous, churning set of markets a collector must track. The second is general visual solving with vision-language models (VLMs). Currently, they can solve a range of clear web CAPTCHAs [17], [20], [21]. On the dark web, a VLM has so far been used only as a component: an off-the-shelf model embedded in a single-market navigation tool [11]. There, solving is a step in data acquisition, not the object of study. Consequently, prior dark-web work has not characterised how VLM-based solvers behave across model scales, preprocessing pipelines, or agent designs. These are the questions a measurement study of CAPTCHA solving must answer. Neither direction studies dark web CAPTCHA solving as a problem in itself. The unstudied space spans heterogeneous market styles, including the non-Latin scripts of regionally targeted markets. It sits under the operational constraints of CTI deployment. And it calls for a solver that adapts without per-type retraining.

Frontier commercial LLM APIs are not good options for a CTI solver, because they leave the investigator without operational AI sovereignty: control over whether, how, and at what cost the solver keeps running. Even a frontier model that solves every CAPTCHA today would have to be removed from the pipeline by decisions the investigator does not control. First, provider usage policies prohibit using the models to circumvent CAPTCHAs, and such policies can be tightened at any time. Second, regulation can cut access without warning: in June 2026, a US export-control directive led Anthropic to suspend access to two of its frontier models for all customers worldwide for about three weeks [22]. Third, providers decide which networks they serve. When the collection host routes its traffic through Tor, major providers challenge or block Tor exit traffic with access-denied errors and forced human-verification prompts, so reachability cannot be assumed [23]. Moreover, Tor rotates its exit endpoint regularly; to a provider this resembles an account hopping over IP addresses, which injects additional verification mid-run and stalls an unattended pipeline until a human intervenes. Fourth, providers update and retire model versions on their own schedule, and solving behavior changes with them: on our most heavily defended dataset, four Claude models range from 1.4% to 44% accuracy (cf. App. D). Finally, the per-call cost recurs with every session and retry, since several attempts may be needed before a page opens. Closed APIs are therefore not a practical option (nor do they perform well; see App. D); the deployed solver must be open-weight and self-hosted, so that the investigator runs a fixed model checkpoint that no provider decision can withdraw or alter.

Two further requirements follow from the field setting. The solver must be small enough to run on a single workstation GPU (see Sec. VI-A for details) for CTI deployments ( ≤30B\leq 30B models) rather than a GPU cluster in a datacenter. The solver has one hard timing constraint and one soft one. The hard constraint is server-side session expiry. A correct answer arriving after the session has timed out is rejected, and there is no client-side workaround [13]. The soft constraint is submission-rate detection. Markets that escalate on rapid submission can be defeated by holding the solver output and submitting after a randomised delay. The hard constraint binds the solver design. The soft constraint binds only the submission policy.

We identify three gaps that this paper addresses.

G₁ Small open-weight VLMs for solving CAPTCHAs from the dark web within the operation constraints are understudied. Prior dark web CAPTCHA solvers use per-style trained models that require labelled data per market [10], [14]. Other work treats solving as a downstream step in a navigation pipeline [11]. Modern VLM-based solvers are evaluated on the clear web, predominantly with frontier-closed or large-parameter models [20], [21]. The capability of small open-weight VLMs in solving real dark web CAPTCHAs under time-bounded operational constraints remains understudied.

G₂ Understudied deployable enhancement methods for open-weight VLMs. Prior work can be categorized broadly into two approaches: per-style retraining and frontier-API agentic solving. No prior method combines agentic enhancement with a deployable open-weight backbone.

G₃ Non-Latin and heterogeneous-style CAPTCHAs from dark web are yet to be addressed. Existing dark web CAPTCHA work targets English-language, Western markets, and Latin-script inputs [10], [13], [14]. Recent threat intelligence reports identify active Chinese-language underground markets as hubs that preserve operational anonymity across clearnet, darknet, and messaging platforms [24]. The study of any solver, classical or VLM-based, on non-Latin dark web CAPTCHAs is missing in literature.

We argue that these gaps leave us with a single viable profile to address the challenges: an open-weight solver that runs locally, stays small, and operates within a timing window. We hypothesize that the bottleneck is not model capacity but tool-selection strategy, informed by past solves.

To this, we design and develop DARKNIGHT, a self-improving agentic solver. DARKNIGHT is given a small library of image-preprocessing tools (see Sec. V). For each CAPTCHA, DARKNIGHT perceives the input and retrieves past attempts on visually similar images. Then, it composes a preprocessing pipeline, solves the cleaned image, and updates from the site's verdict [25]. The same open-weight VLM does both planning and solving, with no additional model to host. That closed verdict-feedback loop enables stream-level improvement without retraining.

We present this work as a case study of one framework on four marketplaces, evaluated offline; where we generalize, we show what is feasible, not what holds for every market or model. Our primary contributions are summarized as follows:

  1. We design DARKNIGHT, an agentic enhancement layer for open-weight small VLMs operating under dark web deployment constraints. DARKNIGHT combines chain-of-thought visual analysis, a dual-signal RAG knowledge database (retains both successful and failed records of CAPTCHA solving, §V-C), five preprocessing operations, and automated ground-truth feedback (§V-E). Across 2,000 CAPTCHAs from four real-world dark web marketplaces and nine model backbones, DARKNIGHT improves accuracy in 30 out of 32 (93.75%) configurations, with an average absolute improvement of 13.33%. In particular, on the most challenging dataset ( D1D_{1}), the average improvement across all backbones is +30.48%. Such improvement on all four marketplaces is achieved without any per-site retraining, with a single configuration handling alphanumeric, math, and Chinese CAPTCHAs within the same mixed-style market.

  2. We present the first systematic evaluation of small open-weight VLMs (1B–30B) on real dark web CAPTCHAs under operational constraints. We show that a general-purpose 27B model equipped with DARKNIGHT (83.2%) on D1D_{1} outperforms the raw baselines of Step3-VL-10B [26] (63.6%), the strongest bare model we evaluated, a larger general-purpose vision language model, Qwen3-VL-30B-A3B (42.4%), and even a frontier model Claude Opus 5 (44%), showing that adding DARKNIGHT to a lightweight model beats scaling up the bare model.

  3. We identify and quantify the degeneration-recovery effect in CAPTCHA preprocessing. Across all Planner decisions, including cases where no preprocessing is selected, DARKNIGHT recovers 48.2% of baseline failures while degrading only 7.6% of correct predictions, yielding a 5.8×5.8\times recovery-to-degeneration ratio. The Planner selects no preprocessing in 86.9% of cases on D2D_{2} and only 26.6% on the heavily defended D1D_{1}, indicating that it intervenes selectively rather than uniformly.

To support reproducibility, we publicly release the complete source code, experiment configurations, and all four annotated CAPTCHA datasets 1^{1}.

References (42)