digital skimmers - amazon web services...• exploiting a vulnerability in the website’s...

31
Digital Skimmers How crooks are spying on your online shopping by Rommel Joven

Upload: others

Post on 11-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Digital Skimmers How crooks are spying on your online shopping

by Rommel Joven

Page 2: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross
Page 3: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

What is a digital skimmer

Page 4: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Agenda

• Overview

• Stealthworker Malware

• Kinds of Digital skimmers

• Underground Market

Page 5: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Overview

Online shoppers Compromised store

Underground market Fraudulent transactions

1 2

3

4

5

monetization

Page 6: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• Exploiting a vulnerability in the website’s e-commerce platform

• Compromising third party tool/script used by the target

• Cross site scripting

• Obtaining administrative account by phishing email or brute force attack(e.g Stealthworker malware)

Compromising a site

Page 7: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Stealthworker Malware

Page 8: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• First seen February 2019

• Written in Golang

• Runs on Windows, Linux, and ARM

• Brute force attacks on e-commerce platforms and services

• Identify the target’s e-commerce platform

Stealthworker

Page 9: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Open Directory Stealthworker

New Folder

Page 10: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

main_init()

Earliest version: v1.50 Latest version: v3.11

Page 11: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Function Purpose

*_check_* used to identify and verify the service that the target is running

on (e.g. Stealthworker_WorkerMagento_check_init)

*_brut_* used to perform the brute force attack on the target

(e.g. Stealthworker_WorkerJoomla_brut_init)

*_finder_* used to find a specific service or file on the target

(e.g. Stealthworker_Worker_FileFinder_init)

Stealthworker Functions

Page 12: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Network communication

/project/active magentoBrt;

bot

C2 server

/gw?worker=magentoBrt

*send targets for brute force

/storage *open directory*

Page 13: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• MagentoBrt

Brute force Job

worker

job

Page 14: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Targeted services and platforms Brute force workers Check workers

Bitrix24 bitrixBrt bitrixChk

cPanel cp_b cpanelChecker/cp_chk

Drupal drupalBrt drupalChk

FTP ftp_b ftpChk

Basic Authentication htpasswdBrt htpasswdChk

Joomla joomlaBrt joomlaChk

Magento magentoBrt magentoChk

MySQL mysql_b X

OpenCart OCartBrt OCartChk

PhpMyAdmin phpadmin/php_b phpadminChecker/php_chk

Portainer pbrt X

PostgreSQL postgres_b X

Qnap qnapBrt qnapChk

SSH ssh_b X

Synology synoB X

WHM whm_b whmChecker/whm_chk

Wordpress wpBrt wpChk

WooCommerce X Woo

Brute force and check worker

Page 15: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Monitoring

/project/active magentoBrt;

Controlled bot

C2 server

/gw?worker=magentoBrt

*send targets for brute force

/storage/ *open directory*

Page 16: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• 200+ samples

• 45 C2s

• 98M+ jobs

• 38M+ unique targeted hosts

• 23 different versions

Summary of findings

Page 17: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Top workers

Page 18: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Kinds of Digital Skimmers

Page 19: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• Server-side skimmer

– Undetectable if you don’t have access to the server

– Written in php

• Client-side skimmer

– Injected malicious script in the website

– Written in JavaScript

Kinds of digital skimmers

Page 20: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

• lib/Varien/Autoload.php

Server-side skimmer

source: Sucuri

Page 21: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Client-side skimmer

Page 22: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Client-side skimmer

Page 23: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Client-side skimmer

Page 24: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Client-side skimmer

Page 25: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Client-side skimmer

Page 26: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Underground Market

Page 27: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Underground Market

Page 28: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Underground Market

Page 29: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

Underground Market

Page 30: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

@gwillem

@ydklijnsma

@jeromesegura

@unmaskparasites

@jspchc

Special thanks to:

Page 31: Digital Skimmers - Amazon Web Services...• Exploiting a vulnerability in the website’s e-commerce platform • Compromising third party tool/script used by the target • Cross

@rommeljoven17

[email protected]

ありがとうございました