<?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 Johanna M. on Medium]]></title>
        <description><![CDATA[Stories by Johanna M. on Medium]]></description>
        <link>https://medium.com/@joaconstrictor?source=rss-156a384637cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kUTzqtkbzUJoVJtYNYP1Lg.jpeg</url>
            <title>Stories by Johanna M. on Medium</title>
            <link>https://medium.com/@joaconstrictor?source=rss-156a384637cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:14:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joaconstrictor/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[Cyber Defense Challenge]]></title>
            <link>https://medium.com/@joaconstrictor/cyber-defense-challenge-f0daeaefee9a?source=rss-156a384637cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0daeaefee9a</guid>
            <category><![CDATA[cobalt-strike]]></category>
            <category><![CDATA[ransomeware]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[Johanna M.]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 16:26:39 GMT</pubDate>
            <atom:updated>2022-07-28T12:45:29.730Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.wicys.org/benefits/cyber-defense-challenge-made-possible-by-target/">WiCyS Cyber Defense Challenge made possible by Target</a></p><p>For this challenge we were given a fictitious scenario involving a new threat actor called Copper Crow. This actor is operating out of a new area with a focus on ransomeware and extortion. “Our company” has recently noticed an alert for a suspicious phishing email involving this threat actor, and our job is to analyze the malicious document in this email to validate the information and see if there is malware or actions that need our attention.</p><p><strong>Executive Summary</strong></p><p>In the excel document “invoice-02–01–2022.xls” provided for this malware investigation, we can determine the presence of malicious macros with the use of oletools. The examination of this document in a sandbox gives us information regarding the payload, which was created through a Metasploit framework module.</p><p>Based on the emulation I determined this could be a Process Injection — Process Hollowing (T1055.012). Here, the threat actor injects the malicious code into the newly created and suspended rundll32 process in order to evade defenses. A rundll32 process is legitimate and inconspicuous compared to the more common option of running malicious code as an executable. This makes it hard to differentiate malicious activity from normal operations and from triggering security tools that don’t monitor this type of process. The Mitre ATT&amp;CK techniques defines Process Injection — Process Hollowing as a method of executing arbitrary code in the address space of a separate live process, which will be further explained below. Additionally as mentioned in the brief, Copper Crow uses Cobalt Strike which Mitre has listed as a procedure example for Process Injection — Process Hollowing. Cobalt Strike also leverages Metasploit, which as previously mentioned was used to create the payload.</p><p>What I suspect is happening is once the document is opened, the AutoExec() function is triggered which allows the payload to executed a command to open Google Chrome. It then connects to the C2 (command and control) at shineyobjectd.birds:80 and downloads an executable called metal.exe. This entire process is hidden in the process injection technique. The executable that is downloaded may enable persistence, ultimately creating a backdoor for the attacker through the C2 server.</p><p><strong>Analysis</strong></p><p>Initial assessment to verify the type of file and see the file’s metadata. I used the “file” command to verify the file type, and the “exiftool” command to see if there was any important information for this file.</p><figure><img alt="file type screenshot" src="https://cdn-images-1.medium.com/max/773/1*L7aYt1mInDGXTZ2irQBinw.png" /></figure><figure><img alt="exiftool screenshot" src="https://cdn-images-1.medium.com/max/506/1*TagIZBTl0zZVtjaKTm0iSA.png" /></figure><p>To further analyze this file I used oleid. This displays the file properties, such as the presence of malicious macros.</p><blockquote><a href="https://github.com/decalage2/oletools/wiki/oleid">Oleid is a script to analyze OLE files such as MS Office documents (e.g. Word, Excel), to detect specific characteristics usually found in malicious files (e.g. malware). For example it can detect VBA macros and embedded Flash objects.</a></blockquote><figure><img alt="oleid screenshot" src="https://cdn-images-1.medium.com/max/784/1*utF4G_MGb9wd1hdPDay_kQ.png" /></figure><p>In order to see the macros on this document I used <a href="https://blog.didierstevens.com/programs/oledump-py/">oledump.py,</a> this displayed the streams and macros. There are macros present on stream 8, indicated with the capitalized letter M. I extracted this stream and sent it to a file named “Module1” to analyze.</p><figure><img alt="oledump.py screenshot" src="https://cdn-images-1.medium.com/max/780/1*2K-UmKR8Qx_YHrdChUL8Cw.png" /></figure><p>To extract the macros I used olevba.</p><blockquote><a href="https://github.com/decalage2/oletools/wiki/olevba">olevba is a script to parse OLE and OpenXML files such as MS Office documents (e.g. Word, Excel), to detect VBA Macros, extract their source code in clear text, and detect security-related patterns such as auto-executable macros, suspicious VBA keywords used by malware, anti-sandboxing and anti-virtualization techniques, and potential IOCs (IP addresses, URLs, executable filenames, etc). It also detects and decodes several common obfuscation methods including Hex encoding, StrReverse, Base64, Dridex, VBA expressions, and extracts IOCs from decoded strings. XLM/Excel 4 Macros are also supported in Excel and SLK files.</a></blockquote><figure><img alt="olevba screenshot 1" src="https://cdn-images-1.medium.com/max/901/1*9joOBWrtx1A7brPeufWLoQ.png" /></figure><figure><img alt="olevba2" src="https://cdn-images-1.medium.com/max/904/1*JmO_FdjHc6rygZXrsfqVtA.png" /></figure><p>There is an AutoExec in this file, which means that in this phishing campaign, users who received an email with the infected document and who open this document will get infected. <br>We can also determine there are some Windows API calls of interest such as CreateThread, VirtualAlloc, RtlMoveMemory, etc., that may inject code into another process.</p><p>Using a Python script I converted the array present in the macros into characters and sent the output to strings to analyze.</p><figure><img alt="data.py script screenshot" src="https://cdn-images-1.medium.com/max/802/1*DhxS7H-t4EvYhAd7kpJb_w.png" /></figure><figure><img alt="strings sreenshot" src="https://cdn-images-1.medium.com/max/794/1*F2c--geUaCFxR604JktZRg.png" /></figure><p>Displaying the strings output I can see that rundll32 process is likely used to appear as normal activity. This process can be used for process injection. We can also see the DNS domain and executable used to establish the C2.</p><p>I used another python script turn the array into a byte array object for further analysis at a later time.</p><figure><img alt="datatwo.py script screenshot" src="https://cdn-images-1.medium.com/max/1024/1*tUdjUQw8PlICPDfYzAiEOw.png" /></figure><p>Run the script and send the output to a file:</p><pre>python dataTwo.py &gt; dataEncoded</pre><p>For emulation I used speakeasy on the byte array file I created using the python script above.</p><blockquote><a href="https://github.com/mandiant/speakeasy">Speakeasy is a portable, modular, binary emulator designed to emulate Windows kernel and user mode malware.</a></blockquote><figure><img alt="speakeasy output screenshot" src="https://cdn-images-1.medium.com/max/862/1*rmU1P0EdGK3yMBRVooXgsQ.png" /></figure><p>Displayed .json file generated with speakeasy</p><figure><img alt=".json output screenshot" src="https://cdn-images-1.medium.com/max/834/1*cfTNqSq10kdGW2vkQkcu5g.png" /></figure><p><strong>The following are some the findings after the entry point in the emulation:</strong></p><p><strong>Type of entry point:</strong></p><p>shellcode</p><p><strong>Start address:</strong></p><p>0x1000</p><p><strong>List of API calls:</strong></p><p>• STARTUPINFOA structure (processthreadsapi.h) — “ Specifies the window station, desktop, standard handles, and appearance of the main window for a process at creation time.”</p><p>• CreateProcessA function (processthreadsapi.h) “Creates a new process and its primary thread.”</p><p>• VirtualAllocEx function (memoryapi.h) — “ Reserves, commits, or changes the state of a region of memory within the virtual address space of a specified process. The function initializes the memory it allocates to zero.”</p><p>• WriteProcessMemory function (memoryapi.h) — “ Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails.”</p><p>• CreateRemoteThread function (processthreadsapi.h) — “ Creates a thread that runs in the virtual address space of another process.”</p><p>• Sleep function (synchapi.h) — “ Suspends the execution of the current thread until the time-out interval elapses.”</p><p>As an example, on line 84 of the of the photo below you can see the CreatProcessA function is called, with the arguments to create a rundll32 process on line 87, then the CREATE_SUSPEND argument on line 91, and the flag to suspend the processes primary thread on line 94, which could indicate process hollowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*E9ONnLB7ji7OON7C2fk5RA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*v0OABMxS8ZHremnerYH2Dw.png" /></figure><p>Process events (including event, pid, path, data, etc.):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*H76ZVzAJrQ49aPUO5NP1mw.png" /></figure><p>In the process events we can see the creation of a process (rundll32), allocation of memory, writing of data (shellcode) into the memory previously allocated and the thread injection taking place.</p><p>The following are some online resources I used to further investigate the original file. I used tria.ge to analyze the file by uploading it to their samples. This matched the file’s hash, which was helpful to do more research on VirusTotal and other malware sandbox detection systems. Using the sha256 hash I checked to see if there was any information on the file in VirusTotal, particularly the community comments and found some interesting information from inquest labs<br>From this comment we can see there is a full report on inquest.labs that gives us more information on the malicious file.</p><figure><img alt="tria.ge screenshot" src="https://cdn-images-1.medium.com/max/800/1*mpDPmyJPnCPxD7B_np8e7w.png" /><figcaption><a href="https://tria.ge/">https://tria.ge</a></figcaption></figure><figure><img alt="virus total screenshot" src="https://cdn-images-1.medium.com/max/759/1*KpNUqwrxXcuWMA4geW3XQQ.png" /><figcaption><a href="https://www.virustotal.com/gui/home/upload">https://www.virustotal.com/gui/home/upload</a></figcaption></figure><figure><img alt="inquest labs screenshot" src="https://cdn-images-1.medium.com/max/817/1*hoHdnV0C6MopOscDl3Di3g.png" /><figcaption><a href="https://labs.inquest.net/">https://labs.inquest.net</a></figcaption></figure><h4>IOCs</h4><p>shinyobjects.birds</p><p>metal.exe</p><h4>Files</h4><p>File Name: invoice-02–01–2022.xls</p><p>MIME Type: application/vnd.ms-excel</p><p>Size: 24kB</p><p>SHA256: a3f128976fb477883db4f7ecc2aae05e61e2de224ad584454022aced8f8f5ca5</p><h3>Conclusion</h3><p>This was a interesting challenge. I had never done any malware analysis and the research that I have done led me to conclude that the technique used by the attacker was a process injection. Further analysis takes place in Tier 2 and Tier 3 of this challenge. More to come.</p><h4>References</h4><p>If you wish to see the references I used for this analysis please visit my <a href="https://github.com/joaconstrictor/Cyber-Defense/edit/main/Tier-1/tier-one-walkthrough.md">GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0daeaefee9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>