In this demo, we will:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "frauddetector.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
AmazonFraudDetectorFullAccess
AmazonS3ReadOnlyAccess
FraudDetectorServiceRole
fraud-detector-demo-123456
ip_address,email_address,billing_state,user_agent,billing_postal,phone_number,EVENT_TIMESTAMP,billing_address,EVENT_LABEL
112.136.132.151,fake_cgonzales@example.net,NC,"Mozilla/5.0 (iPad; CPU iPad OS 10_3_3 like Mac OS X) AppleWebKit/532.2 (KHTML, like Gecko) CriOS/34.0.827.0 Mobile/13K063 Safari/532.2",34491,(555)333 - 9246,2022-10-14T00:28:30Z,12351 Amanda Knolls Fake St.,legit
192.169.234.143,fake_dustin64@example.net,CO,"Mozilla/5.0 (Windows; U; Windows NT 6.1) AppleWebKit/532.44.3 (KHTML, like Gecko) Version/4.0.3 Safari/532.44.3",34555,(555)779 - 5604,2022-11-29T22:19:40Z,691 Deborah Estate Fake St.,legit
185.112.224.79,fake_samuel59@example.net,CO,"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7_0 rv:5.0; mr-IN) AppleWebKit/532.25.5 (KHTML, like Gecko) Version/4.0 Safari/532.25.5",33611,(555)948 - 9198,2023-02-18T09:16:19Z,28583 Joseph Tunnel Fake St.,legit
68.73.183.186,fake_tinalopez@example.net,TN,"Mozilla/5.0 (Linux; Android 7.1.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/59.0.807.0 Safari/535.1",33520,(555)477 - 7885,2022-12-19T09:13:35Z,019 Linda Via Fake St.,legit
ip_address
email_address
user_agent
billing_city
billing_state
billing_zip
phone_number
customer
fraud
legit
new_account_registration
Add Labels
new_account_model
new_account_detector
deny_registration
high_risk_deny
$new_account_model_insightscore > 950
review_registration
medium_risk_review
$new_account_model_insightscore > 850
approve_registration
low_risk_approve
$new_account_model_insightscore <= 850
aws frauddetector get-event-prediction \
--detector-id "new_account_detector" \
--event-type-name "new_account_registration" \
--event-id "test-event-high-risk-deny" \
--event-timestamp "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--entities '[{"entityType":"customer", "entityId":"customer-fraud-indicators"}]' \
--event-variables '{
"email_address": "fraud123@10minutemail.com",
"ip_address": "185.220.100.240",
"billing_city": "Lagos",
"billing_state": "NG",
"user_agent": "curl/7.68.0",
"phone_number": "0000000000"
}'
aws frauddetector get-event-prediction \
--detector-id "new_account_detector" \
--event-type-name "new_account_registration" \
--event-id "test-event-low-risk-approve" \
--event-timestamp "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--entities '[{"entityType":"customer", "entityId":"customer-legitimate"}]' \
--event-variables '{
"email_address": "john.smith@gmail.com",
"ip_address": "173.252.66.1",
"billing_city": "Seattle",
"billing_state": "WA",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"phone_number": "2065551234"
}'
aws frauddetector get-event-prediction \
--detector-id "new_account_detector" \
--event-type-name "new_account_registration" \
--event-id "test-event-review-8" \
--event-timestamp "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--entities '[{"entityType":"customer", "entityId":"customer-fraud-indicators"}]' \
--event-variables '{
"email_address": "john.smith@gmail.com",
"ip_address": "173.252.66.1",
"billing_city": "Lagos",
"billing_state": "NG",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"phone_number": "2065551234"
}'
permanently delete
fraud-detector-demo-123456
new_account_detector (Version 1)
high_risk_deny (Version 1)
Undeploy