<?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 CyberMonk on Medium]]></title>
        <description><![CDATA[Stories by CyberMonk on Medium]]></description>
        <link>https://medium.com/@cyber.monk?source=rss-4f0f558cecde------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vWniSImZqEKhwnYUDGptDQ.jpeg</url>
            <title>Stories by CyberMonk on Medium</title>
            <link>https://medium.com/@cyber.monk?source=rss-4f0f558cecde------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:56:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyber.monk/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[All about TCPDUMP]]></title>
            <link>https://medium.com/@cyber.monk/all-about-tcpdump-bdb459439424?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb459439424</guid>
            <category><![CDATA[tcpdump]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network-attacks]]></category>
            <category><![CDATA[network]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 08:55:29 GMT</pubDate>
            <atom:updated>2026-01-21T08:55:29.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQvg5W__4TKOKvJsW3ZIlQ.png" /></figure><p>Let’s take a look at one of the most widely used and efficient ways to capture and analyze packets from the command line, the TCP dump utility.</p><p>TCP dump is a powerful command line packet analyzer that allows us to intercept and display packets being transmitted over a network. And with TCP dump we can perform many of the powerful functions that we can get in a graphical user interface like Wireshark, but with greater versatility and advantage of being easily scriptable.</p><p>It comes pre-installed, but in case you need to install it, install it via</p><h4>BASICS COMMANDS OF TCPDUMP</h4><blockquote>sudo apt-get install tcpdump</blockquote><p>TCPdump interacts directly with network interfaces to capture its packets, and it does this by accessing low-level network resources within the OS.</p><p>Syntax:</p><p>tcpdump [options] [expression]</p><p>To see all interfaces on system: <strong>ip link show</strong></p><p>To capture traffic and packet of specific interface use <strong>-i</strong></p><ul><li><em>tcpdump -i lo</em></li></ul><p>To print each packet in both hexadecimal and ASCII forma use <strong>-X</strong></p><ul><li><em>tcpdump -i lo -X</em></li></ul><p>or just <strong>-A</strong> for ascii, useful when working with HTTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSYteYGaSSEtdIlgUmyPnw.png" /></figure><p>In above photo we can see Push flag and data transferring through Netcat.</p><p>We will use capture filtering, capture filters are the initial parameters that we establish before we begin monitoring</p><h4>FILTERS</h4><p>first filter is <strong>-n</strong> which we uses for Shows raw IP addresses and port numbers instead of hostnames and service names.</p><ul><li>host</li></ul><p>host filter is use for filter a domain name or hostname like an IP or domain for which we want to capture traffic. This include both source and destination, means if this host appear in source or destination, tcpdump will capture traffic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OZzih1u2EGpkX66UL8jETQ.png" /></figure><ul><li>src/dst</li></ul><p>well we also have filter for particular source and destination</p><ul><li>net</li></ul><p>used for capture traffic of specific network range using cidr notation. You can do more specific by “src net” and “dst net”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BlcvABrmeVSgl1mnvazK_A.png" /></figure><ul><li>port</li></ul><p>to capture specific traffic of particular port. You can also use “src port/dst port” for more detailed traffic.</p><ul><li>particular protocol</li></ul><p>tcpdump -i enp0s3 -n tcp<br>tcpdump -i enp0s3 -n udp<br>tcpdump -i enp0s3 -n icmp<br>tcpdump -i enp0s3 -n arp <br>etc. (also can use with not operator)</p><h4>Logical Operator</h4><p>To monitor traffic based on multiple conditions. For example, if we want to monitor traffic of a sensitive host and specific RDP port we can write command like</p><blockquote>tcpdump -i enp0s3 -n host 10.0.0.1 <strong>and</strong> port 3389</blockquote><p>But what if we whitelist a particular host for this and don’t want to monitor its traffic, well we can use <strong>not</strong></p><blockquote>tcpdump -i enp0s3 -n host 10.0.0.1 <strong>and</strong> port 3389 <strong>and not</strong> src host 10.0.0.69</blockquote><p>For more complex query, imagine capturing traffic in corporate environment and want to filter particular source and destination excluding HTTP/HTTPS.</p><blockquote>tcpdump -i enp0s3 -n ‘src 10.0.0.3 and dst 202.15.49.69 and not (port 443 or port 80)’</blockquote><p><strong>To save any of our output into a PCAP file</strong>, we just need to provide the W option with output file name</p><blockquote>tcpdump -i enp0s3 -n -w ~/desktop/captures/example.pcap</blockquote><p>and to read that PCAP file use “-r” instead of “-w” and then we can use any parameter to filter traffic.</p><blockquote>tcpdump -i enp0s3 -n -r ~/desktop/captures/example.pcap dst 10.0.0.1</blockquote><h3>Other CLI Tool for Investigation</h3><p>Below are some parameter can be used</p><p>--count : used to display the number or the count of packets</p><p>-t: to supress timestamp<br>-tt: to see timestamp in epoch time<br>-ttt: to see in microsecond relative to previous packet<br>-tttt: to see timestamp in standard timestamp as yyyy-mm-dd hh:mm:ss</p><h4>Top Source IP addresses</h4><p>if we have logs like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZqZocL2E5WB7ckNtF5ROQ.png" /></figure><p>in this fields are seperating by space so we will write command like, and we want 3rd field from the log so we will use <strong>cut </strong>command</p><ul><li>tcpdump -r 2024–04–18.pcap -n tcp | cut -d “ ” -f 3 | cut -d “.” -f 1–4</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*rjrJZvJl4EOLvRPOLtUuGQ.png" /></figure><ul><li>tcpdump -r 2024–04–18.pcap -n tcp | cut -d “ ” -f 3 | cut -d “.” -f 1–4 | sort | uniq | sort -nr</li></ul><p><strong>sort -nr </strong>will sort the result based on the count we get in front of IP addresses.</p><h4>Open The Packet</h4><p>use -A for open the packet content.</p><ul><li>tcpdump -r 2024–04–18.pcap host 85.239.53.219 -A | grep -E “user|login|pass” -i | grep -v “User-Agent”</li></ul><p>In grep we use -E for Regex, -i for case-insensitive and -v for exclusion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*rcuGzWkDBmHIG7diDHP0HQ.png" /></figure><p>sometime to find if a file downloaded or not, “filename” may be there in header so we will grep it.</p><ul><li>tcpdump -r 2024–04–18.pcap host 85.239.53.219 -A | grep “filename”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb459439424" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Removed Android Malware in Minutes]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-simple-android-malware-ac770e5aea73?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac770e5aea73</guid>
            <category><![CDATA[android-malware-analysis]]></category>
            <category><![CDATA[malware-removal]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[android-malware]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 12:29:33 GMT</pubDate>
            <atom:updated>2026-01-04T12:37:17.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhdZ5NtVhgyMcdCnHwOSIg.png" /></figure><h3>Malware Analysis of Simple Android Malware</h3><p>Today we will analyze a simple android malware named “onlyfans.exe”.</p><blockquote>Intro</blockquote><p>This application will block the device and you cannot even perform any type of action.</p><h4><strong>Use adb</strong></h4><p>First install adb (android debugger) in your windows system for android device connection.</p><h4><strong>Run Simulator</strong></h4><p>We will on Android simulator named <strong>LDPlayer </strong>in windows system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*nBk8Ug7rac1e3sv2ejQglQ.png" /></figure><p>First, we execute the malware directly. with one click only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*94a5OypZ10FMnX_6iOel_w.png" /></figure><p>As soon as it runs, the <strong>phone screen gets locked</strong>, and the device becomes completely unusable. You cannot press anything, open settings, or uninstall any application through the UI. For this demonstration, root permission is enabled in the LDPlayer settings to ensure safe and controlled analysis.</p><p>Now we will start adb server and get the shell by commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*ZuwBMd3J4HaY3LbvH1GCxw.png" /></figure><p>by top command we can see an application is running in machine phone, named “com.termuxhackers.id”</p><blockquote>top</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjZHURMdMlviwiyAfvG0rQ.png" /></figure><p>We will confirm this by going to “/data/data” which is the <strong>private application data directory</strong> in Android. Every installed application gets its <strong>own folder</strong> here, named after its <strong>package name</strong>.</p><p>we will execute “ls -la” command and based on timing we can also check which package owned by application/malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*1cwQcoLby4M8nIVXUNUOfw.png" /></figure><p>to uninstall application package from android. use below command</p><blockquote>pm uninstall com.termuxhackers.id</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*Ds4g8lVV53MpmMg-zVWFbg.png" /></figure><p>And like this how you can uninstall application package itself, and remove malware.</p><p>And our phone is now unlocked.. 👍</p><p>You can also Decompiler tool named “APK Easy Tool” for android malware. and have more information about APK file, <strong>which will create folder on Current directory of this tool for analysis of APK</strong>, but as of now I don’t have that much knowledge of structure of APK file I will shortly give update on this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*Ea-9FF40IqKI30ECooHeww.png" /></figure><p>Shortly I will also start blogging about Another techniques for android malware and also for Malware Development.. So stay tuned and give a follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac770e5aea73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing Analysis: Everything You Need to Know to Add This Skill to Your Resume]]></title>
            <link>https://medium.com/@cyber.monk/phishing-analysis-everything-you-need-to-know-to-add-this-skill-to-your-resume-0506c83e5273?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/0506c83e5273</guid>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[phishing-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 07:48:36 GMT</pubDate>
            <atom:updated>2025-12-16T07:48:36.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*Ln5p97TZI5v8rAOr.png" /><figcaption>phishing analysis cover image</figcaption></figure><p>Add <strong>PHISHING ANALYSIS</strong> <strong>as a skill to your resume</strong> after completing this blog, which covers almost all techniques needed to analyze phishing emails.</p><p><strong>In this Blog, we will cover:</strong><br>- Email Fundamentals &amp; Phishing Attack Types<br>- Header Analysis<br>- Email Authentication Methods<br>- Content Analysis<br>- URL Analysis<br>- Attachment Analysis (Malicious Document Analysis)</p><h3>Phishing Attack Types</h3><p>Phishing is a trick where attackers pretend to be a trusted person or company to steal your personal information, passwords, or money.</p><p>Phishing can be used for multiple purpose includes <strong>Information Gathering</strong> (Phishing can be used to gather information like email address of recipient is in use or not, or mobile number gathering.), <strong>Credential Harvesting</strong>, <strong>Malware Delivery</strong>, etc.</p><p>Spear Phishing: Targeted and Customized phishing<br>Whaling: Targeting senior executives or people with authority<br>Vhishing: done through voice calls<br>SMishing: phishing conducted over SMS<br>Quishing: involves malicious QR codes</p><h3>Email Fundamentals</h3><blockquote>Email Headers</blockquote><p>Email headers are lines of metadata attached to an email and contain many useful strings of information for analysts and investigators like From, To, Other Parameters.</p><blockquote>Email Body</blockquote><p>Main content of an email message that is visible to recipient is body of any email.</p><blockquote>Email Protocols</blockquote><p><strong>SMTP</strong>: Simple Mail Transfer Protocol, Used to <strong>send</strong> emails from your device to the mail server and then to server to other servers. Port used are 25, 465 (SMTPS) and 587</p><p><strong>IMAP</strong>: Internet Message Access Protocol, You can read the same mailbox from multiple devices (advanced email synchronization &amp; email actually remain stored on the mail servers). Ports [143, 993 (IMAPS)]</p><p><strong>POP3</strong>: Post Office Protocol v3, Downloads emails to your device and can delete them from server. Ports [110, 995 (POP3S)]</p><blockquote>Components</blockquote><p><strong>MTA</strong><br>A Mail Transfer Agent is a server or software responsible for routing and transferring email between mail servers using SMTP. It handles the relay of mail across the internet.</p><p><strong>MUA</strong><br>A Mail User Agent is the application used by the end user to compose, send, receive, and manage emails. Examples: Outlook, Thunderbird, Apple Mail, Gmail web interface.</p><p><strong>MDA</strong><br>A Mail Delivery Agent accepts incoming emails from the MTA and delivers them to the recipient’s mailbox. It handles the final delivery step into the inbox (local storage or server mailbox).</p><p><strong>FLOW</strong></p><p>Sender’s MUA -&gt; MTA -&gt; MTA -&gt; MDA -&gt; Recipient’s MUA <br>There can be <strong>multiple MTAs</strong> involved in a single email delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*rRqQX6pyglonxqimNO8h9g.png" /></figure><h3><strong>Email Sender and Header Analysis:</strong></h3><p>Here we have multiple samples of phishing mail, we will analyze this into Sublime and Mozilla Thunderbird. Link of samples is <a href="https://github.com/cybermonk40/Phishing-Labs/tree/main/Header%20Analysis">https://github.com/cybermonk40/Phishing-Labs/tree/main/Header%20Analysis</a></p><p>If domain name in Message and From parameter do not match, there are highly chance of email is forged</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*TipfUfQA-8riFKE-9GTBxQ.png" /></figure><p>Check for <strong>Reply-To</strong> path, It is email address of where should the reply go to when recipient respond to. when attacker spoof the domain he can add his email into Reply-To to capture reply.</p><p>Also check for <strong>Return-To</strong> parameter, this is mail address is the mail where mail should go if recipient address is not exist. Attacker also uses this for information gathering like recipient address is in use or not.</p><blockquote>RECEIVED HEADER</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*fvw_f9RwPTkE-RcmozLnRA.png" /></figure><p>Received parameter contain IP of sender server’s IP.</p><p>You may see multiple <strong>received</strong> header which is obviously expected, but header closest to Email body is closest to Sender.</p><p>In sample2.eml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*rknW8QSl9qGlJxEdxDpOvA.png" /></figure><p>This received header is closest to Email Body so IP in this header is closest to email server or sender.</p><blockquote><strong>Email Authentication Methods</strong></blockquote><p>There are three major email authentication technologies out there<br>1. SPF<br>2. DKIM<br>3. DMARC</p><blockquote>SPF (Sender Policy Framework)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Siv1z7HqYU9THNAZCp5vng.png" /><figcaption>flow diagram of SPF Check</figcaption></figure><p>This is a mechanism that allows domain owners to specify which mail servers are authorized to send emails on behalf of their domain and it works by publishing SPF Records in DNS.</p><p>you can check SPF record by nslookup or dig command.</p><ul><li>nslookup -type=txt domain_name</li><li>dig TXT domain_name</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*VP_5tDgNJXF79ZBuCU_sqQ.png" /></figure><p>So if mail from domain shodan.io comes from IP which is not in “ip4:” or in list of “_spf.google.com” it will be blocked if option “<strong>-all</strong>” is set or marked as suspicious if “<strong>~all</strong>” is set.</p><p>we will analyze <strong>Sample3.eml</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TDar5CA0Uycs_QLcYECd2A.png" /></figure><p>Mail server is mailserviceemailout1.namecheap.com, let’s see its spf record by dig command.</p><p>this email sent from 149.72.142.11 IP, domain also contain SMTP server of sendgrid.net which contain IP range from it this email comes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omwzeTlnueJGG_tI_QMKsA.png" /></figure><blockquote>DKIM (Domain Keys Identified Mail)</blockquote><p>This is a method used to authenticate the origin of email messages. its primary purpose is to allow a receiver to verify that an email message was indeed send from the domain that it claims to be and also the message content has not been tempered during transit.</p><p>Email sent from DKIM enabled server add a digital signature to the email header. Recipient’s mail server will match signature added to email with DKIM signature published in DNS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*UYXGVQeLRaXJtwJIWcOrXQ.png" /></figure><p>here, c=relaxed/relaxed this refers to the canonicalization algorithm used for header/body. So DKIM uses this to ensure that the signed content, like the headers and the body, are consistent across email systems to prevent the signatures from being mismatched due to whitespace or formatting changes.</p><blockquote>DMARC (Domain-Based Message Authentication, Reporting and Conformance)</blockquote><p>DMARC works along with DKIM and SPF. DMARC allows domain owners to specify policies regarding how their email should be handled if they fail SPF or DKIM checks.</p><p>Actions are NUN, Quarantine and Reject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AmfMKh2MDpQQnNvsB5jItQ.png" /></figure><p>This header combine security check together and here policy is set to REJECT the mail if not passed.</p><p>They method confirm that the email has passed through certain authentication protocols, not guarantees that the email is not phished.</p><h3>Content Analysis</h3><p>MIME allows email to contain different type of content like plain text/html/images or attachments.</p><p>parts of body separated by a string like a Hash and 7bit means it is not encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*l9F7ws0UBToUBKCQyAYCHQ.png" /></figure><p>Attacker sometime uses base64 encoding for obfuscation, for example if an organization filter on email gateway that if email body contains word “shopping”, quarantine the mail that’s why attacker sometime uses encoding to bypass the filters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*BbZ55ckuUoV3sHUS629fQA.png" /></figure><p>This encoding also contains URL Encoding. For example in sample5.eml you can see URL which is highlighted in below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*LHrZQldvc9i6OnEmLoveEg.png" /></figure><p>paste it in cyberchef</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*3EZR6-xtgh-YO2vO6vCGmg.png" /></figure><p><strong>&amp;amp</strong> is html entity which is replacement of “&amp;”<br><strong>%2E</strong> is URL Encoding which is replacement of “.”<br>“<strong>=</strong>” at end is known as Quoted Printable Encoding</p><p>so drag these 3 option and you will see decoded URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E8plpo5ktHdovAVbFFKcUg.png" /></figure><h3>URL Analysis</h3><p>Tools used in URL analysis are: URL2PNG, URLSCAN.io, VirusTotal, URLVOID, WannaBrowser, URLHaus</p><p>You can use PhishTank for latest phishing website.</p><p><strong>URL2PNG/URLSCAN.io:</strong> url2png site will give you screenshot of the URL without needing you to visit that website, same for the urlScan website but it also shows confidence of that URL.</p><p>For example, you got link this url from mail and you know that this is shorten URL, <a href="https://tinyurl.com/legitimatephishingwebsite">https://tinyurl.com/legitimatephishingwebsite</a> so you can’t take risk to open it in browser directly, so you can use <strong>unshorten.it</strong>, <strong>wannabrowser.de</strong> and <strong>url2png.com</strong> for this type of links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxl5ihEGCXjhZhvaQyRcuA.png" /><figcaption>URL2PNG</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrV4PtAOF_5oRMePIPKPvw.png" /><figcaption>unshorten.it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeZlIvO22RFRMHIdwr-beQ.png" /><figcaption>wannabrowser</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YA54IUK9GEYO9INtHhlERQ.png" /><figcaption>urlscan.io</figcaption></figure><p>You can use urlscan.io which will give additional information like DNS record and ASN, etc.</p><p><strong>VirusTotal/URLHaus/URLVOID</strong>: Threat Intelligence platform for reputation check of the URL or domain.</p><p><strong>WannaBrowser</strong> is a website which give you response of the URL provided by you.</p><h3>Attachment Analysis (Malicious Document Analysis)</h3><p>You can use <strong>Hybrid Analysis</strong>, <strong>Joe Sandbox</strong> and <strong>any.run </strong>for automated dynamic analysis of a sample.</p><p>Malicious Document, it refers to a weaponized document file such as a Word document or an Excel spreadsheet or even a PDF that has been crafted and modified to carry out malicious activities when it’s opened. Commonly this is done through things like macros embedded in the file or different embedded objects. And so macros are scripts that are embedded into these office documents that can be programmed to execute a series of commands automatically. And so when a user opens a document and enables the macros, well these scripts can run without further interaction.</p><p>We will use <strong>oledump.py </strong>for document analysis</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*vX8mGR1j8FlJN0qSBu26vw.png" /></figure><p>M indicates embedded macro, which is on 4th index</p><p>and we will use “-s 4” for hex dump of that object and “-S” for extract string, so command will be</p><ul><li>python3 oledump.py FILE_NAME -s Object_Number -S</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*p2ojxRS0OejEGoPRlkgKFA.png" /></figure><p>and we will get some indicators here like URI and commands like Invoke-WebRequest</p><p>and to extract entire VBA script write “--vbadecompresscorrupt” after removing -S, and the command is</p><ul><li>python3 oledump.py FILE -s Object_Number --vbadecompresscorrupt</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmkv1H7clSymJIj4kUuKcQ.png" /></figure><p>so this script is basically downloading exe and execute it.</p><blockquote>FOR PDF</blockquote><p>we can analyze pdf using pdf-parser.py script available in Tools Folder</p><ul><li>python3 pdf-parser.py pdf_name</li></ul><p>and you can also use <strong>-s “/URI” </strong>for just extracting URI from it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uu1ljsRXaLg1A0EUEDJdNQ.png" /></figure><p>next tool is pdfid.py which is a lightweight tool that can scan a PDF file and then provide an overview of its structure, by this identify any suspicious elements or objects that shouldn’t be there like JavaScript or embedded files, and other open actions</p><p>command is</p><ul><li>python3 pdfid.py pdf_file_name</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*449dBSza7D69oqU_y52dmA.png" /></figure><p>important things are Javascript, OpenAction, Launch and EmbeddedFile object.</p><p>Now we will continue using pdf-paresr.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*qXV2RCHTKRpOEc-To04KvQ.png" /></figure><p>see object 8 which is EmbeddedFile which is encoded, so extract this we will extract object 8 and decode it and keep it in raw format and save it</p><ul><li>python3 pdf-parser.py pdf-doc-eicar.pdf --object 8 --filter --raw --dump outputFileName</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vr2oM67yS5sKhSlhirjIrw.png" /></figure><p>and you will have doc file and now you can extract Macro from it using oledump.py</p><ul><li>python3 oledump.py eicar-doc.doc (7th object is Macro here)</li><li>python3 oledump.py eicar-doc.doc --s 7 --vbadecompresscorrupt</li></ul><blockquote>Online Sandbox PDF analysis</blockquote><p>You can use <strong>Hybrid Analysis</strong> (by Crowdstrike Falcon Sandbox), <strong>Joe Sandbox </strong>or <strong>Any.run</strong></p><p>sandboxing is a security technique used to isolate potentially harmful files from the rest of our system.</p><p>Always look for following things:<br><strong>Process Activity<br>Registry Activity<br>Network Activity<br>File Activity</strong><br>while doing dynamic analysis in sandbox.</p><p>Hybrid Analysis doesn’t require account to use basic utilities</p><p>Joe Sandbox and Any.run requires business email.</p><p>But if you want interaction with machine like clicking on popup or etc use Joe Sandbox and any.run</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0506c83e5273" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis of Process Injection Technique]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-process-injection-techniques-0f49c94ac541?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f49c94ac541</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[process-injection]]></category>
            <category><![CDATA[dynamic-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 16:04:26 GMT</pubDate>
            <atom:updated>2025-12-13T17:30:18.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*y2DrM01k74gxulAWesw8Wg.png" /><figcaption>thumbnail</figcaption></figure><p>Today we will analyze a malware which inject malicious DLL/program into another legitimate process [OnlineGaming2.exe]</p><p>Tools Used: Cutter, WinAPIOverride</p><p>First, we will understand how the Process Injection technique works through static analysis, and then analyze it dynamically using tools. Please read full blog as static analysis part is little boring because it is very theoretical or you can jump to the dynamic analysis as it is much easier to understand.</p><blockquote>Intro</blockquote><p>Here we have malware which inject its malicious code/program into another legitimate process like services.exe or explorer.exe, so basically our malicious program is executing through legitimate process.</p><h3>STATIC METHOD</h3><p>open cutter app and load malware into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*ikJVwt3vHkCfNgersCyeJg.png" /></figure><p>You can see calling of OpenProcess and VirtualAllocEx API in above figure and passing parameter through “<strong>push</strong>” into it. This is just demo version we loaded into cutter app, if malware is packed you may not see these function call until you unpack it.</p><p>Malware passes PID of the targeted process (process in which we inject malicious payload) into OpenProcess which will go into <strong>dwProcessId</strong>. And malware allocate memory into remote process by passing size into dwSize parameter of VirtualAllocEx which will use later into WriteProcessMemory API call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*i203rRn3h1jTyHf_OnL_nA.png" /></figure><p>The malware passes the address of the malicious payload to WriteProcessMemory as lpBuffer parameter, which writes it into the memory of the remote process. After that, CreateRemoteThread is used to create a new thread in the remote process, and the <strong>lpThreadId </strong>parameter receives the unique identifier of the newly created thread, which can be used by the malware to track or manage the injected thread</p><p>In reality first we prepare input for the API and then pass it to API, that’s why push function is first and then calling function appear. And keep in mind that push function works in reverse as it operate on LIFO (Last In First Out). so last push function before function call will be first parameter to the API. So in CreateRemoteThread’s Rectangle (above figure) “<strong>push edi</strong>” will be treat as first parameter to CreateRemoteThread API and “<strong>push 0</strong>” call which is exact after “<strong>call dword [WriteProcessMemory]</strong>” will be treat as last parameter to CreateRemoteThread.</p><blockquote><strong>Summary of Static Analysis:</strong></blockquote><p>This are instructions of common way for shell code to be injected into a remote process, because you can write you shell code into the body of program and those bytes into remote process, write them into memory and execute them.</p><p>First API call execution which is OpenProcess, malware now has full control handle to the Remote Process.</p><p>Second API call VirtualAllocEx is used to allocate memory inside a remote (legitimate) process so that malicious code or data can be injected and later executed.</p><p>Third API call which is WriteProcessMemory will write malicious code by literally copy malicious payload bytes into newly allocated memory or giving address of malicious file.</p><p>In fourth API call the targeted process now have a new thread that starts at the injection buffer you just wrote.</p><h3>DYNAMIC METHOD</h3><p>We will use the <strong>WinAPIOverride</strong> tool to monitor and intercept Windows API calls at runtime, allowing us to observe how the malware performs process injection in a live environment.</p><p>Open WinAPIOverride and load malware into it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*VrsGGih0vfaD17QQP4NDeQ.png" /></figure><p>Select “<strong>Attach to all new processes</strong>” and click the <strong>Start button</strong> in the top-left corner. Then, click the <strong>Library button</strong> located above the Load button (as shown in the figure below). From the list, load <strong>kernel32 XP x86</strong>, since the APIs used for process injection - OpenProcess, VirtualAllocEx, WriteProcessMemory, and CreateRemoteThread - are part of kernel32.dll. As the execution environment is Windows XP (x86), select the corresponding kernel32 XP x86 library, click <strong>OK</strong>, and then click <strong>Load</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*iNADuXZzFdhNTAZzWKZUhw.png" /></figure><p>After loading library you have to execute the malware and then this software will monitor API calls. And here we can see all important functions need to inject malicious code which we saw earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*UTEikpmNFEk65JjwVt50Pw.png" /></figure><blockquote>OpenProcess</blockquote><p>Lets dive into these functions Click on <strong>OpenProcess -&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*ONOf_n6s17A4m3aUeSw1Sg.png" /></figure><p>Malware passing 588 process ID to OpenProcess and this API will return handle of process whose process id is 588 which is Explorer.exe (shown in below figure).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*OGlhU-jz6Dy8YK65lYNhyA.png" /></figure><p><strong>It mean malware inject something in Explorer.exe</strong></p><blockquote>VirtualAllocEx</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*zNq7IP_UHxIUcTP7bN9Zog.png" /></figure><p>Next API which is <strong>VirtualAllocEx </strong>is used for allocating space into process. So here dwSize means the size of the region of memory to allocate, in bytes.</p><blockquote>WriteProcessMemory</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*g1bTewwfkHq4A6E7MX52nw.png" /></figure><p>Next API is <strong>WriteProcessMemory </strong>and see here value of nSize and dwSize is exact same means malware allocate memory required to load program in VirtualAllocEx and then write using WriteProcessMemory API. And lpBuffer is A pointer to the buffer that contains data to be written in the address space of the specified process.</p><blockquote>CreateRemoteThread</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*8b4NKBFM4xTxRK6bxys_vg.png" /></figure><p>lpStartAddress is a pointer to the memory address where the new thread will start executing in the remote process. So remote process will start new thread from location given by malware. And lpParameter is A pointer to a variable to be passed to the thread function which is location of program written by malware.</p><blockquote>See DLL File into Remote Process</blockquote><p>For confirmation of that DLL is injecting and executing by Explorer.exe go to ProcExp tool and then</p><p>Then Select Explorer.exe -&gt; view (from Toolbar) -&gt; Lower Pane view -&gt; DLL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*zxVNbXGfWH90hzlmFG3bVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*IR4-87KAyZbhonBqZ60UOg.png" /></figure><p>we can clearly see that DLL named ailin.dll is loaded into Explorer.exe which is also highlighted by OS, this is malicious DLL which is injected by malware into legitimate process for evasion.</p><p>So this is just focusing on Process Injection technique used by malware, not all techniques like persistence, etc. So that’s it, follow this man 😉.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f49c94ac541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis of Service Persistence Malware [Hydraq]]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-service-persistence-malware-hydraq-fbed9483a0f3?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbed9483a0f3</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[static-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 17:09:36 GMT</pubDate>
            <atom:updated>2025-12-14T11:23:02.658Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2eNz99haCylsVUv8dFyyg.png" /></figure><p>Today, we will analyze a malware sample that creates persistence through a Windows service. [malware2.exe] [Hydraq]</p><h3><strong>Static Analysis</strong></h3><p>Hash (MD5): F166BFD794EA05B494B5D32E33E9905D</p><p>Packing: Packed by UPX</p><p>even after unpacking malware with UPX, you won’t find eye catchy/interesting strings from binary.</p><h3>Dynamic Analysis</h3><blockquote><strong>Service Persistence</strong></blockquote><p>We will start our analysis with capturing shot of <strong>PsService.exe</strong> from sysinternal by command</p><ul><li><strong>PsService.exe -d malware.exe -o unpack.exe</strong></li></ul><p>We will compare both shot by PsPad Application, on Left side is shot before malware detonation and in right side is service shot after malware detonation.</p><p>It has stopped 3 running service which are highlighted in Green and New service created which is Highlighted in Blue which is running (UpsWYb) [this name can be different every time you execute binary] and in Automatic State, means persistence through Windows Service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*0w-eQDugKf2sCHbZNU5F8w.png" /><figcaption>BITS Service STOPPED</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*VVsDLn1Wsk8GryW0t3Sefw.png" /><figcaption>WerSvc Serivce STOPPED</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*OXZSUTum1RJOf_Vyqn7jvA.png" /><figcaption>WPDBusEnum Service STOPPED</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*ZOfOeox7_ljPeN_5pDx0rQ.png" /><figcaption>New Service Named UpsWYb created</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*u_tOQyvoiBM8hFHWk2TXBQ.png" /><figcaption>Persistence through windows service</figcaption></figure><blockquote><strong>DLL file Creation by Binary</strong></blockquote><p>We save procmon data in CSV data and open in Procdot to analyze through graph and I find that DFS.bat file is created by binary. And there is also dll file named “<strong>Rasmon.dll</strong>” created by binary.</p><p>Hash: 0F9C5408335833E72FE73E6166B5A01B (Rasmon.dll)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJ4ZnvJPjdCB6Q_66w7YOQ.png" /></figure><p>Binary is creating Rasmon.dll and also changing its timestamp like CreationTime, LastAccessTime and LastWriteTime. (In this malware sample, malware is deleting its self that’s why I have to execute this multiple time, so this is the reason for changing in name of binary and PID).</p><blockquote><strong>Bat File Analysis by CaptureBAT</strong></blockquote><p>Binary is creating Bat file on location C:\Windows\DFS.bat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*4l5fbrUzqtxusJXRvBDy9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*dJTlNAAcBVfMX1lkrC4S9w.png" /><figcaption>evidence of binary creating bat file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*dEG2yjictBnxS9luYdh8Pw.png" /><figcaption>evidence of execution of bat file</figcaption></figure><p>.bat file was executed. but we can’t find “DFS.bat” file in C:\Windows path, maybe it delete itself, for this type of malware we have to use tool CaptureBAT in 32-bit system because it is tool of 32-bit system.</p><blockquote>CaptureBAT</blockquote><p>Get this zip file for capture bat and unzip it and execute vcredist_x86.exe first and then CaptureBAT-Setup-2.0.0–5574.exe for setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*0zh1aRZKrN2LwflWBFu_Pw.png" /></figure><p>Then you have to open cmd.exe as administrator and then go to the directory of capture bat and execute “CaptureBAT.exe -c”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*9tj_MsCtGzU18-f9YXgTcQ.png" /></figure><p>and if you seeing this and still keep going more and more, captureBAT working well and then you have to just,</p><ul><li>Execute your malware (don’t wait till command execute completely, it will not).</li></ul><p>After this step you will find Log file into captureBAT Directory. As our BAT file got deleted we will move forward with folder named “deleted” and keep going till we don’t find any DFS.bat file and if find open it in notepad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*sL2PWymqBMh1DFOqWCVG6Q.png" /></figure><p>And that’s all this is the bat file that is written by malware but we didn’t find it, give follow to this man 😉.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbed9483a0f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis of Dropper Malware]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-dropper-malware-0ce64944e34e?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ce64944e34e</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[static-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 08:39:10 GMT</pubDate>
            <atom:updated>2025-11-30T13:28:59.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kOjMGqyJmnZUgB3L.jpg" /></figure><p>Today we will analyze malware named malware.exe (dropper)</p><h3>SUMMARY</h3><p>malware downloading another exe from URL and place in Appdata folder, other than this malware is creating a file named “Msconfig.exe” in startup folder for persistence</p><h3>Static Analysis</h3><p>MD5 Hash: DB19C23C5F77A697500075C790CD331C</p><p>Packing: Packed by UPX</p><p><strong>Strings </strong>(After unpacking binary with UPX):</p><p>URLDownloadToFileA: Indicates potential download of something from internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*5rgldhTmUqIERO8w57haaQ.png" /></figure><p>along with registry path we also find details like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*jYcz7YL-1kiOtucyC18GQQ.png" /></figure><h3><strong>Dynamic Analysis</strong></h3><p>First take shots of some configuration like in <strong>Regshot</strong> for registry changes, <strong>PsService</strong> for services and A<strong>utoruns</strong>.</p><blockquote><strong>Changes in Policy</strong></blockquote><p>Based on Static analysis binary set the value 1 for DisableConfig, DisableTaskMgr and DisableRegistryTools to registry paths</p><ul><li>HKCU\software\microsoft\windows\currentversion\policies\system\</li><li>HKLM\software\policies\microsoft\windows NT\systemRestore</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Wu17oD7jURJ-FiHgdRjlg.png" /></figure><p>which results into</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*t4hey6JDMjdzG_stdOymkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*CHw1yWQXChpvcAbsy-3QxA.png" /></figure><blockquote><strong>Persistence</strong></blockquote><p>After comparing autoruns entries before and after malware detonation I found</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bfk96zs1wVcLLB9SpxsLLg.png" /></figure><ul><li>entry in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup for MSconfig.exe, which proves its persistence.</li></ul><blockquote><strong>File Creation</strong></blockquote><p>Malware also created file named “lsass.exe” in folder “C:\Windows” which may looks legitimate at first look</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*JADk2i3W631H0q2Y4pPcQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*x49G7lnpD-6oAXa-ATnUhg.png" /></figure><p>Malware doing all other activities in the name of this file which looks legitimate and at legitimate path.</p><blockquote><strong>Registry Changes</strong></blockquote><p>Remains</p><blockquote><strong>Download From URL</strong></blockquote><p>Enabling inetsim (internet simulation) reveal HTTP GET Request to <strong>quicknews.info</strong> for <strong>YWorm.exe</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*OLH5na8ecBHT49sSwGlnWg.png" /></figure><p>Which may store this YMworm.exe to C:\Users\&lt;USER_NAME&gt;\AppData\Local\Micsrosoft\INetCache\IE\HJE0DJRG\YMworm[1].exe and execute the this exe file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*rpHxrTJuctEIdGk8T7BORw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*Zx6SxSOM0Xvvrdi7aDK2Ag.png" /></figure><p>Above screenshot confirms that binary is downloading exe (which is inetsime default binary) from external URL that is behavior of dropper malware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ce64944e34e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis of Basic Reverse Shell Malware]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-reverse-shell-malware-abf892ab8010?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/abf892ab8010</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[static-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 06:22:10 GMT</pubDate>
            <atom:updated>2025-11-24T06:52:34.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxMEI2hapvbjDZoDRlpNLQ.png" /></figure><p>Today we will analyze Reverse Shell malware named as <strong>RAT.unknown2.exe</strong></p><h3>Report Information:</h3><p>Sample Name: RAT.Unknown2.exe (RAT.ReverseShell.exe)</p><p>File Hash (MD5): C211704777E168A5151DE79DC87FFAC7</p><p>Tools Used: FLOSS,Wireshark, ProcMon</p><h3>Brief Summary:</h3><ul><li>The malware connects to a Reverse shell on the victim and periodically communicates with an attacker-controlled domain over HTTPS (port 443). A listener configured on that domain would allow the attacker to gain remote shell access to the system, so that is the reason we will call the binary as <strong>Reverse Shell Malware.</strong></li></ul><h3>Basic Static Analysis:</h3><p>Floss Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*ICmp0WG8Zp8JWIo8cMWuaQ.png" /></figure><p>Floss didn’t find related string from binary. so let’s analyze string manually.</p><p>Here we know that this binary is potentially malicious so we start our research from.</p><p>So we didn’t get much information from Static analysis, so lets start dynamic analysis.</p><p>SHA256: 481eae82ac4cd1a9cfadc026a628b18d7b4c54f50385d28c505fbcb3e999b8b0</p><h3>Basic Static Analysis:</h3><p>so executing malware without internet did nothing, so after enabling inetsim (internet simulation) I observed DNS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T354nLyMdRm-Y2OIL1Zshg.png" /></figure><p>DNS query for aaaaaaaaaaaaaaaaaaaa.kadusus.local, so now lets see tcp connection from procmon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*V4wclqjWn3uMfS2X7EStSA.png" /></figure><p>On 4:01AM I execute the malware and in procmon I observed TCP Connect request on https, and at that time none of browser are opened and we didn’t even see HTTPS request in Wireshark, so it might be possible that binary sending request on https port. let’s confirm this by start port listening on our REMnux, but 443 port is already in use by inetsim, so let’s redirect DNS request for requested domain aaaa…kadusus.local to localhost by changing /etc/hosts entry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*YNMi8JSc2cWZQm64HHlbAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*dHZ8XVg5Ih2Ih1YExT3s9Q.png" /></figure><p>We are successfully redirect request for domain to localhost.</p><p>now we will open netcat for port 443 and binary will send request to that domain on port 443. and then we get connection from binary. lets try to give commands for execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*RHzdfAGau2AAsO0pVlr81A.png" /></figure><p>We are getting result of the command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*_Z43BZ0ulmFFg_CO2V7wig.png" /></figure><p>Let’s also confirm this by procmon. by filtering “path contains cmd.exe” and “details contains cmd.exe /c”. and we found commands we executed through reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*4idHpMd9867dD9CnR_RrEg.png" /></figure><p>So on basis of binary sending request on port number 443 and if attacker have listener on that particular port attacker will get the shell of the victim. So based on these observation I will call the binary Reverse Shell Malware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abf892ab8010" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware analysis of Basic Bind Shell Malware]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-reverse-shell-malware-c25cffc8fd94?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/c25cffc8fd94</guid>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 10:06:16 GMT</pubDate>
            <atom:updated>2025-11-24T06:52:55.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOfSLfJ2znuO7k-FCWTb2w.png" /></figure><p>Today we will analyze Bind Shell malware.</p><h3>Report Information:</h3><p>Sample Name: RAT.Unknown.exe (RAT.BindShell.exe)</p><p>File Hash (MD5): 689FF2C6F94E31ABBA1DDEBF68BE810E</p><p>Tools Used: FLOSS, Wireshark, TCPView, ProcMon</p><h3>Brief Summary:</h3><ul><li>Binary is looking for internet connection, if not found it says “NO SOUP FOR YOU”.</li><li>If internet found, download executable file “<strong>msdcorelib.exe</strong>” and saves it at <strong>startup folder</strong> (for persistence) with name “<strong>mscordll.exe</strong>” and also that binary opens the 5555 port for all IP for receiving TCP connection.</li></ul><h3>Basic Static Analysis:</h3><p>Floss Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*9aIT8xRpKIg6t9-rMROGDA.png" /></figure><p>During String Extraction I found some host-based indicators and network-based indicators. which includes 2 exe names, 1 path, 1 domain/URI, and some other strings.</p><p>SHA256: 248d491f89a10ec3289ec4ca448b19384464329c442bac395f680c4f3a345c8c</p><h3>Basic Dynamic Analysis:</h3><p>Let’s execute the binary first without connection and it says:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*667JxWOcEoT-y1y7owfZXg.png" /></figure><p>Let’s enable inetsim and analyse again with internet simulation and analye this piece of binary with procmon and wireshark.</p><p>And after executing binary we suddenly see traffic which is for domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*solEUX0d61IFeXTt3Vu6lQ.png" /></figure><p>And after this request I observed GET request for exe file from the same URL with 200 OK Status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*qdUi_7BfXqXwl7JBUAcYwQ.png" /></figure><p>In procmon lets apply filter “Path contains Startup”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Keg-Cemon1S7FztiTfhpJQ.png" /></figure><p>and we found that malware writing a file in startup folder for persistence.</p><p>In further analysis, I continue my analysis with TCPView and apply filter as RAT.unknown.exe and below is result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*a_gkvj1x8TcZ12ihbY4gdQ.png" /></figure><p>The binary listens on port 5555 for all interfaces (0.0.0.0).</p><p>Let’s connect to this machine by ncat from REMnux on port 5555, and we successfully connected to machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*fgNfaQg_3vNGYH0zVYGryA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Nov5xsZ9dCLr3GFNhhFZpg.png" /></figure><p>and all communication is happen in Base64. let’s try to give a command, let’s say ipconfig and the output is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*3lAzBjbbu81vqOez5GIbpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*Psqjcufg_ftvQw0EqFV1rQ.png" /></figure><p>Now let’s confirm this from our FLARE VM by applying filter in procmon “operation contains TCP” and result is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*QWUwRRo6uS0FcfxAtpWx1g.png" /></figure><p>Binary is receiving and sending TCP connection/traffic. which is behavior of Bind shell malware, which open ports through binary and attacker taking shell through that port.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c25cffc8fd94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis of Basic Dropper Malware]]></title>
            <link>https://medium.com/@cyber.monk/malware-analysis-of-malware-unknown-exe-1fc2014bbc8e?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fc2014bbc8e</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[dynamic-malware-analysis]]></category>
            <category><![CDATA[static-malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 04:24:35 GMT</pubDate>
            <atom:updated>2025-11-30T14:01:05.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tGiZrO7njAbvz5LL.jpg" /><figcaption>Dropper Malware</figcaption></figure><p>Today we will analyze dropper malware named malware.unknown.exe</p><h3><strong>Report Information:</strong></h3><p>Sample Name: Malware.Unknown.exe</p><p>Hash: 1D8562C0ADCAEE734D63F7BAACA02F7C</p><p>File Type: Executable</p><p>Tools Used: Floss, Procmon, Wireshark</p><h3><strong>Brief Summary:</strong></h3><p>So basically as malware downloads another executable file we can call it <strong>dropper</strong>. And can name the malware <strong>Dropper.DownloadFromURL.exe</strong>.</p><ul><li>If <strong>malware can’t connect</strong> to internet it delete it self</li><li>If <strong>malware can connect</strong> <strong>to internet</strong> it GET a file and save it in path and give name “CR433101.dat.exe” and run the file</li></ul><h3><strong>Basic Static Analysis:</strong></h3><p>Hash (SHA256): 92730427321a1c4ccfc0d0580834daef98121efa9bb8963da332bfd6cf1fda8a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*_6GHa8kwu95wiAXvosOD5A.png" /><figcaption>Output of FLOSS</figcaption></figure><p>Packed: Not packed</p><h3><strong>Basic Dynamic Analysis:</strong></h3><p>By executing the binary it delete if self because we do not have internet connection so it cannot connect to the internet. (we do not have inetsim [internet simulation] enabled).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*KPOO77ebvH8uM0YWnDoepg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*Ors67G2-JCicJFLnA2oU5Q.png" /></figure><p>Malware delete itself if it cannot reach IP “1.1.1.1”, we can assume that by commandLine we found in static analysis which is: (is deleting it self)</p><ul><li>cmd.exe /C ping 1.1.1.1 n 1 w 3000 &gt; Nul &amp; Del /f /q “%s”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEs4od-bUoo7u09Zz03kDA.png" /><figcaption>procmon proof of malware executing command</figcaption></figure><p>Now we will enable inetsim (internet simulation), now malware can reach 1.1.1.1 (which may satisfy the condition) so let’s see what malware is doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*pHjAgukbyJyswx-pPJcKkw.png" /></figure><p>Malware is sending GET request to domain we also get in static analysis.</p><p>After execution malware, we can see executable file at path noticed in static analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*IDBUHZOpRhU0BSmjvYAKsw.png" /></figure><p>After this we screenshot, we proved all artifacts found in static analysis. we can further analysis this exe but in our case exe came from our REMnux so we cannot analyse this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fc2014bbc8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static Analysis 101: The First Strike Against Malware]]></title>
            <link>https://medium.com/@cyber.monk/basic-static-analysis-d30297706244?source=rss-4f0f558cecde------2</link>
            <guid isPermaLink="false">https://medium.com/p/d30297706244</guid>
            <category><![CDATA[static-analysis-tool]]></category>
            <category><![CDATA[malware-sample]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[CyberMonk]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 18:06:24 GMT</pubDate>
            <atom:updated>2025-11-21T18:10:53.586Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*7-yAF2hSzNskjKrjuluXSA.png" /></figure><blockquote>Basic static analysis is the process of examining a program or suspicious file <strong>without executing it</strong>.</blockquote><p>We follow multiple techniques to achieve this, collectively known as static analysis.</p><p>Below are the steps involved in the basic static analysis methodology:</p><ol><li>Hash</li><li>String</li><li>Function/API used</li><li>Packed or not</li></ol><p>for understanding all process completely let us take an malware example:</p><p><strong>BELOW IS ATTACHED LINK FOR MALWARE SAMPLE:</strong></p><p><a href="https://www.dropbox.com/scl/fi/jzy74labgrxbhpfpxq0q4/Malware-Sample1.zip?rlkey=65ghg7dlw7p1sbh26s0377wll&amp;st=r18l4dqj&amp;dl=0">Malware Sample1.zip</a></p><p>Extracting the zip and then you will found .7z file extracting it with “infected” password will write Malware.Unknown.exe.malz file, malz extension was added to prevent accidental execution. For static analysis we do not have to change its extension to exe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*7zckfqLiU3b7CDtG21R6MQ.png" /></figure><h3>HASH</h3><p>First of all we calculate its hash, If you are in flare VM you can do it direct by right-click and then MD5 Hash or you can also write command</p><blockquote><em>certutil -hashfile Malware.Unknown.exe.malz SHA256 [for windows]</em></blockquote><blockquote><em>sha256sum Malware.Unknown.exe.malz [for linux]</em></blockquote><p>or upload the whole file to virustotal or just submit the collected hash to virustotal, here hash of the file is</p><p><strong>MD5</strong>: 1D8562C0ADCAEE734D63F7BAACA02F7C</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*-kKZc5Ckq_31P1kwhnAMmg.png" /></figure><h3>STRINGS</h3><p>Strings, By extracting Strings, an analyst can quickly gain clues</p><p>For extracting strings you can just write click on the file and <strong>select Strings</strong> or type command <strong>floss.exe</strong> (both options are for flare VM)</p><p>otherwise we have to download strings tool of sysinternals.</p><p>in strings tool, at the end we can found some outstanding findings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*UQ-VeNqjETjTH6k6Yy02ZA.png" /></figure><p>From this Screenshot we can find host-based indicators and Network-based indicators like commands, URL, etc. Write it down your findings, that will help us in dynamic analysis.</p><h3>IAT (Import Address Table) or Windows API</h3><p>Malware uses Windows API functions to <strong>interact with the system</strong> (modify registry, create processes, connect to C2 servers), so analyzing these calls reveals the <strong>behavior and intent</strong> of the malware.</p><p>to check functions used by program you can use <strong>PEView</strong>, <strong>PEStudio</strong> or <strong>Dependency Walker,</strong> but Dependency walker is best for this.</p><p>by navigating to SECTION .rdata you can see IMPORT Address Table, here you can find import functions. Remember that if binary is packed you cannot see this much of functions. From this you can review suspicious functions like DownloadFromURL, URLDownloadToFile, etc. for better idea of binary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*RNWDlEY12p0suD4y-qUBkQ.png" /><figcaption>import functions</figcaption></figure><p>In Dependency Walker you can see DLL List which are used by binary and by clicking each DLL you can see what functions are called by that DLL, give attention to IMPORT functions of tha particular DLL.</p><h3>PACKED OR NOT</h3><p>A <strong>packed binary</strong> is a program whose code and data have been <strong>compressed, encrypted, or obfuscated</strong> using a packer tool.</p><p>to check binary is packed or not we can use tool DIE (Detect It Easy) but best way to check if the binary is packed or not is checking virtual size and Raw size using PEView.exe</p><p>open malware in PEView and navigate to “IMAGE_SECTION_HEADER .text” and check for <strong>virtual size</strong> and <strong>Size of Raw Data, </strong>if you notice major difference (after changing this size into decimal) between these size it means binary is packed , because:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*wW0am32zS3yWg3nJPiXraw.png" /><figcaption>difference between size</figcaption></figure><p>Virtual Size: The size of a PE section <strong>when loaded into memory</strong></p><p>Size of raw data: The size of the section <strong>as stored in the disk file</strong>. It represents actual bytes written in the PE file.</p><p>If file is packed you can find name of it in DIE (Detect It Easy) tool and then you have to unpack that piece of malware using same packer used for packing in malware</p><p>OR you can check on DIE (below given malware sample is different from above, I attached below photos just to show DIE tool)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*hppubANDeC3S1ksLNwiplQ.png" /><figcaption>binary packed or not</figcaption></figure><p>In next blog we will continue DYNAMIC analysis of malware.</p><p>STAY TUNED!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d30297706244" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>