Magento Sites Targeted with Sneaky Credit Card Skimmer via Swap Files

Share:

Threat actors have been observed using swap files in compromised websites to conceal a persistent credit card skimmer and harvest payment information.

The sneaky technique, observed by Sucuri on a Magento e-commerce site’s checkout page, allowed the malware to survive multiple cleanup attempts, the company said.

The skimmer is designed to capture all the data into the credit card form on the website and exfiltrate the details to an attacker-controlled domain named “amazon-analytic[.]com,” which was registered in February 2024.

“Note the use of the brand name; this tactic of leveraging popular products and services in domain names is often used by bad actors in an attempt to evade detection,” security researcher Matt Morrow said.

Cybersecurity
This is just one of many defense evasion methods employed by the threat actor, which also includes the use of swap files (“bootstrap.php-swapme”) to load the malicious code while keeping the original file (“bootstrap.php”) intact and free of malware.

“When files are edited directly via SSH the server will create a temporary ‘swap’ version in case the editor crashes, which prevents the entire contents from being lost,” Morrow explained.

“It became evident that the attackers were leveraging a swap file to keep the malware present on the server and evade normal methods of detection.”

Although it’s currently not clear how the initial access was obtained in this case, it’s suspected to have involved the use of SSH or some other terminal session.

The disclosure arrives as compromised administrator user accounts on WordPress sites are being used to install a malicious plugin that masquerades as the legitimate Wordfence plugin, but comes with capabilities to create rogue admin users and disable Wordfence while giving a false impression that everything is working as expected.

“In order for the malicious plugin to have been placed on the website in the first place, the website would have already had to have been compromised — but this malware could definitely serve as a reinfection vector,” security researcher Ben Martin said.

Cybersecurity
“The malicious code only works on pages of WordPress admin interface whose URL contains the word ‘Wordfence’ in them (Wordfence plugin configuration pages).”

Site owners are advised to restrict the use of common protocols like FTP, sFTP, and SSH to trusted IP addresses, as well as ensure that the content management systems and plugins are up-to-date.

Users are also recommended to enable two-factor authentication (2FA), use a firewall to block bots, and enforce additional wp-config.php security implementations such as DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS.

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
7:49 am, Feb 1, 2025
weather icon 5°C
L: 4° | H: 5°
overcast clouds
Humidity: 89 %
Pressure: 1030 mb
Wind: 7 mph ESE
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 7:38 am
Sunset: 4:49 pm
DailyHourly
Daily ForecastHourly Forecast
Today 9:00 pm
weather icon
4° | 5°°C 0 mm 0% 6 mph 89 % 1030 mb 0 mm/h
Tomorrow 9:00 pm
weather icon
2° | 7°°C 0 mm 0% 6 mph 84 % 1025 mb 0 mm/h
Mon Feb 03 9:00 pm
weather icon
2° | 9°°C 0 mm 0% 5 mph 85 % 1026 mb 0 mm/h
Tue Feb 04 9:00 pm
weather icon
4° | 9°°C 1 mm 100% 12 mph 93 % 1026 mb 0 mm/h
Wed Feb 05 9:00 pm
weather icon
4° | 8°°C 0.8 mm 80% 9 mph 91 % 1046 mb 0 mm/h
Today 9:00 am
weather icon
5° | 5°°C 0 mm 0% 4 mph 89 % 1030 mb 0 mm/h
Today 12:00 pm
weather icon
5° | 6°°C 0 mm 0% 6 mph 83 % 1030 mb 0 mm/h
Today 3:00 pm
weather icon
6° | 6°°C 0 mm 0% 6 mph 76 % 1029 mb 0 mm/h
Today 6:00 pm
weather icon
5° | 5°°C 0 mm 0% 6 mph 79 % 1027 mb 0 mm/h
Today 9:00 pm
weather icon
3° | 3°°C 0 mm 0% 4 mph 85 % 1026 mb 0 mm/h
Tomorrow 12:00 am
weather icon
3° | 3°°C 0 mm 0% 5 mph 84 % 1024 mb 0 mm/h
Tomorrow 3:00 am
weather icon
2° | 2°°C 0 mm 0% 4 mph 83 % 1023 mb 0 mm/h
Tomorrow 6:00 am
weather icon
2° | 2°°C 0 mm 0% 4 mph 82 % 1022 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€98,623.92
-1.85%
Ethereum(ETH)
€3,169.96
1.21%
XRP(XRP)
€2.93
-1.22%
Tether(USDT)
€0.97
-0.02%
Solana(SOL)
€222.32
-2.52%
USDC(USDC)
€0.97
-0.01%
Dogecoin(DOGE)
€0.315190
-0.44%
Shiba Inu(SHIB)
€0.000018
1.64%
Pepe(PEPE)
€0.000014
4.72%
Scroll to Top