<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Forensic on Anthrace | CTF Writeups</title><link>https://anthr4ce.github.io/tags/forensic/</link><description>Recent content in Forensic on Anthrace | CTF Writeups</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 30 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://anthr4ce.github.io/tags/forensic/index.xml" rel="self" type="application/rss+xml"/><item><title>HackDay - Stegano &amp; Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/hackday/forensic/</link><pubDate>Wed, 30 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/hackday/forensic/</guid><description>&lt;hr&gt;&#10;&lt;h3 id="forensic-challenge---hidden-flag-extraction"&gt;&#10; &lt;strong&gt;Forensic Challenge - Hidden Flag Extraction&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#forensic-challenge---hidden-flag-extraction"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h3&gt;&#10;&lt;p&gt;In this challenge, we have a &lt;strong&gt;ZIP file&lt;/strong&gt; containing a &lt;strong&gt;log file&lt;/strong&gt; and &lt;strong&gt;two images&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h3 id="step-1-log-file-analysis"&gt;&#10; &lt;strong&gt;Step 1: Log File Analysis&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-log-file-analysis"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h3&gt;&#10;&lt;p&gt;I began by analyzing the log file and found &lt;strong&gt;five encoded words&lt;/strong&gt;. I used &lt;strong&gt;dcode.fr&lt;/strong&gt; to decode them:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;ercbafr&lt;/code&gt; (ROT13) → &lt;strong&gt;reponse&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="images/forensic_1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;c29sdXRpb24=&lt;/code&gt; (Base64) → &lt;strong&gt;solution&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="images/forensic_2.png" alt="Screenshot"&gt;&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/capture-the-hidden/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/capture-the-hidden/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&lt;img src="images/hidden_1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;h2 id="step-1-opening-the-zip-file"&gt;&#10; &lt;strong&gt;Step 1: Opening the ZIP File&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-opening-the-zip-file"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;The challenge provides a &lt;strong&gt;ZIP file&lt;/strong&gt; containing a &lt;strong&gt;PCAP file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Objective:&lt;/strong&gt;&#10;Analyze the &lt;strong&gt;PCAP&lt;/strong&gt; to identify &lt;strong&gt;data exfiltration&lt;/strong&gt; and retrieve the &lt;strong&gt;flag&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-initial-pcap-analysis"&gt;&#10; &lt;strong&gt;Step 2: Initial PCAP Analysis&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-initial-pcap-analysis"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I opened the &lt;strong&gt;PCAP file&lt;/strong&gt; with &lt;strong&gt;Wireshark&lt;/strong&gt; and began analyzing the packets.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Main observations:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Evidence of data exfiltration&lt;/strong&gt; within network traffic.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Interesting endpoints&lt;/strong&gt; used for file transfer.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;A suspicious POST request&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;img src="images/hidden_2.png" alt="Screenshot"&gt;&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/image-stolen/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/image-stolen/</guid><description>&lt;hr&gt;&#10;&lt;h2 id="challenge-description"&gt;&#10; &lt;strong&gt;Challenge Description&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#challenge-description"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/stolen1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;We are provided with a &lt;strong&gt;.zip&lt;/strong&gt; file containing a &lt;strong&gt;.pcap&lt;/strong&gt; file. The instructions indicate &lt;strong&gt;an image has been stolen&lt;/strong&gt;, and we must recover it from the &lt;strong&gt;PCAP file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-1-pcap-file-analysis"&gt;&#10; &lt;strong&gt;Step 1: PCAP File Analysis&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-pcap-file-analysis"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I opened the &lt;strong&gt;&lt;code&gt;.pcap&lt;/code&gt; file&lt;/strong&gt; with &lt;strong&gt;Wireshark&lt;/strong&gt; to inspect the network traffic.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="images/stolen2.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Observations:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;I noticed &lt;strong&gt;suspicious DNS requests&lt;/strong&gt; sent to &lt;strong&gt;&lt;code&gt;data.exfil.attacker.com&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;li&gt;This &lt;strong&gt;suggests data exfiltration via DNS&lt;/strong&gt; by encoding the image within domain names.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-extracting-exfiltrated-data"&gt;&#10; &lt;strong&gt;Step 2: Extracting Exfiltrated Data&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-extracting-exfiltrated-data"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;To extract all &lt;strong&gt;DNS queries&lt;/strong&gt; from the PCAP, I used &lt;strong&gt;Tshark&lt;/strong&gt;:&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/my-dearest/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/my-dearest/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&lt;img src="images/dearest1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;h2 id="step-1-downloading-the-zip-file"&gt;&#10; &lt;strong&gt;Step 1: Downloading the ZIP File&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-downloading-the-zip-file"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;The challenge provides a &lt;strong&gt;ZIP file&lt;/strong&gt; containing a &lt;strong&gt;DOCX file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="images/dearest2.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Hypothesis:&lt;/strong&gt;&#10;A &lt;strong&gt;DOCX file&lt;/strong&gt; is actually a &lt;strong&gt;ZIP archive&lt;/strong&gt;, meaning we can &lt;strong&gt;extract&lt;/strong&gt; its internal content.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-extracting-the-docx-content"&gt;&#10; &lt;strong&gt;Step 2: Extracting the DOCX Content&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-extracting-the-docx-content"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/dearest3.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;I used &lt;strong&gt;unzip&lt;/strong&gt; to &lt;strong&gt;extract&lt;/strong&gt; the content of the &lt;strong&gt;DOCX file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Several folders and XML files.&lt;/li&gt;&#10;&lt;li&gt;A folder named &lt;strong&gt;&lt;code&gt;word/&lt;/code&gt;&lt;/strong&gt; containing metadata and content.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-3-analyzing-extracted-files"&gt;&#10; &lt;strong&gt;Step 3: Analyzing Extracted Files&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-3-analyzing-extracted-files"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I explored &lt;strong&gt;all the files&lt;/strong&gt; extracted from the &lt;strong&gt;DOCX&lt;/strong&gt;, looking for hidden information.&lt;/p&gt;</description></item></channel></rss>