[WordPress Security] What Does The Fox Hack? Breaking Down the Anonymous Fox F-Automatical Script

From: Wordfence <list_at_wordfence.com>
Date: Wed, 26 Oct 2022 09:50:28 -0700

Anonymous Fox’s automatic Command and Control (C2) script was found in the wild and analyzed by the Wordfence Threat Intelligence team.

Wordfence-Logo.png (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_ch3pdqSV1-WJV7CgBfkW3CbHys65ZPtxVYcm-f3W92wVW5_pq934638t4N5xmZcWs5F71W59HHnw6GqQ0PW6VKLhx7mh7hRW4RH1Qv8-1cPLW2kdxLD7HxH8SW6PrD8d4C-vT6W2c53Xv1Nj1ptW3x-07S2WPVM-W3Thy6K2c0H59VSKJ9K4FywKTW3lFTB78CDk2KW6gLW6S7Q6DfjW6pMNP66XN13jW8LHN5r75JcgLW10sgPK9kQP0YN3PBHNmXnPYbW2c-KBb3Dfvs33nQq1 )

AF_featured (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgXF-W32_QYC1bhzl4W40VjG67kXbvCW4yJ6hd7SG_0QW13zJzb5pl5LTW4v5NZf3MLrKkW5P--n_5qlfNNW27519f8B5xK5Vr-r_76cV6PZW6nWc7D8XN2ZMVQxKS14Ql0bRW6k1QBg3dcmMXW6p4c0m20bdBtW1y-MVH30Wh2CW2tpWRc4F02_mW32d9ff8H8zf1W7QG2KQ4rZHhyW5g3bqs1VTRYNW7TD2617fjB7DW2q96kC8MtPPyW42qf5m8hmVxbW7YRCm48BlmKdW6ZrZy17ML1v7VFvrr_8cjCdfW118qkz8S0_v2W4ns1YX7vKFc3N6K-v6KzNwdHW1wcBKG327kd6W2DjXP08pkk4TW5Lkw1g4mW_jWW7wy54V4w2cVpW90FBWT70dbXLW5Lw3DQ2tK2Mp2kF1 )

While performing routine security research, one of our threat analysts discovered the latest version of a Command and Control (C2) script, which is referred to as F-Automatical within the script’s code and was commonly known as FoxAuto in older versions. This is the seventh version of this automatic C2 script that is developed and distributed by a threat group called Anonymous Fox. This script is exactly as advertised: a script that automates tasks performed by a threat actor on a compromised web server. While this script is not used to exploit a vulnerability, it is a post-exploitation script that is run from a location under the threat actor’s control and can be used to maintain persistence or upload additional malware on a website that the threat actor has already accessed through an exploited vulnerability.

Some of the malicious functions are built-in, while others are performed by downloading and running additional scripts from a hardcoded location. Threat actors often try to automate anything they can, and this script is one of the more versatile malicious scripts out there. This script allows for anything from simple information stealing attacks, up to full site takeover, and more.

This email content has also been published on our blog and you're welcome to post a comment there if you'd like to join the conversation. (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_dN3pdskV1-WJV7CgFsDW3tWq334H50tdW2Q3BfZ1WY8fTW398lp05g38nnW4FLqsv8bk7spW2t71sP6nw-vtW4rCS8G6Bz8DpN5ZdMP-WhzQJW4LFFyF95CcBmW3pBdt11kLxgpW1TfkM681Pm9_W6n-D0c9718JCW4vG7Dw4Ymmd0W2l_ScG6HTVPLW4Ypl4D2ZWR0LW42b1_c55GpfmW6PtfGJ6n84_pW91BgXN2_-BqmW7V70J86X0YgVW5zqScw4r6g0PW2d_mP940SsDWVRW7lV3MW44GV8Hyz16Kx7wfW3VZFTQ6XXc9rW2-WC1H4V8qvzW2ggPtp2PNg2CM6Xxhmc8gswVhfx6b86hdDBN56fV_4DgL2mW3Bl5dQ2W27QsW8NDlZx704p0V3bpS1 ) Or you can read the full post in this email.

Anonymous Fox is a threat group that was inspired by the works of Anonymous, but is not affiliated with the better-known hacktivists. Publicly, they are mainly focused on NFTs, and have even hired an artist to create images for their NFTs. However, the group also has indicated a strong opposition to governments and large corporations. Anonymous Fox has called for action to be taken to break down public-private partnerships, and has published a list of corporations they would like to hack, including Google and Amazon. In an interesting twist, their tools tend to be used against small businesses and individuals far more often than against corporations and governments.

The Fox Doesn’t Want You to Know What It Says

The initial script itself is only 6 lines of code, with a number of empty lines thrown in. The most important line in the script is line 17. This is where the entire malicious script actually resides, but encoded and compressed.

AF_enc_comp (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgVb6W35H6BY7L0y3zVKyCbM3q1VSHW58r4xF2RStw9W3N5Kys7h6MG8W19f6TT2nKKsZW2B5mxp4k3dHgW4VQmvf70y409W3bhgmK5dtbD7W9l6GsV3TjDj1Vg9yL22mwRsDW1hWxkW3R1Gm-W736kWg9bVqm7W4Lnm8b8FS4Z0W1wkhPp7zhLDqW3Gsb8m7MXk88N6Ny67MJNbpqW9kkYKJ5YF7pMW4ZLfXP8q_Y_jW5pZ0qz2VfS7CVqV0K12ygdcxW2LwzR55F37dBW78byjr4Gp4gFW1RqVpP9f6k9kVwzxkV99s1ZsN88SXVbKcsnrW2D204j3gCdCGW6ySVMk2y69V_MljKBmV3byhW4mK4T71t8L6tW9j9nQ64vnSFCW8P7C0677G_dKW3bt6bt1FV9b13pqg1 )

Once this line has been decompressed and decoded, we find a much larger script, consisting of more than 2,500 lines of code. While there is still a layer of obfuscation in place, a significant portion of the script is now readable by anyone who knows Python. The remaining obfuscation seems to be using an obscure method of encoding the text, based on a method developed by a Reddit user as a response to a challenge in the r/dailyprogrammer subreddit.

AF_uncompressed (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgWyBW6NmZwF23bzwmW4yCjDL5yy8X0N12R1TncgqmCVbW99D14-yC_W7xK7x81ZhdNXW8qKHtF3G7KJvW7r3QVL7-pYPYW4DZb9F1lm6DtW85LDTF2PZ0C9W6gkRll1HcckgW53WWwx2RVjJPW6w0Klt70y7cqVRFzmq3DN2S_N7MqcQ22L6R5W3MmF-G6v_CQvW1RmxWg7GzFVjW5LSK5T942TpRW472rZk3CRtpFN5-GDNcKv0XpW4TMC4C8095whW2HwCwJ3_19b9W1xlNzy5LY6dhW4P_2_G2pNckrW4YFfQm4PHwMxV6Cxrg540JLgW66bkcJ5JQzMyW8WsYz09jDGmyW3-Pcjz5rfXMjW5JPDzJ65CbJBW7YvHq45XtR0HW6P9hhk42B-t_N5vWy-ldH22h3gww1 )

While this obfuscation method is well documented, which makes reversing the obfuscation possible, some well-placed print statements can make fast work of decoding important pieces of the script. This obfuscation could be considered overkill, considering the fact that a capital ‘F’ is encoded as str("".join(chr(__RSV) for __RSV in [(___neoostdfluai+____hyrblqdmgtxk+(((((__ehykazitkvvj<<____hyrblqdmgtxk))<<(_vjqdsnodtvja**_vjqdsnodtvja)))<<(_vjqdsnodtvja**_vjqdsnodtvja)))])). The use of multiple layers of different types of obfuscation is also a common tactic of threat actors, in an attempt to make their code harder to analyze.

What the Fox Does

Without even fully decoding the script, we can see what this script does, thanks to a code block near the end. This block is the list that is printed to the screen, allowing the would-be attacker to choose which functions they will use during their attack attempt. The way this was coded indicates that the script author intended to distribute this malicious script to other threat actors.

AF_funcs (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgHFRW1KQrXH5Dxw44W4FTfHH9gV_s1N6YTFSv_VfkwN44kpx6Fj31mW7qc3D-5MdVq3W8XM6GJ9lP3PDW5pql6r2_fJJPVb8gCp3bMthqW5QhVJ1923HTjW574r2w8kd6f3W1W0qPs1QV_FZW2L7kZ440ts7kW5NqSxH6Kh5QzVw5zb_4sKmT2VKLsFX4YJKVXW9jKy_t6WPtsnW5H_4sW88nZ0QW7T-xGM9l7Jf-W4CMHk95dnvbYW1kDVmR6BXrm5W21VzTr61nFzHW47X1QB7f0WQ2W4KDwyT1nNgy3W2ybvPs1GZBzCW8wc0MB5_ns-XW8hj6kZ5YwnnTW8-crvp1hPH8YW8T4ry04LlZg8W2SBYL07bJRW0W2LpPYX4SLDDxN2bZlH_RltNMW8srz4M3gP1hc36jB1 )

A quick review of this block of code shows that this script performs many functions (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_ch5mNY1V3Zsc37CgKxXW14mNWl956gMZW4zT3JX3tn8Z0Vqq4M62n3TcHW5P2TYY7WPxvlW2hxC3w7kq_G4W9928S35l1B9lW1SfKWL3lSsxBN2Ry5JgZW-tyW8t0Clv6cygD6N7HgLcgZTnsqW2Rswx81ZWt6CW74x_yf30C6f8W7nv3gq3bC70jW40tvWs6MXpnDW9gcjKf6x8dYQW2DPwtg98s6zXW5Rcnfc7N7J8zN6yJ146Lj8-vW6kYYSB4jpCjGN8Wd0rDh0NTmW2Z1Mzp1njYhxW2zK7KD433wb5W8wQsCh5J3mV9V6jxmS5b2_ZNW2qTnDQ1xKyt9W7pCLgq7Lq1n7W2FsThV68LmFtW7cZktk7r2dTNW4N9J122FsvMfN37yx2R3JDM2W3cSPcr3QlMbZN2c2qVHzpGB-VxS6hv4230W0W208tFK8t3JwFW3tNWnm4gS_SFW3C93vl52W95n3j2k1 ) , including password resets, uploading and injecting backdoors and mailers, information stealing, attempting to gain access to the server itself, and many other functions. This is also a versatile script because it accounts for different types of servers, as well as common content management systems, including WordPress, Joomla!, OpenCart, and Drupal.

The Fox Hides

Many of the functions are not built into this script. Common scripts and applications may be downloaded and installed from servers under the control of Anonymous Fox. Some of these uploads could be plugins (also known as extensions or modules in non-WordPress websites), or scripts like LeafMailer for sending emails, backdoors and shell scripts, configuration files, and even additional malware or other tools that may be of use to the threat actor. Rather than including these scripts within the F-Automatical script, they are pulled from locations under the control of Anonymous Fox, but these locations are not readily visible within the script. This is another spot where we have to use the functionality in the script to deobfuscate the code and see where these scripts are being pulled from.

AF_ufox (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgSXTN6flRVw6VDmtW999QZ28j4n-9W4X7LDq7fmFxPW5dHVdQ43qLMRW6d-XxQ1LMMZcW4vd0R71bSs1pW3T_RQN6F3pwnW4Pm1cV1LRcsyW5mlW996Z13FHW5Sj0Vx3JZbkBW1lgFY61P6PFyW6RKBd838qpFqW4JRCMp1frMxRW2V3y203BFZ0WN28FbkrFLjkfVHzG9W4DkHjJW3SlX4x3sldrYW4hn0HT12KvHVVtXR3F5w73-RW8xZNWb8Dq2zBW3k1-Jj3tSW6BW5ylNG296sNN9W6ZvcZV3tZg7FW1SRQ-_3znfP8N6BJsn9y1f6rN97FVz0LmrMXW7-F6Dl7vg4MNN7DnJqtVlBTZW53mJz887NkCMW3xlsJ11fmHtLW1q4xfm8H22HbW4hgnf638PG5S37sX1 )

Once this has been decoded, what we are left with is simply ______________________oldobherivaw=[ufox.co,youfox.co] which is an array of two malicious domain names. These are then plugged into the next block of code, which reaches out to the domains to grab the needed payload. At the time of writing, both of these domains appear to be down, which could be temporary, or an update to the script may include new domains or IP addresses in place of these two domains. In this sample, 'script': '(.*)' has already been deobfuscated from the original code. While it is possible to complete the deobfuscation here, at this point enough is readable to see what the code is accomplishing.

AF_headers (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgNBDW4wyKky9dSPDzW4S71q35hmmdQW6MJrfW3C_2FkW5rCmZ13cjf98W3qfP__2DX4TRW1CTPtn6cQY6tW4kNDht4lp8BrW3gc7MC4ztgBRW72Zkhv8D5-WjW48Gmtm2DGBpFW9666yT8GbgFGW1ls6Nr6nZjSSW5xdtwT2wchxPW5yrG-J64dFbsW6tZXKX5QyfWgW1NpcD31MpKndW89X_Qk1ncykZW61CMjY6j8VpxW6tLDW842XSM8W7tG9TN3Rhm43W5L-5_G7vqtM5W5l-M8049lNPhW8whkt-3jS6KrW8SHJWq9dpp8SW2pR7c31b3VTPW7kRY9574NQp0W95L14x1KsYHBW1zgmsm2ycLj6N3RKPP647FK-W5r64p42LMzxgVhDfvZ627PkVW132Myk7lFDVj3mq-1 )

One way in which Anonymous Fox doesn’t hide very well is in their consistent use of a single user-agent string. The previous version of this script used a common misspelling of Mozilla that is often seen in user-agents from malicious actors, Mozlila. This latest version of the F-Automatical script is using a different user-agent string that is identical to the Chrome 90 browser on Windows 10 user-agent. While not an effective indicator on its own, tracking this user-agent, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36, along with other characteristics like IP addresses and observed behaviors can help to identify attacks using Anonymous Fox tools. Keep in mind that this may not be a single threat actor, but many threat actors who are using the Anonymous Fox F-Automatical script.

The Fox Tracks

One of the pieces of information that led us to reversing the obfuscation in this script was the use of the Gyazo API, which was also used in previous versions of the script. The use of this API itself has nothing to do with the obfuscation, but it was a familiar starting point that helped us to better understand what was in the code. The actual purpose of the API being used in this script is to take screenshots of successfully uploaded webshells and mailer scripts, typically used as proof when reselling access to a hacked site, and to save them in a searchable and web-accessible location. For obvious reasons, specific details are omitted here.

AF_gyazo (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgJ0mW80D-MZ1tjbdTW706rj_8GchcGW6zNP401S1G1xW4vG70H7QjQ1TW4YWm3Y1CWLJ6W85_5Cj8X_11nW2gVN3q4WNghJW1WKzwH6wDVjtW6btCKm2-ydNgW4-BPX08_rz-tW3xMm0r24VlnqW90M5RL1LTvd1VnWpgG4Yk-FHW6CGnQ78sYlLcW8KfNG07XMjp6W1Pj1PJ1hPk1JW4Brs0S9ckbxmW1HQSQ-235CgvW5mjVYH7y1GxYW2scqrK4ghQL-Vk7s6n8QQ7H-W4Fygyr6bYV33W3y-Bj52_SddjVXZy1Q5Jnw1LW75mdDr2cyhBHW97QFSN6NR9v4W3DrHGH5fCQWZVTxNyZ9h_DlMN2Cf0ZnFXPFPN6W-PcSGvlHZN34BMwWWQVWMV_YNDk3PQz_C3dgR1 )

This may look indecipherable, but combined with the block of code immediately preceding this block, and using the Gyazo Python library, we can see a little more of what is happening here. With these details, we can use a print() function to see that str("".join(chr(__RSV) for __RSV in [((_azckljdzdnaw**_azckljdzdnaw)+____rxfmwahulsfe+______uncyxrbonqkk+_______wbrgpyimzghk+(((((_____iqotaksjjbuy<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw))),(___rhhamzxovwmt+______uncyxrbonqkk+_______wbrgpyimzghk+(((((_____iqotaksjjbuy<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw))),(____rxfmwahulsfe+_____iqotaksjjbuy+_______wbrgpyimzghk+(((((_____iqotaksjjbuy<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw)))<<(_azckljdzdnaw**_azckljdzdnaw)))])) simply becomes url.

AF_gyazo_dec (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgHDWN5TjG_mlcRrMW4PP6-14lCv35W4t-W5f7lYrD-W5S2NY-1Vx4FjW98mT4v3Jmf9MW7SqBKT5GC3R5W4Jwq2X20xkKLN4CLLN8Z6BwTN1N1xwmV6_yKW3sxvnb6zT926W2mDD9Y7Z3ZFDW5k__256WtQ6QN6NV8Cr9c3qGW96hSSC7T-wPdW3m0_Xl8k7vDhW5sTXkx6JswYLW1r4mHC7yTjWJW1lDLNT7shcZtW52v65g3XP9rmW7_6qGH1DZY8WN2Pzctq_kdNpW1wH0Hm272wYVVLTs8K73BPJSW8JX8c63mfD7YW6kNT-55WvZL5W7yY01q86-xQVW7tLH3F4MJDxfW62bmcK6Y8stDVnW_Nc1GwjwLW2MwMjS5QYCc-W54KzVm6qJLRmW7HpD1l1n-72T3ckD1 )

This function uploads a screenshot of a successfully compromised system, opening the Gyazo URL using the Gyazo API key, and uploading the image to the specified location. Once uploaded, it provides the exact URL where the image was uploaded using the API.

The Fox Replaces Your Locks

One thing that F-Automatical does differently from other scripts is resetting cPanel passwords instead of simply inserting new admin users. Many website administrators don’t access their cPanel dashboard frequently, which can help this password update to go unnoticed for an extended period of time. This functionality is split into two parts within the script. First, the password must be generated. This is defined early in the script, so that it can be reused as needed in different functions.

AF_pwd_gen (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgMZRW3jD9fs8qF-vtW97C9z85_W4gVW34Xbph5zh92GW4QZPKC6f50lwW5NMJMh8g2gSYW6lkMNN59M2BLN1wRYsZ4z51XW8Xq9S04yGMBgW6PmcYt5_LDhGW2PP7Gz22q75gW6cSzB46t3ckWW4Q6S1K2kGGTjW839Rgw9jS4vkW10Z2ys5LMrD0W36QZCv92NwvHVXYm-h8wv47WW6Ys3Lq8zclRkW5SWG-21gKqJvW8934gd3bHvBcW2C6ZWm84tKPrN4_QN1-2t05TW7l8D6Z1zs7B-W5p1vCF93Lgw9W3MGP_t4cKcntW71fwnt6kC5nLN8gP-shHQ2xhVjGNBw61jSypW87dnyd5wH-n1Mk8XhhBRxBnW797S916-JzrnW8p2Gmm4WH0vYW2WmmBv6DG6tn3cgb1 )

The next part of this depends on what password is being reset. Here we see the script using data it has already collected from WHM to reset cPanel passwords. If successful, this could lead to multiple websites being compromised, possibly affecting multiple website owners in some environments.

cPanel_pwd_reset (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgVBWW5BHxtD3ZmTMxW37WfT48G4DYLVdfslt1LvFYSW11BGj37-kwZkW6CYY2P6nksQ1W4VVSRj2Ry0sgW2cQ8xx5Qf_SkN8B-w0sCDmYTW53zGl95m4hFyT99gf5t4_fHW8GPD2l3yL2sDVvfnm130lPtQW2H5fJt85VpwYVVCxN025G3LgW82LBFX84j222W1QwP8v9j4frJW7KwS7b3fqFTkW5GZzNt2nPLdmW8Lftcq4KzVzsN2q3FzTtX4-TW6-hW9-44lfcNW8wJWcT9cdVqLW3pdWNT6qW0bhW8x-yVB80cRhkW1xpSDv1zmGH0W5bbXgt37kkyVW3WwD_L1bv0f4W62hQB486Z2d1W5xSX-K2KhMNSW5N2ZNl7_lmRJW6VrcY94hw1mtW6bKGZp1Zchtn3fR01 )

One way to keep threat actors using Anonymous Fox scripts out of a website is to enable two-factor authentication (2FA) (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgFyRW5JP49g37MWGcW1XPP9M4n0T6GW3R00Qc3DbhCkW7y4n1s1J2LFqW5pvs7-1td-m0VH5l_P5JrVKwW8vL2WL40JQb2W3W79bp2ZsfmyW7S7dCC3wmRjpW2_39MD8K97RlW8F0Vc-3rxkDwW71sT2s4RNXn4W2NgGTm1YK96NN5JmryR2RtHjW7vlSXs46mvywW6B9slQ7dvFmlW6SpMQw9dx1KHW82LjBq8-FkW4W4xcDGn5_XpVgW80JtGY94qDmFW1GbqW21c9MXtW4Mml0M8201wZW2Tw0HJ1PTN01W6bMG8h9h61YN3bdy1 ) . This will require a second form of authentication in addition to the password, so even if the threat actor is able to change a password, it won’t be enough to access the account. cPanel now supports 2FA as well, though you may need to contact your host to see if their configuration supports it.

The Fox Shows No Mercy

Remember that list of functions this script could do? Let’s look at option 29. This portion of the script finds the website control panel and accesses a shell to give the threat actor the ability to run the commands of their choosing on an infected system.

AF_shell_conn (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_bJ5mNXrV3Zsc37CgKTtW6YJCJp7xv7bkVSMq8L8f2s-_W1P8KFr3sC7rDW5k4MvS8Km9xHW2pXBHN2-RWpmW2MDC0F17vlbnW14sv-F6YvBYSW4D7-142Z7spNW5h_R5r2s6Y8GW77bNm83VcgQ-W6b_2nq2ydXRZW2PLdwC27s8ySMNWSYhxn_KdN1L5y9D_CcFXW6hyjNf37Kj1hVDHV8l2KmGDZW6vSQV83ndMsrW547cSL6lGMzFW59cwBT1BLMYLW7W7t_Z4l7y40N3w9k-XhkmKrW8JxWhV5FbkGBW683hDK6bTKB8W76h3yS6G9HswW6Gn90D1QbVSnW4gJgSt9kCQWxN7C5R3P1H9WHW7-5f1V5-1sDTW91DnkW2KMgslW2fwFV76cFGtnVJn2zF8zpNMZW3Z22CL92dBJ03d-r1 )

Note that in this sample, domain.com is not the domain registrar, but rather a formatting example to be used if the URL format passed doesn’t match the expected input. If that passes, then the script attempts to find the administrator panel in WordPress, followed by Jooomla!, OpenCart, and finally Drupal. Once it has found the administrator panel, it configures a new shell connection that the threat actor can send malicious commands to the server through.

Cyber Observables

There are a number of observables that can be obtained from the Anonymous Fox script, and associated data. The observables in the script can be expanded out to include the following cyber observables, which can be used to identify and block attack attempts from malicious actors using the F-Automatical or other Anonymous Fox scripts. In addition to F-Automatical, there are seven additional files we have observed in conjunction with this script, and still more scripts that the group has developed and distributed. Many of the additional files are named with a random 8-character filename and a PHP extension.

Keep in mind that the IP addresses could be shared servers, so they are only one piece of the puzzle, but can help to identify malicious activity. The user-agent mentioned above is a legitimate user-agent for Chrome 90, but the old versions of this script used a known malicious user-agent which is included below.

File Hashes

F.py

MD5: 49a4a453b10715f0ed0ab3775dce76d8

SHA-1: 252f380bf8e8c2645e481c43e08b6c85b8f1c339

SHA-256: ae544ff7385af2dcb57ecb1e3193048a59639e203334b90c5b29dc96730b08ed

SSDeep: 1536:qPFL1ls4cgb19ho+UUyRHR0NGazRy6D+H9h:6Zln3GZUyVgjI3

f.php

MD5: 88c69bd369d3400efcb517ad799f5e32

SHA-1: 912cab83a15d067877ad7a80ab90ef9e669f7725

SHA-256: 0e8cb823c8ba1ada61cba424709028a306f54ff596292070e0d00b4dea94799c

SSDeep: 3072:VktSC92X9Ug0MItogowLTJLJF/uuL4EpbhER0kwmNFshEfdW5hJW7X:u32OoULxuKNVhER1wQmhEfdehQD

llsjxdcr.php

MD5: 33993f645556198f3724b210b9ad2228

SHA-1: 780fba5e22cb92f6906ad33ed4d7f890e78342d0

SHA-256: 0e0c060684d89eb04ea7c4a4a07887fbe119ec1ff7574bf085517ad7989b04ef

SSDeep: 384:QRHKPMf8mOaqTRxXM9GwdGNtNoygVGPfWbVM65PvqY6TzHrBmvC36uhjBvSF+zn2:QN0mO7H3QONxgoPu3JvqlLBcuhjIwWt

mblircic.php

MD5: 9b5e538812ab1c5dc502ebe9330b4a62

SHA-1: f7bd5da02f3e104aa685048880d28f27931dc4cd

SHA-256: 5fd9e6269ec291e5691bd814f0636c579c8a16b0790d65228e84ca75677062db

SSDeep: 768:dG1FRp0SjC7JqR+9Ghb749Y/eVi7bu3yNAlSjAW5rq3S9dq3jT6DAJtT73XMYu:d2F3A++y4hVyaCNqSw3BT6yJtu

vfmuqyvp.php

MD5: 02185d0a044ea18112be72851a73fcca

SHA-1: 9b33f0ac861c57ab6a9b2946258f159f3e911bce

SHA-256: 3971e2cdb79b64d0b38c68a255e2f5196766167891c1f798d30eb1a43ffbc343

SSDeep: 1536:G3Au+4w0wRHMjCPR+AGxnBPJxIB3Mo3i6aJVcmuRhdLC:kAhDoq3Gxds9MyHaJV8hE

archive.php

MD5: e64ae2dff64a2e18875f5248c56b7c6f

SHA-1: 893439ca04be9d12547d7c3f4197af5d8612eda3

SHA-256: 7a8dfcce30251df692872feb4866f07c624e19f98099f09cfd15574ad9f6b0e1

SSDeep: 384:eQbGda8KRuaFzouI23660hIFQ2FFBUURR80iGCzynKidGW1r:OKTGujqNhIF3tzRxiLzyVr

index.php

MD5: e67f242091860b7a64300651ab4359e4

SHA-1: d8e8c58594a226ece74e504c8859d5a5e581d452

SHA-256: eca183e681b7a976601f2d96253f154c77eec2df262a903546bb65cb9d561944

SSDeep: 384:cLkQhbwyy70Y79c42QbnQbi9oi/c+uRnEueXyFY:Vn9Z2QruYGY

bkV7.txt

MD5: 853aa4af73e25df257689eb342a1923d

SHA-1: d7fa82818c7f1faf9574d19d31101c5293ca68dd

SHA-256: 53d42c1df7ed8893d2a1491cf89e8fa061ec7ce060bc14d608c67e7513676d7f

SSDeep: 384:cNkQhbwyy70YQ9NQNeRkIFGPYdrAzsu8f7tXcqMY:7U9WsRHuxzY

IP Addresses

104.21.33.221

104.21.55.215

104.26.10.99

104.26.11.99

158.69.55.40

172.67.68.117

172.67.173.110

172.67.193.29

Domain Names

fcs[.]is

ufox[.]co

youfox[.]co

anonymousfox[.]co[.]uk

anonymousfox[.]is

User-Agent

Mozlila/5.0 (Linux; Android 7.0; SM-G892A Bulid/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Moblie Safari/537.36

Conclusion

In this post, we broke down the F-Automatical script from Anonymous Fox, and showed several examples of what it can accomplish. This is the latest version of the script, which appears to be in active development, and has a much higher level of obfuscation than seen in previous versions. F-Automatical can be utilized to install additional malware, use the infected server to send malicious emails, or perform a complete takeover of a website, virtual server, or even a physical server in some cases.

The Wordfence plugin comes with 2-Factor authentication which prevents scripts like F-Automatical from being used to upload additional malware to your site even in cases where your credentials have been compromised. 2-Factor authentication is available to protect all Wordfence users, including Free (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgXkHW1B-1bJ3pCtYDW66z10m8yw-RlW1hH2K02Zg4_zVjbBtZ3f7KwWW1Sp3PD1fDHqGW2DWMLd5yNm61N3jhDp61TCKyN4LtGQhP5gXbW1dx66596XRscN8VmFDRNlzrQW6HsnND9hrwmNW1zfZP880MhGcW4Md1PM3GfDnsW3m9CJ-5dxQ0GW7y98c62X6w58W8Kw0KK2w6TMYW63gJw14BKLVsW1-NzYn3sSRXPW2r82m92BXtP8W51wXbt4w8rNvW96BVd553sy3PW6ksjhX6p110hV4l_6N4VCR0vW5Krx8B7HHKTd3k271 ) , Premium (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgHkmN6n4bPl5DxbrW5_rwZG2tlMPTW2TrbmS5Jvd8GW4Y-Qlz5CsjLcW8HRLZw876jWnTWMr_2pNT1CW8zdyBW8R7DhCW6ngD_32l0cyGW815cFL5xX0ykW14CKWh60WkdJN7qNGt8PbG1WN2Tbg81c9qbXW40v9vq8MKgNRW5p2J2r76Z-C1VlXykX91XY3gW3FvcP95V_C-vW1S2GRn9jjMCKW1VQ2Q471mZrxN6Yd0lK8gjvKW66YDQ-86h-qwW4nk-nz6thnZDW9dfBjZ5SK9kfW2RZYD07tncnBW6KB7Ff6-tP4l3n2-1 ) , Care (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgStCW8g-23F3vJHL6W5yyxp38wmFFxW3PqfF566FcrRN6J57J6c8Y9VW3Y1Hql5jJy8zW4HqhCV5X-_fRW3jrxz88zjDvxN66w9zZxLdV_W5YZR9D3VdbG7W2MmfkL40JTXvW6q9ZM93D8WrjW4crG7f86VSDtW8vV9vS6G2JFnW2D7NM47NDmklW5XqPrX6VJz3pW5ZXVlC6KNhr1W8L6lM08fPlJ8W17J3jw4JFWSHW8R2gPn7lJqPyW1gZNGZ7KY5QrW3wVZbM15nN8zW6kypm581b6FNW63qQ7G4M14QkW85VwhX1yJWY63qkV1 ) , and Response (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7Cg-GLW6Bj9WL4wt9spW1N0zC31cC9zXW8PRLqn7Dv4d5W8Jsw2D7LbJp9W6kQTby2gdx84MZST5PY6WLlW5B7H3W3BX1LMW8S1c-24qnXp9W2q6S8B82Rt3YW3_p_kL6fFmSjN87_76pk55BVW94-Ljf2P6sXKW9kFmJC7vhFGxW7KMXFN3NpxmtW5fpLrh2mhDBSW1_SC7_53RqQRW1TKf366ScvJWVljHLn2K-WMSW7YTHTb2x1bVXW7cxXmS6cp59JW4yyYXB5kd1ZGW2g9kB15hLPlYW6_VpPf2tp2YRW8JKl321My6rW3cqB1 ) , against exploits targeting WordPress authentication. If you believe your site has been exploited by F-Automatical or any other malware, we offer Incident Response services via Wordfence Care (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgStCW8g-23F3vJHL6W5yyxp38wmFFxW3PqfF566FcrRN6J57J6c8Y9VW3Y1Hql5jJy8zW4HqhCV5X-_fRW3jrxz88zjDvxN66w9zZxLdV_W5YZR9D3VdbG7W2MmfkL40JTXvW6q9ZM93D8WrjW4crG7f86VSDtW8vV9vS6G2JFnW2D7NM47NDmklW5XqPrX6VJz3pW5ZXVlC6KNhr1W8L6lM08fPlJ8W17J3jw4JFWSHW8R2gPn7lJqPyW1gZNGZ7KY5QrW3wVZbM15nN8zW6kypm581b6FNW63qQ7G4M14QkW85VwhX1yJWY63qkV1 ) . If you need your site cleaned immediately, Wordfence Response (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7Cg-GLW6Bj9WL4wt9spW1N0zC31cC9zXW8PRLqn7Dv4d5W8Jsw2D7LbJp9W6kQTby2gdx84MZST5PY6WLlW5B7H3W3BX1LMW8S1c-24qnXp9W2q6S8B82Rt3YW3_p_kL6fFmSjN87_76pk55BVW94-Ljf2P6sXKW9kFmJC7vhFGxW7KMXFN3NpxmtW5fpLrh2mhDBSW1_SC7_53RqQRW1TKf366ScvJWVljHLn2K-WMSW7YTHTb2x1bVXW7cxXmS6cp59JW4yyYXB5kd1ZGW2g9kB15hLPlYW6_VpPf2tp2YRW8JKl321My6rW3cqB1 ) offers the same service with 24/7/365 availability and a 1-hour response time. Both these products include hands-on support in case you need further assistance.

The Full Product Lineup:

wf-stacked-free-1 (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cB3pdr7V1-WJV7CgWHGW2ZhwD763WSS8W2dLR0630K332W2GR1j94m0kzrW4Zfnw76_m66wW5Hz-kN1vqqNlW6mfPlw19LKB3W1-2Dtx3qcgDcW4bGHL12LY1s3W6Dlqxx8cW08GW5QX1QY1gb9_6W76-1qF3x_6cDW5TrgKD6wqy5kW5tBQHS6fWTbJW1ZJqT51PzK45W19-yL344-kktW1GpPRy3ymp00W2clqdL36dsfLW71M0Ns54T7NqW4FYJW23KWQS7W5CXKsj11qnjdW7HXgHG1g6gdzW2Q-VPL2_QW_337q01 )

wf-stacked-premium-1 (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgNXCW3V7vH07MGB0fW2RgMPx8xZyl4V5Y7vh61hG6LW4JjsHN8qvmJWW5-6Y868VGjf6W6gMCdl3x2kWqN8V5Z8JKGzFjW5Md32P58cLDcW7b97XT3Mwx7ZW34VqLF3_ljPSW3kHs7x1J63fdN8z4Lw1TZJxQW4Ngt441YLR84W1BQZ9b3QgfQvW4jWMK94Q26blV8MZl22C1157W44nGPN2jNvgRW53FLzk70BdcPW1WTxwC8-gDDNW98ZT0L21PWJfW5kMvYq5FmQyLW1Vz38m3Cnj89W6lbGQp72S78nW7j8TpX4NKrz83jp-1 )

wf-stacked-care-3 (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cB3pdr7V1-WJV7CgR9VVpq2z_90bsK0N8ty7L8pN-2MW8wW9gd8k_lfFW1kgtYy6-SS4nVbFzNs969vRbW7_4pd84wpfZWN1Bq9j13Sv9qW7ldmcC2C2yLdW4ZS0Nb8BPCB8W8RGCBK3YknNmW7tM_B23QWB7MW2G9DQL2cDbYGW3tJ4MT86grNYW2nK_-H4Fcs1wW53dYd23ny_WlW1qxqJs3PqNwNW7xdKbV97-CHyW4gJ7zL1NpSVmW1MJJnV6SwjfRN76JsJvVQ0dfW1LwSGF3zTgnYW5B7glW3qfRTC33F01 )

wf-stacked-response-2 (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgzL7N88qQWty7LJnW3kH7jV7Kr3JSW1Ld3f14cJCpDN3KYx6cQ0lByW4ngnfY6txBqdW1MqFZZ4MxX77W5KvR448lB6myW8nP7zY4ySdc1W7PyPQT7XlvN1W1B1XcZ1RcjPHW6zLhkn7WcvZsW1qtyY-8f2m4WW3RLh7w7_DcGvW7n_Jmw7fClrMW1nbh3R5XfnMRN8tmzpkSsdXHW5Y7Bn786GvVbW10Sk7K1BSxwKW2_9_wT5L4NtpW4ygs4v5WvHfmW7MH7T-71rQGRW87C-Bf42rFZPW7PcW593C9kDyW2StBnx307-Pk35PK1 )

wf-stacked-intelligence (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_cV3pdrrV1-WJV7CgJQBW4cmr846T2QgDW2WTN8x5fWj4FW31B0Ml8pSLKrN5TfkmSxqMJpW4By9ZW4HvBjzW4172yx5-66NQW4fqRt01LxMd5W6kmvtw3NZBClW3YpYNs6cFgJ1MhVHgwzhKR_W3VLtQq5GZ-JBW1SJM0C4Jy5ZnW5HCnnW5D6DX3W5crvSF4b5qxcW6Vwww63Rh0nrW5lY4Dq3CWyrlW2LmZ1X2wFvK9N2W0bGnHPF-8W4MDK2W6PWTt9W1v8JQj7dSPMpW7r7xl92L5B8SW4lSKqZ8xzscsW34_WTY21sN-3W5nsNk65sM4kV3ftm1 )

logo-defiant (https://email.wordfence.com/e3t/Ctc/GC+113/cwG7R04/VVVb-k97ykQdW3Kk-nX25l_gcW48Yhp74RCWFGN4nN_ch3pdqSV1-WJV7CgHv5W86MJCW5s9B6SW67HTPT12txJhW1X_RgD7mcqr6VbJYVy4j74KWW5BPc5b1rGxywW7MbyrV8vvfsvW8Lgr2m2f3HyMVhYb-J5nTRwxW615lzJ8fKHlqW7sSslG3t0CZrW8wFp571ntTzHN5BN7Ph893pSW4vPKtY2pbdpNW6f-5Gm3sbRN8W2DWwJZ2pWJKMW2MxkPx3-J_5_W4StWyK5nhRmYW3-rx5t3cf83xW6-34-t5Prz2BW5tgVP33DFc653hvd1 )

Defiant, Inc., 1700 Westlake Ave N STE 200, Seattle, WA 98109, United States

Unsubscribe (https://email.wordfence.com/hs/manage-preferences/unsubscribe-all?languagePreference=en&d=Vn8Pp4892TtnVsxx1M3JN_XyW41Rcn-4h29fmN6J4V3WmWcPvW8rqWhS67p54nV25BfF6bG5YrW5myn2n94yF08N739sxN1yf0NW2_Zk1953gLqwW8h_2h98vMxHvn2zXPlF3D3&v=3&_hsenc=p2ANqtz-8l6IAIvdVSsNEqbol4vLhW_9Qx5CEdOhrihnzKX46F4ioVBknWzJhl1TUIPVk9uVt7OzbEJR4F7g4Ujg_VH7JV6anS3w&_hsmi=231305688 )

Manage preferences (https://email.wordfence.com/hs/manage-preferences/unsubscribe?languagePreference=en&d=Vn8Pp4892TtnVsxx1M3JN_XyW41Rcn-4h29fmN6J4V3WmWcPvW8rqWhS67p54nV25BfF6bG5YrW5myn2n94yF08N739sxN1yf0NW2_Zk1953gLqwW8h_2h98vMxHvn2zXPlF3D3&v=3&_hsenc=p2ANqtz-8l6IAIvdVSsNEqbol4vLhW_9Qx5CEdOhrihnzKX46F4ioVBknWzJhl1TUIPVk9uVt7OzbEJR4F7g4Ujg_VH7JV6anS3w&_hsmi=231305688 )

You're receiving this email because you signed up to the Wordfence WordPress security mailing list.
Received on Wed Oct 26 2022 - 18:50:31 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 26 2022 - 18:52:24 CEST