<?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 Preethim on Medium]]></title>
        <description><![CDATA[Stories by Preethim on Medium]]></description>
        <link>https://medium.com/@preethim12202?source=rss-b94a0dc4874c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lfo6Xft3Aw88bRq9</url>
            <title>Stories by Preethim on Medium</title>
            <link>https://medium.com/@preethim12202?source=rss-b94a0dc4874c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:41:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@preethim12202/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[Management Wants a Word #]]></title>
            <link>https://medium.com/@preethim12202/management-wants-a-word-1a603c505ffd?source=rss-b94a0dc4874c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a603c505ffd</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Preethim]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 01:43:53 GMT</pubDate>
            <atom:updated>2026-08-10T02:04:13.202Z</atom:updated>
            <content:encoded><![CDATA[<h3>Management Wants a Word- Preethi Motepalli</h3><p><strong><em>It was always her. It was never a bug: it was the business model.</em></strong></p><p><strong><em>This write-up is based on my own work in an authorized TryHackMe training environment. The techniques and commands were used only against the challenge-provided artifacts.</em></strong></p><p>This was one of those challenges where , after seeing the <strong>Hard </strong>label, I thought, <em>okay…this might take a while.</em></p><p>This challenge was about a guest named <strong>Vera, </strong>whose laptop was left behind after an early checkout. The machine had already been triaged, and the goal was to investigate the artifacts left behind, understand how they connected, and eventually find the flag.</p><p>What made this challenge interesting was that there was no single obvious artificat containing the answer. The flag was hidden behind several layers of forensic investigation.</p><p>So, let’s walk through how I solved it.</p><h4><strong>1. Starting with the challenge files</strong></h4><p>After downloading the task files, I found a partial Windows filesystem containing:</p><blockquote><strong>Users/<br>Windows/</strong></blockquote><p>Inside Vera’s profile, there were several interesting artifacts, including:</p><blockquote><strong>NTUSER.DAT<br>Chrome browser data<br>DPAPI files<br>Documents</strong></blockquote><p>The windows directory also contained important registry hives:</p><blockquote><strong>windows/System32/config/SAM<br>windows/System32/config/SYSTEM<br>windows/System32/config/SECURITY</strong></blockquote><p>At this point, I knew this was going to involve Windows forensics and credential recovery.</p><h4>2. <strong>Investigating Chrome</strong></h4><p>This challenge description included an interesting hint:</p><p><strong><em>“Somewhere in that trail is a password she never meant to leave behind.”</em></strong></p><p>There was also a story clue about a browser remembering things. So I started with Chrome. The browser history was stored here:</p><blockquote>Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Default/History</blockquote><p>Then, I opened the SQLite database:</p><pre>sqlite3 &quot;./Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Default/History&quot;</pre><p>Then:</p><pre>.tables<br>SELECT url, title FROM urls;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eckp3tVdyMtQnUXyywFzcg.png" /></figure><p>The browser history contained several intersting entries, including:</p><blockquote><a href="http://bytelotus.thm:8080/"><strong>http://bytelotus.thm:8080/</strong></a><strong> |SecureVault Portal</strong></blockquote><p>There were also searches for:</p><blockquote><strong>chrome cves<br>how to exfiltrate data red teaming<br>tryhackme</strong></blockquote><p>That made the browser evidence even more interesting.</p><h4>3.<strong>Finding the saved credential</strong></h4><p>Chrome’s saved passwords were stored in:</p><blockquote>Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Default/Login Data</blockquote><p>I opened the database:</p><pre>sqlite3 &quot;./Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Default/Login Data&quot;</pre><p>Then queried the logins table:</p><pre>.tables<br>SELECT origin_url, username_value, hex(password_value) FROM logins;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hr6dK3wKeBg-tugvd8pe5A.png" /></figure><p>I found:</p><blockquote><strong>Website: </strong><a href="http://bytelotus.thm:8080/"><strong>http://bytelotus.thm:8080/</strong></a><strong><br>Username: VeraSecretVault</strong></blockquote><p>The password was<strong> encrypted</strong>. This was a major clue. I now had:</p><blockquote><strong>SecureVault → VeraSecureVault → Encrypted password</strong></blockquote><p>The challenge wasn’t asking us to simply crack the password. Note: The Windows forensic artifacts were going to be <strong>important</strong>.</p><h4>4.<strong> Investigating Windows DPAPI</strong></h4><p>The chrome password was protected using Window’s <strong>Data Protection API (DPAPI), </strong>so I needed to investigate the Windows registry artifacts provided with the challenge.</p><p>The archive contained the following registry hives:</p><blockquote><strong>windows/System32/config/SAM<br>windows/System32/config/SYSTEM<br>windows/System32/config/SECURITY</strong></blockquote><p>Since we have Vera’s user registry hive:</p><blockquote><strong>Users/vera/NTUSER.DAT</strong></blockquote><p>I first investigated the Windows configuration and authentication-related registry information. One of the interesting findings was that AutoAdminLogon was enabled for the system.</p><p>The relevant registry values included:</p><blockquote>AutoAdminLogon = 1<br>DefaultUserName = vera<br>DefaultPassword = minivera</blockquote><p>I also independently recovered Vera’s <strong>NT hash</strong> from the <strong>SAM</strong> and confirmed that:</p><blockquote>NT hash = 1241186a4aac4f34f4bf7ace71b396a8</blockquote><p>Is exactly the NT hash of: <strong>minivera</strong></p><p>I then used the<strong> Impacket’s DPAPI </strong>functionality to decrypt Vera’s DPAPI master key. The command was:</p><pre>impacket-dpapi masterkey \<br>-file &quot;./Users/vera/AppData/Roaming/Microsoft/Protect/S-1-5-21-2529683458-431225740-1723070931-1000/c90719ef-5b98-474e-b934-136d606a702a&quot; \<br>-sid &quot;S-1-5-21-2529683458-431225740-1723070931-1000&quot; \<br>-password &quot;minivera&quot;</pre><p>The command successfully returned the decrypted master key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcFS60eWEEzOLm3ueJulNg.png" /></figure><p>That was a big step because it meant I could now work toward decrypting the Chrome credential without brute forcing it.</p><h4>5.<strong>Decrypting Chrome’s encryption key</strong></h4><p>Chrome’s <strong>Local State</strong> file contained its encrypted browser key:</p><blockquote>Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Local State</blockquote><p>Let’s inspect Chrome’s Local State :</p><pre>python3 - &lt;&lt;&#39;PY&#39;<br>import json, base64<br><br>p = &quot;./Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Local State&quot;<br><br>with open(p, &quot;r&quot;) as f:<br>    data = json.load(f)<br><br>key = data[&quot;os_crypt&quot;][&quot;encrypted_key&quot;]<br><br>print(&quot;Encrypted key (Base64):&quot;)<br>print(key)<br><br>raw = base64.b64decode(key)<br><br>print(&quot;\nDecoded length:&quot;, len(raw))<br>print(&quot;First bytes:&quot;, raw[:5])<br>print(&quot;First bytes (hex):&quot;, raw[:10].hex())<br>PY</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*u6ix0C0TuP-W-MkIUtJ7MQ.png" /></figure><p>So Chrome’s encrypted_key is a <strong>DPAPI-protected blob</strong>. We can now decrypt that blob using the DPAPI master key we recovered.</p><blockquote>0x5e5715ec9b6df5a86e97902692a66d28e691f05d5bc1e04d0159cfe960e94c978c07e5004a0179d3a96df2468885a28175b0b02cc064445f116a752d2b3e9d40</blockquote><p>But before that, let’s <strong>save</strong> the DPAPI blob:</p><pre>python3 - &lt;&lt;&#39;PY&#39;<br>import json<br>import base64<br><br>p = &quot;./Users/vera/AppData/Local/Google/Chrome For Testing/User Data/Local State&quot;<br><br>with open(p, &quot;r&quot;) as f:<br>    data = json.load(f)<br><br>raw = base64.b64decode(data[&quot;os_crypt&quot;][&quot;encrypted_key&quot;])<br><br># Remove the ASCII &quot;DPAPI&quot; prefix.<br>blob = raw[5:]<br><br>with open(&quot;/tmp/chrome_dpapi_blob.bin&quot;, &quot;wb&quot;) as f:<br>    f.write(blob)<br><br>print(f&quot;Saved {len(blob)} bytes to /tmp/chrome_dpapi_blob.bin&quot;)<br>PY</pre><blockquote>Saved 312 bytes to <strong>/tmp/chrome_dpapi_blob.bin</strong></blockquote><p>Now let’s use the master key to decrypt the DPAPI blob:</p><pre>impacket-dpapi unprotect \<br>-file /tmp/chrome_dpapi_blob.bin \<br>-key 0x5e5715ec9b6df5a86e97902692a66d28e691f05d5bc1e04d0159cfe960e94c978c07e5004a0179d3a96df2468885a28175b0b02cc064445f116a752d2b3e9d40</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8wK6z_8h_NZ9O43xl4_Nw.png" /></figure><p>It successfully decrypted the data and the decrypted bytes shown are:</p><pre><strong>&quot;20 6A 39 A0 97 13 27 EA 94 87 E4 AE A9 84 4F 5D&quot;<br>&quot;36 70 16 24 56 98 22 76 93 9A 71 26 46 DA 0B 02&quot;</strong></pre><p>So we now have the <strong>Chrome encryption key material</strong>.</p><h4>6.<strong> Decrypting the saved Chrome password</strong></h4><p>Earlier we found a <strong><em>website, username </em></strong>and <strong><em>encrypted password:</em></strong></p><blockquote><a href="http://bytelotus.thm:8080/%7CVeraSecretVault%7C763130C88A72A64F35F63E883EA0A7F64A6870E46B0BBB469A756EDA88B7E324C3E1C51015AA6FD8D65AC48961E1EA324CE1707807FEB3D7">http://bytelotus.thm:8080/VeraSecretVault<strong>/763130C88A72A64F35F63E883EA0A7F64A6870E46B0BBB469A756EDA88B7E324C3E1C51015AA6FD8D65AC48961E1EA324CE1707807FEB3D7</strong></a></blockquote><p>Notice the first bytes: <strong>76 31 30</strong></p><pre><strong>76 (Hex): Translates to the lowercase letter v<br>31 (Hex): Translates to the number 1<br>30 (Hex): Translates to the number 0<br>That&#39;s ASCII: v10</strong></pre><p>So this is a <strong>Chrome v10 encrypted credential</strong>. The remaining bytes are Chrome’s <strong>AES-GCM</strong> encrypted data.</p><p>Let’s do this carefully with Python rather than manually manipulating the bytes.</p><pre>apt install python3-pycryptodome</pre><pre>python3 - &lt;&lt;&#39;PY&#39;<br>from Cryptodome.Cipher import AES<br><br>key = bytes.fromhex(<br>    &quot;206A39A0971327EA9487E4AEA9844F5D&quot;<br>    &quot;3670162456982276939A712646DA0B02&quot;<br>)<br><br>encrypted = bytes.fromhex(<br>    &quot;763130C88A72A64F35F63E883EA0A7F64A6870E46B0BBB469A756EDA88B7E324C3E1C51015AA6FD8D65AC48961E1EA324CE1707807FEB3D7&quot;<br>)<br><br>assert encrypted[:3] == b&quot;v10&quot;<br><br>data = encrypted[3:]<br><br>nonce = data[:12]<br>ciphertext = data[12:-16]<br>tag = data[-16:]<br><br>cipher = AES.new(key, AES.MODE_GCM, nonce=nonce)<br><br>plaintext = cipher.decrypt_and_verify(ciphertext, tag)<br><br>print(&quot;Decrypted Chrome password:&quot;)<br>print(plaintext.decode(&quot;utf-8&quot;))<br>PY</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*aeb8_j7Z3X7a2O-hu3M9PA.png" /></figure><p>Therefore, the decrypted Chrome credential is:</p><blockquote><strong>Wh4t1sV3raD0inG0nTh1sH0st</strong></blockquote><p>At this point, the investigation had given us another very important clue.</p><h4>7.<strong> Finding the encrypted container</strong></h4><p>While examining Vera’s documents, I found:</p><blockquote>Users/vera/Documents/backup</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*yVMLbcQ-mEvzUdtCJfIjUA.png" /></figure><p>There was no recognizable file signature. I also checked the first few bytes, the output looked like completely random data. This strongly suggested that the file was an encrypted container. Then I remembered another clue from the challenge:</p><blockquote>“why did Patch tell me this version number 1.26.29”</blockquote><p>Which pointed towards <strong>VeraCrypt</strong>.</p><p>So I tried the password recovered from Chrome against the container.</p><h4>8. <strong>Mounting the VeraCrypt container</strong></h4><p><strong>Tip:</strong> If <strong>vercrypt — version </strong>isn’t installed, don’t hesitate to use an AI assistant to guide you through the setup. The installation process can involve tricky legacy dependencies (like <strong>libfuse2</strong>), and troubleshooting it yourself can take a lot of unnecessary time!</p><p>I have created a mount point: <strong>mkdir -p /mnt/vera</strong></p><p>Try mounting the container read-only and use the password we recovered: <strong><em>Wh4t1sV3raD0inG0nTh1sH0st</em></strong></p><pre>veracrypt --text --non-interactive \                                                      <br>-m ro \<br>-p &#39;Wh4t1sV3raD0inG0nTh1sH0st&#39; \<br>&quot;./Users/vera/Documents/backup&quot; \<br>/mnt/vera</pre><p>After it succeeded, I did the following steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6m9pIQOWmu-t13ZLBDCPw.png" /></figure><p>The challenge says:</p><blockquote>“Find out what she was hiding”</blockquote><p>So I strongly suspected the two files inside <strong>secret_financial_documents, </strong>are either evidence or a breadcrumb to another artifact.</p><p>9. <strong>Investigating the invoice</strong></p><p>I first checked the PDF metadata: <strong>pdfinfo important_invoice_byte_lotus.pdf</strong></p><p>It was a one-page PDF with no useful metadata or JavaScript. So, I also checked it with <strong>exiftool. </strong>However, nothing particularly interesting appeared. Then, I looked at PDF structure, it contained an embedded image. So instead of treating the PDF as a normal test document, I extracted its images:</p><pre>mkdir -p /tmp/invoice<br><br>pdfimages -all \<br>/mnt/vera/secret_financial_documents/important_invoice_byte_lotus.pdf \<br>/tmp/invoice/img</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*bdYqqHjD2yznspPQGY69Jw.png" /></figure><p>10. <strong>The Flag</strong></p><p>Then I opened the extracted image:</p><pre>xdg-open /tmp/invoice/img-000.png</pre><p>And there it was!!. The invoice contained the flag directly in the description field.</p><p>The flag was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*wWVtl_eQUtmd5O9_oIb4uw.png" /></figure><h4><strong>Wrapping Up</strong></h4><p>Good luck, everyone! I hope this walkthrough was clear and easy to follow. This is my very first write-up, so if you spot any mistakes or have suggestions on how to make it better, please drop a comment below. I’d love to use your feedback to improve for the next one!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a603c505ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>