<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Elastic Observability Labs - Articles by Karen Mcdermott</title>
        <link>https://www.elastic.co/observability-labs</link>
        <description>Trusted security news &amp; research from the team at Elastic.</description>
        <lastBuildDate>Wed, 22 Apr 2026 15:41:03 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>Elastic Observability Labs - Articles by Karen Mcdermott</title>
            <url>https://www.elastic.co/observability-labs/assets/observability-labs-thumbnail.png</url>
            <link>https://www.elastic.co/observability-labs</link>
        </image>
        <copyright>© 2026. Elasticsearch B.V. All Rights Reserved</copyright>
        <item>
            <title><![CDATA[Using Anomaly Detection in Elastic Cloud to Identify Fraud]]></title>
            <link>https://www.elastic.co/observability-labs/blog/anomaly-detection-to-identify-fraud</link>
            <guid isPermaLink="false">anomaly-detection-to-identify-fraud</guid>
            <pubDate>Thu, 30 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Follow the step-by-step process of using Elastic Cloud’s anomaly detection to analyze example credit card transactions to detect potential fraud.]]></description>
            <content:encoded><![CDATA[<p><strong>Fraud detection is one of the most pressing challenges facing the financial services industry today.</strong> With the rise of digital payments, app-based banking, and online financial services, the volume and sophistication of fraudulent activity have grown significantly. In recent years, high-profile incidents like the <a href="https://www.justice.gov/usao-nj/pr/eighteen-people-charged-international-200-million-credit-card-fraud-scam">$200 million credit card fraud scheme</a> uncovered by the U.S. Department of Justice, which involved the creation of thousands of fake identities, have highlighted just how advanced fraud operations have become. These threats pose serious risks to financial institutions and their customers, making real-time fraud prevention an absolute necessity.</p>
<p>Elastic Cloud provides a powerful solution to meet these challenges. Its scalable, high-performance platform enables organizations to ingest and analyze all data types efficiently (from transactional data to customers’ personal information to claims data), delivering actionable insights that empower fraud prevention teams to detect anomalies and stop fraud before it occurs. From identifying unusual spending patterns to uncovering hidden threats, Elastic Cloud offers the speed and flexibility needed to safeguard assets in an increasingly digital economy.</p>
<p>In this blog, we’ll walk you through how Elastic Cloud can be used to identify fraud within credit card transactions—a key area of focus due to the high volume of data and the significant potential for fraudulent activity.</p>
<p>We’ll use a <code>Node.js</code> code example to generate an example set of credit card transactions. The generated transactions include a data anomaly similar to an anomaly that might occur as a result of fraudulent activity known as “Card Testing”, which is when a malicious actor tests to see if stolen credit card data can be used to make fraudulent transactions. We’ll then import the credit card transactions into an Elastic Cloud index and use Elastic Observability’s Anomaly Detection feature to analyze the transactions to detect potential signs of “Card Testing”.</p>
<h2>Performing fraud detection with Elastic Cloud</h2>
<h3>Generate example credit card transactions</h3>
<p>Begin the process by using a terminal on your local computer to run a <a href="https://github.com/elastic/observability-examples/tree/main/anomaly-detection">Node.js code example</a> that will generate some example credit card transaction data.</p>
<p>Within your terminal window, run the following <strong>git clone</strong> command to clone the Github repository containing the Node.js code example:</p>
<pre><code>git clone https://github.com/elastic/observability-examples
</code></pre>
<p>Run the following <strong>cd</strong> command to change directory to the code example folder:</p>
<pre><code>cd observability-examples/anomaly-detection
</code></pre>
<p>Run the following npm install command to install the code example’s dependencies:</p>
<pre><code>npm install
</code></pre>
<p>Enter the following <strong>node</strong> command to run the code example which will generate a JSON file named transactions.ndjson containing 1000 example credit card transactions:</p>
<pre><code>node generate-transactions.js 
</code></pre>
<p>Now that we've got some credit card transaction data, we can import the transactions into Elastic Cloud to analyze the data.</p>
<h3>Import transactions data into an Elastic Cloud index</h3>
<p>We’ll start the import process in <a href="https://cloud.elastic.co/">Elastic Cloud</a>. Create an Elastic Serverless project in which we can import and analyze the transaction data. Click <strong>Create project</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/create-serverless-project.png" alt="Create Elastic serverless project" /></p>
<p>Click <strong>Next</strong> in the <strong>Elastic for Observability</strong> project type tile.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/create-serverless-observability-project.png" alt="Create Elastic Observability serverless project" /></p>
<p>Click <strong>Create project</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/create-serverless-observability-project-confirm.png" alt="Create Elastic Observability serverless project confirm" /></p>
<p>Click <strong>Continue</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/create-serverless-observability-project-continue.png" alt="Create Elastic Observability serverless project continue" /></p>
<p>Select the <strong>Application</strong> tile.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-application-data-import.png" alt="Select application data import" /></p>
<p>Enter the text “Upload” into the search box.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-search-for-upload-option.png" alt="Data import search for upload option" /></p>
<p>Select the <strong>Upload a file</strong> tile.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-select-upload-tile.png" alt="Data import select upload tile" /></p>
<p>Click <strong>Select or drag and drop a file.</strong></p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-select-upload-file-selector.png" alt="Data import select upload file selector" /></p>
<p>Select the <strong>transactions.ndjson</strong> file on your local computer that was created from running the Node.js code example in a previous step.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-select-local-file.png" alt="Data import select local file" /></p>
<p>Click <strong>Import</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-select-local-file-import.png" alt="Data import select local file import" /></p>
<p>Enter an <strong>Index</strong> <strong>name</strong> and click <strong>Import</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/data-import-select-local-file-import-enter-index.png" alt="Data import select local file import enter index" /></p>
<p>You’ll see a confirmation when the import process completes and the new index is successfully created.</p>
<h3>Use Anomaly Detection to analyze credit card transactions</h3>
<p>Anomaly Detection is a powerful tool that can analyze your data to find unusual patterns that would otherwise be difficult, if not impossible, to manually uncover. Now that we've got transaction data loaded into an index, let's use anomaly detection to analyze it. Click <strong>Machine learning</strong> in the navigation menu.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-machine-learning.png" alt="Select-machine-learning" /></p>
<p>Select <strong>Anomaly Detection Jobs</strong></p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-machine-learning-anomaly-detection-jobs.png" alt="Select machine learning anomaly detection jobs" /></p>
<p>Click <strong>Create anomaly detection job</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-machine-learning-create-anomaly-detection-job.png" alt="Select machine learning create anomaly detection job" /></p>
<p>Select the Index containing the imported transactions as the data source of the anomaly detection job.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-machine-learning-index-for-anomaly-detection-job.png" alt="Select machine learning index for anomaly-detection-job" /></p>
<p>As mentioned above, one form of credit card fraud is called “Card Testing” where a malicious actor tests a batch of credit cards to determine if they are still valid.</p>
<p>We can analyze the transaction data in our index to detect fraudulent “Card Testing” by using the anomaly detection <strong>Population</strong> wizard. Select the <strong>Population</strong> wizard tile.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-population-wizard-for-anomaly-detection-job.png" alt="Select population wizard for anomaly detection job" /></p>
<p>Click <strong>Use full data</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-population-wizard-use-full-data-anomaly-detection-job.png" alt="Select population wizard use full data anomaly detection job" /></p>
<p>Click <strong>Next</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/select-population-wizard-use-full-data-anomaly-detection-job-next.png" alt="Select population wizard use full data anomaly detection job next" /></p>
<p>Click the <strong>Population field</strong> selector and select <strong>IPAddress</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population.png" alt="Configure anomaly detection job population" /></p>
<p>Click the <strong>Add metric</strong> option.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population-select-count.png" alt="Configure anomaly detection job population select count" /></p>
<p>Select <strong>Count(Event rate)</strong> as the metric to be added.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population-select-add-metric.png" alt="Configure anomaly detection job population select add metric" /></p>
<p>Click <strong>Next</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population-create-next.png" alt="Configure anomaly detection job population create next" /></p>
<p>Enter a <strong>Job ID</strong> and click <strong>Next.</strong></p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population-enter-job-id-next.png" alt="Configure anomaly detection job population enter job id next" /></p>
<p>Click <strong>Next</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/configure-anomaly-detection-job-population-confirm-create-next.png" alt="Configure anomaly detection job population confirm create next" /></p>
<p>Click <strong>Create job</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/anomaly-detection-job-create-job.png" alt="Anomaly detection job create job" /></p>
<p>Once the job completes, click <strong>View results</strong>.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/anomaly-detection-job-view-results.png" alt="Anomaly detection job view results" /></p>
<p>You should see that an anomaly has been detected. It looks like a specific IP Address has been identified performing an exceedingly high number of transactions with multiple credit cards on a single day.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/anomaly-detection-job-anomaly-detected.png" alt="Anomaly detection job anomaly detected" /></p>
<p>You can click the red highlighted segments in the timeline to see more details to assist you with evaluating possible remediation actions to implement.</p>
<p><img src="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/anomaly-detection-job-anomaly-detected-details.png" alt="Anomaly detection job anomaly detected details" /></p>
<p>In just a few steps, we were able to create a machine learning job that grouped all the transactions by the IP address that sent them and identified slices of time where one IP sent an unusually large number of requests compared to other IPs. Our fraudster!</p>
<h2>Take the next step in fraud prevention</h2>
<p>Fraud detection is an ongoing battle for organizations across industries, and the stakes are higher than ever. As digital payments, insurance claims, and online banking continue to dominate, the need for robust, real-time solutions to detect and prevent fraud is critical. In this blog, we demonstrated how Elastic Cloud empowers organizations to address this challenge effectively.</p>
<p>By using Elastic Cloud’s powerful capabilities, we ingested and analyzed a dataset of credit card transactions to detect potential fraudulent activity, such as “Card Testing.” From ingesting data into an Elastic index to leveraging machine learning-powered anomaly detection, this step-by-step process highlighted how Elastic Cloud can uncover hidden patterns and provide actionable insights to fraud prevention teams.</p>
<p>This example is just the beginning of what Elastic Cloud can do. Its scalable architecture, flexible tools, and powerful analytics make it an invaluable asset for any organization looking to protect their customers and assets from fraud. Whether it's detecting unusual spending patterns, identifying compromised accounts, or monitoring large-scale operations, Elastic Cloud provides the speed, precision, and efficiency financial services organizations need to stay one step ahead of fraudsters.</p>
<p>As fraud continues to evolve, so must the tools we use to combat it. Elastic Cloud gives you the power to meet these challenges head-on, enabling your institution to provide a safer, more secure experience for your customers.</p>
<p>Ready to explore more? View a <a href="https://elastic.navattic.com/fraud-detection">guided tour</a> of all the steps in this blog post or create an <a href="https://cloud.elastic.co/projects">Elastic Serverless Observability project</a> and start analyzing your data for anomalies today.</p>
<p><strong>Related resources:</strong></p>
<ul>
<li><strong>Overview:</strong> <a href="https://www.elastic.co/accelerate-fraud-detection-and-prevention-with-elastic">Accelerate fraud detection and prevention with Elastic</a></li>
<li><strong>Blog:</strong> <a href="https://www.elastic.co/blog/elastic-ai-fraud-detection-financial-services">AI-powered fraud detection: Protecting financial services with Elastic</a></li>
<li><strong>Blog:</strong> <a href="https://www.elastic.co/blog/financial-services-fraud-generative-ai-attack-surface">Fraud in financial services: Leaning on generative AI to protect a rapidly expanding attack surface</a></li>
</ul>
]]></content:encoded>
            <category>observability-labs</category>
            <enclosure url="https://www.elastic.co/observability-labs/assets/images/anomaly-detection-to-identify-fraud/anomaly-detection-to-identify-fraud.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>