---
title: "Pentesting: How Attacks Work"
description: "A single-page beginner guide to the attacks documented in DAEMONSEC write-ups, DAEMONSEC-VAULT and a supplied report, with interactive diagrams and tool links."
category: pentest-workflow
subcategory: "Foundations"
order: 0
tags: [pentesting, fundamentals, attack-paths, diagrams, active-directory, web, privilege-escalation]
tools: [Nmap, NetExec, Impacket, BloodHound, Certipy, John the Ripper, hashcat, Ligolo-ng]
difficulty: beginner
updated: "2026-10-11"
---
# Pentesting: How Attacks Work
A penetration test asks whether someone can cross a security boundary, shows how that happens, and explains how to fix it. Start with the account, resource and permission at each step. A tool automates a request; understanding why the server accepts it is what lets you choose a useful next step.
This page brings together the attacks and supporting techniques in the reviewed DAEMONSEC machine write-ups, university reports and DAEMONSEC-VAULT notes, plus examples from the supplied 198-page Red Block report. Each entry explains the mechanism, required conditions, evidence and fix. Report examples and partial notes are labelled separately. All examples are for agreed test scope or lab systems.
**How to read:** learn the foundations, choose an attack family, then follow a tool link for commands. Each diagram reads left to right on a wide screen and top to bottom on a phone. Open a step to see what happens there. Everything stays on this page; opening a tool card is optional.
## Foundations: what you are testing
### The boundaries
An application has users and roles; an operating system has process identities and file permissions; a domain has accounts and delegated rights. They overlap without being identical. A web administrator might execute code as a low-privilege service, and a local Windows administrator might have no domain administrative rights.
| Term | Meaning | Common mistake |
|---|---|---|
| Target and scope | The hosts, accounts, techniques and times agreed for the test | Treating a discovered neighbour as automatically included |
| Service and port | A program reachable through a network endpoint | An open port proves reachability, not vulnerability |
| DNS name and vhost | DNS selects an address; HTTP Host routing selects an application | Assuming every app on one IP shows the same site |
| Authentication | Proving an identity with a password, key, ticket or certificate | A successful login does not prove administrator rights |
| Authorisation | Deciding which actions that identity may perform | Mistaking visibility for write or execution permission |
| Session and token | A web session or OS token carries the current identity and rights | A new group membership may need a fresh session/token |
| Vulnerability | A defect or unsafe permission that can cross a boundary | A scanner label is a candidate, not a proven exploit |
| Foothold | Initial useful access, such as a shell or valid account | A shell can still be a restricted service identity |
| Privilege escalation | Gaining a more powerful identity or operation | Local root/SYSTEM is not automatically domain control |
| Lateral movement | Using established access to reach another identity or host | Network access alone does not supply its credentials |
| Pivot | A tunnel, route or proxy through an accessible host | A working tunnel does not bypass the destination's login |
| Impact | The concrete data or action that became accessible | A callback alone does not describe business impact |
### A repeatable workflow
Agree scope and evidence handling, discover hosts, enumerate services, validate a candidate weakness, prove the smallest useful impact, then clean up and report. A new password or route sends you back to enumeration. Real paths loop; they are not a mandatory sequence of exploits.
<figure class="primer-diagram plate corners">
<figcaption>A test is a sequence of questions</figcaption>
<ol>
<li><details><summary>What can I reach?</summary><p>Discover hosts and services; record source, time and route.</p></details></li>
<li><details><summary>What does this identity control?</summary><p>Enumerate a specific resource and verify a suspected boundary failure.</p></details></li>
<li><details><summary>What changed, and how is it fixed?</summary><p>Capture minimal proof, restore changes and explain the corrective action.</p></details></li>
</ol>
</figure>
### Passwords, hashes, challenges and keys
A password is the secret a user supplies. A stored password verifier is a one-way representation used to check guesses. Offline cracking tests candidates against a captured verifier without sending each guess to the target. Online guessing sends attempts to a service and can trigger account lockout.
An **NT hash** is a particular password-derived key used by Windows authentication. **NetNTLMv2** is a challenge-response exchange captured from network authentication: it can be cracked or relayed under the right conditions, but is not directly the NT hash used for pass-the-hash. An SSH private key or a certificate's private key is another kind of authentication secret. File encryption passwords, login passwords and database hashes may all be different values.
### Active Directory and Kerberos, from the beginning
Active Directory stores accounts, groups, computers and permissions. A domain controller (DC) hosts directory and authentication services. A **SID** identifies a security principal; a **UPN** is a user-style name. Names can change without creating a new SID. Nested groups and object permissions can give an account useful rights even when its group list does not say Domain Admins.
Kerberos uses the DC's **KDC** to issue a **TGT** (a ticket for asking for other tickets) and **TGS/service tickets** (tickets for a particular service). An **SPN** names that service. Ticket requests, service account keys and delegated impersonation are distinct parts of a chain. Correct time and name resolution matter.
**AD CS** is certificate infrastructure. A CA issues certificates using a template's rules. A certificate plus its private key may authenticate an account if its purpose, trust and identity mapping are accepted. Enrolment, requesting another identity and successfully authenticating as that identity are three separate checks. Historical weak-mapping examples may fail on patched domains with strong mapping enforced.
### Linux and Windows privileges
Linux file owner/group/mode checks, sudo rules, SUID bits and capabilities determine what a process can do. A special mode bit alone is not proof of a usable escalation; the program must preserve or exercise the privilege in a reachable operation.
Windows uses tokens, groups, privileges and resource ACLs. `SeBackupPrivilege`, `SeImpersonatePrivilege` and `SeTcbPrivilege` have different operations and prerequisites. A disabled privilege can already be present; an absent privilege cannot be created just by toggling a token flag. Windows **SYSTEM** is a local service identity, distinct from a domain administrator.
### Minimal evidence and cleanup
Record the starting identity, exact resource, relevant permission, request/command and observed result. Prefer a harmless marker, identity query or one permitted sample record to a bulk dump. Confirm the result from a fresh session where needed. Restore changed SPNs, UPNs, group memberships, ACLs, services, uploaded plugins and test files. A failed callback may be a listener or route problem; a claimed vulnerability still needs independent proof.
## Find an attack family
- [Credentials and exposed data](#credentials-and-exposed-data) - 12 explanations
- [Web attacks](#web-attacks) - 18 explanations
- [Services and application trust](#services-and-application-trust) - 9 explanations
- [Active Directory permissions and Kerberos](#active-directory-permissions-and-kerberos) - 14 explanations
- [Certificate attacks](#certificate-attacks) - 5 explanations
- [Linux privilege escalation](#linux-privilege-escalation) - 8 explanations
- [Windows privilege escalation](#windows-privilege-escalation) - 8 explanations
- [Movement, sessions and boundaries](#movement-sessions-and-boundaries) - 8 explanations
- [Worked chains](#worked-chains)
- [Tools from the Red Block report](#tools-from-the-red-block-report)
- [Source coverage and evidence limits](#source-coverage-and-evidence-limits)
## Credentials and exposed data
[Anonymous SMB, LDAP and FTP access](#anonymous-access) | [NFS export and file-permission abuse](#nfs-exposure) | [SNMP information disclosure](#snmp-disclosure) | [Credentials in files, directory attributes and history](#secrets-at-rest) | [Cleartext authentication interception](#plaintext-bind) | [Offline password, key and vault cracking](#offline-cracking) | [Online brute force and default credentials](#brute-force) | [Password spraying](#password-spraying) | [Password reuse and local/domain identity confusion](#password-reuse) | [Forced authentication and NetNTLM capture](#forced-ntlm) | [DNS zone-transfer disclosure](#dns-transfer) | [Cisco type 7 decoding and type 5 cracking](#cisco-password-storage)
<h3 id="anonymous-access">Anonymous SMB, LDAP and FTP access</h3>
A service accepts a guest or unauthenticated identity and gives it more information than intended. SMB can expose files, LDAP can expose directory objects, and FTP can expose downloads. Enumeration turns that disclosure into usernames, programs or configuration to investigate; an anonymous connection alone does not mean administrative access.
**Needs:** The service must allow that identity to read the particular share, directory query or file. Permissions differ between listing a share and opening it.
<figure class="primer-diagram plate corners">
<figcaption>Anonymous SMB, LDAP and FTP access - how it works</figcaption>
<ol>
<li><details><summary>Ask without a login</summary><p>The server maps the request to anonymous or guest.</p></details></li>
<li><details><summary>Read what that identity can reach</summary><p>Collect a user list or a relevant file, rather than assuming all data is readable.</p></details></li>
<li><details><summary>Use the new information</summary><p>A username or configuration file suggests the next test; it is not automatically a shell.</p></details></li>
</ol>
</figure>
**Evidence:** A specific file or query result is returned without an authorised account. Record the access identity and resource.
**Fix:** Remove unnecessary guest access and grant read permissions only to the principals that need them.
**Documented example:** [Support](https://daemon-sec.xyz/post/htb-support), [Forest](https://daemon-sec.xyz/post/htb-forest), Timelapse (DAEMONSEC-VAULT). [Tool commands](/sheets/enumeration/smbclient).
<h3 id="nfs-exposure">NFS export and file-permission abuse</h3>
NFS lets a client mount a remote directory as part of its own filesystem. An overly broad export can expose sensitive files. With AUTH_SYS the server uses client-supplied numeric user and group IDs; poorly restricted mappings can let a client read another user's files. This is different from breaking encryption.
**Needs:** A reachable export, matching export restrictions and a usable identity mapping. root_squash maps client root to an anonymous identity; it does not repair an export that is readable by another allowed UID.
<figure class="primer-diagram plate corners">
<figcaption>NFS export and file-permission abuse - how it works</figcaption>
<ol>
<li><details><summary>Mount the permitted export</summary><p>Start read-only so inspection does not alter the server.</p></details></li>
<li><details><summary>Server checks numeric identity</summary><p>Export rules, squashing and file modes decide what the client can read.</p></details></li>
<li><details><summary>Sensitive file becomes readable</summary><p>An exposed password verifier can be tested offline, as in the ACME assessment.</p></details></li>
</ol>
</figure>
**Evidence:** An otherwise protected file is readable through the export. A visible export list alone is insufficient.
**Fix:** Restrict clients and paths, enforce file ownership, use root squashing, and prefer authenticated NFS security where appropriate.
**Documented example:** [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment). [Tool commands](/sheets/enumeration/showmount-mount).
<h3 id="snmp-disclosure">SNMP information disclosure</h3>
SNMP exposes management information such as interfaces and running processes. A guessable community string on older SNMP versions acts like a shared access token. If a process was started with a password on its command line, the management data can disclose that password.
**Needs:** SNMP read access and an exposed object containing useful data. A community string permitting reads does not necessarily permit configuration changes.
<figure class="primer-diagram plate corners">
<figcaption>SNMP information disclosure - how it works</figcaption>
<ol>
<li><details><summary>Read management objects</summary><p>The agent accepts the community or configured SNMP identity.</p></details></li>
<li><details><summary>Inspect process and interface data</summary><p>Management output may reveal arguments, routes or services.</p></details></li>
<li><details><summary>A secret or route is disclosed</summary><p>Pandora's note records credentials obtained from process information.</p></details></li>
</ol>
</figure>
**Evidence:** The response includes the actual sensitive argument or management information, with the credential redacted in evidence.
**Fix:** Restrict management access, use SNMPv3 authentication/privacy, and keep secrets out of command-line arguments.
**Partial note:** Pandora (DAEMONSEC-VAULT).
<h3 id="secrets-at-rest">Credentials in files, directory attributes and history</h3>
A password stored in an accessible file is already known to anyone who can read that file. Common locations in your work were spreadsheets, installation configurations, scripts, AD description/info fields, PowerShell history, setup logs, application environment files and AutoLogon settings. This is disclosure, rather than cryptographic cracking.
**Needs:** Read access to the exact resource. Registry ACLs and the way AutoLogon was configured matter; not every Windows host stores a readable plaintext AutoLogon password.
<figure class="primer-diagram plate corners">
<figcaption>Credentials in files, directory attributes and history - how it works</figcaption>
<ol>
<li><details><summary>Read in the current identity</summary><p>Check what your account can access, including less prominent fields and history.</p></details></li>
<li><details><summary>Identify the secret and its owner</summary><p>A database password or local username may belong to a different authentication realm.</p></details></li>
<li><details><summary>Validate one scoped use</summary><p>Test the intended service and verify which account actually logged in.</p></details></li>
</ol>
</figure>
**Evidence:** A redacted source location and a confirmed login as the expected principal. A string that looks like a password is only a lead.
**Fix:** Use secret stores, remove credentials from notes/history, limit read permissions and rotate any exposed secrets.
**Documented example:** [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), [Support](https://daemon-sec.xyz/post/htb-support), [Sauna](https://daemon-sec.xyz/post/htb-sauna), Cicada (DAEMONSEC-VAULT), Resolute (DAEMONSEC-VAULT), Timelapse (DAEMONSEC-VAULT), [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo), Zephyr (DAEMONSEC-VAULT). [Tool commands](/sheets/pentest-workflow/most-used-commands).
<h3 id="plaintext-bind">Cleartext authentication interception</h3>
Protocols such as unprotected FTP, Telnet and LDAP simple bind can send reusable passwords over the network. A packet capture or a service endpoint under your control can expose them. Support involved observing a downloaded program's LDAP bind; Return redirected a printer's configured LDAP server to a listener.
**Needs:** An unencrypted authentication exchange visible at the capture point, or control of a destination that a client will authenticate to. TLS-protected traffic is not readable merely because packets were captured.
<figure class="primer-diagram plate corners">
<figcaption>Cleartext authentication interception - how it works</figcaption>
<ol>
<li><details><summary>Client starts a login</summary><p>The application sends authentication to the selected server.</p></details></li>
<li><details><summary>Password crosses without transport protection</summary><p>The capture or listener sees the plaintext protocol fields.</p></details></li>
<li><details><summary>Validate the disclosed credential</summary><p>The observed service identity can be tested against its actual permitted services.</p></details></li>
</ol>
</figure>
**Evidence:** The trace identifies the protocol and account, and shows an unprotected credential field. Preserve a redacted extract.
**Fix:** Use protected transport, validate server certificates and lock down applications' authentication destinations.
**Documented example:** [Support](https://daemon-sec.xyz/post/htb-support), Return (DAEMONSEC-VAULT), Cap (DAEMONSEC-VAULT), [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment).
<h3 id="offline-cracking">Offline password, key and vault cracking</h3>
An attacker takes a password verifier or encrypted container away and tests guesses locally. Each guess is hashed or used to derive a decryption key, then checked against the stolen data. Slow, salted password functions make this expensive; they do not rescue a weak password that is already in the candidate list.
**Needs:** A readable hash, challenge-response or supported encrypted ZIP, PFX, SSH key, KeePass database or PGP key. Formats and KDFs differ; selecting a mode by filename alone is unreliable.
<figure class="primer-diagram plate corners">
<figcaption>Offline password, key and vault cracking - how it works</figcaption>
<ol>
<li><details><summary>Extract the correct verifier</summary><p>John extractors turn supported containers into records suitable for the chosen cracker.</p></details></li>
<li><details><summary>Test candidate secrets locally</summary><p>The tool derives and compares values; no target login is needed for each guess.</p></details></li>
<li><details><summary>Validate the recovered secret</summary><p>Open the original container or authenticate once to the intended service.</p></details></li>
</ol>
</figure>
**Evidence:** The original key, archive or database opens, or a controlled login succeeds. A cracker's output alone is not enough.
**Fix:** Use long unique secrets, strong supported KDFs and strict access controls on encrypted stores and password hashes.
**Documented example:** [Builder](https://daemon-sec.xyz/post/htb-builder), [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo), [Postman](https://daemon-sec.xyz/post/htb-postman), [Jeeves](https://daemon-sec.xyz/post/htb-jeeves), Timelapse (DAEMONSEC-VAULT), GoodGames (DAEMONSEC-VAULT), [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment), [Sauna](https://daemon-sec.xyz/post/htb-sauna), [Forest](https://daemon-sec.xyz/post/htb-forest), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), [Red Block pp. 136-139, 157-161](#tools-from-the-red-block-report). [Tool commands](/sheets/password-attacks/john-extractors).
<h3 id="brute-force">Online brute force and default credentials</h3>
Online guessing submits candidate passwords to the real login service. Brute force commonly tests many guesses for one account; default-credential testing checks the vendor's initial login. These requests reach the target, consume resources and can trigger lockout. Hydra does not crack a remote password hash when it submits logins.
**Needs:** A reachable login and a scoped attempt budget based on the lockout policy. A reliable success/failure detector is essential for web forms.
<figure class="primer-diagram plate corners">
<figcaption>Online brute force and default credentials - how it works</figcaption>
<ol>
<li><details><summary>Choose an account and candidate set</summary><p>Use the policy and identified application to constrain the test.</p></details></li>
<li><details><summary>Service evaluates each login</summary><p>Rate limits, MFA and lockout can stop guessing.</p></details></li>
<li><details><summary>Confirm one successful session</summary><p>Verify the effective account and stop the successful test.</p></details></li>
</ol>
</figure>
**Evidence:** An authenticated session or service response proves the credential, not just a different HTTP response length.
**Fix:** Remove defaults, apply rate limiting and monitored lockout controls, use MFA, and require unique strong passwords.
**Documented example:** Jerry (DAEMONSEC-VAULT), BoardLight (DAEMONSEC-VAULT), [CMP210](https://daemon-sec.xyz/post/cmp210-network-penetration-test), [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment), [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest). [Tool commands](/sheets/password-attacks/hydra).
<h3 id="password-spraying">Password spraying</h3>
Spraying tries a small number of plausible passwords across multiple usernames. It exploits password reuse and predictable choices while spreading attempts across accounts. It can still lock accounts: retries across different services may accumulate against the same directory policy.
**Needs:** A username list, a defensible candidate and a known attempt policy. Validating an already recovered password against its known owner is credential validation, not automatically spraying.
<figure class="primer-diagram plate corners">
<figcaption>Password spraying - how it works</figcaption>
<ol>
<li><details><summary>One candidate, several accounts</summary><p>The test is organised around a password rather than a long per-user list.</p></details></li>
<li><details><summary>Respect the account policy</summary><p>Track total attempts per account across services and time windows.</p></details></li>
<li><details><summary>A matching account is found</summary><p>Check the realm and which services that identity is authorised to use.</p></details></li>
</ol>
</figure>
**Evidence:** A verified matching identity and service. A successful SMB login does not imply WinRM or administrative access.
**Fix:** Use unique passwords and MFA, monitor cross-account login patterns and remove credentials from descriptions or shares.
**Documented example:** [Support](https://daemon-sec.xyz/post/htb-support), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), Cicada (DAEMONSEC-VAULT), Resolute (DAEMONSEC-VAULT), Zephyr (DAEMONSEC-VAULT). [Tool commands](/sheets/password-attacks/hydra).
<h3 id="password-reuse">Password reuse and local/domain identity confusion</h3>
A secret recovered for one purpose also works somewhere else: a key passphrase may be a local password, a database password may work over SSH, or the same username may have a separate local and domain account. Those accounts have different SIDs and permissions even when their visible names match.
**Needs:** The second account actually shares the secret and accepts the chosen authentication method. Username similarity is not proof of a shared account.
<figure class="primer-diagram plate corners">
<figcaption>Password reuse and local/domain identity confusion - how it works</figcaption>
<ol>
<li><details><summary>Recover a secret from one context</summary><p>Identify whether it came from a database, vault, service or local account.</p></details></li>
<li><details><summary>Test the intended second realm</summary><p>Explicitly distinguish the local machine from the domain.</p></details></li>
<li><details><summary>A new identity opens new access</summary><p>Repeat enumeration because permissions have changed.</p></details></li>
</ol>
</figure>
**Evidence:** The effective account SID/name and realm match the intended login. Your working directory does not prove administrator rights.
**Fix:** Use unique credentials, managed service accounts and local administrator password rotation; restrict cross-service logon.
**Documented example:** [Postman](https://daemon-sec.xyz/post/htb-postman), [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), GoodGames (DAEMONSEC-VAULT), BoardLight (DAEMONSEC-VAULT), Papers (DAEMONSEC-VAULT), Zephyr (DAEMONSEC-VAULT).
<h3 id="forced-ntlm">Forced authentication and NetNTLM capture</h3>
A file or application feature makes Windows connect to an attacker-controlled network path. The client may attempt NTLM authentication automatically. Responder receives a challenge-response, commonly NetNTLMv2. That response can support offline guessing; it is not the reusable NT hash accepted by pass-the-hash.
**Needs:** A processing trigger, outbound connectivity and a client permitted to use NTLM. In your notes the triggers included Media playlists, Fluffy library files and Zephyr PDFs.
<figure class="primer-diagram plate corners">
<figcaption>Forced authentication and NetNTLM capture - how it works</figcaption>
<ol>
<li><details><summary>Place a remote resource reference</summary><p>The file points to a network location the tester controls.</p></details></li>
<li><details><summary>A client processes the file</summary><p>Its network request can trigger authentication in that client's security context.</p></details></li>
<li><details><summary>Capture the challenge-response</summary><p>Crack a weak password offline or investigate a separate eligible relay target.</p></details></li>
</ol>
</figure>
**Evidence:** An authentication exchange arrives from the expected client. Capture, cracking and relay are three separate outcomes.
**Fix:** Patch the triggering flaw, restrict outbound SMB/NTLM and avoid automatic authentication to untrusted resources.
**Documented example:** [Media](https://daemon-sec.xyz/post/htb-media), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), Zephyr (DAEMONSEC-VAULT), [Red Block pp. 80-89](#tools-from-the-red-block-report). [Tool commands](/sheets/tools/inveigh).
<h3 id="dns-transfer">DNS zone-transfer disclosure</h3>
AXFR copies a DNS zone from an authoritative server. It is intended for authorised secondary servers. If an unrelated client can transfer it, internal naming and address information can be disclosed in bulk. This provides discovery leads rather than a login or command execution.
**Needs:** A reachable authoritative server that allows the client to transfer the specific zone.
<figure class="primer-diagram plate corners">
<figcaption>DNS zone-transfer disclosure - how it works</figcaption>
<ol>
<li><details><summary>Request the whole zone</summary><p>The client sends AXFR for the exact zone.</p></details></li>
<li><details><summary>Server permits the transfer</summary><p>Its transfer policy accepts a client outside the intended secondary set.</p></details></li>
<li><details><summary>Map the disclosed names</summary><p>Validate which records still resolve and which services are reachable.</p></details></li>
</ol>
</figure>
**Evidence:** A completed transfer with the expected SOA boundaries and records. A denied or interrupted request is not success.
**Fix:** Restrict transfers to approved secondaries and authenticate them where supported.
**Report example:** [Red Block pp. 9](#tools-from-the-red-block-report). [Tool commands](/sheets/enumeration/dig).
<h3 id="cisco-password-storage">Cisco type 7 decoding and type 5 cracking</h3>
Type 7 configuration passwords are reversibly obfuscated. A reader can decode them without guessing. Type 5 enable secrets are MD5-crypt verifiers and require offline candidate testing. They have different mechanisms even when found in the same leaked router configuration.
**Needs:** Readable configuration and an intact supported record; password reuse elsewhere is a separate condition.
<figure class="primer-diagram plate corners">
<figcaption>Cisco type 7 decoding and type 5 cracking - how it works</figcaption>
<ol>
<li><details><summary>Read the stored credential type</summary><p>Identify type 7 versus type 5 before choosing a tool.</p></details></li>
<li><details><summary>Decode or test candidates</summary><p>Reversible obfuscation yields plaintext; a one-way verifier requires guessing.</p></details></li>
<li><details><summary>Validate the credential role</summary><p>A router login, enable secret and application password are distinct roles.</p></details></li>
</ol>
</figure>
**Evidence:** A decoded or recovered value confirmed for its original role.
**Fix:** Protect configuration backups, use supported strong storage and rotate exposed secrets.
**Report example:** [Red Block pp. 23-27](#tools-from-the-red-block-report). [Tool commands](/sheets/password-attacks/cisco7crack).
## Web attacks
[IDOR and missing object authorisation](#idor) | [SQL injection](#sqli) | [Reflected cross-site scripting](#reflected-xss) | [Stored cross-site scripting](#stored-xss) | [Path traversal and local file inclusion](#path-traversal-lfi) | [XML external entity injection](#xxe) | [Server-side request forgery](#ssrf) | [Server-side template injection](#ssti) | [Operating-system command injection](#command-injection) | [Shellshock in Bash-backed CGI](#shellshock) | [API role modification and broken function authorisation](#api-role-abuse) | [Jenkins CLI arbitrary file read](#jenkins-file-read) | [CMS configuration and draft disclosure](#cms-info-disclosure) | [Unsafe deserialization](#deserialization) | [Zabbix SAML session bypass](#zabbix-saml-bypass) | [Invitation bypass through format-only validation](#invite-format-check) | [Upload plus PHP file inclusion](#upload-lfi-execution) | [Webmin privileged file-write escalation](#webmin-file-write)
<h3 id="idor">IDOR and missing object authorisation</h3>
An application uses a caller-controlled identifier to choose a record or file, but does not check whether the caller may access that specific object. Changing the identifier then reads someone else's resource. Predictable IDs make testing easier, but the vulnerability is the missing authorisation check.
**Needs:** At least one resource that your test identity should not be able to read or change. Using a random UUID does not replace an ownership check.
<figure class="primer-diagram plate corners">
<figcaption>IDOR and missing object authorisation - how it works</figcaption>
<ol>
<li><details><summary>Request your own object</summary><p>Establish the expected access with one session.</p></details></li>
<li><details><summary>Change the object identifier</summary><p>The server retrieves another object without checking your relationship to it.</p></details></li>
<li><details><summary>Observe unauthorised data</summary><p>Cap exposed another capture containing a cleartext FTP login.</p></details></li>
</ol>
</figure>
**Evidence:** The same caller obtains a resource belonging to another identity. Use controlled accounts when available.
**Fix:** Check object ownership or policy on every server-side access, independently of the identifier format.
**Documented example:** Cap (DAEMONSEC-VAULT).
<h3 id="sqli">SQL injection</h3>
SQL injection happens when untrusted input changes the structure of a database query instead of remaining a parameter value. A modified predicate can bypass a login; a UNION or other extraction technique can return extra data. The permissions of the application's database account limit the impact.
**Needs:** An input reaching an unsafe query, the correct database syntax and a observable response or inference channel. A nonce or logged-in session may be required by the endpoint without preventing injection.
<figure class="primer-diagram plate corners">
<figcaption>SQL injection - how it works</figcaption>
<ol>
<li><details><summary>Input joins query text</summary><p>The application concatenates data into SQL syntax.</p></details></li>
<li><details><summary>The database interprets new structure</summary><p>The supplied value changes filtering or adds data retrieval.</p></details></li>
<li><details><summary>Application exposes the result</summary><p>Rows, errors or timing can reveal information outside the intended query.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled data or logic change repeatably linked to the input. A generic server error is not confirmation.
**Fix:** Use prepared statements with bound values, allowlist dynamic identifiers and minimise database permissions.
**Documented example:** [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo), GoodGames (DAEMONSEC-VAULT), Pandora (DAEMONSEC-VAULT), [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest). [Tool commands](/sheets/web/sql-injection).
<h3 id="reflected-xss">Reflected cross-site scripting</h3>
The server immediately places input into a response without the correct encoding for that HTML or JavaScript context. When a browser interprets the result, attacker-supplied content executes in the application's origin. This affects the visiting browser, rather than inherently executing a command on the web server.
**Needs:** An executable reflection context and a victim visiting the crafted request. Browser controls and CSP can change what a payload can do.
<figure class="primer-diagram plate corners">
<figcaption>Reflected cross-site scripting - how it works</figcaption>
<ol>
<li><details><summary>Submit crafted input</summary><p>A URL or form parameter carries the test markup.</p></details></li>
<li><details><summary>Server reflects it unsafely</summary><p>The response treats the input as page syntax.</p></details></li>
<li><details><summary>Browser executes it in the site origin</summary><p>A benign proof demonstrates script execution in the correct context.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless controlled action executes in the browser. Merely finding the text in the source is not sufficient.
**Fix:** Apply context-specific output encoding, safe DOM APIs and an effective CSP as additional protection.
**Documented example:** [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest). [Tool commands](/sheets/web/xss).
<h3 id="stored-xss">Stored cross-site scripting</h3>
Stored XSS persists untrusted content in a comment, profile or other saved record. The application later renders that content as executable browser code. One submission can affect multiple readers because the vulnerable output is served whenever the saved record is displayed.
**Needs:** A writable field and an unsafe output context when another session views the saved data.
<figure class="primer-diagram plate corners">
<figcaption>Stored cross-site scripting - how it works</figcaption>
<ol>
<li><details><summary>Save the crafted value</summary><p>The application stores the attacker's input.</p></details></li>
<li><details><summary>Another session loads the record</summary><p>A legitimate page includes the saved content.</p></details></li>
<li><details><summary>Browser interprets it as code</summary><p>The vulnerable render crosses the data-to-code boundary.</p></details></li>
</ol>
</figure>
**Evidence:** A second controlled session executes a benign proof after loading the saved record. Remove the test value afterwards.
**Fix:** Encode at the final output context, sanitise permitted rich HTML with a maintained library and remove stored payloads.
**Documented example:** [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest). [Tool commands](/sheets/web/xss).
<h3 id="path-traversal-lfi">Path traversal and local file inclusion</h3>
Path traversal lets a filename escape its intended directory. Local file inclusion occurs when an application includes an attacker-selected local file in its execution/rendering path. Both can disclose data, but reading a file is not itself proof of code execution. Papers' bot used directory traversal; Bumtree had a file-inclusion input.
**Needs:** A controllable path reaching file handling and filesystem read rights in the application's identity.
<figure class="primer-diagram plate corners">
<figcaption>Path traversal and local file inclusion - how it works</figcaption>
<ol>
<li><details><summary>Supply a path</summary><p>The input selects which file the application opens.</p></details></li>
<li><details><summary>Path escapes the allowed location</summary><p>Normalisation and authorisation fail to confine the operation.</p></details></li>
<li><details><summary>Service reads or includes the file</summary><p>The response discloses content or processes it in an inclusion context.</p></details></li>
</ol>
</figure>
**Evidence:** A benign file outside the permitted directory is returned. Report read-only disclosure separately from any proven execution.
**Fix:** Resolve allowed file IDs server-side, canonicalise paths, enforce a directory allowlist and minimise filesystem privileges.
**Documented example:** Papers (DAEMONSEC-VAULT), [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest).
<h3 id="xxe">XML external entity injection</h3>
An XML parser resolves an attacker-supplied external entity as a file or URL. The parser then accesses that resource with the server process's privileges. In MetaTwo, XML inside WAV metadata was the entry point; the result was file disclosure, not a WAV codec memory exploit.
**Needs:** An XML parsing route with external entity resolution enabled and a visible or out-of-band result channel.
<figure class="primer-diagram plate corners">
<figcaption>XML external entity injection - how it works</figcaption>
<ol>
<li><details><summary>Upload XML-bearing content</summary><p>A file or request causes the backend to parse attacker-influenced XML.</p></details></li>
<li><details><summary>Parser resolves an external entity</summary><p>It opens a local file or contacts the declared remote resource.</p></details></li>
<li><details><summary>File content reaches the test channel</summary><p>The parser's output or callback discloses data the caller could not directly read.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled file marker or callback confirms resolution in the target's context. A DNS lookup alone proves only that lookup.
**Fix:** Disable external entities/DTDs, restrict parser network access and patch the affected parsing dependency.
**Documented example:** [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo).
<h3 id="ssrf">Server-side request forgery</h3>
SSRF makes the server send a request to a destination chosen by an untrusted caller. Because the server is on a different network, it may reach services the tester cannot reach directly. Sau's Request Baskets instance became a forwarding route to a localhost Maltrail service.
**Needs:** A controllable destination and a permitted network route from the requesting server. An SSRF response is not automatically a shell.
<figure class="primer-diagram plate corners">
<figcaption>Server-side request forgery - how it works</figcaption>
<ol>
<li><details><summary>Choose a forwarding destination</summary><p>The attacker controls a URL the application fetches.</p></details></li>
<li><details><summary>Server makes the request</summary><p>The connection comes from the backend's network position.</p></details></li>
<li><details><summary>Internal service becomes reachable</summary><p>A separate vulnerability in that service can then be tested.</p></details></li>
</ol>
</figure>
**Evidence:** A unique controlled callback or the internal service's response establishes the server-side request.
**Fix:** Allowlist destinations and schemes, revalidate redirects and resolved addresses, and restrict backend egress.
**Documented example:** Sau (DAEMONSEC-VAULT).
<h3 id="ssti">Server-side template injection</h3>
A template engine treats user input as template source instead of data supplied to a trusted template. An expression may be evaluated by the server; in an unsafe engine context that evaluation can reach objects or functions capable of command execution. GoodGames used a Flask/Jinja route.
**Needs:** Input that is compiled as a template and an engine/context with exploitable capabilities. A rendered expression alone does not prove arbitrary command execution.
<figure class="primer-diagram plate corners">
<figcaption>Server-side template injection - how it works</figcaption>
<ol>
<li><details><summary>Input enters template source</summary><p>The application builds a template from an untrusted value.</p></details></li>
<li><details><summary>Engine evaluates the expression</summary><p>The expression is interpreted in the backend runtime.</p></details></li>
<li><details><summary>Runtime capability is reached</summary><p>An unsafe context can expose functions, files or process execution.</p></details></li>
</ol>
</figure>
**Evidence:** A repeatable harmless expression result establishes evaluation; a separate identity marker establishes execution if tested.
**Fix:** Keep templates fixed and pass input as values. Use restricted contexts and avoid exposing powerful runtime objects.
**Documented example:** GoodGames (DAEMONSEC-VAULT).
<h3 id="command-injection">Operating-system command injection</h3>
An application combines untrusted data with a shell command. The shell interprets part of that value as command syntax, allowing an additional operation in the application's OS identity. Authentication requirements vary: TwoMillion needed application-admin access, Maltrail did not, and Webmin required an eligible authenticated user.
**Needs:** An unsafe shell call reachable by the current identity and a payload matching its quoting/context.
<figure class="primer-diagram plate corners">
<figcaption>Operating-system command injection - how it works</figcaption>
<ol>
<li><details><summary>Supply a command argument</summary><p>A normal field carries attacker-controlled text.</p></details></li>
<li><details><summary>Application invokes the shell unsafely</summary><p>The shell processes separators, substitutions or other syntax.</p></details></li>
<li><details><summary>Extra operation runs as the service</summary><p>The resulting OS account is the service account, unless it was already privileged.</p></details></li>
</ol>
</figure>
**Evidence:** A benign identity or unique marker proves execution. Do not infer root from the web application's administrator role.
**Fix:** Avoid the shell, use fixed executable paths and argument arrays, validate allowed inputs and run services with minimal privileges.
**Documented example:** TwoMillion (DAEMONSEC-VAULT), Sau (DAEMONSEC-VAULT), [Postman](https://daemon-sec.xyz/post/htb-postman).
<h3 id="shellshock">Shellshock in Bash-backed CGI</h3>
Shellshock is a historical Bash environment-parsing flaw. A CGI server turns request fields such as headers into environment variables. When a vulnerable Bash process starts, crafted function-like environment content can execute appended commands. The CGI-to-Bash handoff is the critical connection.
**Needs:** An unpatched Bash parser and a request path that starts Bash with attacker-influenced environment variables. An Apache banner alone does not establish either condition.
<figure class="primer-diagram plate corners">
<figcaption>Shellshock in Bash-backed CGI - how it works</figcaption>
<ol>
<li><details><summary>HTTP header becomes CGI environment</summary><p>The web server passes request metadata to a CGI process.</p></details></li>
<li><details><summary>Vulnerable Bash parses the value</summary><p>The old parser executes content beyond a function definition.</p></details></li>
<li><details><summary>CGI identity runs the operation</summary><p>A command executes under the web/CGI service account.</p></details></li>
</ol>
</figure>
**Evidence:** CMP314 records a harmless command response and a subsequent session. CMP319 has a scanner finding, not the same depth of proof.
**Fix:** Patch Bash, remove unnecessary CGI handlers and minimise the CGI account's access.
**Evidence differs by source:** [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment), [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest).
<h3 id="api-role-abuse">API role modification and broken function authorisation</h3>
An endpoint accepts a sensitive field such as an administrator flag from a caller who should not control it. The server trusts the submitted change instead of deriving permission from trusted state. In TwoMillion, modifying the role unlocked another endpoint whose command injection was a separate flaw.
**Needs:** A reachable role-setting function with missing permission checks or unsafe field binding. Discovering an admin URL does not mean it can be used.
<figure class="primer-diagram plate corners">
<figcaption>API role modification and broken function authorisation - how it works</figcaption>
<ol>
<li><details><summary>Ordinary account calls sensitive endpoint</summary><p>The caller supplies a property it should not be allowed to edit.</p></details></li>
<li><details><summary>Server accepts the role change</summary><p>Authorisation does not reject the function or field.</p></details></li>
<li><details><summary>New role unlocks more functions</summary><p>Test the effective role independently, then assess those functions.</p></details></li>
</ol>
</figure>
**Evidence:** The role changes in trusted server state and an otherwise denied function becomes usable.
**Fix:** Authorise every function, allowlist editable properties and derive privileged roles exclusively from trusted server decisions.
**Documented example:** TwoMillion (DAEMONSEC-VAULT).
<h3 id="jenkins-file-read">Jenkins CLI arbitrary file read</h3>
Jenkins' affected CLI parser expands arguments beginning with @ into local file contents. A command's error output can echo part of that content back to the caller. Builder used this to read a stored password hash, then cracked it; disclosure and password recovery were separate steps.
**Needs:** The affected CLI/argument-expansion behaviour, a reachable transport and a command that reveals useful expanded content. Access and number of returned lines depend on the command and permissions.
<figure class="primer-diagram plate corners">
<figcaption>Jenkins CLI arbitrary file read - how it works</figcaption>
<ol>
<li><details><summary>CLI argument names a server file</summary><p>The parser receives an @-prefixed argument.</p></details></li>
<li><details><summary>Parser expands file contents</summary><p>The file is read as the Jenkins OS account.</p></details></li>
<li><details><summary>Command output reveals content</summary><p>An error or response exposes some of the substituted lines.</p></details></li>
</ol>
</figure>
**Evidence:** A benign file marker appears in the CLI response. Record the command, transport and returned portion.
**Fix:** Upgrade Jenkins or apply the vendor's mitigation and restrict CLI access.
**Documented example:** [Builder](https://daemon-sec.xyz/post/htb-builder).
<h3 id="cms-info-disclosure">CMS configuration and draft disclosure</h3>
A CMS access-control flaw exposes configuration or unpublished content to an unauthorised caller. Devvortex's Joomla API disclosed configuration; Papers' WordPress route disclosed a draft containing another service location. Information disclosure can start a chain even when it gives no immediate command execution.
**Needs:** The affected endpoint, version/configuration and an access level that should be denied the data.
<figure class="primer-diagram plate corners">
<figcaption>CMS configuration and draft disclosure - how it works</figcaption>
<ol>
<li><details><summary>Request a restricted object</summary><p>The endpoint exposes an internal configuration or draft route.</p></details></li>
<li><details><summary>Access check fails</summary><p>Data intended for administrators or authors is returned.</p></details></li>
<li><details><summary>Disclosure guides the next step</summary><p>A secret or service location can be independently validated.</p></details></li>
</ol>
</figure>
**Evidence:** The response contains a controlled restricted item while unauthorised. A version match is only a reason to test.
**Fix:** Patch the CMS, protect administrative/API routes and keep reusable secrets out of public-facing stores.
**Documented example:** Devvortex (DAEMONSEC-VAULT), Papers (DAEMONSEC-VAULT).
<h3 id="deserialization">Unsafe deserialization</h3>
Deserialization reconstructs runtime objects from a message. If untrusted input can choose dangerous object types or relationships, reconstruction can invoke a chain of methods with unwanted effects. The Interpreter note records a Mirth Connect pre-authentication RCE test; its borrowed walkthrough material is not evidence of every described later step.
**Needs:** An unsafe deserializer, an appropriate available gadget chain and a reachable parser before the necessary protection. XML syntax by itself does not imply XXE or deserialization RCE.
<figure class="primer-diagram plate corners">
<figcaption>Unsafe deserialization - how it works</figcaption>
<ol>
<li><details><summary>Send a crafted object description</summary><p>The message describes more than simple validated data.</p></details></li>
<li><details><summary>Deserializer constructs the graph</summary><p>Object construction or later processing invokes unsafe methods.</p></details></li>
<li><details><summary>Method chain causes an effect</summary><p>A matching vulnerable runtime may perform file or process operations.</p></details></li>
</ol>
</figure>
**Evidence:** A benign controlled effect in the server context. The vault records a Metasploit shell for the initial Mirth step.
**Fix:** Use strict data schemas and safe types, avoid native deserialization of untrusted data, and install the vendor fix.
**Partial note:** Interpreter (DAEMONSEC-VAULT).
<h3 id="zabbix-saml-bypass">Zabbix SAML session bypass</h3>
CVE-2022-23131 affected how Zabbix stored SAML session state on the client. Altering trusted session data could let an attacker authenticate as another known user. Zephyr's note records generating a cookie, placing it in the browser and entering the SSO flow. This is a Zabbix session flaw, distinct from forging a signed AD FS assertion.
**Needs:** An affected Zabbix instance with SAML SSO enabled and the required user information. Generic SAML use does not imply this weakness.
<figure class="primer-diagram plate corners">
<figcaption>Zabbix SAML session bypass - how it works</figcaption>
<ol>
<li><details><summary>Modify client-held session data</summary><p>The crafted state names a different user.</p></details></li>
<li><details><summary>Affected SSO flow trusts the state</summary><p>The frontend accepts identity information it should not trust.</p></details></li>
<li><details><summary>Verify the resulting application session</summary><p>Check which Zabbix user and role the server actually assigned.</p></details></li>
</ol>
</figure>
**Evidence:** A session is authenticated as the intended test user. A locally generated cookie is not proof until the server accepts it.
**Fix:** Apply the Zabbix security update and invalidate exposed sessions; keep session identity decisions server-side.
**Documented example:** Zephyr (DAEMONSEC-VAULT).
<h3 id="invite-format-check">Invitation bypass through format-only validation</h3>
A format check proves that a value has the right shape. It does not prove the server issued that invitation. The supplied report reads application source and finds a regular expression used as the entire acceptance decision, allowing a made-up matching value to unlock an upload feature.
**Needs:** An application that uses syntax validation without validating existence, ownership, expiry and intended use.
<figure class="primer-diagram plate corners">
<figcaption>Invitation bypass through format-only validation - how it works</figcaption>
<ol>
<li><details><summary>Inspect the decision</summary><p>The application checks a pattern rather than a stored invitation.</p></details></li>
<li><details><summary>Submit a matching unissued value</summary><p>The value satisfies syntax but was never authorised.</p></details></li>
<li><details><summary>Application grants the feature</summary><p>The session gains access based on the inadequate check.</p></details></li>
</ol>
</figure>
**Evidence:** An unissued test invitation unlocks the protected function.
**Fix:** Validate server-issued tokens and their binding, expiry and one-time use; keep format checking as a preliminary check.
**Report example:** [Red Block pp. 31-38](#tools-from-the-red-block-report).
<h3 id="upload-lfi-execution">Upload plus PHP file inclusion</h3>
An upload endpoint can accept script content because it checks only filenames. A separate PHP include vulnerability then executes the uploaded file. The report requests index.php with the uploaded path: PHP inclusion explains execution even if a direct request for the image-like filename would serve it as data.
**Needs:** Accepted attacker-controlled content, a predictable readable upload path and an include operation able to reach it.
<figure class="primer-diagram plate corners">
<figcaption>Upload plus PHP file inclusion - how it works</figcaption>
<ol>
<li><details><summary>Store content as an image-like filename</summary><p>Weak validation accepts script content under a permitted extension.</p></details></li>
<li><details><summary>Point the inclusion parameter at the upload</summary><p>The include operation opens the attacker-controlled file.</p></details></li>
<li><details><summary>PHP evaluates embedded code</summary><p>Execution occurs under the application service identity.</p></details></li>
</ol>
</figure>
**Evidence:** A benign server-side marker via inclusion; a double extension or successful upload alone is insufficient.
**Fix:** Store uploads outside executable paths, verify file content, and allowlist include destinations.
**Report example:** [Red Block pp. 38-39](#tools-from-the-red-block-report).
<h3 id="webmin-file-write">Webmin privileged file-write escalation</h3>
A less-privileged Webmin account can cross its assigned boundary if a vulnerable file operation writes as root. A privileged file write can then become command execution. The report labels its final chain CVE-2022-30708 but claims a version beyond the range in the vendor advisory; the version discrepancy remains unresolved.
**Needs:** An actually affected build and an account with access to the vulnerable operation. A working web login does not establish either condition.
<figure class="primer-diagram plate corners">
<figcaption>Webmin privileged file-write escalation - how it works</figcaption>
<ol>
<li><details><summary>Reach the permitted web module</summary><p>The account starts with limited application permissions.</p></details></li>
<li><details><summary>Vulnerable operation writes beyond that boundary</summary><p>A privileged backend handles an unauthorised destination.</p></details></li>
<li><details><summary>Privileged execution follows from the write</summary><p>The lab demonstration verifies what the written data causes.</p></details></li>
</ol>
</figure>
**Evidence:** Evidence of the unauthorised privileged write or process under the tested build; do not infer it from a banner alone.
**Fix:** Apply vendor fixes and restrict untrusted application users and modules.
**Report example:** [Red Block pp. 197-198](#tools-from-the-red-block-report). [Tool commands](/sheets/exploitation/rce-webmin).
## Services and application trust
[Jenkins Script Console execution](#jenkins-console) | [Build pipeline and credential-binding abuse](#jenkins-pipeline) | [CMS code editing and upload-to-execution](#cms-code-editing) | [Tomcat Manager application deployment](#tomcat-war) | [SQL Server xp_cmdshell execution](#mssql-xp-cmdshell) | [Redis persistence-file write to SSH access](#redis-key-write) | [Management-console script execution](#management-script) | [Liferay and Nexus administrative scripting](#groovy-console) | [Legacy SonarQube plugin loading](#sonarqube-plugin)
<h3 id="jenkins-console">Jenkins Script Console execution</h3>
The Script Console is deliberately capable of running Groovy code on the Jenkins controller. If an untrusted caller can reach it, normal administrative functionality becomes OS execution as Jenkins' service account. Jeeves required discovering the application's sub-path before the exposed console was visible.
**Needs:** Console access, authorised by a dangerous permission or missing authentication. Discovering a Jenkins installation is not sufficient.
<figure class="primer-diagram plate corners">
<figcaption>Jenkins Script Console execution - how it works</figcaption>
<ol>
<li><details><summary>Reach the Script Console</summary><p>The service permits the caller to submit an administrative script.</p></details></li>
<li><details><summary>Controller executes Groovy</summary><p>The script has the privileges of the Jenkins process.</p></details></li>
<li><details><summary>Verify the OS identity</summary><p>The result is the Jenkins account, which must be enumerated separately.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless controller-side identity check returns. Application access and OS privilege are recorded separately.
**Fix:** Require authentication and strict administrative permissions; keep controller secrets and agent separation protected.
**Documented example:** [Jeeves](https://daemon-sec.xyz/post/htb-jeeves).
<h3 id="jenkins-pipeline">Build pipeline and credential-binding abuse</h3>
A pipeline author may be allowed to ask the build system to use stored deployment credentials. If that author can run arbitrary build logic in the credential's scope, they can often use or expose the credential. Builder used an SSH Agent-bound root key to reach the host.
**Needs:** Permission to define or modify a job and access to the relevant credential scope or plugin. A visible credential name does not prove the key is available.
<figure class="primer-diagram plate corners">
<figcaption>Build pipeline and credential-binding abuse - how it works</figcaption>
<ol>
<li><details><summary>Job requests a deployment credential</summary><p>The build system binds a key or starts an SSH agent for the job.</p></details></li>
<li><details><summary>Untrusted job logic uses that access</summary><p>The job can exercise the credential or disclose reachable secret material.</p></details></li>
<li><details><summary>Target accepts the deployment identity</summary><p>The stored credential's remote permissions define the impact.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled authenticated operation to the authorised target proves the binding's reach. Printing a key is unnecessary for many tests.
**Fix:** Separate job authors from privileged credential scopes, isolate agents and use narrowly scoped deployment identities.
**Documented example:** [Builder](https://daemon-sec.xyz/post/htb-builder).
<h3 id="cms-code-editing">CMS code editing and upload-to-execution</h3>
A CMS administrator may edit server-side templates or create executable pages. A role intended to manage content can therefore become OS code execution if it also controls code. Devvortex used Joomla template editing; BoardLight used the Dolibarr PHP execution flaw. Acceptance of an uploaded file alone does not establish execution.
**Needs:** Code-editing/deployment rights or a specific flaw bypassing those restrictions, plus a server execution route for the written content.
<figure class="primer-diagram plate corners">
<figcaption>CMS code editing and upload-to-execution - how it works</figcaption>
<ol>
<li><details><summary>Modify server-interpreted content</summary><p>A template, page or uploaded file receives executable source.</p></details></li>
<li><details><summary>Trigger its execution route</summary><p>The web runtime processes the new source.</p></details></li>
<li><details><summary>Code runs as the application account</summary><p>The account's filesystem and network rights determine the next opportunities.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless server-side marker proves execution at the written location. Save and restore the original content.
**Fix:** Disable production code editors, separate content from executable files and patch permission-bypass flaws.
**Documented example:** Devvortex (DAEMONSEC-VAULT), BoardLight (DAEMONSEC-VAULT), [Media](https://daemon-sec.xyz/post/htb-media).
<h3 id="tomcat-war">Tomcat Manager application deployment</h3>
Tomcat Manager can deploy Java web applications packaged as WAR files. A weak manager login grants that deployment power to an attacker. The deployed application runs as the Tomcat service account; Jerry's service was highly privileged, but that is not universal.
**Needs:** Manager deployment rights and a valid WAR/application compatible with the instance.
<figure class="primer-diagram plate corners">
<figcaption>Tomcat Manager application deployment - how it works</figcaption>
<ol>
<li><details><summary>Authenticate to the deployment manager</summary><p>A default or recovered credential permits application deployment.</p></details></li>
<li><details><summary>Deploy a test WAR</summary><p>Tomcat registers the supplied web application.</p></details></li>
<li><details><summary>Request the application</summary><p>Its Java code executes in the Tomcat service context.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled application marker and verified service identity. Remove the deployed application after testing.
**Fix:** Restrict manager reachability and roles, remove default credentials and run Tomcat as an unprivileged account.
**Documented example:** Jerry (DAEMONSEC-VAULT).
<h3 id="mssql-xp-cmdshell">SQL Server xp_cmdshell execution</h3>
xp_cmdshell is SQL Server's facility for invoking operating-system commands. It may be disabled, but a sufficiently privileged SQL login can enable it. Commands run as the SQL service account for sysadmin callers, or the configured proxy for eligible non-sysadmin callers. Database sysadmin does not necessarily equal Windows administrator.
**Needs:** The SQL permission to use/enable the feature and an eligible service/proxy configuration.
<figure class="primer-diagram plate corners">
<figcaption>SQL Server xp_cmdshell execution - how it works</figcaption>
<ol>
<li><details><summary>Connect with the SQL identity</summary><p>The database evaluates the login's SQL permissions.</p></details></li>
<li><details><summary>Invoke permitted command execution</summary><p>xp_cmdshell starts an OS process in the configured context.</p></details></li>
<li><details><summary>Enumerate that OS account</summary><p>EscapeTwo's resulting service shell exposed another configuration credential.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless OS identity result, with feature state and caller privileges recorded.
**Fix:** Avoid unnecessary SQL sysadmin grants, keep the feature disabled where possible and minimise service/proxy permissions.
**Documented example:** [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo).
<h3 id="redis-key-write">Redis persistence-file write to SSH access</h3>
An exposed Redis instance can become a filesystem-write primitive when it permits changing the persistence directory/filename and saving data. Postman wrote public-key material into the Redis account's SSH authorisation file. The database daemon's OS permissions, not Redis' name, determine which paths it can write.
**Needs:** Reachable unauthorised Redis commands, permitted configuration/persistence operations, a writable SSH authorisation path and an SSH account that accepts that key.
<figure class="primer-diagram plate corners">
<figcaption>Redis persistence-file write to SSH access - how it works</figcaption>
<ol>
<li><details><summary>Store tester-controlled public-key data</summary><p>Prepare data that survives the persistence-file format.</p></details></li>
<li><details><summary>Redirect the persistence write</summary><p>The daemon saves the data at a writable authorisation path.</p></details></li>
<li><details><summary>SSH accepts the matching private key</summary><p>A new login is possible as the account owning that SSH configuration.</p></details></li>
</ol>
</figure>
**Evidence:** A successful controlled SSH login. A successful Redis save is only the file-write stage.
**Fix:** Isolate Redis, enforce authentication/ACLs, restrict configuration commands and prevent writes to authentication files.
**Documented example:** [Postman](https://daemon-sec.xyz/post/htb-postman). [Tool commands](/sheets/tools/redis-cli).
<h3 id="management-script">Management-console script execution</h3>
Monitoring and administration systems often support running scripts on managed hosts. Once an attacker holds the relevant application role, that intended feature can execute code as a service account with reach beyond the web interface. Zephyr used Zabbix scripts after gaining an application session.
**Needs:** The actual role permitting script creation/execution and the managed execution route. Application admin status is not automatically OS root.
<figure class="primer-diagram plate corners">
<figcaption>Management-console script execution - how it works</figcaption>
<ol>
<li><details><summary>Define an allowed management script</summary><p>The console stores an operation for a selected target.</p></details></li>
<li><details><summary>Managed service runs it</summary><p>The server or agent executes it using its configured identity.</p></details></li>
<li><details><summary>Verify the service context</summary><p>The result reveals which OS account and host were reached.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless marker from the expected managed host. Record server-side versus agent-side execution.
**Fix:** Restrict script roles and destinations, use narrowly privileged service accounts and audit script changes.
**Documented example:** Zephyr (DAEMONSEC-VAULT).
<h3 id="groovy-console">Liferay and Nexus administrative scripting</h3>
Some application roles intentionally permit server-side Groovy scripts. A compromised account with that role can execute code as the application service. This is abuse of trusted administrative capability, not proof of an unauthenticated product vulnerability.
**Needs:** A reachable scripting feature and the actual script-execution permission; host execution inherits the service identity.
<figure class="primer-diagram plate corners">
<figcaption>Liferay and Nexus administrative scripting - how it works</figcaption>
<ol>
<li><details><summary>Authenticate with the scripting role</summary><p>Administrative access supplies the relevant application permission.</p></details></li>
<li><details><summary>Submit a bounded script</summary><p>The server interprets the Groovy code in its own runtime.</p></details></li>
<li><details><summary>Read the service identity</summary><p>The proof distinguishes application administrator from OS administrator.</p></details></li>
</ol>
</figure>
**Evidence:** A marker and identity returned by server-side script execution.
**Fix:** Limit scripting roles and run the application with only the OS privileges it requires.
**Report example:** [Red Block pp. 57-59, 169-174](#tools-from-the-red-block-report). [Tool commands](/sheets/exploitation/groovy).
<h3 id="sonarqube-plugin">Legacy SonarQube plugin loading</h3>
The supplied report turns a SonarQube administrator login into host execution by loading a custom plugin through an old upload API and restarting the service. A plugin runs inside the application process. SYSTEM in that report comes from the particular Windows service account, not a universal plugin property.
**Needs:** Application administrator rights, the affected legacy upload workflow, a compatible plugin and an allowed restart.
<figure class="primer-diagram plate corners">
<figcaption>Legacy SonarQube plugin loading - how it works</figcaption>
<ol>
<li><details><summary>Upload the reviewed proof plugin</summary><p>The administrative API schedules a JAR for installation.</p></details></li>
<li><details><summary>Restart loads the plugin</summary><p>The server loads the plugin into its runtime.</p></details></li>
<li><details><summary>Plugin code inherits the service identity</summary><p>A local marker demonstrates the actual OS context.</p></details></li>
</ol>
</figure>
**Evidence:** A loaded plugin producing a marker with verified identity; upload success alone is not execution.
**Fix:** Remove legacy upload exposure, restrict administrator accounts and reduce the service privileges.
**Report example:** [Red Block pp. 178-181](#tools-from-the-red-block-report). [Tool commands](/sheets/exploitation/pwnrqube).
## Active Directory permissions and Kerberos
[AS-REP roasting](#asrep-roast) | [Kerberoasting and targeted SPN abuse](#kerberoast) | [Group membership, AddSelf and inherited access](#group-membership) | [WriteOwner, WriteDACL and object control](#ownership-dacl) | [ForceChangePassword and account takeover](#force-password-reset) | [gMSA managed-password read abuse](#gmsa-read) | [Shadow credentials](#shadow-credentials) | [Constrained delegation and S4U abuse](#constrained-delegation) | [Resource-based constrained delegation](#rbcd) | [DCSync replication-right abuse](#dcsync) | [LAPS password-read delegation](#laps-read) | [AD Recycle Bin restoration and stale permissions](#ad-recycle-bin) | [Writable logon scripts and scriptPath abuse](#logon-script) | [RODC ticket forgery and Kerberos Key List abuse](#rodc-key-list)
<h3 id="asrep-roast">AS-REP roasting</h3>
Kerberos normally requires pre-authentication before issuing an AS response. If it is disabled for an account, the KDC can return an encrypted response to a caller who only knows the username. Part of that response is protected by a key derived from the account's password, so weak candidates can be tested offline.
**Needs:** A valid account with pre-authentication disabled and reachable Kerberos service. A username and an open port alone are insufficient.
<figure class="primer-diagram plate corners">
<figcaption>AS-REP roasting - how it works</figcaption>
<ol>
<li><details><summary>Ask the KDC for the account</summary><p>The requester does not prove knowledge of the account's password.</p></details></li>
<li><details><summary>KDC returns encrypted AS material</summary><p>The account's configuration skips the normal pre-authentication gate.</p></details></li>
<li><details><summary>Test password guesses offline</summary><p>A recovered password can be validated against permitted services.</p></details></li>
</ol>
</figure>
**Evidence:** An AS-REP verifier is returned; cracking and a subsequent login are separate evidence stages.
**Fix:** Enable Kerberos pre-authentication and use strong unique account secrets.
**Documented example:** [Sauna](https://daemon-sec.xyz/post/htb-sauna), [Forest](https://daemon-sec.xyz/post/htb-forest). [Tool commands](/sheets/active-directory/impacket).
<h3 id="kerberoast">Kerberoasting and targeted SPN abuse</h3>
A domain identity can request a service ticket for an SPN. The service-facing part of the ticket is encrypted using the service account's key, allowing offline guesses against a weak account password. Targeted Kerberoasting first uses a writable SPN attribute to make a chosen account ticket-requestable, as TombWatcher did.
**Needs:** A usable requesting identity, an SPN on the target account and a weak recoverable secret. Targeted roasting additionally requires the SPN write right and restoration of the original value.
<figure class="primer-diagram plate corners">
<figcaption>Kerberoasting and targeted SPN abuse - how it works</figcaption>
<ol>
<li><details><summary>Locate or temporarily add an SPN</summary><p>An SPN maps the service name to its account.</p></details></li>
<li><details><summary>Request the service ticket</summary><p>The KDC protects its service-facing part with that account's key.</p></details></li>
<li><details><summary>Test guesses against the ticket</summary><p>Recovering the password grants the account's existing permissions, not automatic domain administration.</p></details></li>
</ol>
</figure>
**Evidence:** A ticket for the intended SPN/account; a controlled login confirms any recovered password.
**Fix:** Use managed/high-entropy service secrets, restrict SPN writes and monitor unusual ticket-request patterns.
**Documented example:** [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), Zephyr (DAEMONSEC-VAULT), [Red Block pp. 93-96, 147-148](#tools-from-the-red-block-report). [Tool commands](/sheets/active-directory/targetedkerberoast).
<h3 id="group-membership">Group membership, AddSelf and inherited access</h3>
An attacker changes a group's membership or uses a permitted self-membership operation to inherit that group's rights. Nested memberships can carry those rights through several groups. The power comes from the group's real permissions over downstream objects, not its name.
**Needs:** An effective membership-write/AddSelf right and a group that grants useful access. Protected groups and explicit denies can alter the path.
<figure class="primer-diagram plate corners">
<figcaption>Group membership, AddSelf and inherited access - how it works</figcaption>
<ol>
<li><details><summary>Read the effective group path</summary><p>Include nesting, object ACLs and restrictions.</p></details></li>
<li><details><summary>Add the permitted identity</summary><p>The membership change activates the downstream rights.</p></details></li>
<li><details><summary>Re-authenticate and validate the new rights</summary><p>Existing tickets/tokens can retain earlier group information.</p></details></li>
</ol>
</figure>
**Evidence:** Membership is present and the claimed downstream operation is now allowed.
**Fix:** Minimise delegated membership writes, review nested groups and monitor unexpected additions.
**Documented example:** [Forest](https://daemon-sec.xyz/post/htb-forest), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), Certified (DAEMONSEC-VAULT), Garfield (DAEMONSEC-VAULT).
<h3 id="ownership-dacl">WriteOwner, WriteDACL and object control</h3>
WriteOwner changes who owns an AD object; WriteDACL changes its access list. Ownership commonly permits rewriting the DACL, unless owner-specific restrictions apply. The chain is to take ownership, grant the necessary right, then perform the allowed operation. GenericAll is broad object control; GenericWrite does not mean every right on every attribute.
**Needs:** Effective ACL rights on the exact object, including inheritance, protected-object rules and any OWNER RIGHTS restrictions.
<figure class="primer-diagram plate corners">
<figcaption>WriteOwner, WriteDACL and object control - how it works</figcaption>
<ol>
<li><details><summary>Become owner or use WriteDACL</summary><p>The starting edge permits changing ownership or permissions.</p></details></li>
<li><details><summary>Grant a specific needed permission</summary><p>The new ACE permits a member write, attribute write or password reset.</p></details></li>
<li><details><summary>Perform and verify that operation</summary><p>The object type determines how control becomes a useful identity or permission.</p></details></li>
</ol>
</figure>
**Evidence:** The saved original ACL/owner and a successful specific operation after the change. BloodHound edges are leads to validate.
**Fix:** Remove unnecessary object-control delegation, monitor ACL changes and restore the original owner/DACL after a test.
**Documented example:** [Forest](https://daemon-sec.xyz/post/htb-forest), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), Certified (DAEMONSEC-VAULT), Administrator (DAEMONSEC-VAULT).
<h3 id="force-password-reset">ForceChangePassword and account takeover</h3>
An account with the password-reset extended right can set another account's password without knowing the old one. The attacker then authenticates as that target. This is different from a normal password change, which generally requires the current password.
**Needs:** The effective reset right over a specific target. Resets can disrupt services and make some user-protected data inaccessible.
<figure class="primer-diagram plate corners">
<figcaption>ForceChangePassword and account takeover - how it works</figcaption>
<ol>
<li><details><summary>Control a reset permission</summary><p>The object ACL authorises a privileged reset operation.</p></details></li>
<li><details><summary>Set a new test password</summary><p>The directory accepts the new secret without the old one.</p></details></li>
<li><details><summary>Authenticate as the target</summary><p>The target's existing memberships and permissions now become usable.</p></details></li>
</ol>
</figure>
**Evidence:** A login as the target after the reset. Record impact and the recovery plan rather than implying old credentials can always be restored.
**Fix:** Restrict reset delegation and monitor sensitive-account resets.
**Documented example:** [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), Administrator (DAEMONSEC-VAULT), Garfield (DAEMONSEC-VAULT).
<h3 id="gmsa-read">gMSA managed-password read abuse</h3>
A group Managed Service Account has a directory-managed password. Authorised principals can retrieve the managed-password data so services can use it. An attacker who joins that reader set or inherits its read rights can recover usable authentication material for the gMSA. The password is strong; this bypasses guessing by using legitimate retrieval.
**Needs:** An effective managed-password retrieval right and a gMSA with useful permissions.
<figure class="primer-diagram plate corners">
<figcaption>gMSA managed-password read abuse - how it works</figcaption>
<ol>
<li><details><summary>Reach the authorised reader set</summary><p>A group or delegated relationship permits retrieval.</p></details></li>
<li><details><summary>Read managed-password material</summary><p>The directory supplies the data to that authorised principal.</p></details></li>
<li><details><summary>Use the gMSA identity where permitted</summary><p>Its own ACLs and endpoint logon policy define the next step.</p></details></li>
</ol>
</figure>
**Evidence:** Retrieval succeeds and a controlled operation authenticates as the gMSA. A service account may not be allowed interactive WinRM.
**Fix:** Tightly restrict managed-password readers and reduce the gMSA's downstream privileges.
**Documented example:** [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher). [Tool commands](/sheets/active-directory/gmsadumper).
<h3 id="shadow-credentials">Shadow credentials</h3>
An attacker adds a public-key credential to a target's msDS-KeyCredentialLink attribute, while retaining its private key. In a compatible AD environment that key supports PKINIT authentication as the target. This is key-trust abuse, not a password reset and not a certificate issued by a vulnerable template.
**Needs:** Write access to the attribute and compatible key-trust/PKINIT infrastructure. CA enrolment permission is not the same prerequisite.
<figure class="primer-diagram plate corners">
<figcaption>Shadow credentials - how it works</figcaption>
<ol>
<li><details><summary>Write a new public-key credential</summary><p>The target object now trusts a tester-controlled key.</p></details></li>
<li><details><summary>Prove possession of the private key</summary><p>The KDC authenticates the key against the target's stored credential.</p></details></li>
<li><details><summary>Obtain the target's Kerberos identity</summary><p>Tools may use a further U2U exchange to recover the NT hash; that is a separate step.</p></details></li>
</ol>
</figure>
**Evidence:** Authentication as the intended target; save the original attribute and remove only the injected credential afterwards.
**Fix:** Restrict attribute writes and monitor key-credential additions to service and privileged accounts.
**Documented example:** [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), Certified (DAEMONSEC-VAULT). [Tool commands](/sheets/active-directory/shadow-credentials-msds-keycredentiallink-abuse).
<h3 id="constrained-delegation">Constrained delegation and S4U abuse</h3>
Constrained delegation lets a trusted service obtain tickets for a user to specific backend services. If an attacker controls the service identity and its delegation configuration permits the required flow, S4U requests can turn that control into an impersonated backend ticket. Zephyr used a constrained-delegation path before DCSync.
**Needs:** Control of the delegating service, the configured backend SPNs and an allowed S4U/delegation path. Protected users, delegation restrictions and service identity matter.
<figure class="primer-diagram plate corners">
<figcaption>Constrained delegation and S4U abuse - how it works</figcaption>
<ol>
<li><details><summary>Authenticate as the trusted service</summary><p>The attacker holds its password, key or ticket.</p></details></li>
<li><details><summary>Request the allowed delegated ticket</summary><p>The KDC checks delegation policy for the backend service and user.</p></details></li>
<li><details><summary>Present the service ticket to the backend</summary><p>The requested identity is usable only where the ticket and policy apply.</p></details></li>
</ol>
</figure>
**Evidence:** The backend accepts the ticket as the intended identity. A minted ticket is not automatically a successful remote session.
**Fix:** Reduce delegation scope, protect privileged accounts from delegation and secure the service credentials.
**Documented example:** Zephyr (DAEMONSEC-VAULT).
<h3 id="rbcd">Resource-based constrained delegation</h3>
RBCD moves the delegation allowlist onto the backend computer object. If an attacker can edit that attribute, they can authorise a controlled service/computer to act for users to that backend. Support used a controlled computer account and tickets for the domain-controller service.
**Needs:** Control of an eligible service identity and write access to the backend's delegation attribute. Creating a computer via MachineAccountQuota is one route, not the vulnerability or a universal entitlement.
<figure class="primer-diagram plate corners">
<figcaption>Resource-based constrained delegation - how it works</figcaption>
<ol>
<li><details><summary>Control a service account/computer</summary><p>Keep its key so you can authenticate as that service.</p></details></li>
<li><details><summary>Backend allows that identity to delegate</summary><p>A writable attribute adds it to the backend's trusted set.</p></details></li>
<li><details><summary>KDC issues an impersonated backend ticket</summary><p>Present the ticket to the correct service, subject to account restrictions.</p></details></li>
</ol>
</figure>
**Evidence:** The target service accepts the impersonated ticket; preserve and restore the original delegation attribute.
**Fix:** Restrict computer-object writes, audit delegation attributes and control computer creation and service keys.
**Documented example:** [Support](https://daemon-sec.xyz/post/htb-support), Garfield (DAEMONSEC-VAULT).
<h3 id="dcsync">DCSync replication-right abuse</h3>
Domain controllers replicate directory secrets using the directory replication protocol. A principal with the necessary replication rights can request that data without running code on the DC. DCSync uses authorised replication access; it is different from copying SAM or reading LSASS memory.
**Needs:** Effective replication rights over the domain naming context and access to the replication endpoint. Rights depend on the requested data; ordinary LDAP read access is insufficient.
<figure class="primer-diagram plate corners">
<figcaption>DCSync replication-right abuse - how it works</figcaption>
<ol>
<li><details><summary>Hold or grant replication permissions</summary><p>An existing service right or a domain-DACL change permits secret replication.</p></details></li>
<li><details><summary>Request directory secret replication</summary><p>The DC checks the replication caller and returns authorised data.</p></details></li>
<li><details><summary>Validate the recovered authentication material</summary><p>The returned hash/key can support a separately permitted authentication route.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled target account's replication response, with sensitive data redacted.
**Fix:** Limit replication rights to expected DCs/services, monitor replication from other hosts and investigate domain ACL changes.
**Documented example:** [Sauna](https://daemon-sec.xyz/post/htb-sauna), [Forest](https://daemon-sec.xyz/post/htb-forest), Zephyr (DAEMONSEC-VAULT), [Red Block pp. 141-143](#tools-from-the-red-block-report).
<h3 id="laps-read">LAPS password-read delegation</h3>
LAPS rotates local administrator passwords and stores the recovery material in AD under controlled access. Reading it as a deliberately authorised recovery operator is expected behaviour; an overly broad reader group turns a low-privilege compromise into local administrator access. Timelapse used that relationship.
**Needs:** The specific read/decrypt permissions for the deployed LAPS version and a target storing a password. Encrypted Windows LAPS data can require separate decryption authorisation.
<figure class="primer-diagram plate corners">
<figcaption>LAPS password-read delegation - how it works</figcaption>
<ol>
<li><details><summary>Identify the permitted reader</summary><p>Check the computer object and recovery permissions.</p></details></li>
<li><details><summary>Retrieve the current recovery secret</summary><p>The directory returns plaintext or protected material according to the deployment.</p></details></li>
<li><details><summary>Log in to that computer's local account</summary><p>A LAPS password is scoped to its machine/account, not every domain administrator.</p></details></li>
</ol>
</figure>
**Evidence:** The intended local account authenticates on the target computer; record the retrieval right and password age without publishing the secret.
**Fix:** Restrict and audit LAPS read/decrypt delegation and rotate a password after approved use.
**Documented example:** Timelapse (DAEMONSEC-VAULT).
<h3 id="ad-recycle-bin">AD Recycle Bin restoration and stale permissions</h3>
A deleted account can still be referenced by its SID in an ACL. Restoring the matching object can bring that identity and its stale privileges back into use. TombWatcher's restored certificate administrator had enrolment rights needed for the next attack. Restoration is the bridge, rather than the certificate flaw itself.
**Needs:** A recoverable deleted object, effective restore/container rights and a useful surviving ACL reference. Display-name similarity is not enough: match the object SID.
<figure class="primer-diagram plate corners">
<figcaption>AD Recycle Bin restoration and stale permissions - how it works</figcaption>
<ol>
<li><details><summary>Find the unresolved ACL identity</summary><p>A permission refers to a deleted principal's SID.</p></details></li>
<li><details><summary>Restore the correct object</summary><p>The identity becomes usable again when restoration is permitted.</p></details></li>
<li><details><summary>Validate the restored rights</summary><p>The stale enrolment/delegated access supplies the next step.</p></details></li>
</ol>
</figure>
**Evidence:** The restored SID matches the referenced principal and the intended operation is permitted.
**Fix:** Remove stale privileged ACL entries and tightly delegate restoration rights.
**Documented example:** [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher).
<h3 id="logon-script">Writable logon scripts and scriptPath abuse</h3>
A user's scriptPath points Windows logon at a script. An attacker who can change that attribute and write a script at the reachable location can make code run when the user logs on. The script runs in the user's context; it becomes an account pivot when that user holds another useful right.
**Needs:** Both a permitted scriptPath change and write access to a script location, plus a logon trigger. A share-level read-only label does not necessarily describe all file ACLs.
<figure class="primer-diagram plate corners">
<figcaption>Writable logon scripts and scriptPath abuse - how it works</figcaption>
<ol>
<li><details><summary>Bind a user to a controlled script</summary><p>Attribute and file permissions enable the pairing.</p></details></li>
<li><details><summary>User logon processes the script</summary><p>A real or lab-automated logon supplies the trigger.</p></details></li>
<li><details><summary>Script uses that user's rights</summary><p>A delegated account operation or execution occurs as the logging-on user.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled marker or delegated operation tied to the logon, with both the script and attribute changes recorded.
**Fix:** Restrict logon-script/attribute writes, audit SYSVOL ACLs and restore the original path/file after testing.
**Documented example:** Garfield (DAEMONSEC-VAULT).
<h3 id="rodc-key-list">RODC ticket forgery and Kerberos Key List abuse</h3>
An RODC uses its own krbtgt key and a password-replication policy controlling which users' secrets it may cache. Compromising that RODC key can permit RODC-scoped ticket forgery. An eligible Key List request can then expose a target's key material. Garfield's note also changes the allow/deny policy; that policy is central to the result.
**Needs:** The RODC-specific key/identifier, appropriate ticket state and a target permitted by the effective password-replication policy. This is not automatically an unrestricted writable-DC Golden Ticket.
<figure class="primer-diagram plate corners">
<figcaption>RODC ticket forgery and Kerberos Key List abuse - how it works</figcaption>
<ol>
<li><details><summary>Compromise the RODC key and policy</summary><p>The attacker controls RODC trust material and relevant allowed principals.</p></details></li>
<li><details><summary>Build an RODC-scoped ticket</summary><p>Its identity and RODC identifier must match the receiving domain's expectations.</p></details></li>
<li><details><summary>Request an eligible account's key list</summary><p>The writable DC evaluates the RODC context and replication policy.</p></details></li>
</ol>
</figure>
**Evidence:** A Key List response for the permitted test identity; Garfield records that response but a later ticket-conversion route failed.
**Fix:** Protect RODC keys, enforce explicit Tier Zero exclusions and review policy writes; rotate compromised RODC secrets.
**Documented example:** Garfield (DAEMONSEC-VAULT).
## Certificate attacks
[AD CS ESC1: requester-chosen authentication identity](#esc1) | [AD CS ESC4: template control becomes ESC1](#esc4) | [AD CS ESC9: missing template SID extension](#esc9) | [AD CS ESC15: application-policy injection](#esc15) | [AD CS ESC16: CA-wide missing SID extension](#esc16)
<h3 id="esc1">AD CS ESC1: requester-chosen authentication identity</h3>
A certificate template lets the enrollee supply an identity while permitting authentication use. If the requester can enrol and no effective approval/signature gate blocks issuance, the CA may issue a certificate for a privileged identity. The certificate must then satisfy the DC's actual mapping rules.
**Needs:** All required template permissions/settings and a mapping path accepting the requested identity. Modern SID binding must be evaluated; a UPN printed in a certificate is not sufficient proof.
<figure class="primer-diagram plate corners">
<figcaption>AD CS ESC1: requester-chosen authentication identity - how it works</figcaption>
<ol>
<li><details><summary>Request another authentication identity</summary><p>The requester controls identity fields accepted by the template.</p></details></li>
<li><details><summary>CA issues the authentication certificate</summary><p>Issuance gates and template settings allow the request.</p></details></li>
<li><details><summary>DC maps it to the privileged principal</summary><p>PKINIT or another supported authentication route must accept that mapping.</p></details></li>
</ol>
</figure>
**Evidence:** Authentication proves the intended account, rather than just successful issuance.
**Fix:** Remove unnecessary subject supply, restrict enrolment and enforce strong certificate identity mapping.
**Documented example:** [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo). [Tool commands](/sheets/active-directory/certipy-ad).
<h3 id="esc4">AD CS ESC4: template control becomes ESC1</h3>
ESC4 is write control over a certificate template. Rather than finding an already unsafe template, the attacker modifies one to permit a dangerous request, for example an ESC1 condition. Restoring the template does not revoke certificates already issued during the change.
**Needs:** Effective template-control rights, publication by a reachable CA, enrolment access and a viable downstream authentication configuration.
<figure class="primer-diagram plate corners">
<figcaption>AD CS ESC4: template control becomes ESC1 - how it works</figcaption>
<ol>
<li><details><summary>Edit the template's security settings</summary><p>A delegated write right permits changing the policy.</p></details></li>
<li><details><summary>Issue a certificate under the changed policy</summary><p>The CA processes a request with the newly permitted identity/capabilities.</p></details></li>
<li><details><summary>Authenticate, then restore and revoke</summary><p>Configuration rollback and certificate invalidation are separate cleanup tasks.</p></details></li>
</ol>
</figure>
**Evidence:** A saved original template, the issued certificate properties and successful target-identity authentication.
**Fix:** Restrict template ownership/ACLs, monitor changes and revoke certificates issued through malicious changes.
**Documented example:** [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo). [Tool commands](/sheets/active-directory/certipy-ad).
<h3 id="esc9">AD CS ESC9: missing template SID extension</h3>
A template's NoSecurityExtension setting can omit the SID security extension. In the historical weak-mapping environment used in Certified, a controlled account's UPN was temporarily changed before enrolment, causing the resulting certificate to map to another identity. Missing SID data alone does not make this work on fully enforced mapping.
**Needs:** The template-level omission, enrolment rights, account-name control and a compatible mapping weakness or additional chain.
<figure class="primer-diagram plate corners">
<figcaption>AD CS ESC9: missing template SID extension - how it works</figcaption>
<ol>
<li><details><summary>Change the controlled enrollee's name</summary><p>The certificate request inherits the changed identity field.</p></details></li>
<li><details><summary>Template omits the SID extension</summary><p>The certificate lacks that binding to the true account.</p></details></li>
<li><details><summary>A weak mapping resolves another account</summary><p>Restore the original name and verify the mapped identity independently.</p></details></li>
</ol>
</figure>
**Evidence:** Authentication as the intended principal. A NoSecurityExtension flag is a configuration finding until the whole path is proven.
**Fix:** Include the security extension, restrict name writes and use enforced strong mapping.
**Documented example:** Certified (DAEMONSEC-VAULT). [Tool commands](/sheets/active-directory/certipy-ad).
<h3 id="esc15">AD CS ESC15: application-policy injection</h3>
On affected unpatched CAs, a schema-v1 template can accept requester-supplied application policies, giving a certificate capabilities the template did not intend. TombWatcher used that capability in an enrolment-agent/on-behalf-of chain. It is different from merely requesting a new subject name.
**Needs:** An affected CA, a version-1 template you can enrol in, and a usable policy/second-template chain. A V1 WebServer template on a patched CA is not automatically vulnerable.
<figure class="primer-diagram plate corners">
<figcaption>AD CS ESC15: application-policy injection - how it works</figcaption>
<ol>
<li><details><summary>Request extra application policy</summary><p>The requester asks for a capability absent from the template's intended policy.</p></details></li>
<li><details><summary>Unpatched CA includes it</summary><p>The first certificate gains an unintended use, such as enrolment-agent capability.</p></details></li>
<li><details><summary>Use the granted capability in the next request</summary><p>The demonstrated chain obtains a target authentication certificate.</p></details></li>
</ol>
</figure>
**Evidence:** The issued policy and the second enrolment/authentication result establish the full chain.
**Fix:** Apply the CA security fix, replace legacy template usage where appropriate and restrict enrolment-agent policy.
**Documented example:** [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher). [Tool commands](/sheets/active-directory/certipy-ad).
<h3 id="esc16">AD CS ESC16: CA-wide missing SID extension</h3>
ESC16 concerns a CA-wide setting suppressing the SID security extension, whereas ESC9 is template-specific. Fluffy combined this with control of an enrollee's UPN and the lab's weak identity mapping. Suppressing the extension does not by itself defeat a fully enforced modern mapping policy.
**Needs:** CA-wide omission, an eligible authentication template, enrolment and account-control rights, plus a viable mapping weakness or additional chain.
<figure class="primer-diagram plate corners">
<figcaption>AD CS ESC16: CA-wide missing SID extension - how it works</figcaption>
<ol>
<li><details><summary>Control the enrollee's identity field</summary><p>The changed UPN is used during enrolment.</p></details></li>
<li><details><summary>CA omits the SID binding</summary><p>The CA-wide policy prevents the normal extension from being issued.</p></details></li>
<li><details><summary>Vulnerable mapping selects the target</summary><p>The DC's actual mapping path determines whether the attack succeeds.</p></details></li>
</ol>
</figure>
**Evidence:** Certificate authentication as the intended target, with the original UPN restored.
**Fix:** Re-enable SID extension issuance and enforce strong mapping; audit certificates issued while it was suppressed.
**Documented example:** [Fluffy](https://daemon-sec.xyz/post/htb-fluffy). [Tool commands](/sheets/active-directory/certipy-ad).
## Linux privilege escalation
[Sudo access to a scriptable tool](#sudo-interpreter) | [Sudo pager shell escape](#sudo-pager) | [SUID helper and PATH hijacking](#suid-path) | [Vulnerable SUID helper: Enlightenment](#suid-helper-flaw) | [Linux capability abuse](#linux-capabilities) | [Container bind-mount ownership and SUID abuse](#container-bind-mount) | [Polkit authorisation race](#polkit-race) | [OverlayFS/FUSE copy-up privilege flaw](#overlayfs)
<h3 id="sudo-interpreter">Sudo access to a scriptable tool</h3>
Sudo authorises a program, but that program may itself be able to execute arbitrary code. Giving an account root access to a script interpreter or a tool with a scripting engine effectively gives that code root privileges. Zephyr's allowed Nmap scripting route is one example.
**Needs:** A sudo rule permitting the relevant program/arguments and a usable script-execution feature. A restricted rule can block the needed arguments.
<figure class="primer-diagram plate corners">
<figcaption>Sudo access to a scriptable tool - how it works</figcaption>
<ol>
<li><details><summary>Sudo starts the permitted tool as root</summary><p>The rule gives the process a privileged execution context.</p></details></li>
<li><details><summary>Tool accepts user-supplied logic</summary><p>Its scripting or execution feature runs code chosen by the caller.</p></details></li>
<li><details><summary>That logic inherits root permissions</summary><p>A feature intended for useful automation becomes privilege escalation.</p></details></li>
</ol>
</figure>
**Evidence:** A harmless identity check in the tool's actual subprocess shows UID 0.
**Fix:** Restrict sudo to narrow operations and arguments; avoid delegating general-purpose interpreters or scriptable tools as root.
**Documented example:** Zephyr (DAEMONSEC-VAULT).
<h3 id="sudo-pager">Sudo pager shell escape</h3>
A privileged program launches an interactive pager such as less to display output. If it keeps root privileges and the pager permits shell commands, a display feature becomes a root execution path. Your examples were systemctl status in Sau and apport-cli in Devvortex.
**Needs:** A qualifying sudo rule, an interactive pager invocation and absent effective secure-pager restrictions. Merely installing less is not a vulnerability.
<figure class="primer-diagram plate corners">
<figcaption>Sudo pager shell escape - how it works</figcaption>
<ol>
<li><details><summary>Run the allowed privileged display command</summary><p>Sudo starts the parent program as root.</p></details></li>
<li><details><summary>Parent starts an unrestricted pager</summary><p>The viewer inherits the privileged context.</p></details></li>
<li><details><summary>Pager executes a requested command</summary><p>Its shell-escape feature can start another root process.</p></details></li>
</ol>
</figure>
**Evidence:** A benign identity result from the pager's subprocess. Version, TTY and secure-pager mode can change the behaviour.
**Fix:** Patch the affected application, enforce secure/non-interactive output and narrow sudo rules.
**Documented example:** Sau (DAEMONSEC-VAULT), Devvortex (DAEMONSEC-VAULT).
<h3 id="suid-path">SUID helper and PATH hijacking</h3>
A SUID-root executable starts with an effective root identity. If it invokes a helper by a relative name and searches a caller-controlled PATH without dropping privilege, the attacker can replace the helper that it runs. Pandora's summary records this route, but the detailed final steps are unfinished.
**Needs:** A SUID program that preserves privilege and searches a writable/prepended path for the needed command. A SUID bit by itself does not make every program exploitable.
<figure class="primer-diagram plate corners">
<figcaption>SUID helper and PATH hijacking - how it works</figcaption>
<ol>
<li><details><summary>Launch the privileged wrapper</summary><p>Its effective UID can differ from the invoking user's UID.</p></details></li>
<li><details><summary>Wrapper searches an unsafe helper path</summary><p>A controlled executable is selected before the intended helper.</p></details></li>
<li><details><summary>Controlled helper inherits privilege</summary><p>The test succeeds only if the wrapper does not drop or sanitise that privilege.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled helper marker and effective UID demonstrate the path. Pandora is labelled as an unfinished source.
**Fix:** Use absolute helper paths, sanitise the environment, drop privileges and remove unnecessary SUID bits.
**Partial note:** Pandora (DAEMONSEC-VAULT).
<h3 id="suid-helper-flaw">Vulnerable SUID helper: Enlightenment</h3>
Even when the caller cannot replace a helper, a privileged helper may parse its own arguments unsafely. BoardLight's Enlightenment helper flaw allowed caller-controlled path/input to reach unintended command execution with effective root privileges. This is a specific implementation bug, not proof that every SUID application is vulnerable.
**Needs:** The affected installed helper, its SUID privilege and the vulnerable input-handling path.
<figure class="primer-diagram plate corners">
<figcaption>Vulnerable SUID helper: Enlightenment - how it works</figcaption>
<ol>
<li><details><summary>Call the SUID helper with crafted input</summary><p>The process starts with elevated effective privileges.</p></details></li>
<li><details><summary>Vulnerable handling interprets input unsafely</summary><p>Untrusted values reach a dangerous execution path.</p></details></li>
<li><details><summary>An unintended command inherits root</summary><p>The specific helper defect crosses the local privilege boundary.</p></details></li>
</ol>
</figure>
**Evidence:** A benign root-identity marker through the affected helper.
**Fix:** Install the fixed package and remove unnecessary SUID privilege from vulnerable helpers.
**Documented example:** BoardLight (DAEMONSEC-VAULT).
<h3 id="linux-capabilities">Linux capability abuse</h3>
Capabilities split root's privileges into individual powers. A general-purpose interpreter with CAP_SETUID can change its process identity if that capability is effective. Cap's Python binary held that power, letting an ordinary user move to UID 0 without a SUID Python binary.
**Needs:** An executable available to the user with the required effective capability and runtime support. CAP_NET_BIND_SERVICE alone does not allow changing UID.
<figure class="primer-diagram plate corners">
<figcaption>Linux capability abuse - how it works</figcaption>
<ol>
<li><details><summary>Execute the capability-bearing interpreter</summary><p>The file capability grants a narrow privileged operation.</p></details></li>
<li><details><summary>Use the permitted identity operation</summary><p>CAP_SETUID authorises a UID change in that process.</p></details></li>
<li><details><summary>Continue as the changed identity</summary><p>A subsequent process or operation can run with that identity's rights.</p></details></li>
</ol>
</figure>
**Evidence:** The interpreter's process reports effective UID 0 after the controlled identity change.
**Fix:** Remove unnecessary file capabilities, particularly identity-changing powers from general-purpose interpreters.
**Documented example:** Cap (DAEMONSEC-VAULT).
<h3 id="container-bind-mount">Container bind-mount ownership and SUID abuse</h3>
A writable bind mount exposes the same host files inside a container. Without the necessary isolation, container root can alter ownership and modes on those host files. GoodGames used that shared path to create a root-owned SUID executable which was then run from a host session.
**Needs:** Writable shared storage, sufficient capability/UID mapping in the container, and host execution on a filesystem permitting SUID. Container UID 0 is not universally host root.
<figure class="primer-diagram plate corners">
<figcaption>Container bind-mount ownership and SUID abuse - how it works</figcaption>
<ol>
<li><details><summary>Modify a shared file as container root</summary><p>The mount writes through to the underlying host file.</p></details></li>
<li><details><summary>Host sees the changed ownership/mode</summary><p>The relevant UID mapping and mount policy preserve the change.</p></details></li>
<li><details><summary>Execute from the host context</summary><p>A SUID-enabled host execution gains the file owner's effective identity.</p></details></li>
</ol>
</figure>
**Evidence:** The host observes the permission change and a controlled host execution proves privilege. A root container prompt alone does not.
**Fix:** Use user namespaces, restrict bind mounts/capabilities and avoid exposing writable host paths or SUID-enabled execution.
**Documented example:** GoodGames (DAEMONSEC-VAULT).
<h3 id="polkit-race">Polkit authorisation race</h3>
CVE-2021-3560 was an authorisation flaw in polkit's handling of a disappearing D-Bus caller. In the affected path, disconnecting at the right point could make a credential-lookup error be treated as a privileged caller. Papers' notes use this local route. It is a polkit flaw, despite the note's synopsis calling it a sudo issue.
**Needs:** An affected polkit version/path, local access and the race conditions needed by the test.
<figure class="primer-diagram plate corners">
<figcaption>Polkit authorisation race - how it works</figcaption>
<ol>
<li><details><summary>Start a privileged D-Bus request</summary><p>An ordinary process requests an operation needing authorisation.</p></details></li>
<li><details><summary>Caller disappears during credential lookup</summary><p>The vulnerable error path mishandles the missing caller identity.</p></details></li>
<li><details><summary>Operation is incorrectly authorised</summary><p>The request can create/change an account through a privileged service.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled privileged account operation demonstrates the authorisation failure.
**Fix:** Update polkit and review/remove test accounts and privileges introduced during validation.
**Documented example:** Papers (DAEMONSEC-VAULT).
<h3 id="overlayfs">OverlayFS/FUSE copy-up privilege flaw</h3>
CVE-2023-0386 concerns OverlayFS copy-up handling of file ownership across user namespaces. An affected kernel can copy attacker-controlled metadata into a host-visible file with unintended privilege. TwoMillion used this kernel path after obtaining a normal local account.
**Needs:** An affected kernel and the user-namespace/FUSE/OverlayFS conditions required by the exploit. Distribution backports matter more than a broad version banner.
<figure class="primer-diagram plate corners">
<figcaption>OverlayFS/FUSE copy-up privilege flaw - how it works</figcaption>
<ol>
<li><details><summary>Present a crafted lower filesystem</summary><p>File ownership/privilege metadata is controlled in a namespace.</p></details></li>
<li><details><summary>Trigger OverlayFS copy-up</summary><p>The vulnerable kernel fails the required ownership-mapping check.</p></details></li>
<li><details><summary>Privileged file appears in the upper layer</summary><p>A suitable execution path turns that incorrect metadata into elevated access.</p></details></li>
</ol>
</figure>
**Evidence:** A benign privilege result on the affected kernel, with patch state and prerequisites recorded.
**Fix:** Install the vendor kernel fix and reduce unnecessary unprivileged namespace exposure.
**Documented example:** TwoMillion (DAEMONSEC-VAULT).
## Windows privilege escalation
[Upload redirection through a directory junction](#upload-junction) | [FullPowers service-token restoration](#fullpowers) | [Token impersonation and Potato attacks](#potato-impersonation) | [SeBackupPrivilege and offline credential-hive extraction](#backup-privilege) | [DnsAdmins server-plugin loading](#dnsadmins) | [Service configuration and Server Operators abuse](#service-config) | [SeTcbPrivilege and disabled token privileges](#tcb-privilege) | [Privileged GUI file-dialog escape](#privileged-gui-dialog)
<h3 id="upload-junction">Upload redirection through a directory junction</h3>
A directory junction redirects filesystem operations to another directory. Media let a user pre-create an upload destination as a junction; the higher-privilege upload handler trusted it and wrote into the web root. This crossed a write boundary and created a code-execution route under Apache's account.
**Needs:** Write/control over the destination directory, a handler following the reparse point and write permission at the destination for that handler's identity.
<figure class="primer-diagram plate corners">
<figcaption>Upload redirection through a directory junction - how it works</figcaption>
<ol>
<li><details><summary>Replace the expected directory with a junction</summary><p>The user-controlled entry points at a different writable destination.</p></details></li>
<li><details><summary>Upload handler follows the redirect</summary><p>It writes where the junction resolves rather than where it intended.</p></details></li>
<li><details><summary>Web runtime executes the uploaded content</summary><p>A separate web request runs it under the web service identity.</p></details></li>
</ol>
</figure>
**Evidence:** The file lands at the redirected path and a harmless execution marker identifies the resulting service account.
**Fix:** Use protected upload directories outside executable roots and securely reject/revalidate reparse points during writes.
**Documented example:** [Media](https://daemon-sec.xyz/post/htb-media).
<h3 id="fullpowers">FullPowers service-token restoration</h3>
A Windows process token may have privileges removed even though the account normally receives them. FullPowers uses a compatible service/task context to obtain a fresh token for the same account with its default privileges. In Media this restored SeImpersonatePrivilege, enabling a later attack; FullPowers was not itself the SYSTEM step.
**Needs:** A compatible service identity and task/service configuration permitting the fresh-token route. It cannot generally manufacture rights the account is not entitled to receive.
<figure class="primer-diagram plate corners">
<figcaption>FullPowers service-token restoration - how it works</figcaption>
<ol>
<li><details><summary>Inspect the current restricted token</summary><p>The account's expected privilege is absent from this process.</p></details></li>
<li><details><summary>Obtain a fresh same-account token</summary><p>A compatible scheduled-task/service route creates a new process context.</p></details></li>
<li><details><summary>Verify the restored privilege</summary><p>The account is still the same, but its effective token now permits the next operation.</p></details></li>
</ol>
</figure>
**Evidence:** The new token lists the required privilege. Verify account identity separately from token privileges.
**Fix:** Avoid relying only on a stripped process token when the account can recover its default rights; minimise the service identity's entitlement.
**Documented example:** [Media](https://daemon-sec.xyz/post/htb-media).
<h3 id="potato-impersonation">Token impersonation and Potato attacks</h3>
Service accounts can hold impersonation privileges so servers may act for connecting clients. A suitable Potato exploit induces a privileged Windows component to authenticate to an attacker-controlled endpoint and abuses the resulting impersonation context to launch an elevated process. The particular protocol path depends on the tool and Windows build.
**Needs:** The required effective privilege, a compatible Windows component/build and the tool's trigger conditions. A disabled/absent privilege or a mismatched build can stop the route.
<figure class="primer-diagram plate corners">
<figcaption>Token impersonation and Potato attacks - how it works</figcaption>
<ol>
<li><details><summary>Privileged component reaches a controlled endpoint</summary><p>A compatible COM/RPC or related trigger creates the connection.</p></details></li>
<li><details><summary>Service process impersonates the client</summary><p>The available token/impersonation level grants an elevated context.</p></details></li>
<li><details><summary>Start and verify the elevated process</summary><p>A supported token API produces a process whose actual identity must be checked.</p></details></li>
</ol>
</figure>
**Evidence:** An identity check shows SYSTEM. Jeeves records original JuicyPotato success and newer-tool failures; Media records GodPotato after FullPowers.
**Fix:** Patch affected components and minimise service impersonation rights and endpoint exposure.
**Documented example:** [Jeeves](https://daemon-sec.xyz/post/htb-jeeves), [Media](https://daemon-sec.xyz/post/htb-media). [Tool commands](/sheets/pentest-workflow/potato-attacks-guide).
<h3 id="backup-privilege">SeBackupPrivilege and offline credential-hive extraction</h3>
Backup privilege can permit protected file reads through backup-aware operations, even when normal file ACLs deny access. Cicada's note saves SAM and SYSTEM data and processes them offline. SAM holds local account verifiers; SYSTEM supplies material needed to decrypt them. Domain-controller NTDS extraction is a different dataset and requires its own evidence.
**Needs:** Effective backup/read capability, an operation that uses it and the required matching hive/database material.
<figure class="primer-diagram plate corners">
<figcaption>SeBackupPrivilege and offline credential-hive extraction - how it works</figcaption>
<ol>
<li><details><summary>Use the privileged backup-read route</summary><p>The operation reads otherwise protected registry/file data.</p></details></li>
<li><details><summary>Export the matching credential material</summary><p>Local SAM processing also needs the corresponding SYSTEM hive.</p></details></li>
<li><details><summary>Process the copies offline</summary><p>A tool extracts verifiers, which may support a separately authorised authentication test.</p></details></li>
</ol>
</figure>
**Evidence:** The extracted local account identity and a controlled authentication result. Do not relabel a SAM dump as DCSync.
**Fix:** Restrict backup operator privileges, protect backups and use local credential isolation/rotation appropriate to the host.
**Documented example:** Cicada (DAEMONSEC-VAULT).
<h3 id="dnsadmins">DnsAdmins server-plugin loading</h3>
An eligible DNS administrator can configure a server-level plugin DLL. If the Windows DNS service subsequently loads that controlled DLL under its privileged service identity, directory/DNS administration becomes local execution as the service. Resolute's narrative records that route.
**Needs:** Rights to configure the plugin, a DLL path readable by the DNS service and a valid service-load/restart trigger. Group membership alone does not prove all three.
<figure class="primer-diagram plate corners">
<figcaption>DnsAdmins server-plugin loading - how it works</figcaption>
<ol>
<li><details><summary>Set the DNS plugin path</summary><p>A delegated server-setting operation points to controlled code.</p></details></li>
<li><details><summary>DNS service loads the plugin</summary><p>A restart or supported load event triggers DLL loading.</p></details></li>
<li><details><summary>Plugin executes as the DNS service</summary><p>The service identity determines the privilege gained.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled marker under the DNS service identity, and a saved original plugin setting.
**Fix:** Restrict DNS service configuration and restart rights, patch and audit server-level plugin changes.
**Documented example:** Resolute (DAEMONSEC-VAULT).
<h3 id="service-config">Service configuration and Server Operators abuse</h3>
A Windows service can run as a privileged account. An operator who can replace its executable command or writable binary, and trigger a start, can make it run tester-controlled code in that account. Return's command notes use a service-control path after obtaining the printer's service credential.
**Needs:** Effective change-configuration or binary-write rights and a service trigger. Read access to service metadata is not sufficient.
<figure class="primer-diagram plate corners">
<figcaption>Service configuration and Server Operators abuse - how it works</figcaption>
<ol>
<li><details><summary>Modify the service command or binary</summary><p>A delegated service control right changes what will execute.</p></details></li>
<li><details><summary>Start the affected service</summary><p>The service manager launches the configured operation.</p></details></li>
<li><details><summary>Operation inherits the service identity</summary><p>A SYSTEM service can execute the controlled operation as SYSTEM.</p></details></li>
</ol>
</figure>
**Evidence:** A benign marker from the service context, with the original configuration captured and restored.
**Fix:** Restrict service ACLs and operator memberships, protect executable paths and monitor configuration changes.
**Documented example:** Return (DAEMONSEC-VAULT), [Red Block p. 155](#tools-from-the-red-block-report).
<h3 id="tcb-privilege">SeTcbPrivilege and disabled token privileges</h3>
Disabled privileges can sometimes be enabled if they are already in a process token. This differs from acquiring a privilege that is absent. The report first enables present privileges, then uses a separate SeTcbPrivilege-specific helper to launch a privileged process.
**Needs:** SeTcbPrivilege present in the relevant token, a compatible helper/OS and access to the required system operations.
<figure class="primer-diagram plate corners">
<figcaption>SeTcbPrivilege and disabled token privileges - how it works</figcaption>
<ol>
<li><details><summary>Inspect the current token</summary><p>Identify privileges present but disabled versus completely absent.</p></details></li>
<li><details><summary>Enable the existing privilege</summary><p>Adjusting a token does not create a new account or grant missing rights.</p></details></li>
<li><details><summary>Use the specific privileged operation</summary><p>A separate mechanism launches the proof process with an elevated identity.</p></details></li>
</ol>
</figure>
**Evidence:** Identity output from the newly launched process. An Enabled flag alone is not SYSTEM proof.
**Fix:** Restrict SeTcbPrivilege to the trusted operating-system components that need it.
**Report example:** [Red Block pp. 59-62](#tools-from-the-red-block-report). [Tool commands](/sheets/privilege-escalation/enablealltokenprivs-tcbelevation).
<h3 id="privileged-gui-dialog">Privileged GUI file-dialog escape</h3>
A privileged desktop application may open a file dialog that can launch an unintended executable. The child can inherit the elevated application context. The report describes Remote Mouse GUI 3.008 and CVE-2021-35448; that is a specific affected application path, not a universal property of every file picker.
**Needs:** Interactive desktop access and the affected application actually running with elevated privileges.
<figure class="primer-diagram plate corners">
<figcaption>Privileged GUI file-dialog escape - how it works</figcaption>
<ol>
<li><details><summary>Reach the elevated application</summary><p>The user opens its image-folder selection interface.</p></details></li>
<li><details><summary>Dialog launches a test executable</summary><p>The privileged program creates a child outside its intended task.</p></details></li>
<li><details><summary>Child inherits the elevated context</summary><p>Confirm the launched process token rather than judging its window appearance.</p></details></li>
</ol>
</figure>
**Evidence:** Process identity and token integrity demonstrating the boundary crossing.
**Fix:** Patch the affected application and avoid exposing privileged interactive interfaces to ordinary users.
**Report example:** [Red Block pp. 68-73](#tools-from-the-red-block-report). [Tool commands](/sheets/privilege-escalation/psexec).
## Movement, sessions and boundaries
[Pass-the-hash](#pass-the-hash) | [Kerberos ticket use and pass-the-ticket](#ticket-use) | [Certificate and private-key authentication](#certificate-key-use) | [SAM, LSA and LSASS credential access](#credential-dumping) | [SSH forwarding, SOCKS and routed pivots](#pivoting) | [SSH authorised-key modification](#ssh-authorized-keys) | [HTTP header trust and firewall-management abuse](#header-trust) | [NTFS Alternate Data Streams](#ads)
<h3 id="pass-the-hash">Pass-the-hash</h3>
NTLM authentication proves knowledge of key material derived from the NT hash; the plaintext password is not needed to compute a valid response. A tool holding the NT hash can perform that calculation. This is not sending a captured NetNTLMv2 response unchanged, and it still requires a service accepting NTLM plus account authorisation.
**Needs:** The correct account's NT hash, a compatible NTLM endpoint and the permissions needed for the operation. Local accounts can face remote restrictions.
<figure class="primer-diagram plate corners">
<figcaption>Pass-the-hash - how it works</figcaption>
<ol>
<li><details><summary>Hold the account's reusable NT key</summary><p>The material comes from an authorised dump, vault or equivalent recovery.</p></details></li>
<li><details><summary>Compute a fresh challenge-response</summary><p>The tool answers the server's new challenge using that key.</p></details></li>
<li><details><summary>Server checks identity and permissions</summary><p>Authentication success does not override endpoint logon or admin policy.</p></details></li>
</ol>
</figure>
**Evidence:** A controlled session identifies the correct account and allowed operation.
**Fix:** Reduce NTLM use, protect credential material and apply unique managed local passwords and least privilege.
**Documented example:** [Sauna](https://daemon-sec.xyz/post/htb-sauna), [Jeeves](https://daemon-sec.xyz/post/htb-jeeves), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher), Cicada (DAEMONSEC-VAULT), Zephyr (DAEMONSEC-VAULT), Garfield (DAEMONSEC-VAULT). [Tool commands](/sheets/active-directory/evil-winrm).
<h3 id="ticket-use">Kerberos ticket use and pass-the-ticket</h3>
A Kerberos ticket proves an identity to the service for which it was issued. A caller controlling a valid ticket and its session key can use that authentication state without the user's password. A TGT is used to obtain service tickets; a service ticket applies to a particular service, subject to validity and policy.
**Needs:** Valid ticket/key material, correct service principal/name, network reachability and acceptable clock/validity. Ticket conversion changes storage format, not privilege.
<figure class="primer-diagram plate corners">
<figcaption>Kerberos ticket use and pass-the-ticket - how it works</figcaption>
<ol>
<li><details><summary>Load or obtain the relevant ticket</summary><p>A cache or process holds the Kerberos authentication state.</p></details></li>
<li><details><summary>Request or present the service ticket</summary><p>The ticket must match the target service and naming.</p></details></li>
<li><details><summary>Service authorises the mapped identity</summary><p>The endpoint applies its permissions after authentication.</p></details></li>
</ol>
</figure>
**Evidence:** The actual target service accepts the ticket as the intended account.
**Fix:** Protect ticket caches/session keys, minimise privileged logons and investigate credential theft or delegation paths.
**Documented example:** [Forest](https://daemon-sec.xyz/post/htb-forest), [Support](https://daemon-sec.xyz/post/htb-support), Zephyr (DAEMONSEC-VAULT), Garfield (DAEMONSEC-VAULT).
<h3 id="certificate-key-use">Certificate and private-key authentication</h3>
A certificate binds a public key to an identity, and authentication requires proving possession of its private key. A stolen PFX can therefore be a credential even when the account password is unknown. Timelapse used recovered certificate/key files with WinRM TLS authentication; AD CS paths used Kerberos PKINIT, which is a different protocol flow.
**Needs:** The matching private key, a certificate valid for the authentication route and a server mapping that identity to an allowed account. A public certificate alone is insufficient.
<figure class="primer-diagram plate corners">
<figcaption>Certificate and private-key authentication - how it works</figcaption>
<ol>
<li><details><summary>Recover the certificate and matching key</summary><p>A PFX or separate files supplies the credential pair.</p></details></li>
<li><details><summary>Prove possession to the authentication endpoint</summary><p>The client signs the required protocol data with the private key.</p></details></li>
<li><details><summary>Server maps and authorises the identity</summary><p>TLS client-certificate mapping and PKINIT must be evaluated separately.</p></details></li>
</ol>
</figure>
**Evidence:** A successful session as the expected account using the documented authentication method.
**Fix:** Protect/export-restrict private keys, revoke compromised certificates and apply strong identity mappings.
**Documented example:** Timelapse (DAEMONSEC-VAULT), [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo), [Fluffy](https://daemon-sec.xyz/post/htb-fluffy), Certified (DAEMONSEC-VAULT), [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher). [Tool commands](/sheets/cryptography/openssl).
<h3 id="credential-dumping">SAM, LSA and LSASS credential access</h3>
A privileged process can sometimes retrieve local password verifiers, service secrets or credential material from protected stores or authentication memory. Zephyr used secretsdump and Mimikatz/Kiwi routes after obtaining elevated access. These stores are different: SAM is local accounts, LSA secrets can contain service material, and LSASS holds authentication state.
**Needs:** The actual required privilege and readable/unprotected store. Credential Guard, protected processes and endpoint controls can prevent a particular memory route.
<figure class="primer-diagram plate corners">
<figcaption>SAM, LSA and LSASS credential access - how it works</figcaption>
<ol>
<li><details><summary>Establish the real privileged context</summary><p>Check account and token privileges rather than the prompt or directory.</p></details></li>
<li><details><summary>Read the eligible credential store</summary><p>The chosen operation accesses its particular dataset.</p></details></li>
<li><details><summary>Identify the recovered account and realm</summary><p>Use only the material applicable to that local/domain identity.</p></details></li>
</ol>
</figure>
**Evidence:** A redacted result tied to its source store and a controlled validation. A tool error is not a successful dump.
**Fix:** Minimise privileged sessions, protect credential stores and apply isolation, endpoint protection and secret rotation.
**Documented example:** Zephyr (DAEMONSEC-VAULT), [CMP210](https://daemon-sec.xyz/post/cmp210-network-penetration-test), Cicada (DAEMONSEC-VAULT).
<h3 id="pivoting">SSH forwarding, SOCKS and routed pivots</h3>
A pivot sends traffic through a host with network reach that the testing machine lacks. SSH local forwarding maps one local port to a remote destination; SOCKS proxies compatible connections; Ligolo builds a routed path. The tunnel grants reachability, not credentials or authorisation to the destination.
**Needs:** An accessible controlled pivot, a route from it to the destination and correctly configured return traffic/name resolution.
<figure class="primer-diagram plate corners">
<figcaption>SSH forwarding, SOCKS and routed pivots - how it works</figcaption>
<ol>
<li><details><summary>Tester reaches the pivot</summary><p>The tunnel or proxy is established to an already controlled host.</p></details></li>
<li><details><summary>Pivot connects to the internal target</summary><p>Its network position supplies the otherwise missing route.</p></details></li>
<li><details><summary>Target still checks authentication</summary><p>The target sees a reachable connection and applies its own access controls.</p></details></li>
</ol>
</figure>
**Evidence:** A known service is reachable through the intended path; then independently verify authentication. Track each hop in a double pivot.
**Fix:** Segment management traffic, limit egress and enforce strong destination authentication despite internal reachability.
**Documented example:** [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment), Pandora (DAEMONSEC-VAULT), GoodGames (DAEMONSEC-VAULT), Zephyr (DAEMONSEC-VAULT), Garfield (DAEMONSEC-VAULT). [Tool commands](/sheets/tunneling-pivoting/ligolo-ng).
<h3 id="ssh-authorized-keys">SSH authorised-key modification</h3>
Adding a public key to an account's authorised keys lets the matching private key authenticate if the SSH server permits that account/key. This is legitimate credential installation with the wrong writer. It can be a foothold, as in Postman, or an access-maintenance step, as in CMP314.
**Needs:** Write access to the effective authorised-key location and a server accepting that account/key. Filesystem modes, account restrictions and network reachability still matter.
<figure class="primer-diagram plate corners">
<figcaption>SSH authorised-key modification - how it works</figcaption>
<ol>
<li><details><summary>Write the test public key</summary><p>The account's trusted-key list gains a new entry.</p></details></li>
<li><details><summary>Prove possession over SSH</summary><p>The client signs the server's authentication challenge.</p></details></li>
<li><details><summary>SSH permits the account session</summary><p>The account's login policy and SSH options determine the access.</p></details></li>
</ol>
</figure>
**Evidence:** A successful controlled key login. Remove only the injected key and preserve pre-existing entries.
**Fix:** Restrict writes to authentication files, audit key changes and constrain key options and account access.
**Documented example:** [Postman](https://daemon-sec.xyz/post/htb-postman), [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment).
<h3 id="header-trust">HTTP header trust and firewall-management abuse</h3>
Host and Referer are request metadata supplied by the client; they are not proof that a caller is trusted. CMP314 reached a firewall GUI through a pivot, rewrote its expected headers, authenticated with default credentials and changed rules. Reaching the GUI, passing a header check and changing policy were separate stages.
**Needs:** Network reach to the management interface, the vulnerable header check, valid management access and permission to change rules.
<figure class="primer-diagram plate corners">
<figcaption>HTTP header trust and firewall-management abuse - how it works</figcaption>
<ol>
<li><details><summary>Reach the management GUI through a pivot</summary><p>Filtering from the initial position is bypassed by the alternate network path.</p></details></li>
<li><details><summary>Supply expected header values</summary><p>A client-controlled check does not establish identity.</p></details></li>
<li><details><summary>Use management rights to change policy</summary><p>The resulting rule change exposes additional routes or segments.</p></details></li>
</ol>
</figure>
**Evidence:** The authorised test session changes a recorded rule and the intended route becomes reachable. Restore the rule afterwards.
**Fix:** Use real authentication/authorisation, remove defaults and isolate management interfaces; headers are only supplementary signals.
**Documented example:** [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment).
<h3 id="ads">NTFS Alternate Data Streams</h3>
NTFS files can have named data streams besides their ordinary contents. A plain directory listing may hide those streams, so reading only the unnamed file can miss data. Jeeves used this to locate the final proof. ADS is a storage/enumeration concept here, not a privilege-escalation exploit.
**Needs:** An NTFS file with an additional stream and permission to enumerate/read it.
<figure class="primer-diagram plate corners">
<figcaption>NTFS Alternate Data Streams - how it works</figcaption>
<ol>
<li><details><summary>Enumerate the file's streams</summary><p>Ask for named streams, not just the default directory view.</p></details></li>
<li><details><summary>Identify the unexpected stream</summary><p>The extra name indicates another data body attached to the file.</p></details></li>
<li><details><summary>Read it under existing permissions</summary><p>Finding the stream does not grant a new access token.</p></details></li>
</ol>
</figure>
**Evidence:** A named stream and its permitted content are visible. Flag values remain redacted.
**Fix:** Include streams in forensic/file inspection and review unexpected stream usage.
**Supporting technique:** [Jeeves](https://daemon-sec.xyz/post/htb-jeeves).
## Worked chains
A chain connects separate weaknesses. Removing any necessary link can prevent the final outcome. These three examples show why a password, a permission and a network route should be tracked independently.
### Web to root: MetaTwo
<figure class="primer-diagram plate corners">
<figcaption>MetaTwo: disclosure becomes access</figcaption>
<ol>
<li><details><summary>SQLi yields a password verifier</summary><p>Recover the WordPress account password and validate the login.</p></details></li>
<li><details><summary>XXE reveals configuration</summary><p>FTP and other configuration disclose a reused SSH secret.</p></details></li>
<li><details><summary>Passpie exposes the final stored secret</summary><p>Recover the encrypted vault key/password and validate the root credential.</p></details></li>
</ol>
</figure>
### User to domain replication: Forest
<figure class="primer-diagram plate corners">
<figcaption>Forest: identity and directory rights</figcaption>
<ol>
<li><details><summary>AS-REP gives an offline verifier</summary><p>Recover the user password and establish a domain session.</p></details></li>
<li><details><summary>Nested groups expose domain ACL control</summary><p>Use the demonstrated group/WriteDACL path to gain replication rights.</p></details></li>
<li><details><summary>DCSync returns permitted account secrets</summary><p>Replication permission, not the roasting step, enables directory-secret retrieval.</p></details></li>
</ol>
</figure>
### Application to service identity: supplied report
<figure class="primer-diagram plate corners">
<figcaption>Report: file inclusion and local delegation</figcaption>
<ol>
<li><details><summary>Source read reveals weak invite validation</summary><p>A format-matching value unlocks an upload endpoint.</p></details></li>
<li><details><summary>Upload plus LFI executes PHP</summary><p>The application includes the uploaded content; extension alone is not the execution mechanism.</p></details></li>
<li><details><summary>Local enumeration finds another access path</summary><p>Unrestricted FTP read reveals a key; sudo csvtool delegation is a later independent root step.</p></details></li>
</ol>
</figure>
## Tools from the Red Block report
The supplied report's tool order is encrypted to the Main_Key. The public ☧ mark identifies a related tool guide; its number, report pages and position appear only in the unlocked list. Guide titles and URLs use tool names.
<button type="button" class="report-index-link" data-report-index-open aria-haspopup="dialog" aria-controls="report-index-dialog">☧ Unlock ordered tool index</button>
Download the encrypted file, decrypt it locally with GPG, then open the resulting JSON in the panel. Repeated uses of a tool retain their separate numbers. Some historical commands occur only in screenshots; a flag or version label is not independent proof.
**Read these differences before reproducing a historical command:**
- The report uses the legacy PowerShell Inveigh script; the new guide documents the maintained C# build. Inspect the matching help rather than mixing flags.
- The report's Ligolo setup is version-specific. The proxy, agent, interface and route must agree; a callback may need a pivot-side listener even when ordinary target connections work. Prefer verified certificate trust for tunnels.
- A file named `.one` yielding an Office verifier is not proof that every OneNote file is supported by `office2john`. Identify the actual container and check the installed extractor's support.
- Readable deleted-account attributes do not demonstrate successful account restoration. The report uses a description/password clue; TombWatcher's restored AD object is a separate documented path.
- gMSA output should be interpreted as account authentication material, often an NT hash; a convenient human-readable password is not guaranteed.
- The Anuko helper name in the report is a local rename, not an independently established upstream tool identity. Capture the authenticated Puncher request and review the parameter/affected build before using any automated helper.
- [Webmin's advisory](https://webmin.com/security/#privilege-escalation-exploit-cve-2022-30708) names 1.991 and below for CVE-2022-30708. The report's 1.996 label remains a discrepancy.
- Chisel and socat are mentioned as alternatives; the report does not establish their use in that path. Disabling protection software is not a prerequisite for explaining SharpHound collection.
## Source coverage and evidence limits
The map below records which reviewed write-ups contribute each mechanism. Repeated vault copies of a published machine are treated as the same example. Placeholder templates, speculative alternatives and scan-only findings are not counted as completed exploitation. This is coverage of the reviewed documents as of 2026-10-11, rather than a claim to catalogue every possible penetration-testing attack.
| Reviewed source | Mechanisms explained here | Evidence scope |
|---|---|---|
| Administrator (DAEMONSEC-VAULT) | [WriteOwner, WriteDACL and object control](#ownership-dacl), [ForceChangePassword and account takeover](#force-password-reset) | Partial vault note; only recorded steps |
| BoardLight (DAEMONSEC-VAULT) | [Online brute force and default credentials](#brute-force), [Password reuse and local/domain identity confusion](#password-reuse), [CMS code editing and upload-to-execution](#cms-code-editing), [Vulnerable SUID helper: Enlightenment](#suid-helper-flaw) | Vault narrative |
| [Builder](https://daemon-sec.xyz/post/htb-builder) | [Offline password, key and vault cracking](#offline-cracking), [Jenkins CLI arbitrary file read](#jenkins-file-read), [Build pipeline and credential-binding abuse](#jenkins-pipeline) | Published write-up |
| [CMP210](https://daemon-sec.xyz/post/cmp210-network-penetration-test) | [Online brute force and default credentials](#brute-force), [SAM, LSA and LSASS credential access](#credential-dumping) | Published write-up |
| [CMP314](https://daemon-sec.xyz/post/cmp314-acme-network-assessment) | [NFS export and file-permission abuse](#nfs-exposure), [Cleartext authentication interception](#plaintext-bind), [Offline password, key and vault cracking](#offline-cracking), [Online brute force and default credentials](#brute-force), [Shellshock in Bash-backed CGI](#shellshock), [SSH forwarding, SOCKS and routed pivots](#pivoting), [SSH authorised-key modification](#ssh-authorized-keys), [HTTP header trust and firewall-management abuse](#header-trust) | Published write-up |
| [CMP319](https://daemon-sec.xyz/post/cmp319-bumtree-web-app-pentest) | [Online brute force and default credentials](#brute-force), [SQL injection](#sqli), [Reflected cross-site scripting](#reflected-xss), [Stored cross-site scripting](#stored-xss), [Path traversal and local file inclusion](#path-traversal-lfi), [Shellshock in Bash-backed CGI](#shellshock) | Published write-up |
| Cap (DAEMONSEC-VAULT) | [Cleartext authentication interception](#plaintext-bind), [IDOR and missing object authorisation](#idor), [Linux capability abuse](#linux-capabilities) | Vault narrative |
| Certified (DAEMONSEC-VAULT) | [Group membership, AddSelf and inherited access](#group-membership), [WriteOwner, WriteDACL and object control](#ownership-dacl), [Shadow credentials](#shadow-credentials), [AD CS ESC9: missing template SID extension](#esc9), [Certificate and private-key authentication](#certificate-key-use) | Vault narrative |
| Cicada (DAEMONSEC-VAULT) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Password spraying](#password-spraying), [SeBackupPrivilege and offline credential-hive extraction](#backup-privilege), [Pass-the-hash](#pass-the-hash), [SAM, LSA and LSASS credential access](#credential-dumping) | Vault narrative |
| Devvortex (DAEMONSEC-VAULT) | [CMS configuration and draft disclosure](#cms-info-disclosure), [CMS code editing and upload-to-execution](#cms-code-editing), [Sudo pager shell escape](#sudo-pager) | Vault narrative |
| [EscapeTwo](https://daemon-sec.xyz/post/htb-escapetwo) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Password spraying](#password-spraying), [Password reuse and local/domain identity confusion](#password-reuse), [SQL Server xp_cmdshell execution](#mssql-xp-cmdshell), [WriteOwner, WriteDACL and object control](#ownership-dacl), [Shadow credentials](#shadow-credentials), [AD CS ESC1: requester-chosen authentication identity](#esc1), [AD CS ESC4: template control becomes ESC1](#esc4), [Pass-the-hash](#pass-the-hash), [Certificate and private-key authentication](#certificate-key-use) | Published write-up |
| [Fluffy](https://daemon-sec.xyz/post/htb-fluffy) | [Offline password, key and vault cracking](#offline-cracking), [Forced authentication and NetNTLM capture](#forced-ntlm), [Kerberoasting and targeted SPN abuse](#kerberoast), [Group membership, AddSelf and inherited access](#group-membership), [Shadow credentials](#shadow-credentials), [AD CS ESC16: CA-wide missing SID extension](#esc16), [Pass-the-hash](#pass-the-hash), [Certificate and private-key authentication](#certificate-key-use) | Published write-up |
| [Forest](https://daemon-sec.xyz/post/htb-forest) | [Anonymous SMB, LDAP and FTP access](#anonymous-access), [Offline password, key and vault cracking](#offline-cracking), [AS-REP roasting](#asrep-roast), [Group membership, AddSelf and inherited access](#group-membership), [WriteOwner, WriteDACL and object control](#ownership-dacl), [DCSync replication-right abuse](#dcsync), [Kerberos ticket use and pass-the-ticket](#ticket-use) | Published write-up |
| Garfield (DAEMONSEC-VAULT) | [Group membership, AddSelf and inherited access](#group-membership), [ForceChangePassword and account takeover](#force-password-reset), [Resource-based constrained delegation](#rbcd), [Writable logon scripts and scriptPath abuse](#logon-script), [RODC ticket forgery and Kerberos Key List abuse](#rodc-key-list), [Pass-the-hash](#pass-the-hash), [Kerberos ticket use and pass-the-ticket](#ticket-use), [SSH forwarding, SOCKS and routed pivots](#pivoting) | Vault narrative |
| GoodGames (DAEMONSEC-VAULT) | [Offline password, key and vault cracking](#offline-cracking), [Password reuse and local/domain identity confusion](#password-reuse), [SQL injection](#sqli), [Server-side template injection](#ssti), [Container bind-mount ownership and SUID abuse](#container-bind-mount), [SSH forwarding, SOCKS and routed pivots](#pivoting) | Vault narrative |
| Interpreter (DAEMONSEC-VAULT) | [Unsafe deserialization](#deserialization) | Partial vault note; only recorded steps |
| [Jeeves](https://daemon-sec.xyz/post/htb-jeeves) | [Offline password, key and vault cracking](#offline-cracking), [Jenkins Script Console execution](#jenkins-console), [Token impersonation and Potato attacks](#potato-impersonation), [Pass-the-hash](#pass-the-hash), [NTFS Alternate Data Streams](#ads) | Published write-up |
| Jerry (DAEMONSEC-VAULT) | [Online brute force and default credentials](#brute-force), [Tomcat Manager application deployment](#tomcat-war) | Vault narrative |
| [Media](https://daemon-sec.xyz/post/htb-media) | [Forced authentication and NetNTLM capture](#forced-ntlm), [CMS code editing and upload-to-execution](#cms-code-editing), [Upload redirection through a directory junction](#upload-junction), [FullPowers service-token restoration](#fullpowers), [Token impersonation and Potato attacks](#potato-impersonation) | Published write-up |
| [MetaTwo](https://daemon-sec.xyz/post/htb-metatwo) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Offline password, key and vault cracking](#offline-cracking), [Password reuse and local/domain identity confusion](#password-reuse), [SQL injection](#sqli), [XML external entity injection](#xxe) | Published write-up |
| Pandora (DAEMONSEC-VAULT) | [SNMP information disclosure](#snmp-disclosure), [SQL injection](#sqli), [SUID helper and PATH hijacking](#suid-path), [SSH forwarding, SOCKS and routed pivots](#pivoting) | Partial vault note; only recorded steps |
| Papers (DAEMONSEC-VAULT) | [Password reuse and local/domain identity confusion](#password-reuse), [Path traversal and local file inclusion](#path-traversal-lfi), [CMS configuration and draft disclosure](#cms-info-disclosure), [Polkit authorisation race](#polkit-race) | Vault narrative |
| [Postman](https://daemon-sec.xyz/post/htb-postman) | [Offline password, key and vault cracking](#offline-cracking), [Password reuse and local/domain identity confusion](#password-reuse), [Operating-system command injection](#command-injection), [Redis persistence-file write to SSH access](#redis-key-write), [SSH authorised-key modification](#ssh-authorized-keys) | Published write-up |
| Resolute (DAEMONSEC-VAULT) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Password spraying](#password-spraying), [DnsAdmins server-plugin loading](#dnsadmins) | Vault narrative |
| Return (DAEMONSEC-VAULT) | [Cleartext authentication interception](#plaintext-bind), [Service configuration and Server Operators abuse](#service-config) | Vault narrative |
| Sau (DAEMONSEC-VAULT) | [Server-side request forgery](#ssrf), [Operating-system command injection](#command-injection), [Sudo pager shell escape](#sudo-pager) | Vault narrative |
| [Sauna](https://daemon-sec.xyz/post/htb-sauna) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Offline password, key and vault cracking](#offline-cracking), [AS-REP roasting](#asrep-roast), [DCSync replication-right abuse](#dcsync), [Pass-the-hash](#pass-the-hash) | Published write-up |
| [Support](https://daemon-sec.xyz/post/htb-support) | [Anonymous SMB, LDAP and FTP access](#anonymous-access), [Credentials in files, directory attributes and history](#secrets-at-rest), [Cleartext authentication interception](#plaintext-bind), [Password spraying](#password-spraying), [Resource-based constrained delegation](#rbcd), [Kerberos ticket use and pass-the-ticket](#ticket-use) | Published write-up |
| Timelapse (DAEMONSEC-VAULT) | [Anonymous SMB, LDAP and FTP access](#anonymous-access), [Credentials in files, directory attributes and history](#secrets-at-rest), [Offline password, key and vault cracking](#offline-cracking), [LAPS password-read delegation](#laps-read), [Certificate and private-key authentication](#certificate-key-use) | Vault narrative |
| [TombWatcher](https://daemon-sec.xyz/post/htb-tombwatcher) | [Offline password, key and vault cracking](#offline-cracking), [Kerberoasting and targeted SPN abuse](#kerberoast), [Group membership, AddSelf and inherited access](#group-membership), [WriteOwner, WriteDACL and object control](#ownership-dacl), [ForceChangePassword and account takeover](#force-password-reset), [gMSA managed-password read abuse](#gmsa-read), [AD Recycle Bin restoration and stale permissions](#ad-recycle-bin), [AD CS ESC15: application-policy injection](#esc15), [Pass-the-hash](#pass-the-hash), [Certificate and private-key authentication](#certificate-key-use) | Published write-up |
| TwoMillion (DAEMONSEC-VAULT) | [Operating-system command injection](#command-injection), [API role modification and broken function authorisation](#api-role-abuse), [OverlayFS/FUSE copy-up privilege flaw](#overlayfs) | Vault narrative |
| Zephyr (DAEMONSEC-VAULT) | [Credentials in files, directory attributes and history](#secrets-at-rest), [Password spraying](#password-spraying), [Password reuse and local/domain identity confusion](#password-reuse), [Forced authentication and NetNTLM capture](#forced-ntlm), [Zabbix SAML session bypass](#zabbix-saml-bypass), [Management-console script execution](#management-script), [Kerberoasting and targeted SPN abuse](#kerberoast), [Constrained delegation and S4U abuse](#constrained-delegation), [DCSync replication-right abuse](#dcsync), [Sudo access to a scriptable tool](#sudo-interpreter), [Pass-the-hash](#pass-the-hash), [Kerberos ticket use and pass-the-ticket](#ticket-use), [SAM, LSA and LSASS credential access](#credential-dumping), [SSH forwarding, SOCKS and routed pivots](#pivoting) | Vault narrative |
| Red Block report, supplied locally | Additional disclosure, upload/inclusion, token, console and plugin examples; encrypted tool index | Third-party historical report; version discrepancies called out |
CMP210's TLS/SSH/PHP scanner findings are not represented as completed exploits. CMP314 demonstrates CGI Shellshock; CMP319's scanner mention alone does not. Pandora and Administrator have unfinished sections, so their proposed endings are not presented as completed paths. Garfield records an RODC Key List result and a failed later ticket-conversion attempt. Pro-lab planning/checklist notes add terminology but do not establish that every suggested attack was performed.
## Technical references
These references support the mechanism explanations and compatibility caveats. The prose and diagrams on this page are original; the supplied report is credited for its examples and is not redistributed.
- [Kerberos protocol specification](https://www.rfc-editor.org/rfc/rfc4120) - tickets, pre-authentication and service identity.
- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) - web test categories and evidence.
- [Microsoft strong certificate mapping guidance](https://techcommunity.microsoft.com/blog/askds/understanding-and-troubleshooting---strong-certificate-name-mapping-in-active-di/4451386) - historical versus enforced certificate identity mapping.
- [Certipy privilege escalation documentation](https://github.com/ly4k/Certipy/wiki/06-%E2%80%90-Privilege-Escalation) - AD CS permission and certificate paths.
- [SpecterOps shadow credentials research](https://specterops.io/blog/2021/06/17/shadow-credentials-abusing-key-trust-account-mapping-for-account-takeover/) - key-trust account takeover.
- [SpecterOps RODC research](https://specterops.io/blog/2023/01/25/at-the-edge-of-tier-zero-the-curious-case-of-the-rodc/) - RODC-specific keys and replication policy constraints.
- [Linux capabilities manual](https://man7.org/linux/man-pages/man7/capabilities.7.html) - per-process privilege capabilities.
- [Zabbix's security advisory](https://blog.zabbix.com/zabbix-security-advisories-regarding-cve-2022-23131-and-cve-2022-23134/19720/) - the session-state/SAML bypass is distinct from Golden SAML.
- [GitHub Security Lab's polkit advisory](https://securitylab.github.com/advisories/GHSL-2021-074-polkit/) - the Papers local escalation mechanism.
- [Webmin security advisories](https://webmin.com/security/) - keep different authenticated issues and version ranges separate.