Blog

From SMS to Telegram: Inside a Cloud-Hosted Phishing Campaign

Cloud infrastructure has transformed how we build and deploy web applications today. What once required dedicated servers, complex configurations and specialist expertise can now be deployed with just a few clicks. Today, it’s possible to launch fully functional web experiences without managing a single traditional web server. But this convenience comes with a darker side: the same simplicity and accessibility can also make it easier for attackers to deploy convincing phishing websites.Ā 

Cloud-enabled Smishing Scams with a Telegram TwistĀ 

In our previous blog, we broke down how attackers were constructing spam URLs using well-known cloud storage platforms to redirect users to malicious websites, with the ultimate objective of stealing their information.Ā Ā 

Based on our recent observations, we have identified attackers conducting phishing campaigns that are hosted entirely on cloud storage. These campaigns use static HTML files hosted on cloud object storage, while client-side JavaScript is used to transmit the information submitted by victims to the attacker via a Telegram bot.Ā Ā 

Ā Here’s what the cloud-hosted phishing scam looks like: Ā 

  1. User clicks the link in the SMS, opening it on their web browser. The browser sends a HTTP/HTTPS request to the cloud service provider – in this case Backblaze B2 infrastructure. Ā 
  2. Backblaze B2 responds by serving a static web page containing embedded JavaScript.Ā 
  3. The browser executes the JavaScript, which sends the data entered by the user directly to Telegram using a Telegram bot.Ā Ā 

 

Cloud hosted phishing scam Backblaze

From Bait to Breach: How the SMS Scam Unfolds
  

The campaign begins with a classic delivery-themed SMS message that we see all the time, designed to create a sense of urgency:Ā 

Delivery Parcel your CS4Z2H1Q) PARCEL is out for delivery today. please PAY the Out_standing balance of R19.99′ Using the link https://shorturl[.]at/6ld88. Thanks

The message contains a small payment request that must be completed immediately to inspire action. The URL is shortened, obfuscating the true nature of the link.Ā Ā 

Ā Following the Breadcrumbs: Tracking the Suspicious URLĀ 

The shortened URL itself was not the final hosting location. The HTTP response we observed as we traced it revealed that the shortened URL acted as an intermediate redirect rather than the actual application server. The redirect eventually led to a URL pointing to a landing page hosted on Backblaze B2 object storage:Ā 

Cloud hosted phishing scam page 1 index

Figure 1: “index.html.” This is a static webpage that acts as the main page. It contains hard-coded display elements and is configured to redirect users to the next targeted static page.

The cloud storage bucket where the landing page is stored also contains several html files for different static web pages that can be retrieved independently through the cloud storage endpoint. The identified HTML files were labelled: index.html, cc.html, loading.html, otp_1.html, loading1.html, and otp_2.html.Ā Ā 

The identified HTML files are used by the attacker to create a user journey:Ā Ā 

1. A static webpage containing a ā€˜form’ and associated components designed to collect the end user’s data and pass it to a hard-coded location:Ā 

Cloud hosted phishing scam page 2

Figure 2: “cc.html”

2. A loading page – designed solely to pause briefly before loading the subsequent static page:

Cloud hosted phishing scam page 3 loading

Figure 3: “Loading.html”

3. A page built with a text box to capture the One-Time-Password from the victim’s bank. The OTP is then automatically passed to a Telegram chat through a hard-coded API, and the user is redirected to the next static page upon submission.Ā Ā 

Cloud hosted phishing scam page 4

Figure 4: “otp_1.html”

Cloud hosted phishing scam page 5 loading 2

Figure 5: “loading1.html”

4. Following another loading page, a page requesting a second OTP appears, stating a new OTP has been sent to the user’s mobile device, likely used to approve a new transaction.Ā Ā 

Cloud hosted phishing scam page 6 OTP 2

Figure 6: “otp_2.html”

How Users Jump From One Static Page to the NextĀ 

Ā When we did a deep dive into this attack, we learned that each static page navigates to the next through either the action attribute, meta http-equiv, an href link, or an embedded script. For example:Ā 

Cloud hosted phishing scam html navigation

Figure 7: Static page used action attribute to navigate to following page

In this example, when the user clicks to navigate to the next stage from the landing page, the action=”cc.html” attribute directs the browser to the page labelled ā€œcc.htmlā€ – which is the page with the fake payment form that the attacker has set up.Ā 

  The cc.html page contains the JavaScript responsible for handling the information entered into the payment form. It collects the submitted user card information and sends it as an outbound request to the Telegram Bot API, effectively using the victim’s mobile browser as part of the attack chain.Ā Ā 

Cloud hosted phishing scam web source code

Figure 8: JavaScript. The cc.html page acts as a data collector and transformer. It collects and processes the submitted information, sends it to the Telegram Bot API, and then opens loading.html, which loads otp_1.html.

The attacker didn’t need to own or rent a server to host their phishing website. Instead, they could simply upload the files to a legitimate cloud storage service and use it to serve them as phishing pages. The hosting infrastructure itself appears legitimate – because it is – even though the attacker is abusing the service for malicious purposes.Ā Ā 

Flow of the Phishing Attempt:

Cloud hosted phishing scam infographic (1)

Figure 9: Flow of the cloud-hosted phishing attack

Tools Leveraged by the Attacker for the Cloud-hosted Phishing Scam

Component Function
SMS Social engineering lure
URL shortener Initial redirection
Cloud object storage HTML/JS hosting
Browser JavaScript Form handling & navigation
Telegram Bot API Remote message delivery

Why Are Cloud-hosted Phishing Scams Hard to Block?

So, how do we stop these attacks? It’s not as straightforward as it might seem. Several factors make detecting and blocking them particularly challenging.Ā Ā 

  • The main challenge is identifying malicious content hosted on legitimate platforms.Ā Ā 
  • Blocking the entire domain is not practical, as it could affect legitimate traffic and result in false positives.  
  • Attackers can quickly move between URLs, cloud storage buckets, domains, or hosting locations. A blocklist containing yesterday’s indicators may not detect tomorrow’s campaign.Ā Ā 
  • Modern websites commonly use HTTPS. HTTPS encryption limits traditional network-level inspection, preventing firewalls from directly viewing webpage content, HTML, JavaScript, and full URLs unless TLS inspection is enabled. SMS security therefore needs to rely heavily on URL analysis, reputation, active threat intelligence, and controlled inspection.Ā Ā 
  • Campaigns built using multiple independent infrastructure components and services can be difficult to diagnose and identify immediately, as no single component may appear malicious on its own.Ā Ā 

  

How Enea Blocks SMS Phishing Attacks

Enea stops scams like this before they start, protecting mobile subscribers by blocking the fraudulent SMS that triggers the entire attack. We use a multi-layered approach to ensure malicious messages don’t slip through the cracks:

  • We don’t take URLs at face value. We conduct URL inspection in real-time, looking at volumetric and behavioral metrics among other suspicious markers.Ā Ā 
  • We incorporate AI/ML-based analysis to help determine the risk and confidence level of a message based on behavioral indicators.Ā Ā 
  • Enea’s adaptive firewall rules and detection logic are continuously updated to adapt to emerging phishing themes and campaign-level patterns – something that is particularly important in light of rising AI-based threat evolution.Ā Ā 
  • We evaluate multiple indicators within messages, looking at things like senders, content, volumes and other characteristics. We look at the full picture to ensure consistent security against emerging threats.Ā Ā 

SMS phishing is not going anywhere. This year, on a single network, we blocked an average of 450,000 smishing attempts every day over the course of one month, covering a multitude of variants and scam tactics. Proactive, multi-layered security across messaging services including SMS, RCS, and MMS remains essential to keeping mobile networks, communications platforms, and subscribers safe against phishing attempts. Discover more about how we do this for MNOs and communications platforms. Ā