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.

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.

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.

Ravie Lakshmanan

Leave a Comment

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

loader-image
London, GB
3:06 pm, Jun 29, 2025
weather icon 29°C
L: 28° | H: 31°
clear sky
Humidity: 48 %
Pressure: 1023 mb
Wind: 2 mph SW
Wind Gust: 3 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 5%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 4:46 am
Sunset: 9:21 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
28° | 31°°C 0 mm 0% 8 mph 58 % 1023 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
20° | 34°°C 0 mm 0% 7 mph 72 % 1022 mb 0 mm/h
Tue Jul 01 10:00 pm
weather icon
21° | 32°°C 0 mm 0% 14 mph 72 % 1017 mb 0 mm/h
Wed Jul 02 10:00 pm
weather icon
17° | 25°°C 1 mm 100% 9 mph 84 % 1019 mb 0 mm/h
Thu Jul 03 10:00 pm
weather icon
14° | 23°°C 0 mm 0% 8 mph 82 % 1025 mb 0 mm/h
Today 4:00 pm
weather icon
28° | 29°°C 0 mm 0% 5 mph 48 % 1023 mb 0 mm/h
Today 7:00 pm
weather icon
27° | 28°°C 0 mm 0% 2 mph 45 % 1022 mb 0 mm/h
Today 10:00 pm
weather icon
22° | 24°°C 0 mm 0% 8 mph 58 % 1022 mb 0 mm/h
Tomorrow 1:00 am
weather icon
21° | 21°°C 0 mm 0% 7 mph 70 % 1022 mb 0 mm/h
Tomorrow 4:00 am
weather icon
20° | 20°°C 0 mm 0% 3 mph 72 % 1021 mb 0 mm/h
Tomorrow 7:00 am
weather icon
21° | 21°°C 0 mm 0% 4 mph 65 % 1020 mb 0 mm/h
Tomorrow 10:00 am
weather icon
27° | 27°°C 0 mm 0% 5 mph 44 % 1019 mb 0 mm/h
Tomorrow 1:00 pm
weather icon
33° | 33°°C 0 mm 0% 6 mph 30 % 1017 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€92,221.53
0.89%
Ethereum(ETH)
€2,088.65
1.00%
Tether(USDT)
€0.85
0.01%
XRP(XRP)
€1.87
-0.37%
Solana(SOL)
€129.44
3.77%
USDC(USDC)
€0.85
0.01%
Dogecoin(DOGE)
€0.140490
1.90%
Shiba Inu(SHIB)
€0.000010
2.00%
Pepe(PEPE)
€0.000009
3.53%
Scroll to Top