Blog · Threat intel · · 9 min read · by huntback Research

Rehearsing CVE-2026-88771: inside a PentAGI operator's private NetScaler lab, exposed by its own load balancer

The PentAGI console on 185.136.15[.]2 belongs to an operator who prepares before going to the internet. On the same server, the operator downloaded a NetScaler virtual appliance, ran it under QEMU, configured a Gateway and a load balancer on it, and used it as a test bench for CVE-2026-88771. Alongside the lab, the box kept a census of PaperCut print servers, a short list of Puppet Servers and a saved vSphere page.

The lab is also how the operator's files became visible. The load balancer's backend was a throwaway Python web server started in /tmp, and the load balancer was published on a public port. From 21 November, anyone who opened port 9080 on the server saw the operator's working directory: 112 shell scripts, the PentAGI model configuration, the agent's token bill, target lists and copies of appliance code.

In brief

  • PentAGI on this server talks to its models through a LiteLLM gateway whose roles are mapped to "uncensored" open-weight models. The configuration comments are written in Russian.
  • Between 20 and 21 November the operator built a NetScaler 14.1-72.61 lab on the console server and drove its text console by sending keystrokes through the QEMU monitor and reading screenshots back.
  • The lab was used to test CVE-2026-88771: the scripts restart appliance services and then look for marker files named cve88771_*.
  • A callback collector ran behind a Cloudflare quick tunnel, and the lab tested outbound connections to 77.91.71[.]3, the address that sent the Puppet Server exploit chain we published on 19 November.
  • A PaperCut MF census recorded 487 confirmed PaperCut servers with their build numbers. At least 138 of them carry a school, college or student-printing name in the page title.

Timeline

All times UTC. Where a time comes from a saved third-party page, it is that page's own generation stamp converted to UTC.

TimeEventSource
16 Nov, 07:22Three PaperCut sign-in pages saved within the same minuteq.html, z.html, z2.html
18 Nov, 03:36 to 19 Nov, 05:52The server guesses NetScaler Gateway passwordsOur Puppet Server write-up
18 Nov, 13:14:44A vSphere 6 welcome page and its response headers savedb1, h1
19 Nov, 06:04 to 06:24Puppet Server fingerprinting with the user agent puppet-scan/1.0Puppet Server write-up
20 Nov, 14:57:13A file-sharing transfer holding a NetScaler VPX 14.1-72.61 image is created; the scripts download it into /opt/ns/imgwt_fetch.sh, wt_dl.sh
21 Nov, 04:43:22First request in the lab backend's log: the /tmp listing is served through the lab load balancerbackend.log
21 Nov, 06:19 to 06:22Appliance management scripts read off the lab appliance through its APIaccess times in f.json, g.json
From 21 NovThe backend log records repeated listings of /tmp, including internet scanners probing for /.aws/credentials and /actuator/envbackend.log

The model stack behind the console

config_patched.yaml opens with "PentAGI -> LiteLLM" and maps every PentAGI agent role to one model group with explicit fallbacks:

GroupPentAGI roles (from the operator's comments)Model configured
reason (planner)primary_agent, generator, refiner, adviserglm-5.3-uncensored
exec (executor)pentester, coder, installerkimi-k3.1-pro-uncensored
forge (service text)simple, simple_json, assistant, reflector, enricherdeepseek-v4.1-flash-1017-uncensored
cheapsearcherdeepseek-v4.1-flash-1017-uncensored
code, code2exploit and proof-of-concept codeqwen3-coder-next, then glm-5.3-uncensored
abliteratedlast-resort fallbackmimo-v2.6-flash-abliterated

A LiteLLM callback named pentagi_methodology.methodology_hook runs on every call, and embeddings come from a local Ollama instance. The header comment records the operator's own benchmark of three tool-calling steps: three models passed, one returned 502 errors, and two abliterated models never produced a tool call and were dropped. The benchmark harness is on the server as silk_toolbench.py. Its docstring gives the reason: a model that cannot make three clean tool calls "cannot drive PentAGI".

The operator also exported PentAGI's usage table (q_tok.sql, output in tok.csv):

Agent typeCallsInput tokens
coder226296,879,666
pentester52103,403,181
enricher33767,395,188
summarizer4,08061,105,338
refiner7314,754,525
all 15 types5,492591,348,888

Output came to 27,735,501 tokens. The busiest flow, number 42, used 2,089 calls and 277,751,342 input tokens. The coder role, the one that writes code, consumed half of all input.

A NetScaler on the console server

The lab runs on the console server itself. ns_boot.sh creates a bridge, br-ns0, with two tap interfaces and boots the appliance image under KVM with four virtual CPUs and 4 GB of memory (6 GB in later versions of the script). VNC listens only on localhost.

Before the appliance had a working management address, the operator configured it through its console: ns_cli.sh, ns_pass.sh and ns_route.sh type CLI commands one character at a time through the QEMU monitor, wait, then take a screenshot and save it as PNG so the result can be read. Wait scripts take a screenshot every one to two minutes and hash it to see whether the boot screen has changed. The numbered retries, ns_lb.sh to ns_lb5.sh and ns_cert.py to ns_cert5.sh, read like an agent iterating until a call succeeds. In all, 65 of the 112 shell scripts start with ns_.

Once the management address answered, configuration moved to the appliance's REST API:

StepScriptsResult
Load balancerns_lb.sh, ns_bind.sh, ns_hm.shVirtual server labviphttp in front of a Python web server on the host
Certificatens_cert.py to ns_cert5.shSelf-signed certificate with the subject CN=185.136.15.2, named labcert
Gatewayns_gw.sh to ns_gw3.shVPN virtual server labvpn with a clientless session policy and a working sign-in page
Publishingns_dnat.sh, ns_pub.sh, ns_pub2.sh, patch_start.shPublic ports on the server: 9443 (management GUI), 9080 (load balancer), 9081 (Gateway), 9022 (appliance SSH)
Snapshotns_final.sh, ns_final2.shSaved configuration and a copy of the ready disk under /opt/ns/snap/

The lab then served as the test bench for CVE-2026-88771, the NetScaler flaw we analysed in October. A dozen scripts (fire.sh, fire2.sh, runreal.sh, final_verify.sh, the chk*.sh and auto*.sh family) restart appliance services, wait, and look for a marker file such as /tmp/cve88771_ef60f0de46d9 or /tmp/cve88771_poc3. Others pull appliance management scripts off the lab through its API, and two files hold an older and a newer copy of the same appliance component, the kind of pair used to see what a vendor update changed. The callback side ran on the same server: oob_collector.py on port 30053, exposed through a Cloudflare quick tunnel by start_tunnel.sh, and an egress test on the appliance that tries 1.1.1.1:443, 8.8.8.8:53 and two ports on 77.91.71[.]3.

How the folder got online

ns_lb.sh starts the load balancer's backend with python3 -m http.server 8088 from inside /tmp. Python's built-in server lists the directory it starts in. ns_pub.sh then forwards public port 9080 to the load balancer, which forwards to that backend. The result is a NetScaler, configured by the attacker, serving the attacker's own /tmp to the internet.

The backend's log shows the listing in use from 04:43:22 on 21 November onward. Among the visitors were ordinary internet scanners asking for /.svn/entries, /phpinfo.php and /.aws/credentials.

The PaperCut census

The second workload is PaperCut MF, the print management server. CVE-2026-81578, an authentication bypass into the PaperCut configuration editor that chains to remote code execution with CVE-2026-82078, is in CISA's Known Exploited Vulnerabilities catalogue. Fixed releases are 26.0.5, 25.0.13 and 24.1.10.

FileContentCount
rnd3k.txt, sample3005.txtCandidate ip:port pairs on ports 9191 to 9196; the two lists share 2,993 entries3,000 and 3,005 lines
p12_ver.tsvFingerprint results: host, port, match reason, edition, build number, page title613 rows, 409 hosts, 377 confirmed PaperCut
known_ips.txtExactly the 409 hosts from p12_ver.tsv409 lines
br_ver.tsvA second, separate fingerprint run, mostly on port 9191141 rows, 115 hosts, 110 confirmed
control.txtFive ip:port pairs from the census, kept as a control set5

Each row records why the host was accepted (page title, login form marker and logo together for 398 of the 613 rows in p12_ver.tsv) and the build number shown in the page: 33 distinct builds in one file, 16 in the other. That is a version check, the step before choosing which hosts to attack. At least 138 of the 377 confirmed servers in p12_ver.tsv carry a school, college or student-printing name in their title; the most common titles are "Student Printing", "Trial License", "Office Printing" and "Library Printing". The three sign-in pages saved on 16 November belong to schools.

The other lists

  • pat_hits.txt: nine hosts on port 8140, the Puppet Server port, matching the puppet-scan/1.0 fingerprinting this server ran on 19 November.
  • 445test.txt: one line, ('77.91.71.3', 45688), the record of a test listener on this server receiving a connection from 77.91.71[.]3. The same address is the lab's callback egress target and, in our Puppet Server write-up, the sender of the full CVE-2026-115731 chain.
  • b1 and h1: a vSphere 6 welcome page and its headers from 18 November.

The prefixes 185.136.15[.]0/24 and 77.91.71[.]0/24 already acted as one pool in our captures. This console's files link them again, through the callback port and the SMB test.

Where PentAGI fits

PentAGI is a public framework, and CERT-In lists it among the tools seen in the Crafty Falcon intrusions against India's financial sector (CIAD-2026-0058). This operator's work list is different: NetScaler edge devices, PaperCut servers in schools, Puppet Servers. The framework shows how the work was done; the scripts and lists show what it was for.

What to check

  • NetScaler: apply the fix for CVE-2026-88771, then review the appliance for unexpected files in /tmp and /var/tmp (including names starting cve88771_), emptied log files, changes to /etc/hosts or to trusted certificate bundles, and API file reads from addresses other than your management hosts.
  • PaperCut: run 26.0.5, 25.0.13, 24.1.10 or later, keep ports 9191 and 9192 off the internet, and review configuration editor changes to external user lookup and database settings. Schools using PaperCut for student printing are well represented in this census.
  • Puppet: close port 8140 to the internet and review certificate autosigning, as described in our Puppet Server write-up.
  • Your own labs: a Python http.server started in /tmp behind a published port shares everything in that folder. This operator learned that the hard way.

Indicators

IndicatorRole
185.136.15[.]2PentAGI console, NetScaler lab host, PaperCut census; public lab ports 9080, 9081, 9443, 9022
77.91.71[.]3Callback egress target (ports 30130 and 30053); SMB test source; sender of the CVE-2026-115731 chain
185.136.15[.]0/24, 77.91.71[.]0/24Prefixes acting as one pool (context)
encountered-dresses-swim-skilled.trycloudflare[.]comQuick tunnel for the callback collector
Certificate subject CN=185.136.15.2, name labcertLab Gateway certificate
User agent puppet-scan/1.0Puppet Server fingerprinting
Files /tmp/cve88771_*Test markers used by the operator's scripts