PHPackages                             imaginationmedia/aws-fraud-magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. imaginationmedia/aws-fraud-magento2

ActiveMagento2-module[Security](/categories/security)

imaginationmedia/aws-fraud-magento2
===================================

Use AWS Fraud to detect fake customers in Magento 2

1.0.1(6y ago)1281[1 issues](https://github.com/Imagination-Media/magento2-aws-fraud/issues)OSL-3.0PHPPHP &gt;=7.2

Since Feb 12Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Imagination-Media/magento2-aws-fraud)[ Packagist](https://packagist.org/packages/imaginationmedia/aws-fraud-magento2)[ RSS](/packages/imaginationmedia-aws-fraud-magento2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![Amazon Fraud](https://camo.githubusercontent.com/6ed3883523016e5223b8f617496f6ea05b32482936a4f82f2eeb6e03b961120b/68747470733a2f2f63646e342e69636f6e66696e6465722e636f6d2f646174612f69636f6e732f766563746f722d6272616e642d6c6f676f732f34302f4157532d3132382e706e67)](https://camo.githubusercontent.com/6ed3883523016e5223b8f617496f6ea05b32482936a4f82f2eeb6e03b961120b/68747470733a2f2f63646e342e69636f6e66696e6465722e636f6d2f646174612f69636f6e732f766563746f722d6272616e642d6c6f676f732f34302f4157532d3132382e706e67)

Amazon Fraud for Magento 2

Amazon Fraud for Magento 2
==========================

[](#amazon-fraud-for-magento-2)

### Magento Innovations Lab Partners With Amazon Web Services (AWS)

[](#magento-innovations-lab-partners-with-amazon-web-services-aws)

[Magento Innovation Labs](https://magento.com/innovations-lab) it's a program that allows the community to show creative and innovative solutions for e-commerce, using the Magento platform. Every year a new round is available for the Magento community to create and show how is possible to innovate the e-commerce industry using the flexibility that only Magento has. This integration was developed thinking about the partnership between Magento and Amazon, as one of the recommended solutions that can be integrated with Magento. For more info please check

What is AWS Fraud
-----------------

[](#what-is-aws-fraud)

Amazon Fraud is a fully managed service that makes it easy to identify potentially fraudulent online activities such as online payment fraud and the creation of fake accounts.

Globally each year, tens of billions of dollars are lost to online fraud. Companies conducting business online are especially prone to attacks from bad actors who often exploit different tactics such as creating fake accounts and making payments with stolen credit cards. Companies typically use fraud detection applications to identify fraudsters and stop them before they cause costly business disruptions. However, these applications often rely on business rules that don’t keep up with the changing behaviors of fraudsters. More recent fraud detection applications have tried to use machine learning. But, they frequently use a one-size-fits-all approach based on general data sets and fraud behaviors that aren't specific to your business, which limits their accuracy.

Installation
------------

[](#installation)

Install using composer:

```
compose require imaginationmedia/aws-fraud-magento2

```

You will also need to create a new AWS Fraud project in your AWS console, you start using this link.

How it works with Magento
-------------------------

[](#how-it-works-with-magento)

AWS Fraud will validate when a customer tries to create a new account, when he/she tries to login and also when customers are trying to checkout as guests.

This Magento integration will get the customer email address and ip, and using this information we will validate on AWS Fraud what's the probability of this customer be a fraud. In case it's higher than the limit we set on Magento admin, it will automatically deny the login/account creation and also decline the guest checkout.

Also on admin you can access a customer account and there is a tab where you can see the probability a customer is a fraud account. If a customer is set as fraud he/she won't be able to login and checkout anymore.

How to start
------------

[](#how-to-start)

You basically need to go through five steps:

- ### Step 1

    [](#step-1)

    Upload your historical fraud datasets to Amazon S3.
- ### Step 2

    [](#step-2)

    Select from pre-built fraud detection model templates.
- ### Step 3

    [](#step-3)

    The model template uses your historical data as input to build a custom model. The model template inspects and enriches data, performs feature engineering, selects algorithms, trains and tunes your model, and hosts the model.
- ### Step 4

    [](#step-4)

    Create rules to either accept, review, or collect more information based on model predictions.
- ### Step 5

    [](#step-5)

    Install the Magento integration and setup all the configuration.

The historical fraud dataset is a csv file with email addresses, ips and the fraud status (fraud, not\_fraud etc). Using this csv file Amazon Fraud will study and learn how to identify fraud customers, and in short time it will be able to determine the probability a customer is a fraud.

### Basic configuration

[](#basic-configuration)

On Magento admin you will need to first setup the basic configuration, used to create the connection to AWS Personalize.

[![Basic configuration](https://camo.githubusercontent.com/b608081eb4a8cd7908934c11c2c2e7e8a6248be79ce8bd2ada3ea15dbd318eb6/68747470733a2f2f692e6962622e636f2f46387871724d702f66726175642e706e67)](https://camo.githubusercontent.com/b608081eb4a8cd7908934c11c2c2e7e8a6248be79ce8bd2ada3ea15dbd318eb6/68747470733a2f2f692e6962622e636f2f46387871724d702f66726175642e706e67)

**Enable** is used to enable/disable the fraud validation. **Profile** is the AWS profile that you have in your environment/server that's going to be used to connect to AWS. Check this [guide for more info.](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)**Version** is the web service version that you are going to use. Use **latest** as the value, to use always the latest version. **Region** is the region where you created your AWS Personalize instance. **Detector ID** is the ID of the fraud detector that you created in your AWS account. **Event ID** is the event that you enabled in your fraud detector. **Fraud Rate** is the minimum rate that we will consider a customer as a fraud account. If the probability reaches this value we will automatically block the user to proceed. In general if a customer reaches a probability of 80% we can say it's a fraud customer.

Demos:
------

[](#demos)

### Checking fraud probability on Magento admin and blocking a fraud customer to login:

[](#checking-fraud-probability-on-magento-admin-and-blocking-a-fraud-customer-to-login)

### Preventing a fake user to create a new account

[](#preventing-a-fake-user-to-create-a-new-account)

### Declining a fake user to checkout as a guest

[](#declining-a-fake-user-to-checkout-as-a-guest)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba4717066272b685269252b40d37f3dbe3114cf008e7af57fe71d6b0c77268c1?d=identicon)[igor-imaginemage](/maintainers/igor-imaginemage)

### Embed Badge

![Health badge](/badges/imaginationmedia-aws-fraud-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/imaginationmedia-aws-fraud-magento2/health.svg)](https://phpackages.com/packages/imaginationmedia-aws-fraud-magento2)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

18116.2k](/packages/imi-magento2-friendly-captcha)[o2ti/sigep-web-carrier

O2TI - Sigep Web Carrier

141.5k](/packages/o2ti-sigep-web-carrier)[xcoreplatform/xcore-magento2

This module extends the rest api of Magento2 and is needed for the usage of the xCore.

1330.0k2](/packages/xcoreplatform-xcore-magento2)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
