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.
| Time | Event | Source |
|---|---|---|
| 16 Nov, 07:22 | Three PaperCut sign-in pages saved within the same minute | q.html, z.html, z2.html |
| 18 Nov, 03:36 to 19 Nov, 05:52 | The server guesses NetScaler Gateway passwords | Our Puppet Server write-up |
| 18 Nov, 13:14:44 | A vSphere 6 welcome page and its response headers saved | b1, h1 |
| 19 Nov, 06:04 to 06:24 | Puppet Server fingerprinting with the user agent puppet-scan/1.0 | Puppet Server write-up |
| 20 Nov, 14:57:13 | A file-sharing transfer holding a NetScaler VPX 14.1-72.61 image is created; the scripts download it into /opt/ns/img | wt_fetch.sh, wt_dl.sh |
| 21 Nov, 04:43:22 | First request in the lab backend's log: the /tmp listing is served through the lab load balancer | backend.log |
| 21 Nov, 06:19 to 06:22 | Appliance management scripts read off the lab appliance through its API | access times in f.json, g.json |
| From 21 Nov | The backend log records repeated listings of /tmp, including internet scanners probing for /.aws/credentials and /actuator/env | backend.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:
| Group | PentAGI roles (from the operator's comments) | Model configured |
|---|---|---|
| reason (planner) | primary_agent, generator, refiner, adviser | glm-5.3-uncensored |
| exec (executor) | pentester, coder, installer | kimi-k3.1-pro-uncensored |
| forge (service text) | simple, simple_json, assistant, reflector, enricher | deepseek-v4.1-flash-1017-uncensored |
| cheap | searcher | deepseek-v4.1-flash-1017-uncensored |
| code, code2 | exploit and proof-of-concept code | qwen3-coder-next, then glm-5.3-uncensored |
| abliterated | last-resort fallback | mimo-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 type | Calls | Input tokens |
|---|---|---|
| coder | 226 | 296,879,666 |
| pentester | 52 | 103,403,181 |
| enricher | 337 | 67,395,188 |
| summarizer | 4,080 | 61,105,338 |
| refiner | 73 | 14,754,525 |
| all 15 types | 5,492 | 591,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:
| Step | Scripts | Result |
|---|---|---|
| Load balancer | ns_lb.sh, ns_bind.sh, ns_hm.sh | Virtual server labviphttp in front of a Python web server on the host |
| Certificate | ns_cert.py to ns_cert5.sh | Self-signed certificate with the subject CN=185.136.15.2, named labcert |
| Gateway | ns_gw.sh to ns_gw3.sh | VPN virtual server labvpn with a clientless session policy and a working sign-in page |
| Publishing | ns_dnat.sh, ns_pub.sh, ns_pub2.sh, patch_start.sh | Public ports on the server: 9443 (management GUI), 9080 (load balancer), 9081 (Gateway), 9022 (appliance SSH) |
| Snapshot | ns_final.sh, ns_final2.sh | Saved 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.
| File | Content | Count |
|---|---|---|
rnd3k.txt, sample3005.txt | Candidate ip:port pairs on ports 9191 to 9196; the two lists share 2,993 entries | 3,000 and 3,005 lines |
p12_ver.tsv | Fingerprint results: host, port, match reason, edition, build number, page title | 613 rows, 409 hosts, 377 confirmed PaperCut |
known_ips.txt | Exactly the 409 hosts from p12_ver.tsv | 409 lines |
br_ver.tsv | A second, separate fingerprint run, mostly on port 9191 | 141 rows, 115 hosts, 110 confirmed |
control.txt | Five ip:port pairs from the census, kept as a control set | 5 |
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 thepuppet-scan/1.0fingerprinting 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 from77.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.b1andh1: 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
/tmpand/var/tmp(including names startingcve88771_), emptied log files, changes to/etc/hostsor 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.serverstarted in/tmpbehind a published port shares everything in that folder. This operator learned that the hard way.
Indicators
| Indicator | Role |
|---|---|
185.136.15[.]2 | PentAGI console, NetScaler lab host, PaperCut census; public lab ports 9080, 9081, 9443, 9022 |
77.91.71[.]3 | Callback 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/24 | Prefixes acting as one pool (context) |
encountered-dresses-swim-skilled.trycloudflare[.]com | Quick tunnel for the callback collector |
Certificate subject CN=185.136.15.2, name labcert | Lab Gateway certificate |
User agent puppet-scan/1.0 | Puppet Server fingerprinting |
Files /tmp/cve88771_* | Test markers used by the operator's scripts |