Exploitation, Post-Exploitation, and Red Team Operations Questions
The hands-on offensive tradecraft of compromising, pivoting through, and persisting in systems while evading defenses. Covers exploit development, privilege escalation, Active Directory and Windows exploitation, lateral movement, persistence, command-and-control, and attack chaining, extending into adversary-emulation campaigns: red-team engagement planning and objectives, multi-stage attack planning, operational security for offensive operators, and detection and defense evasion including web application firewall detection and bypass. The advanced offensive-operations layer executed against real targets, where staying undetected is itself an objective, distinct from the methodical scoped-assessment workflow of a penetration test.
Explain 'living off the land' (LOTL) techniques in post-exploitation. Provide examples of common Windows and Linux binaries abused for malicious purpose (e.g., PowerShell, certutil, bitsadmin, wmic, sc, net, curl, tar) and explain why defenders find LOTL abuse difficult to detect. Suggest practical detection strategies to reduce false positives.
Sample Answer
"Living off the land" (LOTL) means carrying out post-exploitation tasks using software already trusted and present on the target, rather than dropping custom malware. The attacker's activity then looks like ordinary administrative work instead of a new, hash-flaggable binary.
Commonly abused binaries and their legitimate purpose
| Binary | Legitimate purpose | How it gets abused |
|---|---|---|
| PowerShell | Native Windows scripting and administration | Downloads, decodes, and executes code entirely in memory, no file ever touches disk |
| certutil | Managing certificates | Its -urlcache functionality can fetch a remote file and decode it, repurposed as a file-download primitive |
| bitsadmin | Background Intelligent Transfer Service, a resilient file-transfer utility | Used the same way: reliably pulls a payload down even across a flaky connection |
| wmic | Windows Management Instrumentation command-line, used for system administration and inventory | Can launch a process on a remote host, giving an attacker remote code execution using a fully signed Microsoft tool |
| sc | Service control manager tool | Creates a new Windows service, a classic persistence mechanism, using a completely legitimate administrative command |
| net | Local/domain account and group management | Used for account and group enumeration, or to create a new account for later access |
| curl / tar | Present by default on modern Windows and Linux | Download and unpack a payload without needing any attacker-supplied download tool at all |
Why this is hard to detect
Every one of these binaries is signed by a trusted vendor and often explicitly allow-listed by application-control tools like AppLocker, precisely because they're needed for legitimate work. There is no unique file hash or custom code to flag, and the activity has to be picked out of a high volume of genuinely normal administrative noise.
Practical detection strategies that keep false positives down
Detection has to move from "is this tool present" (useless, it's always present) to "is this invocation, in this context, normal." Concretely: log full command-line arguments, not just process names, since the flag combination is often the tell (certutil -urlcache -split -f is a red flag; plain certutil certificate management is not); correlate parent-child process relationships, since certutil spawned by Microsoft Word is anomalous regardless of its arguments, while certutil spawned by a certificate-management script is expected; and baseline per-host-role usage so that a rarely-used tool suddenly appearing on a host where it has no legitimate reason to run raises the alert, rather than alerting on every occurrence system-wide.
Trade-offs and pitfalls
Blanket blocking of these binaries breaks real administrative workflows, since they're genuinely needed. Command-line logging can itself be tampered with once an attacker has sufficient privilege, so it should be paired with tamper-resistant forwarding (shipping logs off-host immediately). The common wrong turn is alerting on tool presence alone, which either floods the security team with noise or gets tuned into silence; the signal that actually holds up is the combination of tool, arguments, parent process, and host-role baseline together.
Explain what a Kerberos Golden Ticket is, the prerequisites to create one (including access to the KRBTGT account hash), how an attacker uses a Golden Ticket to gain persistent domain access, typical detection artifacts that indicate Golden Ticket use, and safe testing limitations when validating Golden Ticket techniques in a customer environment.
Sample Answer
Direct answer
A Golden Ticket is a forged Ticket Granting Ticket (TGT) built entirely offline using the domain's ticket-signing account (commonly called KRBTGT). Because that account's secret is what the Key Distribution Center (KDC) trusts to validate any TGT, an attacker who has stolen it can hand-craft a ticket for any user, including nonexistent ones, with any group memberships embedded, and the domain will treat it as legitimate.
Structured elaboration
Prerequisites. The attacker needs the KRBTGT account's password hash or key material, most commonly obtained through a directory-replication abuse that mimics a domain controller requesting a routine password-hash sync from another domain controller, or through direct compromise of a domain controller itself. They also need the domain's security identifier, which is not secret and is easy to obtain once any level of domain access exists.
How it's used. With the KRBTGT secret in hand, the attacker forges a TGT offline, embedding whatever username and group memberships they choose. Because the KDC only checks that the ticket is properly encrypted with the KRBTGT key, not that the embedded user and group data corresponds to real, current account state, this grants domain access at whatever privilege level the attacker forged into the ticket. This access is unusually persistent: an ordinary password reset on the impersonated (or fabricated) user has no effect, because the forgery never depended on that user's own password in the first place, only on the domain-wide KRBTGT secret.
Detection artifacts. Tickets with a lifetime that exceeds the domain's configured maximum ticket lifetime policy, tickets used for accounts that have no corresponding real authentication event in correlated logs (a forged ticket skips the actual logon step entirely, so there's no matching initial-authentication record), and an encryption type on the ticket that doesn't match what the domain normally issues, are all recognized indicators. Authentication event log anomalies, where a ticket is presented for a session that never had a matching prior sign-in, are a well-known detection heuristic.
Safe testing limitations. The actual remediation for a demonstrated Golden Ticket, rotating the KRBTGT secret (which Microsoft's own guidance says must be done twice, since old and new tickets both remain valid for a window otherwise), is highly disruptive to a live environment. Because of that, an assessment should typically demonstrate the technique in a scoped, pre-agreed way, for example forging a ticket only for a disposable test account created specifically for the engagement, within an agreed time window, with the client's defensive team aware it may happen. Forging tickets for real privileged production accounts, or touching production domain controllers outside the agreed window, should be explicitly excluded from scope given how disruptive the actual fix is.
Worked example
During a scoped engagement, the tester obtains domain controller replication rights through an earlier finding, uses that to extract the KRBTGT hash, and forges a ticket for a throwaway test account created specifically for this demonstration, valid for an extended lifetime. Presenting that ticket grants access consistent with a Domain Admin, without any real Domain Admin account's password ever being touched, which is exactly the point being demonstrated to the client: possession of KRBTGT alone is enough, independent of any specific user's credential hygiene.
Trade-offs and pitfalls
The most common mix-up is confusing a Golden Ticket with a Silver Ticket. A Silver Ticket is forged using a specific SERVICE account's own hash rather than KRBTGT, so it only grants access to that one service and doesn't require replication rights to the domain controller at all, a much narrower blast radius than a Golden Ticket's domain-wide reach.
Explain the 'pass-the-hash' technique at a conceptual level: what credential material is used, why it works on Windows authentication stacks, and list three enterprise mitigations that significantly reduce the risk of successful pass-the-hash attacks.
Sample Answer
Direct answer
Pass-the-hash abuses the fact that Windows' NTLM (NT LAN Manager) authentication protocol only requires proving knowledge of a fixed-size cryptographic hash of the password, never the plaintext password itself. An attacker who obtains just the hash, for example from a compromised machine's memory or from a stolen local credential database, can present that hash directly to authenticate to another machine, without ever cracking it back into a plaintext password.
Structured elaboration
Why it works. NTLM's challenge-response exchange is entirely a mathematical function of the hash. There is no step in the protocol that re-derives or checks the underlying plaintext, so from the protocol's own point of view, the hash IS the credential. Windows also caches these hashes in memory for convenience, so a single sign-on experience across a network is possible, which is exactly what makes them recoverable and reusable by an attacker who gets code execution on the box.
Three enterprise mitigations:
- Restrict or disable NTLM authentication in favor of Kerberos wherever the environment allows it, using domain policy to audit and eventually block NTLM on servers that don't genuinely need it.
- Deploy unique, randomized local administrator passwords per machine rather than sharing one local admin password fleet-wide, so a stolen local-admin hash on one host cannot simply be replayed against every other host.
- Enable memory-isolation protections for cached credentials (a virtualization-based security feature that keeps authentication secrets out of reach of even an administrator on the same box), and restrict high-privilege logons to a small number of hardened, dedicated administrative workstations so that a compromised low-tier machine never has a high-value credential cached on it in the first place.
Worked example
An organization sets the same local administrator password across its entire workstation fleet for ease of management. An attacker compromises a single low-value workstation, dumps its local credential store, and recovers the shared local administrator hash. Because that exact hash is valid for every other workstation in the fleet, the attacker authenticates to dozens of machines using pass-the-hash without ever needing the plaintext password or touching a domain controller.
Trade-offs and pitfalls
The single most common interview mix-up is treating pass-the-hash as a form of password cracking; it is the opposite, the whole point is that the attacker never needs to recover the plaintext at all. A second common gap is naming a mitigation like disabling NTLM without acknowledging that some legacy applications and devices still require it, meaning the real-world fix is usually a staged reduction and monitoring plan rather than an instant flip of a single setting.
Outline how you would use MITRE ATT&CK to design a red team exercise targeted at testing detection capability for credential theft and lateral movement. Include objectives, selected techniques (with IDs), scope/constraints, allowed actions, and success metrics/stop conditions.
Sample Answer
Direct answer
A strong exercise starts from a clear detection-outcome objective, not a "get Domain Admin" objective: pick a small, connected set of real MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) techniques that chain credential theft into lateral movement, run them from an assumed-breach foothold inside a tightly scoped segment, and measure what the security operations center (SOC) and endpoint detection and response (EDR) tooling actually caught, not whether the team reached the final target.
Objectives
- Primary: measure whether the SOC and EDR pipeline detects and correctly triages a realistic credential-theft-to-lateral-movement chain, not whether the attacker "wins."
- Secondary: identify which specific step in the chain is the actual detection gap, so remediation is targeted instead of a vague "buy more tooling" recommendation.
- Non-objective (explicitly out of scope): full external initial-access simulation, real data exfiltration, or techniques outside the credential and lateral-movement kill chain.
Selected techniques (MITRE ATT&CK, real technique IDs)
| Tactic | Technique | ID | What it does |
|---|---|---|---|
| Credential Access (TA0006) | OS Credential Dumping: LSASS Memory | T1003.001 | Reads credential material cached in the Local Security Authority Subsystem Service (LSASS) process on a compromised workstation |
| Credential Access (TA0006) | Steal or Forge Kerberos Tickets: Kerberoasting | T1558.003 | Requests a service ticket for an account with a Service Principal Name and cracks it offline to recover that account's password |
| Credential Access (TA0006) | OS Credential Dumping: DCSync | T1003.006 | Abuses domain-replication permissions to pull password hashes directly from a domain controller without touching disk |
| Lateral Movement (TA0008) | Use Alternate Authentication Material: Pass the Hash | T1550.002 | Authenticates to another host using a captured password hash instead of the plaintext password |
| Lateral Movement (TA0008) | Remote Services: SMB/Windows Admin Shares | T1021.002 | Moves to a new host over the Server Message Block (SMB) file-sharing protocol using administrative shares |
| Defense Evasion / Persistence / Privilege Escalation / Initial Access | Valid Accounts: Domain Accounts | T1078.002 | Uses a legitimate domain account, harvested earlier in the chain, instead of malware, to blend into normal authentication traffic |
Six techniques across two tactics is deliberately small. A detection-validation exercise should isolate variables, not showcase every technique the team knows.
Scope and constraints
- Start position: assumed breach. The team is handed a low-privileged domain user account on one workstation rather than spending days on external initial access, because the objective is detecting what happens AFTER a foothold exists, not gaining one.
- Target segment: one named subnet or object set (for example, one office's workstation range plus one file server), never "the whole domain," so an unexpected finding does not turn into an unscoped incident.
- Time box: a fixed window, commonly one to two weeks, agreed in advance with the client's trusted agent (the single client-side contact read into the fact the exercise is live).
- Explicitly disallowed: disabling or evading the EDR agent itself, using unvalidated custom exploit code, and any technique outside the six listed above.
Allowed actions and rules of engagement
- The team may attempt each listed technique against in-scope hosts using well-known, widely documented tooling, not custom or unstable code.
- The trusted agent has a pre-agreed channel and a kill-switch phrase to pause testing immediately if something looks like it is affecting production.
- The team documents the exact time and host for each technique attempt in near real time, independent of whether it succeeds, so the client can later correlate any real alert against the known test timeline.
Success metrics and stop conditions
- Detection coverage: of the six techniques attempted, how many produced an actionable SOC alert. As an illustrative example, if 4 of 6 produce an alert, coverage is 4/6, about 67%, which points at exactly which two steps are blind spots instead of giving one vague overall score.
- Mean time to detect (MTTD): the time from technique execution to the first correctly triaged SOC alert for that technique, where one fires at all.
- Triage accuracy: whether the SOC correctly identified the technique's category (credential access versus lateral movement) rather than logging it as generic "suspicious process," since accurate triage drives the right response.
- Stop conditions: the trusted agent invokes the kill switch, a technique causes unintended production impact (for example, a service disruption from repeated Kerberos ticket requests), or the team reaches the pre-agreed final objective (for example, a successful DCSync run from a simulated Domain Admin-equivalent account) without the SOC having reacted to it, at which point testing pauses for a live purple-team debrief instead of escalating further.
flowchart TD
A["Define objectives: validate detection of credential theft and lateral movement"] --> B["Scope and rules of engagement: assumed-breach foothold, target segment, blast-radius limits"]
B --> C["Select ATT&CK techniques: T1003.001, T1003.006, T1558.003, T1550.002, T1021.002, T1078.002"]
C --> D["Execute chain against scoped hosts"]
D --> E{"SOC or EDR detects this step?"}
E -->|Yes| F["Log detection, continue or pause per rules of engagement"]
E -->|No| G["Continue chain toward objective"]
F --> H["Reach stop condition or objective"]
G --> H
H --> I["Purple-team debrief: map ATT&CK coverage and detection gaps"]
Trade-offs and pitfalls
- Assumed breach versus a full chain from external recon: assumed breach is faster and isolates the detection question, but it never tests whether the SOC would have caught the actual initial access; a mature program eventually needs both.
- Generic ATT&CK technique selection, as described above, versus threat-informed emulation of one named adversary group's specific tool set and sequencing: the latter, run with a platform like MITRE CALDERA or Atomic Red Team mapped to a specific group's known tactics, techniques, and procedures (TTPs), is the more rigorous version of this exercise, but it is a heavier, senior-specialist undertaking that most organizations do not need for a first detection-validation pass.
- Grading the exercise on whether the team reached Domain Admin instead of on whether each technique got detected rewards stealth over the actual purpose of the test and leaves the SOC with nothing actionable.
- Skipping live documentation is a common miss: without a timestamped log of exactly what was attempted and when, a genuine unrelated incident during the test window can get misread as caused by the red team, or the reverse.
List and explain the essential components that should appear in Rules of Engagement (ROE) for a red team engagement. Provide examples of at least five clauses (e.g., allowed techniques, excluded assets, notification windows) and explain why each clause matters for risk control.
Sample Answer
Rules of Engagement (ROE) is the written, signed document that converts a vague permission like "test our security" into an auditable boundary: exactly what may be attacked, how, when, and who to call if something goes wrong. Without it, both the tester and the client are exposed legally and operationally.
Core clauses and why each one controls risk
| Clause | What it specifies | Why it matters for risk control |
|---|---|---|
| Authorized scope | Exact IP ranges, domains, physical sites, and named systems in play | Prevents testing systems the client doesn't own or hasn't cleared, which is both a legal exposure and a way to hit an uninvolved third party |
| Allowed and prohibited techniques | Whether denial-of-service testing, social engineering, or physical intrusion is in play | Some techniques (heavy load testing, live phishing of executives) carry business risk that outweighs the finding's value unless explicitly approved |
| Time windows / blackout periods | When testing may run, and when it must stop (e.g. no testing during month-end batch jobs) | Keeps test-caused disruption from colliding with genuinely business-critical periods |
| Emergency stop and notification procedure | A 24/7 point of contact on both sides and a "get out of jail free" authorization letter to show if law enforcement or a hosting provider is alerted | Gives both parties a fast path to halt the engagement the moment something behaves unexpectedly (a service crashes, a third party is affected) |
| Evidence and data handling | How captured credentials, hashes, or sensitive files are stored, encrypted, and destroyed after the report ships | Engagement artifacts are often live secrets; mishandling them creates a second, self-inflicted breach |
A sixth clause worth naming: success criteria or objectives, so "done" means something concrete (e.g. "demonstrate access to the finance database") rather than an open-ended hunt, which is what separates an objectives-based engagement from a generic vulnerability sweep.
Worked example
A one-line excerpt for the "allowed techniques" clause might read: "Denial-of-service testing is prohibited. Credential-stuffing against production login endpoints is permitted only against the three test accounts listed in Appendix B, capped at 20 attempts per account per hour." That single sentence does three jobs at once: it forbids a high-impact technique outright, scopes a riskier one down to safe test accounts, and puts a numeric ceiling on it so a script gone wrong is bounded.
Trade-offs and pitfalls
Scope drawn too broadly invites unnecessary business risk; drawn too narrowly, it can miss the attack surface a real adversary would actually use, since attackers don't respect the ROE. A notification threshold set too conservatively (call the client on every minor finding) slows the engagement and can tip off the very detection capability being tested; set too loosely, a real incident gets mistaken for test noise. The single biggest pitfall is treating ROE as a formality to get signed and filed rather than a document both sides will actually reference mid-engagement when something ambiguous happens.
Unlock Full Question Bank
Get access to all 13 Exploitation, Post-Exploitation, and Red Team Operations interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.