Engineer Features to Catch Account Takeover at Payment Time

Last updated: November 29, 2026

Quick Overview

Design the features for a model that scores whether a PayPal payment is being made by an account takeover attacker rather than the real account owner, and explain how you would compute them in real time.

PayPal
Machine Learning
Machine Learning Engineer
PayPal
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


Design the features for a model that scores whether a PayPal payment is being made by an account takeover attacker rather than the real account owner, and explain how you would compute them in real time.

Account takeover (ATO) is distinct from stolen-card fraud: the account is real and has good history, but the person using it is not the owner. The interviewer checks whether you build features that capture deviation from the owner's own behavior, use session and device signals, and respect real-time latency and leakage constraints.

What the Interviewer Expects
  • Focus on deviation from the account's own baseline, not global averages
  • Use device, network, session and recent account-change signals
  • Design velocity and recency features with correct time windows
  • Explain online feature computation and point-in-time correctness
  • Avoid label leakage from post-event fields
Key Topics to Cover
feature engineering
account takeover
behavioral baselines
real-time features
point-in-time correctness
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Which single feature family would you build first and why?
  • How do you handle new accounts with no baseline?
  • How would you keep training features identical to online features?
  • What features might create fairness or privacy concerns?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Scoring point: when the user confirms a payment, with a latency budget around 50 ms. Label: payments later confirmed as unauthorized by the account owner (claim or support case). Attackers typically l...

Approach

Group features by what an attacker changes. For each, compare the current event to the owner's history, because a $900 payment is normal for one user and alarming for another....


Submit Your Answer
Markdown supported

Related Questions