Skip to main content

Shopify

How to detect and prevent fraudulent orders on Shopify

TrustPath protects Shopify stores from fraud by analyzing multiple signals including email addresses, purchase patterns, IP locations, device fingerprints, and user behavior. This helps identify suspicious activities like orders from risky IPs or accounts using disposable emails.

This guide will show you how to integrate TrustPath.io with your Shopify store to effectively prevent fraud and protect your business.

Prerequisites

1. One-Click Installation from Shopify App Store

The first step is to install the TrustPath Fraud Protection app from the Shopify App Store:

  1. Go to the Shopify App Store
  2. Click Add app
  3. Follow the installation prompts to connect your Shopify store.

TrustPath.io Threat Detection Rules

TrustPath.io threat detection rules are individual risk assessment criteria designed to identify and flag potentially fraudulent activity. Each rule evaluates specific signals—such as behavior patterns or metadata—to detect suspicious events and assigns a corresponding risk score.

The total risk score for an event ranges from 0 to 100, where:

  • 0-20 indicates low risk (safe to approve this order)
  • 21-40 indicates medium risk (review this order)
  • 41-100 indicates high risk (likely fraudulent, recommended to decline)

Default Fraud Detection Rules

To help you quickly identify and block high-risk orders, the following fraud detection rules are enabled by default:

Email-based Rules:

  • Email address is disposable - Detects if the customer used a temporary or throwaway email service.
  • Email is not deliverable - Checks if the email address cannot receive messages due to non-existent or unreachable inbox.
  • Email server uses a Tor exit node - Flags if the email service is hosted on a known Tor network, often used to mask identity.
  • Email server uses a proxy server - Identifies email servers behind anonymizing proxy infrastructure.
  • Email address is invalid - Catches emails that are incorrectly formatted or syntactically invalid.

IP-based Rules:

  • IP address is a Tor exit node - Flags orders placed through the Tor network, commonly used to conceal user location.
  • IP address belongs to a data center - Detects usage of hosting providers, often linked to bots or scripted fraud attempts.
  • IP address is associated with a proxy server - Identifies attempts to hide the true location of the user using proxies.
  • IP address is known as a web crawler - Blocks orders from automated bots or scrapers posing as customers.

Location-based Rules:

  • Billing country differs from shipping country - Flags when the billing and shipping addresses are in different countries—a common fraud red flag.
  • Billing country differs from the IP location - Detects if the country tied to the billing info doesn't match the customer's current IP location.

Setting Up order_purchase Event

To configure further rules, that you wish consider, you can open TrustPath console by opening TrustPath app from Shopify admin UI and then clicking on the Open TrustPath.io Admin Panel:

Open TrustPath Console

That will take you to the https://console.trustpath.io/, once it is opened:

  1. Click the Navigate to the Threat Rules section in the dashboard.
  2. Select the Purchase Fraud card to begin configuration.
  3. TrustPath.io provides a set of default rules optimized for each event type, but you also have the flexibility to define custom rules based on your specific needs.

This setup allows you to tailor your risk scoring system and take automated action based on the threat level of each event.

TrustPath.io Threat Rules

Adding Rules to the order_purchase Event

To enhance detection of fradulant orders, follow these steps:

  1. Navigate to the Purchase Fraud event under Threat Rules.
  2. Click on either Add Rule From Library button in the top-right corner or any of the + buttons next to it.
    • If you clicked the Add Rule From Library button, then you will see a list of available rules, select the following by simply clicking on each one:
      • Email is not deliverable
      • Email address is disposable
      • IP address belongs to a Proxy Server
      • Data center IP
      • IP address is a Tor exit node
    • If you clicked any of the + buttons then you will see a rule builder from which you can build custom rules to suite your needs.

Once added, these rules will automatically trigger email and IP-based threat signal checks for every new order in your Shopify store, improving your ability to catch spam and malicious signups in real time.

TrustPath.io Purchase Fraud Threat Rules

In this step, we're not just verifying whether the email address is disposable—we're also assessing the user's IP address for signs of suspicious activity. These additional checks significantly strengthen your platform's ability to detect and prevent fraudulent signups.

For instance, if a user's IP address is associated with a data center, proxy server, or a known Tor exit node, it often indicates attempts to mask identity or automate signups—both of which are common tactics used by malicious actors and bots. By incorporating these IP-based signals alongside email validation, you can more accurately flag high-risk signups and take action before any damage is done.

Conclusion

By integrating TrustPath.io with your Shopify store, you've established a robust defense system against fraudulent activities. The combination of one-click installation, pre-configured threat detection rules, and customizable risk scoring provides comprehensive protection for your e-commerce business.

Key benefits of this integration include:

  • Immediate Protection: Start detecting fraud instantly with pre-configured rules
  • Flexible Configuration: Customize threat rules to match your specific business needs
  • Comprehensive Analysis: Monitor multiple risk signals including email, IP, and location data
  • Automated Response: Take immediate action on high-risk orders based on risk scores
  • Real-time Protection: Stop fraudulent orders before they impact your business

Remember to regularly review your threat rules and adjust risk thresholds based on your store's specific patterns and needs. With TrustPath.io's Shopify integration, you can focus on growing your business while we handle the complex task of fraud prevention.