// CyberDefenders  ·  writeup

GrabThePhisher

CyberDefenders Text Editor

MITRE ATT&CK

IDTechniqueTactic
T1566.002Phishing — Spearphishing LinkInitial Access
T1059.004Command and Scripting Interpreter — PHPExecution
T1041Exfiltration Over C2 ChannelExfiltration
T1592Gather Victim Host InformationReconnaissance
T1078Valid Accounts (seed phrase theft)Credential Access

Scenario

A decentralised finance (DeFi) platform reported multiple user complaints about unauthorised fund withdrawals. A forensic review uncovered a phishing site impersonating the legitimate PancakeSwap exchange — luring victims into entering their wallet seed phrases. The phishing kit was hosted on a compromised server and exfiltrated credentials via a Telegram bot. The objective was to conduct threat intelligence analysis on the phishing infrastructure, identify IOCs, and track the attacker’s online presence including aliases and Telegram identifiers.


Tooling


Investigation Findings

1. Phishing Kit Structure

The extracted phishing kit impersonated PancakeSwap’s wallet connection interface. The kit presents victims with a “Connect Wallet” dialogue offering multiple wallet options — Metamask, Binance Wallet, Trust Wallet, WalletConnect, and others. However, only the Metamask option was functional and routed victims to the credential harvesting page.

The phishing flow is designed to request the victim’s wallet seed phrase under the guise of “importing an account.”


phish_metamask.webp

2. Malicious Code Analysis

The core phishing logic resided in metamask.php — a PHP script that handled seed phrase collection, geolocation enrichment, and Telegram exfiltration.

Key functionality in metamask.php:

The sendTel() function constructs a Telegram Bot API call to deliver each captured seed phrase directly to the attacker’s channel in real time. meta_phish.webp

3. Credential Harvest

Inspection of log.txt revealed 3 seed phrases had already been collected prior to analysis. An example recovered phrase:

father also recycle embody balance concert mechanic believe owner pair muffin hockey

Each entry would have been accompanied by victim IP, geolocation, and user agent — giving the attacker enough context to target victims geographically or by browser fingerprint.

phish_seed.webp example father also recycle embody balance concert mechanic believe owner pair muffin hockey


4. C2 Infrastructure — Telegram Exfiltration

The kit used the Telegram Bot API as its C2 exfiltration channel — a common technique as Telegram traffic blends into normal HTTPS traffic and the bot API requires no infrastructure beyond an account.

Extracted from metamask.php:

Bot Token : 5457463144:AAG8t4k7e2ew3tTi0IBShcWbSia0Irvxm10
Chat ID   : 5442785564

The sendMessage endpoint was called with each new victim submission, meaning the attacker received seed phrases in real time via their Telegram client.


5. Attribution

The phishing kit contained a developer signature embedded in the source:

j1j1b1s@m3r0

This alias represents the kit developer or seller. Phishing kits are commonly sold or shared in underground markets — this signature is used to identify the original author and may appear across multiple campaigns using the same kit.


IOCs

TypeValue
Telegram Bot Token5457463144:AAG8t4k7e[REDACTED]
Telegram Chat ID5442785564
Phishing Filemetamask.php
Geolocation APIhttp://api.sypexgeo[.]net/json/
Kit Developer Aliasj1j1b1s@m3r0
Credential Loglog/log.txt
Impersonated PlatformPancakeSwap (DeFi)

Conclusion

The GrabThePhisher kit is a lean, effective PHP-based credential harvester targeting cryptocurrency users via a convincing PancakeSwap impersonation. Seed phrases were exfiltrated immediately via Telegram, bypassing any need for attacker-controlled server infrastructure for C2. The use of SypexGeo for victim enrichment suggests the attacker was profiling targets — potentially for geographic filtering or to avoid collecting from specific regions. The embedded developer alias j1j1b1s@m3r0 provides an attribution thread for further OSINT.


Which wallet is used for asking the seed phrase?
Click flag to revealmetamask
What is the file name that has the code for the phishing kit?
Click to reveal answermetamask.php
In which language was the kit written?
Click flag to revealphp
What service does the kit use to retrieve the victim's machine information?
Click to reveal answersypex geo
How many seed phrases were already collected?
Click flag to reveal3
Could you please provide the seed phrase associated with the most recent phishing incident?
Click to reveal answerfather also recycle embody balance concert mechanic believe owner pair muffin hockey
Which medium was used for credential dumping?
Click flag to revealtelegram
What is the token for accessing the channel?
Click to reveal answer5457463144:AAG8t4k7e2ew3tTi0IBShcWbSia0Irvxm10
What is the Chat ID for the phisher's channel?
Click flag to reveal5442785564
What are the allies of the phish kit developer?
Click to reveal answer j1j1b1s@m3r0

I successfully completed GrabThePhisher Blue Team Lab at @CyberDefenders! https://cyberdefenders.org/blueteam-ctf-challenges/achievements/inksec/grabthephisher/

#CyberDefenders #CyberSecurity #BlueYard #BlueTeam #InfoSec #SOC #SOCAnalyst #DFIR #CCD #CyberDefender