My AI Agents Disagreed About an Exploit. Then They Hacked Their Way to Root
The article describes three experiments where autonomous AI agents exploited vulnerabilities in TryHackMe machines. In one, a password-omission authentication bypass led to cross-user message access and SSH credentials, and in another, a dual-mode Python service allowed unauthenticated code execution and a hardcoded admin password to gain root.
Published on medium.com
What happens when you give artificial intelligence the responsibilities of a penetration tester? I don’t mean simply asking an AI to generate payloads or explain vulnerabilities.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This is a study of autonomous AI agents doing offensive security work, not a report against a live production target. The assessments ran against authorised TryHackMe machines, and the question behind them was not whether an agent could capture a flag but what happens when several agents disagree about the same vulnerability and have to resolve it from evidence.
Three agents took part, each with a distinct role:
- Explorer: investigated targets and tested potential vulnerabilities.
- Validator: challenged findings and attempted independent reproduction.
- Coordinator: directed the assessment and evaluated the evidence.
Two targets were used. Silverpeas (Experiments 005 and 006) was a two-phase assessment: web application reconnaissance and initial access first, then local privilege escalation. Pyrat (Experiment 008) was a single-port Python service that eventually provided a route from unauthenticated access to root. Experiments 005 and 006 are connected phases of the same machine; Experiment 008 is a different target and attack surface, which matters when reading the activity numbers.

Setup
The agents ran inside OpenCode with a custom research harness that captured agent decisions, HTTP activity, findings and session data. They were powered by GLM (glm-5.3-flash:cloud). The study examined how the three roles performed their responsibilities rather than comparing model families; the model identifier is recorded in the setup, and no cross-model comparison was made.
Evidence came from several places, and the report is explicit that they are not interchangeable:
- An HTTP gateway ledger with request methods, URLs, response metadata and saved response bodies.
- Recorded agent findings and decision records.
- The OpenCode SQLite session database, recovered later, holding agent-authored messages, parent-child session relationships and tool records.
The gateway records do not preserve every outgoing request body or the raw SSH/TCP packet stream. Exploit bodies and TCP input/output pairs are therefore sourced to the recorded findings and decisions, while HTTP status codes, redirects and response sizes are corroborated by the gateway ledger. Target IP addresses, passwords, password hashes, session cookies and flag values are omitted throughout.
Finding it
What the activity data showed
Across the three experiments the agents completed their assigned objectives, but the activity patterns differed sharply.


Figure 1. Recorded HTTP gateway activity. These counts do not include all SSH commands or raw TCP interactions.
The HTTP counts alone are misleading. Experiment 006 was mostly SSH and local system commands, and Experiment 008 relied heavily on raw TCP. Neither assessment's activity is adequately represented by HTTP requests alone, which is one reason the study captured agent behaviour rather than relying on conventional request counts.
Experiment 005: the Validator rejected a real vulnerability
The Silverpeas assessment began with reconnaissance. The agents investigated an exposed website, identified a Silverpeas application and started examining its authentication mechanisms.
The Coordinator investigated a password-omission authentication bypass associated with CVE-2024-36042. The initial evidence suggested the application could establish an authenticated session without a password.
The Validator disagreed. During independent testing it encountered HTTP 401 responses and could not reproduce the claimed authenticated access. Its recorded report stated:
"VERDICT: FAIL, claimed bypass NOT reproduced"
The system now held two conflicting conclusions about the same vulnerability: one agent believed the bypass worked, another had evidence suggesting it did not.

Figure 2. Initial FAIL and later PASS were separate Validator investigations, not a single uninterrupted session.
The problem was not necessarily the exploit
The initial validation left an open question: was the vulnerability nonexistent, or was the Validator testing the authenticated session incorrectly? The evidence indicated that session initialisation might not have been completed before the Validator attempted to access protected resources. Rather than treating the rejection as final, the agents revisited the evidence.
A subsequent independent validation session reproduced the bypass using a different account, and the recorded verdict changed:
"VERDICT: PASS"
The first conclusion was wrong, but the system did not settle on it permanently. Additional testing resolved the disagreement, which is the behaviour the study is really about: the ability to challenge an interpretation and revise it when stronger evidence appears.
Exploitation
Step 1: the password-omission request
The captured finding c41f419e records the actual POST body used by the Coordinator. The password field was not blank; it was absent:

The recorded response redirected to /silverpeas/Main//look/jsp/MainFrame.jsp and issued a JSESSIONID (value withheld). By contrast, the recorded invalid-password control redirected to /silverpeas/Login?ErrorCode=1&DomainId=0. The raw ledger does not preserve the complete outgoing request header/body stream, so the request line and content-type provide protocol context; the POST path and body are verbatim from finding c41f419e.
The initial Validator retest mattered precisely because a 302 response alone was not proof. Its requests 000065 to 000070 returned 401 on protected REST calls, and the recorder did not provide the session replay needed to establish authenticated access. That test ended in FAIL not because the vulnerability had been disproven, but because the Validator could not reproduce a valid authenticated session.
A subsequent Validator session supplied discriminating evidence using a different account:

These four requests support the later PASS verdict (107917a8). The earlier 401s may reflect a session-handling difference in the validation procedure; the records do not establish a single definitive cause.
Step 2: Silvermail message disclosure to SSH
The independently recorded Silvermail finding 17b607c7 documents the next step. After passwordless authentication as scr1ptkiddy, the Validator read message ID 6, which was not addressed to that account. Request 000086 returned HTTP 200 with a 13,795-byte saved response. The message contained the line Username: tim and an SSH password (redacted). The Validator then opened its own SSH connection as tim, confirmed uid=1001(tim), and verified the user flag.
This is a real two-vulnerability chain: CVE-2024-36042 authentication bypass → CVE-2023-47323 Silvermail cross-user message access → exposed SSH credentials → user-level access. The SSH execution is documented in the Validator's finding; it is not an HTTP gateway capture.

Figure 3. The recorded initial-access chain; credential and flag values are intentionally withheld.
The full chain for initial access was:
Website reconnaissance → Silverpeas authentication bypass → Silvermail credential exposure → SSH access → User flag
The Validator independently checked the SSH access and confirmed the user-level objective. The agents also investigated an alternative deployment-based attack path, but that route did not produce a demonstrated successful exploit. Exploring a technique is not the same as proving it worked.
Step 3: Experiment 006, from user to root
Experiment 006 continued from the SSH foothold established in Experiment 005, with privilege escalation as the objective. Starting as the Linux user tim, the agents enumerated locally and identified membership in the adm group, which allowed access to certain system logs. Those logs contained an exposed password. Further investigation uncovered a password hash associated with another user, tyler, and offline verification established that the exposed password matched the stored hash. The agents then authenticated as tyler, identified sudo privileges and obtained root.
SSH as tim → Readable system logs → Exposed credential → Offline password-hash verification → SSH as tyler → Sudo → Root
The independent Validator finding 2aa8d22e records concrete command results from fresh SSH sessions, not just a claimed root flag. Selected excerpts, with the credential omitted:

The Coordinator's decision record also identifies an exposed password in /var/log/auth.log.2. The Validator independently located the tyler password hash in the installer data and performed offline verification of the recovered password against that hash:

The Python call above preserves the function and boolean result recorded in finding 2aa8d22e; its argument values are redacted placeholders, not the literal executed source line. No online password-guessing sequence is claimed.

The Validator explicitly reproduced the root UID result using sudo -S and confirmed the flag. The observed sudo command succeeding is stronger evidence than assuming sudo rights from group membership alone. The experiment's single recorded HTTP request was a target-availability check, not the privilege-escalation transport.

Figure 4. Verified tim → exposed credential and hash → tyler → sudo → root chain.
What matters here is not only that a path to root was found but how the Validator treated the Coordinator's claims. In the recovered OpenCode conversation the Validator reported:
"All four coordinator claims independently reproduced by my own fresh SSH sessions"
Independent verification requires more than repeating another agent's conclusion; the Validator used its own sessions to reproduce the critical steps. That is the second behavioural observation: the agents could separate an exploitation claim from the evidence required to verify it.
Step 4: Experiment 008, raw TCP on port 8000
On TryHackMe's Pyrat machine, port 8000 appeared to behave like an HTTP service, but conventional HTTP interactions returned an unusual response suggesting a more basic connection. The Explorer investigated and identified a dual-mode Python service, describing the target as:
"single-port, dual-mode Python 3.11.2"
Raw TCP interaction exposed Python execution capabilities running under the www-data account. That gave an initial execution foothold, but not root. The agents continued investigating the application's behaviour and runtime objects, discovered an administrative authentication path through application introspection, recovered the required credential and reached a privileged shell.
Port 8000 → Raw TCP interaction → Python execution → www-data access → Application introspection → Administrative authentication → Root
The saved HTTP response for gateway request 000001 returned HTTP 200 with the text Try a more basic connection!. The decisive discovery came from raw TCP probes recorded in Explorer finding d1d4be8a, not from ordinary HTTP requests:

These are recorded input/output pairs. They demonstrate Python error reporting and exec-style execution of multiple statements on the socket. Further inspection established that the unauthenticated execution context was uid=33(www-data), not root (finding 1d6ca1bd).
Step 5: the administrative branch that reached root
The Explorer examined runtime objects and the service's get_admin and switch_case code. Recorded finding 1a99285b describes the vulnerability: a new connection can enter the admin branch before the service drops privileges; the administrative password is hardcoded in the service and recoverable from the running Python code objects. A successfully authenticated socket is added to the service's admins collection, so the subsequent shell command is processed while the child still has root privileges.
The Validator independently derived the credential from get_admin.code.co_consts and corroborated it with disassembly, then reproduced the interaction on a fresh connection (d53ec11b):

The credential and flag values are intentionally omitted; the protocol messages and UID result are recorded in the finding. The Validator also confirmed that an unauthenticated www-data session could not access /root, while the authenticated privileged shell could read /root/root.txt. Python execution was the foothold, but the flawed administrative privilege boundary was the escalation to root.

Figure 5. Unauthenticated Python execution, code introspection, administrative authentication, and verified root shell.
The Explorer's final report stated:
"both flags obtained, independently verified on fresh connections"
The recovered OpenCode database also contained a separate Validator session titled Validator verifies full chain, with its own tool activity and verification report, which is evidence beyond the Explorer's final statement.
The target also experienced intermittent connection timeouts. The available evidence does not establish their cause, so they are not attributed to rate limiting or a defensive control.
Looking inside the agent conversations
Initially the study had decision logs, HTTP records and finding summaries. Those were useful but not complete agent conversations. Recovering the OpenCode SQLite session database gave access to actual agent-authored messages, parent-child session relationships and tool records. The relevant session trees contained:

Figure 6. Agent message records from the recovered OpenCode database. Message rows are not equivalent to complete conversational turns.
This replaced reconstruction of what the agents might have said with statements they actually recorded. It also exposed a limitation: research-event logs and OpenCode conversations are separate evidence sources and must be correlated before making detailed claims about who influenced which decision and when.
Root cause
Two distinct root causes appear in the report.
Silverpeas (CVE-2024-36042). The application established an authenticated session when the password field was omitted from the login POST entirely, rather than when it was blank. The recorded response redirected to /silverpeas/Main//look/jsp/MainFrame.jsp and issued a JSESSIONID, while an invalid-password control redirected to /silverpeas/Login?ErrorCode=1&DomainId=0. The report does not describe the server-side code, so the precise validation mistake is not stated; what the evidence shows is that absence of the parameter was treated differently from a wrong value.
Pyrat. The service checks the administrative password and adds the socket to its admins collection on a new connection before dropping privileges. The administrative password is hardcoded in the service and recoverable from the running Python code objects via get_admin.code.co_consts. Because the authenticated socket is registered before the privilege drop, the subsequent shell command runs while the child still has root. The unauthenticated execution context, by contrast, is uid=33(www-data).
On the Silverpeas side, the existing defence that should have caught the bypass was the Validator's own retest, and it initially failed for a procedural reason: the session was not initialised before protected REST calls were attempted, producing 401s on requests 000065 to 000070. A 302 alone was not proof, and the recorder did not preserve the session replay needed to establish authenticated access.
Impact
On Silverpeas, the chain gave an unauthenticated attacker an authenticated session as scr1ptkiddy, cross-user access to Silvermail message ID 6 (a 13,795-byte response containing Username: tim and an SSH password), and then SSH access as tim with uid=1001(tim) and the user flag. From there, adm-group log access exposed a password that matched tyler's stored hash, and sudo took the attacker to root.
On Pyrat, an unauthenticated attacker reached Python execution as www-data, recovered the hardcoded administrative credential through code introspection, authenticated, and obtained a root shell able to read /root/root.txt.
The report is careful about what this demonstrates. These experiments show successful exploitation and specific examples of independent validation and correction. They do not establish that a multi-agent system is universally more effective than a single-agent system; that would require controlled comparisons with equivalent targets, starting conditions, time limits, tool access and reporting requirements. Capturing flags does not mean the agents performed a complete or professionally sufficient penetration test. A successful outcome is one measurement; the quality of the decisions leading to it is another.
Fix
The report does not describe any remediation applied to either target, so nothing here is a record of a change that was made. What the evidence points to:
- Silverpeas login handling: treat a missing password parameter the same as an invalid one. The recorded behaviour shows the two paths diverging, with the omitted field producing a session and a redirect to MainFrame.jsp while a wrong password produced the ErrorCode=1 redirect.
- Pyrat privilege boundary: perform administrative authentication and the admins-collection registration after privileges are dropped, so an authenticated socket cannot execute with root. Do not hardcode the administrative password in the service, since it is recoverable from code objects at runtime.
- Validation procedure: initialise the session before testing protected resources, and keep enough of the session replay that a 302 can be distinguished from a genuinely authenticated session. The initial FAIL on Silverpeas came from the Validator being unable to reproduce a valid authenticated session, not from the vulnerability being absent.
Variants to test
- Omitted versus blank credential fields on other login endpoints. Submit the login POST with the password parameter removed entirely, then with it present but empty, and compare redirects, status codes and cookies. A positive result is a session cookie and a redirect to an authenticated page on the omitted variant while the blank variant is rejected.
- Cross-user message access in messaging components. Authenticate as a low-privilege account and request message IDs belonging to other users. A positive result is HTTP 200 with a body containing content addressed to a different account, as with message ID 6 here.
- Credentials in group-readable logs. With an account in a group such as adm, read rotated logs like /var/log/auth.log.2 and look for passwords. A positive result is a plaintext credential that can be matched offline against a hash found elsewhere on the host.
- Dual-mode services on a single port. Send a plain HTTP request, then open a raw TCP connection and send Python statements. A positive result is an HTTP response such as Try a more basic connection! followed by Python error output and exec-style evaluation on the raw socket.
- Privilege drop ordering in admin branches. On a service with an administrative path, connect fresh and authenticate before any privilege drop occurs, then issue a shell command. A positive result is a command executed with a UID higher than the unauthenticated context (here uid=33(www-data) versus root).
- Secrets in code objects. Where Python execution is available, inspect function constants such as get_admin.code.co_consts and corroborate with disassembly. A positive result is a hardcoded credential recovered without any online guessing.
What happened, in plain words
This is a study of artificial intelligence programs doing the work of a penetration tester. A penetration tester is a security professional who is paid to break into a computer system on purpose, with permission, to find out how an attacker could get in. The point of the study was not simply to see whether an AI could break in. The point was to watch what happens when several AI programs disagree with each other about whether a break-in works, and then have to settle the argument using evidence.
Three AI programs took part, each with a job:
- Explorer: looked at the target and tried things that might be vulnerabilities.
- Validator: doubted the Explorer's and Coordinator's claims and tried to reproduce them independently.
- Coordinator: directed the whole assessment and judged the evidence.
Two practice targets were used. **Silverpeas is a web application used as a practice target here. It was used for Experiments 005 and 006, which are two connected phases on the same machine: first getting in from the outside, then climbing from an ordinary user account to the most powerful account on the machine. Pyrat was a different practice machine, used for Experiment 008, running an unusual Python service on a single network port. Python is a popular programming language; a service is a program that waits for connections and answers them.

A few words you will meet constantly below. A server is a computer that answers requests from other computers. A port is a numbered doorway on a computer; a service listens on a port, and clients connect to it. HTTP is the language browsers and web servers speak. A request is a message asking for something; a response is the answer. A status code is a three-digit number in the response saying how it went: 200 means fine, 302 means "look somewhere else", 401 means "you are not allowed in". A cookie is a small piece of data a server hands to your browser so it can recognise you on the next request; a session is the server-side memory that goes with that cookie. A flag is a secret string planted on a practice machine to prove you got there.
The setup
The agents ran inside a program called OpenCode, which is an environment for running AI agents, together with a custom research harness. A harness is extra scaffolding built around a program to record what it does. The harness captured the agents' decisions, their HTTP activity, their findings and their session data. The agents were powered by a model identified as GLM (glm-5.3-flash:cloud). The study looked at how the three roles carried out their responsibilities; it did not compare different AI models against each other.
Evidence came from several places, and the report is careful to say they are not interchangeable:
- An HTTP gateway ledger: a log kept by a proxy that sits between the agents and the target, recording request methods, URLs, response metadata and saved response bodies. An HTTP gateway ledger: a log recording request methods, URLs, response metadata and saved response bodies.
- Recorded agent findings and decision records: the agents' own written conclusions.
- The OpenCode SQLite session database, recovered later. SQLite is a small database stored in a single file. This one held the agents' actual messages, the parent-child relationships between sessions, and records of the tools they used.
The gateway records do not preserve every outgoing request body, nor the raw stream of packets for SSH and TCP. SSH is the standard way to log in to a remote computer's command line securely. TCP is the underlying transport that carries most internet traffic, including HTTP and SSH. So the exploit request bodies and the TCP input/output pairs in this article come from the agents' recorded findings and decisions, while HTTP status codes, redirects and response sizes are backed by the gateway ledger. Target IP addresses, passwords, password hashes, session cookies and flag values are left out throughout. A password hash is the scrambled form of a password that a system stores instead of the password itself.
Finding it
What the activity data showed
Across the three experiments the agents completed their assigned objectives, but the activity patterns differed sharply.


Figure 1. Recorded HTTP gateway activity. These counts do not include all SSH commands or raw TCP interactions.
The HTTP counts alone are misleading. Experiment 006 was mostly SSH and local system commands, and Experiment 008 relied heavily on raw TCP. Neither assessment's activity is adequately represented by HTTP requests alone, which is one reason the study captured agent behaviour rather than relying on conventional request counts. Think of counting only the letters a person posts and ignoring their phone calls: you would get a very wrong picture of how much they communicated.
Experiment 005: the Validator rejected a real vulnerability
The Silverpeas assessment began with reconnaissance. Reconnaissance means looking around before attacking: finding out what software is running, which pages exist, and how login works. The agents investigated an exposed website, identified a Silverpeas application and started examining its authentication mechanisms. Authentication is the process of proving who you are, normally with a username and password.
The Coordinator investigated a password-omission authentication bypass associated with CVE-2024-36042. A bypass is a way around a security check. Password omission means leaving the password field out of the login request entirely, rather than sending it empty. CVE stands for Common Vulnerabilities and Exposures: a public catalogue where each known vulnerability gets an identifier such as CVE-2024-36042, so people can refer to the same flaw unambiguously. The initial evidence suggested the application could establish an authenticated session without a password.
The Validator disagreed. During independent testing it encountered HTTP 401 responses and could not reproduce the claimed authenticated access. Its recorded report stated:
"VERDICT: FAIL, claimed bypass NOT reproduced"
The system now held two conflicting conclusions about the same vulnerability: one agent believed the bypass worked, another had evidence suggesting it did not.

Figure 2. Initial FAIL and later PASS were separate Validator investigations, not a single uninterrupted session.
The problem was not necessarily the exploit
The initial validation left an open question: was the vulnerability nonexistent, or was the Validator testing the authenticated session incorrectly? The evidence indicated that session initialisation might not have been completed before the Validator attempted to access protected resources. In plain terms: the Validator may have been knocking on an inner door before it had properly collected the badge at reception. Rather than treating the rejection as final, the agents revisited the evidence.
A subsequent independent validation session reproduced the bypass using a different account, and the recorded verdict changed:
"VERDICT: PASS"
The first conclusion was wrong, but the system did not settle on it permanently. Additional testing resolved the disagreement, which is the behaviour the study is really about: the ability to challenge an interpretation and revise it when stronger evidence appears.
Exploitation
Step 1: the password-omission request
The captured finding c41f419e records the actual POST body used by the Coordinator. POST is the HTTP method used to send data to a server, typically when submitting a form. The body is the part of the request that carries that data. The password field was not blank; it was absent:

The recorded response redirected to /silverpeas/Main//look/jsp/MainFrame.jsp and issued a JSESSIONID (value withheld). By contrast, the recorded invalid-password control redirected to /silverpeas/Login?ErrorCode=1&DomainId=0. The raw ledger does not preserve the complete outgoing request header/body stream, so the request line and content-type provide protocol context; the POST path and body are verbatim from finding c41f419e.
What this means, piece by piece. A redirect is the server saying "the thing you want is over there" and pointing the browser at a different address; it is what a 302 status code does. /silverpeas/Main//look/jsp/MainFrame.jsp is the address of the application's main frame, the page you see once you are logged in. JSESSIONID is the name of the cookie Java web applications typically use to identify a logged-in session; the actual value is withheld here because a live session cookie is as good as a password. The control is the comparison case: the same request with a wrong password, which redirected to /silverpeas/Login?ErrorCode=1&DomainId=0, the login page with an error code attached. So the two paths visibly diverged: no password field at all led to the logged-in page, while a wrong password led back to the login page with an error. Content-type is a header saying what kind of data the body contains.
The initial Validator retest mattered precisely because a 302 response alone was not proof. Its requests 000065 to 000070 returned 401 on protected REST calls, and the recorder did not provide the session replay needed to establish authenticated access. REST here means the application's programming interface: the URLs that programs, rather than people, use to fetch and change data. A 401 means the server did not accept the caller as logged in. The Validator had a redirect suggesting success, but when it then tried to use the session on protected endpoints it was refused, and the recording did not contain enough of the session exchange to prove a real login. That test ended in FAIL not because the vulnerability had been disproven, but because the Validator could not reproduce a valid authenticated session.
A subsequent Validator session supplied discriminating evidence using a different account:

These four requests support the later PASS verdict (107917a8). The earlier 401s may reflect a session-handling difference in the validation procedure; the records do not establish a single definitive cause. In other words, a later Validator session using a different account supplied evidence that supported the PASS verdict.
Step 2: Silvermail message disclosure to SSH
The independently recorded Silvermail finding 17b607c7 documents the next step. Silvermail is the messaging component inside Silverpeas. After passwordless authentication as scr1ptkiddy, the Validator read message ID 6, which was not addressed to that account. Request 000086 returned HTTP 200 with a 13,795-byte saved response. The message contained the line Username: tim and an SSH password (redacted). The Validator then opened its own SSH connection as tim, confirmed uid=1001(tim), and verified the user flag.
This is a real two-vulnerability chain: CVE-2024-36042 authentication bypass → CVE-2023-47323 Silvermail cross-user message access → exposed SSH credentials → user-level access. The SSH execution is documented in the Validator's finding; it is not an HTTP gateway capture.
Unpacking that. Cross-user message access means one user can read another user's messages: here, the account scr1ptkiddy could read a message belonging to someone else. Credentials is the general word for the things that prove identity, such as usernames and passwords. uid=1001(tim) is how Linux reports which user a command is running as: the number 1001 is the account's internal identifier and tim is its name. The user flag is the proof-of-access string for the ordinary user account, as opposed to the root flag for the administrator account. A chain is when one small flaw is used to reach the next, like a row of dominoes.

Figure 3. The recorded initial-access chain; credential and flag values are intentionally withheld.
The full chain for initial access was:
Website reconnaissance → Silverpeas authentication bypass → Silvermail credential exposure → SSH access → User flag
The Validator independently checked the SSH access and confirmed the user-level objective. The agents also investigated an alternative deployment-based attack path, but that route did not produce a demonstrated successful exploit. Exploring a technique is not the same as proving it worked.
Step 3: Experiment 006, from user to root
Experiment 006 continued from the SSH foothold established in Experiment 005, with privilege escalation as the objective. Privilege escalation means going from a low-powered account to a more powerful one. On Linux, root is the all-powerful administrator account; a foothold is a first small way in. Starting as the Linux user tim, the agents enumerated locally and identified membership in the adm group, which allowed access to certain system logs. Enumeration means listing what is on the machine: users, groups, files, permissions. A group is a bundle of users who share permissions, and adm is a standard Linux group whose members may read system logs. Those logs contained an exposed password. Further investigation uncovered a password hash associated with another user, tyler, and offline verification established that the exposed password matched the stored hash. Offline verification means checking a guessed password against a stored hash on your own machine, without sending login attempts to the target. The agents then authenticated as tyler, identified sudo privileges and obtained root. sudo is the Linux command that lets a permitted user run a command as root.
SSH as tim → Readable system logs → Exposed credential → Offline password-hash verification → SSH as tyler → Sudo → Root
The independent Validator finding 2aa8d22e records concrete command results from fresh SSH sessions, not just a claimed root flag. Selected excerpts, with the credential omitted:

The Coordinator's decision record also identifies an exposed password in /var/log/auth.log.2. The Validator independently located the tyler password hash in the installer data and performed offline verification of the recovered password against that hash:

/var/log/auth.log.2 is a rotated authentication log: Linux writes login events to /var/log/auth.log, and when that file grows it is renamed with a number, so .2 is an older copy. Installer data means files left behind by whatever set the machine up, which sometimes still contain account details.
The Python call above preserves the function and boolean result recorded in finding 2aa8d22e; its argument values are redacted placeholders, not the literal executed source line. No online password-guessing sequence is claimed. A boolean is simply a true-or-false value. Online guessing would mean firing login attempts at the live service; the report explicitly says that is not what happened.

The Validator explicitly reproduced the root UID result using sudo -S and confirmed the flag. The observed sudo command succeeding is stronger evidence than assuming sudo rights from group membership alone. The experiment's single recorded HTTP request was a target-availability check, not the privilege-escalation transport. In other words, the only web request in this phase was a "are you up?" ping; the actual escalation happened over SSH.

Figure 4. Verified tim → exposed credential and hash → tyler → sudo → root chain.
What matters here is not only that a path to root was found but how the Validator treated the Coordinator's claims. In the recovered OpenCode conversation the Validator reported:
"All four coordinator claims independently reproduced by my own fresh SSH sessions"
Independent verification requires more than repeating another agent's conclusion; the Validator used its own sessions to reproduce the critical steps. That is the second behavioural observation: the agents could separate an exploitation claim from the evidence required to verify it.
Step 4: Experiment 008, raw TCP on port 8000
On TryHackMe's Pyrat machine, port 8000 appeared to behave like an HTTP service, but conventional HTTP interactions returned an unusual response suggesting a more basic connection. The Explorer investigated and identified a dual-mode Python service, describing the target as:
"single-port, dual-mode Python 3.11.2"
Dual-mode means the same port answers two different kinds of conversation: ordinary HTTP, and something simpler underneath. Python 3.11.2 is the version of the Python interpreter the service runs on. Raw TCP interaction exposed Python execution capabilities running under the www-data account. www-data is the low-privileged account that web server software usually runs as, so code running there can do some things but not take over the machine. That gave an initial execution foothold, but not root. The agents continued investigating the application's behaviour and runtime objects, discovered an administrative authentication path through application introspection, recovered the required credential and reached a privileged shell. Runtime objects are the live data structures a running program holds in memory. Introspection means a program (or an attacker) looking inside those structures to see what they contain. A shell is a command line on the target.
Port 8000 → Raw TCP interaction → Python execution → www-data access → Application introspection → Administrative authentication → Root
The saved HTTP response for gateway request 000001 returned HTTP 200 with the text Try a more basic connection!. The decisive discovery came from raw TCP probes recorded in Explorer finding d1d4be8a, not from ordinary HTTP requests:

These are recorded input/output pairs. They demonstrate Python error reporting and exec-style execution of multiple statements on the socket. exec-style execution means the service takes text sent to it and runs it as Python code. Further inspection established that the unauthenticated execution context was uid=33(www-data), not root (finding 1d6ca1bd). Unauthenticated means without logging in at all.
Step 5: the administrative branch that reached root
The Explorer examined runtime objects and the service's get_admin and switch_case code. Recorded finding 1a99285b describes the vulnerability: a new connection can enter the admin branch before the service drops privileges; the administrative password is hardcoded in the service and recoverable from the running Python code objects. A successfully authenticated socket is added to the service's admins collection, so the subsequent shell command is processed while the child still has root privileges.
This is the heart of the Pyrat flaw, so it is worth slowing down. A branch is a path through a program's logic, chosen by a condition such as "is this user an admin?". Dropping privileges means deliberately switching to a less powerful account after startup, a standard safety measure: start as root to bind the port, then become www-data so that a bug cannot hand out root. Hardcoded means the password is written directly into the program's source rather than stored safely elsewhere. Code objects are Python's internal representation of compiled functions, and they keep their constant values, including strings, at runtime. The admins collection is the service's in-memory list of connections that have authenticated as administrators. The ordering bug is that the check and the registration happen before the privilege drop, so the authenticated connection still carries root when it later runs a command.
The Validator independently derived the credential from get_admin.code.co_consts and corroborated it with disassembly, then reproduced the interaction on a fresh connection (d53ec11b):

get_admin.__code__.co_consts is Python's way of reaching the constants belonging to the get_admin function: the tuple of fixed values the compiled function holds. Disassembly means converting compiled code back into a readable list of instructions to confirm what it does. The credential and flag values are intentionally omitted; the protocol messages and UID result are recorded in the finding. The Validator also confirmed that an unauthenticated www-data session could not access /root, while the authenticated privileged shell could read /root/root.txt. /root is root's home directory, and /root/root.txt is where the root flag sits. Python execution was the foothold, but the flawed administrative privilege boundary was the escalation to root.

Figure 5. Unauthenticated Python execution, code introspection, administrative authentication, and verified root shell.
The Explorer's final report stated:
"both flags obtained, independently verified on fresh connections"
The recovered OpenCode database also contained a separate Validator session titled Validator verifies full chain, with its own tool activity and verification report, which is evidence beyond the Explorer's final statement.
The target also experienced intermittent connection timeouts. The available evidence does not establish their cause, so they are not attributed to rate limiting or a defensive control. Rate limiting is a defence that deliberately slows or blocks clients who send too many requests.
Looking inside the agent conversations
Initially the study had decision logs, HTTP records and finding summaries. Those were useful but not complete agent conversations. Recovering the OpenCode SQLite session database gave access to actual agent-authored messages, parent-child session relationships and tool records. The relevant session trees contained:

Figure 6. Agent message records from the recovered OpenCode database. Message rows are not equivalent to complete conversational turns.
This replaced reconstruction of what the agents might have said with statements they actually recorded. It also exposed a limitation: research-event logs and OpenCode conversations are separate evidence sources and must be correlated before making detailed claims about who influenced which decision and when.
Root cause
Two distinct root causes appear in the report. A root cause is the underlying mistake that makes a vulnerability possible, as opposed to its symptoms.
Silverpeas (CVE-2024-36042). The application established an authenticated session when the password field was omitted from the login POST entirely, rather than when it was blank. The recorded response redirected to /silverpeas/Main//look/jsp/MainFrame.jsp and issued a JSESSIONID, while an invalid-password control redirected to /silverpeas/Login?ErrorCode=1&DomainId=0. The report does not describe the server-side code, so the precise validation mistake is not stated; what the evidence shows is that absence of the parameter was treated differently from a wrong value. A parameter is a named piece of data in a request, such as password=...; omitting it is not the same as sending it empty, and this application apparently confused the two.
Pyrat. The service checks the administrative password and adds the socket to its admins collection on a new connection before dropping privileges. The administrative password is hardcoded in the service and recoverable from the running Python code objects via get_admin.code.co_consts. Because the authenticated socket is registered before the privilege drop, the subsequent shell command runs while the child still has root. The unauthenticated execution context, by contrast, is uid=33(www-data).
On the Silverpeas side, the existing defence that should have caught the bypass was the Validator's own retest, and it initially failed for a procedural reason: the session was not initialised before protected REST calls were attempted, producing 401s on requests 000065 to 000070. A 302 alone was not proof, and the recorder did not preserve the session replay needed to establish authenticated access.
Impact
Impact is what an attacker could actually do with the flaw. On Silverpeas, the chain gave an unauthenticated attacker an authenticated session as scr1ptkiddy, cross-user access to Silvermail message ID 6 (a 13,795-byte response containing Username: tim and an SSH password), and then SSH access as tim with uid=1001(tim) and the user flag. From there, adm-group log access exposed a password that matched tyler's stored hash, and sudo took the attacker to root.
On Pyrat, an unauthenticated attacker reached Python execution as www-data, recovered the hardcoded administrative credential through code introspection, authenticated, and obtained a root shell able to read /root/root.txt.
The report is careful about what this demonstrates. These experiments show successful exploitation and specific examples of independent validation and correction. They do not establish that a multi-agent system is universally more effective than a single-agent system; that would require controlled comparisons with equivalent targets, starting conditions, time limits, tool access and reporting requirements. Capturing flags does not mean the agents performed a complete or professionally sufficient penetration test. A successful outcome is one measurement; the quality of the decisions leading to it is another.
Fix
The report does not describe any remediation applied to either target, so nothing here is a record of a change that was made. Remediation means the repair. What the evidence points to:
- Silverpeas login handling: treat a missing password parameter the same as an invalid one. The recorded behaviour shows the two paths diverging, with the omitted field producing a session and a redirect to MainFrame.jsp while a wrong password produced the ErrorCode=1 redirect.
- Pyrat privilege boundary: perform administrative authentication and the admins-collection registration after privileges are dropped, so an authenticated socket cannot execute with root. Do not hardcode the administrative password in the service, since it is recoverable from code objects at runtime.
- Validation procedure: initialise the session before testing protected resources, and keep enough of the session replay that a 302 can be distinguished from a genuinely authenticated session. The initial FAIL on Silverpeas came from the Validator being unable to reproduce a valid authenticated session, not from the vulnerability being absent.
Variants to test
These are follow-up checks a reader could run on their own authorised systems. A variant is a related version of the same idea.
- Omitted versus blank credential fields on other login endpoints. Submit the login POST with the password parameter removed entirely, then with it present but empty, and compare redirects, status codes and cookies. A positive result is a session cookie and a redirect to an authenticated page on the omitted variant while the blank variant is rejected.
- Cross-user message access in messaging components. Authenticate as a low-privilege account and request message IDs belonging to other users. A positive result is HTTP 200 with a body containing content addressed to a different account, as with message ID 6 here.
- Credentials in group-readable logs. With an account in a group such as adm, read rotated logs like /var/log/auth.log.2 and look for passwords. A positive result is a plaintext credential that can be matched offline against a hash found elsewhere on the host. Plaintext means not encrypted or hashed: readable as-is.
- Dual-mode services on a single port. Send a plain HTTP request, then open a raw TCP connection and send Python statements. A positive result is an HTTP response such as Try a more basic connection! followed by Python error output and exec-style evaluation on the raw socket.
- Privilege drop ordering in admin branches. On a service with an administrative path, connect fresh and authenticate before any privilege drop occurs, then issue a shell command. A positive result is a command executed with a UID higher than the unauthenticated context (here uid=33(www-data) versus root).
- Secrets in code objects. Where Python execution is available, inspect function constants such as get_admin.code.co_consts and corroborate with disassembly. A positive result is a hardcoded credential recovered without any online guessing.
Glossary
- 302: an HTTP status code meaning the requested thing is elsewhere; the server sends a redirect.
- 401: an HTTP status code meaning the request was not authenticated, so access is refused.
- adm: a standard Linux group whose members may read certain system logs.
- Authentication: proving who you are, usually with a username and password.
- Boolean: a value that is either true or false.
- Branch: a path through a program's logic chosen by a condition.
- Bypass: a way around a security check.
- Chain: a sequence where one flaw is used to reach the next.
- Code object: Python's internal compiled form of a function, which keeps its constant values at runtime.
- Content-type: an HTTP header saying what kind of data a request or response body contains.
- Control: the comparison case in a test, such as a deliberately wrong password.
- Cookie: a small piece of data a server gives a browser so it can recognise it later.
- Coordinator: the agent that directed the assessment and judged the evidence.
- Credentials: the things that prove identity, such as usernames and passwords.
- Cross-user message access: a flaw letting one user read messages belonging to another.
- CVE: Common Vulnerabilities and Exposures, a public catalogue giving each known vulnerability an identifier.
- Disassembly: converting compiled code back into a readable list of instructions.
- Dropping privileges: deliberately switching a running program to a less powerful account.
- Dual-mode: a service that answers two different kinds of conversation on the same port.
- Enumeration: listing what exists on a machine, such as users, groups, files and permissions.
- exec-style execution: taking text and running it as code.
- Explorer: the agent that investigated targets and tried potential vulnerabilities.
- Flag: a secret string planted on a practice machine to prove access.
- Foothold: a first, limited way into a system.
- Group: a bundle of users who share permissions.
- Hardcoded: written directly into a program's source rather than stored safely elsewhere.
- Harness: extra scaffolding built around a program to record what it does.
- Hash: the scrambled form of a password that systems store instead of the password itself.
- HTTP: the language browsers and web servers use to exchange requests and responses.
- Impact: what an attacker could actually do with a flaw.
- Installer data: files left behind by whatever set the machine up.
- Introspection: looking inside a running program's data structures to see what they contain.
- JSESSIONID: the cookie name Java web applications typically use to identify a session.
- Offline verification: checking a password against a stored hash locally, without sending login attempts to the target.
- OpenCode: the environment in which the AI agents ran.
- Parameter: a named piece of data in a request, such as a password field.
- Password omission: leaving the password field out of a login request entirely, rather than sending it empty.
- Plaintext: not encrypted or hashed; readable as-is.
- Port: a numbered doorway on a computer where a service listens.
- POST: the HTTP method used to send data to a server, typically a form submission.
- Privilege escalation: going from a low-powered account to a more powerful one.
- Proxy: a middleman program that forwards traffic and can record it.
- Python: a popular programming language.
- Rate limiting: a defence that slows or blocks clients sending too many requests.
- Reconnaissance: looking around a target before attacking, to learn what it runs and how it is built.
- Redirect: a server telling the client to go to a different address.
- Remediation: the repair of a vulnerability.
- Request: a message asking a server for something.
- Response: the server's answer to a request.
- REST: the style of web interface that programs use to fetch and change data over HTTP.
- Root: the all-powerful administrator account on Linux.
- Root cause: the underlying mistake that makes a vulnerability possible.
- Runtime objects: the live data structures a running program holds in memory.
- Server: a computer that answers requests from other computers.
- Service: a program that waits for connections on a port and answers them.
- Session: the server-side memory that goes with a cookie, tracking a logged-in user.
- Shell: a command line on a computer.
- Silvermail: the messaging component inside Silverpeas.
- Silverpeas: a collaboration web application used as a practice target here.
- SQLite: a small database stored in a single file.
- SSH: the standard way to log in to a remote computer's command line securely.
- Status code: a three-digit number in an HTTP response saying how the request went.
- sudo: the Linux command that lets a permitted user run a command as root.
- TCP: the underlying transport that carries most internet traffic, including HTTP and SSH.
- uid: the numeric identifier Linux uses for a user account.
- Unauthenticated: without logging in at all.
- Validator: the agent that challenged findings and tried to reproduce them independently.
- Variant: a related version of the same idea, used for follow-up testing.
- www-data: the low-privileged account web server software usually runs as.