• Resolved Daniel Payne

    (@djepayne)


    I have a WordPress site that uses both the Elementor plugin and WordFence plugin. I received a report today of a malicious file added in the Elementor folder:

    wp-content/plugins/elementor/assets/js/packages/frontend-handlers/frontend.handlers.asset.php

    I removed this malicious file. Another file was modified by the hacker, so I removed their code:

    wp-content/plugins/wordfence/modules/login-security/views/page/settings.php

    Anyone else see this specific activity on their sites?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support vipul78

    (@vipulelementor)

    Hi @djepayne

    This is an expected file of Elementor plugin. Was there some suspicious code added to this file by any chance?
    Could you please show a screenshot of this file’s code?

    Did you see any suspicious activity on your site with regards to this?

    Thread Starter Daniel Payne

    (@djepayne)

    The legitimate Elementor file is slightly different syntax: frontend-handlers-asset.php

    Notice how the malicious file replaces the “-” with the “.” character: frontend.handlers.asset.php

    @djepayne Can you please check and confirm the correct filename? Because in the original files downloaded from wordpress.org the file is called frontend-handlers.asset.php (so with a hyphen and period combined).

    Plugin Support Milos

    (@miloss84)

    Hi there,

    Thanks for contacting us and hope you are doing well and having a great day.

    Thanks for reporting this in detail. The legitimate Elementor file name is:

    wp-content/plugins/elementor/assets/js/packages/frontend-handlers/frontend-handlers.asset.php

    Notice the correct syntax uses hyphens (-) and a period (.) before asset.php.

    The malicious file you found was named:

    frontend.handlers.asset.php

    This version replaces a hyphen with a dot, which does not exist in the official Elementor plugin files. That means it was injected by the attacker.

    If you’ve already deleted the malicious file and cleaned the modified WordFence file, that was the right action. I also recommend:

    • Making sure your WordPress core, Elementor, and all plugins/themes are updated to their latest versions.
    • Running a full WordFence scan and checking your server logs for other suspicious activity.
    • Replacing Elementor with a fresh copy from wordpress.org to ensure all files are original and untouched.

    Hope this helps.

    Kind regards,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Malicious file added, frontend.handlers.asset.php’ is closed to new replies.