pub struct FraudInjector { /* private fields */ }Expand description
Fraud pattern injector.
Covers multiple fraud typologies:
- Account takeover (unauthorized access)
- Fake vendor schemes
- Business email compromise (BEC)
- Authorized push payment (APP) fraud
Implementations§
Source§impl FraudInjector
impl FraudInjector
Sourcepub fn generate_account_takeover(
&mut self,
_customer: &BankingCustomer,
account: &BankAccount,
start_date: NaiveDate,
_end_date: NaiveDate,
sophistication: Sophistication,
) -> Vec<BankTransaction>
pub fn generate_account_takeover( &mut self, _customer: &BankingCustomer, account: &BankAccount, start_date: NaiveDate, _end_date: NaiveDate, sophistication: Sophistication, ) -> Vec<BankTransaction>
Generate account takeover fraud transactions.
Pattern: Unauthorized access followed by rapid fund extraction
Sourcepub fn generate_fake_vendor(
&mut self,
_customer: &BankingCustomer,
account: &BankAccount,
start_date: NaiveDate,
end_date: NaiveDate,
sophistication: Sophistication,
) -> Vec<BankTransaction>
pub fn generate_fake_vendor( &mut self, _customer: &BankingCustomer, account: &BankAccount, start_date: NaiveDate, end_date: NaiveDate, sophistication: Sophistication, ) -> Vec<BankTransaction>
Generate fake vendor fraud transactions.
Pattern: Fictitious vendor receiving payments for non-existent goods/services
Sourcepub fn generate_bec(
&mut self,
_customer: &BankingCustomer,
account: &BankAccount,
start_date: NaiveDate,
_end_date: NaiveDate,
sophistication: Sophistication,
) -> Vec<BankTransaction>
pub fn generate_bec( &mut self, _customer: &BankingCustomer, account: &BankAccount, start_date: NaiveDate, _end_date: NaiveDate, sophistication: Sophistication, ) -> Vec<BankTransaction>
Generate business email compromise (BEC) fraud transactions.
Pattern: Large urgent payment to “new” bank details, often international
Sourcepub fn generate_app_fraud(
&mut self,
_customer: &BankingCustomer,
account: &BankAccount,
start_date: NaiveDate,
end_date: NaiveDate,
sophistication: Sophistication,
) -> Vec<BankTransaction>
pub fn generate_app_fraud( &mut self, _customer: &BankingCustomer, account: &BankAccount, start_date: NaiveDate, end_date: NaiveDate, sophistication: Sophistication, ) -> Vec<BankTransaction>
Generate authorized push payment (APP) fraud transactions.
Pattern: Victim manipulated into authorizing payments to fraudster
Auto Trait Implementations§
impl !Freeze for FraudInjector
impl RefUnwindSafe for FraudInjector
impl Send for FraudInjector
impl Sync for FraudInjector
impl Unpin for FraudInjector
impl UnwindSafe for FraudInjector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more