Next Article in Journal
Hardware Architectures for ECC Scalar Multiplication: A Trade-Off Between Performance and FPGA Resources
Previous Article in Journal
Reinforcement-Learning-Guided Two-Stage Multi-Energy Optimization for Carbon-Aware Charging Infrastructure
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

White-Box and Transfer-Based Black-Box Adversarial Attacks on Neural Network Models for Credit Card Fraud Detection

by
Aleksandar Miljković
1,2,
Milan Gnjatović
3,
Marijana Joksimović
4,
Darko Stefanović
2 and
Milan Čabarkapa
5,*
1
Ministry of the Interior, 11000 Belgrade, Serbia
2
Faculty of Technical Sciences, University of Novi Sad, 21102 Novi Sad, Serbia
3
Department of Information Technology, University of Criminal Investigation and Police Studies, 11080 Belgrade, Serbia
4
Faculty of Finance, Banking and Audit, Alfa BK University, 11070 Belgrade, Serbia
5
Faculty of Engineering, University of Kragujevac, 34000 Kragujevac, Serbia
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(18), 4297; https://doi.org/10.3390/electronics15184297 (registering DOI)
Submission received: 6 August 2026 / Revised: 12 September 2026 / Accepted: 16 September 2026 / Published: 19 September 2026
(This article belongs to the Special Issue Robust Machine Learning for Cybersecurity)

Abstract

Machine learning models deployed for credit card fraud detection operate in adversarial, security-critical settings, and their robustness against evasion attacks directly affects financial and operational risk. However, despite extensive work on models for credit card fraud detection, comparatively fewer studies have examined their adversarial vulnerability. This study proposes a targeted Projected Gradient Descent-based attack on feedforward neural network models for credit card fraud detection. The attack is evaluated in white-box and black-box settings, illustrating the extent to which adversarial vectors generated on a surrogate attack model may be transferred to a set of victim models. The experimental settings are designed to ensure a fair, mixed-feature attack, including introduction of perturbation bound constraints, preservation of the class imbalance, specification of attack success criteria, selection of victim models, and avoiding bias. The obtained adversarial transaction vectors are evaluated in terms of their effect on model predictions and their mathematical proximity to the corresponding original fraudulent vectors. Finally, the evaluation results and limitations of the scope of the study are discussed.

1. Introduction

Deep neural networks are increasingly being applied in financial systems for tasks such as credit card fraud detection, transaction risk assessment, and anomaly detection. Their ability to model nonlinear relationships in high-dimensional transactional data has led to improved predictive performance compared to traditional approaches [1]. At the same time, the use of such models in security-sensitive financial environments necessitates careful consideration of their robustness to adversarial attacks.
In the context of neural networks, evasion adversarial attacks are typically designed to introduce small, structured perturbations to input data with the goal of maliclously influencing model predictions while preserving similarity to the original inputs. Among the existing methods, the Projected Gradient Descent (PGD) algorithm is widely acknowledged as a strong first-order adversarial attack [2]. While PGD-based attacks have been extensively analyzed in domains such as image classification, their application to models for financial data analysis has received comparatively less attention.
Financial transaction datasets differ from commonly studied benchmarks in several important aspects. Such data are typically tabular, constrained by semantic and operational rules, and characterized by strong class imbalance. Consequently, adversarial perturbations in this domain must be evaluated not only in terms of their impact on model predictions, but also with respect to their proximity to other legitimate and fraudulent transactions.
This study makes the following contributions:
  • It proposes a targeted PGD-based attack on a feedforward neural network model for credit card fraud detection.
  • It evaluates the proposed attack in white-box settings.
  • It evaluates the proposed attack in black-box settings and illustrates the extent to which adversarial vectors generated on a surrogate attack model may be transferred to a set of victim models.
In both white-box and black-box settings, the adversarial vectors are evaluated in terms of their effect on model predictions and their mathematical proximity to the corresponding original fraudulent vectors.
The remainder of this paper is organized as follows. Section 2 gives a brief overview of background and related work on adversarial attacks against neural networks in financial applications. Section 3 describes the underlying datasets, the baseline neural network model for credit card fraud detection, and the PGD-based evasion attack. Section 4 and Section 5 report on the evaluation of the proposed attack in white-box and black-box settings, respectively. Section 6 discusses the obtained results, the experimental settings, and the limitations of the scope of the study. Section 7 concludes the paper.

2. Related Work

Adversarial attacks on neural networks were first introduced in the context of high-dimensional image processing tasks by applying small gradient-based perturbations to input samples to cause misclassification [3]. In line with that, first-order adversaries such as Projected Gradient Descent were proposed in [2], and a generator network-based approach to synthesizing adversarial samples was reported in [4].
In recent years, an increasing number of studies have examined the influence of adversarial attacks on neural network-based classification models [5,6,7,8,9,10].
Computer vision and image classification are among the most comprehensively studied domains in the context of adversarial attacks and corresponding defence mechanisms [11,12,13,14]. Within these areas, numerous application-specific studies have demonstrated vulnerabilities to such attacks, including medical image analysis [15] and object detection systems [16].
Beyond computer vision and image classification, adversarial attack research has been expanding to a variety of different data types. Studies have investigated vulnerabilities in models trained on textual data [17], as well as in neural network architectures designed for audio processing [18]. Furthermore, adversarial threats have also been examined in the context of IoT and cyber–physical systems, where neural network-based solutions are widely employed [19,20,21,22].
In the domain of tabular machine learning models, systematic benchmarks have been proposed to evaluate adversarial attacks across multiple tabular datasets and model types, demonstrating the sensitivity of structured data models to carefully crafted perturbations [23,24,25,26]. Model-agnostic attack approaches that leverage feature importance to generate perturbations in tabular classification tasks without requiring gradient access were introduced in [27] and evaluated on several tabular benchmarks, including phishing and financial datasets.
Classical machine learning and deep learning approaches have attracted research attention for the credit card fraud detection task [28,29,30,31,32,33,34,35,36]. Recent studies explored more advanced deep learning techniques for transaction fraud detection. In [37], a continuous-coupled neural network architecture tailored for credit card fraud detection was employed. In [33], deep learning techniques such as convolutional neural networks and recurrent neural networks, including the LSTM and GRU variants, were reviewed in the context of credit card fraud detection tasks, highlighting their ability to capture complex patterns and temporal dependencies in large transactional datasets.
However, despite extensive work on models for credit card fraud detection, comparatively fewer studies have examined their adversarial vulnerability; e.g., transferable adversarial attacks on machine learning models for credit card fraud detection were investigated in [38], including gradient-based attacks in both white-box and black-box scenarios. Adversarial manipulations have also been considered in the context of algorithmic trading systems, where input perturbations are shown to mislead automated trading models under real-world conditions [39].
Adversarial attacks in black-box settings represent a particularly relevant threat model for machine learning systems implemented under real-world conditions, since the attacker does not have direct access to the architecture, parameters, or gradients of the target model. These attacks are most often divided into query-based approaches, which use outputs obtained by repeatedly sending queries to the target model, and portability-based approaches, which generate adversarial samples using one or more surrogate models and rely on the possibility of their transfer to previously unknown target models. A comprehensive benchmark covering both these categories is presented in [40], where a unified evaluation of 29 query-based methods and 30 portability-based methods is performed on different datasets, model architectures, attack settings, and defense mechanisms. To improve the efficiency of query-based attacks, the approach proposed in [41] combines the information obtained by querying a target model with transferability-based prior knowledge derived from the gradient of a surrogate model. It has been shown that the obtained algorithms, without direct access to gradients and guided by prior knowledge, reduce the number of required queries, while maintaining a high attack success rate.
Portability-based attacks are particularly significant under restrictive black-box conditions, as they can be executed without directly querying a target model. In [42], the portability of ensemble-based adversarial attacks is analyzed through the flatness of the loss function surface and the proximity of a generated adversarial sample to the local optima of multiple surrogate models. Based on these properties, the Common Weakness Attack method is proposed, which aims to generate adversarial samples with improved transferability between models for image classification and object detection. More recent research has extended transfer-based black-box attacks to large base and multimodal models. The Chain of Attack method, presented in [43], uses a series of intermediate steps based on multimodal semantic changes to improve the target transferability of adversarial samples to models that combine visual and linguistic information, without the need for knowledge of the target model. Similarly, the UMI-GRAT method presented in [44] demonstrated that adversarial samples generated solely by the publicly available Segment Anything Model can be transferred to its subsequently fine-tuned models, even when the target task and the training dataset remain unknown. These results show that portability between models can enable effective attacks even under conditions of very limited access and highlight the importance of evaluating the robustness of neural networks in realistic black-box scenarios.
All those studies considering the adversarial vulnerability of different machine learning models primarily focus on attack success rates, robustness degradation, or cross-model generalization under adversarial conditions. In contrast to them, this work adopts a somewhat complementary perspective by focusing on a statistical characterization of successful evasive perturbations within a given feature space. Rather than prioritizing transferability of adversarial samples or large-scale robustness benchmarking, the reported analysis investigates the local proximity between adversarial and original transaction vectors within the underlying dataset distribution.

3. Materials and Methods

This section describes datasets underlying this study (cf. Section 3.1), a baseline neural network model for credit card fraud detection (cf. Section 3.2), and a PGD-based evasion adversarial attack (cf. Section 3.3). The following core Python (v3.9) software stack was used: NumPy (v2.2.6), Pandas (v2.3.3), Scikit-Learn (v1.7.2), and TensorFlow (v2.20.0). Feature standardization was performed using StandardScaler, while Glorot initialization was applied to the neural network weights (biases were initialized to zero).

3.1. Datasets

In this study, we resort to the Credit Card Fraud Detection Dataset [45]. It consists of 284,807 anonymized transactions (of which 492 are labeled as fraudulent) made by European cardholders over a period of several days. Each record corresponds to a single transaction and is represented by 30 explanatory features and one binary class feature indicating whether a given transaction is legitimate or fraudulent. The first 28 explanatory features (V1 through V28) are obtained by principal component analysis applied to the original transaction attributes in order to protect confidentiality. In the original dataset, those features were normalized with a zero mean. The two remaining explanatory features, Amount and Time, represent the transaction amount and the elapsed time in seconds from the first recorded transaction in the dataset, respectively. For the purpose of this contribution, the Amount feature, which spans a wide numerical range, was also normalized to a zero mean after the dataset division explained below, while the Time feature was omitted.
From the original dataset, we derived two non-overlapping datasets: D and D . Both datasets were selected to preserve a highly imbalanced class distribution. Specifically, D contains 246 randomly sampled fraudulent transactions, corresponding to one half of all fraudulent transactions available in the original dataset, together with 24,354 randomly sampled legitimate transactions. Similarly, the second dataset D contains the remaining 246 fraudulent transactions and 24,354 randomly sampled legitimate transactions which do not overlap with transactions in dataset D . Thus, each of the derived datasets consists of 24,600 transactions, with fraudulent transactions accounting for approximately 1% of the samples and legitimate transactions accounting for the remaining 99%. It can be observed that the prevalence of fraudulent transactions in the original Credit Card Fraud Detection dataset is lower, accounting for only 0.17% of the samples. However, this dataset is outdated (dating from 2013), whereas more recent estimates suggest that over 4% of all digital transactions worldwide are potentially fraudulent [46]. Thus, the adopted prevalence of 1% may be considered acceptable.
In addition, these datasets underwent random stratified splitting at an 80:20 ratio. Dataset D was divided into training set D 1 and test set D 2 , while dataset D was divided into training set D 1 and test set D 2 . These sets, summarized in Table 1, were used to support separate stages of the experimental evaluation:
  • Set D 1 served as the training set to optimize parameters of a baseline neural network model for credit card fraud detection, set D 2 as the validation set to monitor performance after each epoch, and set D 2 as the testing set to assess the quality of the fully trained baseline model.
  • In white-box settings, the proposed PGD attack was applied to all fraudulent transaction vectors in set D 1 within the context of the baseline model. The generated adversarial vectors were evaluated in terms of their effect on the baseline model prediction (see Section 4).
  • In black-box settings, set D 1 served as the training set to optimize parameters of victim neural network models, set D 2 as the validation set to monitor performance after each epoch, and set D 2 as the testing set to assess the quality of the fully trained models. Then, the PGD attack was applied to all fraudulent transaction vectors in dataset D 1 within the context of the baseline model. The transferability of the generated adversarial vectors was examined across the set of victim models (see Section 5).
Such utilization of the sets ensured that the adversarial vectors were always derived from a previously unseen set, i.e., their corresponding source fraudulent vectors were excluded from the model training or evaluation.
To evaluate result stability, we ran each PDG-based experiment two times under both white-box and black-box settings (cf. Section 4 and Section 5). For each run, we used different random seed settings
S = ( s 1 , s 2 , s 3 , s 4 , s 5 , s 6 , s 7 ) ,
while keeping all other parameters constant, where
  • s 1 —the random seed for selecting 24,354 legitimate samples to be included in set D ,
  • s 2 —the random seed for selecting 24,354 legitimate samples to be included in set D ,
  • s 3 —the random seed for a 50 : 50 split of all available (492) fraudulent samples into two subsets, which are included in sets D and D , respectively,
  • s 4 —the random seed for shuffling legitimate and fraudulent samples in set D ,
  • s 5 —the random seed for shuffling legitimate and fraudulent samples in set D ,
  • s 6 —the random seed for an 80 : 20 split of set D into sets D 1 and D 2 ,
  • s 7 —the random seed for an 80 : 20 split of set D into sets D 1 and D 2 .
This involved completely separate dataset derivation, model training, and testing. The two specific random seed settings used in this study are listed in Table 2. As an illustration and for the subsequent selection of the perturbation bound in Section 4 and Section 5, Table 3 presents the mean and standard deviation of each explanatory feature in set D 1 across different random seed settings.

3.2. Baseline Model

For the purpose of evaluating the adversarial attack presented in this contribution, we developed a baseline model for credit card fraud detection, based on a feedforward neural network. The model was designed to be relatively simple, reflecting common practice in tabular financial data analysis and enabling a clear assessment of adversarial vulnerability without architectural complexity.
The baseline model consists of an input layer matching the dimensionality of the feature space, followed by two fully connected hidden layers, comprising 32 and 16 neurons with the Rectified Linear Unit (ReLU) activation function, respectively. Both hidden layers are followed by a dropout layer with a dropout rate of 0.3 to reduce overfitting. The output layer consists of a single neuron with the sigmoid activation function, producing a probabilistic estimate of the likelihood that a transaction is fraudulent, with a fixed classification threshold of 0.5. Binary cross-entropy was applied as the loss function, and the model optimization was performed using the Adaptive Moment Estimation optimizer with a learning rate of 10 3 .
The baseline model was trained on set D 1 (see Section 3.1). Training was conducted for 30 epochs, with a batch size of 32 samples. Validation was conducted at the end of each training epoch using set D 2 , to monitor the model’s generalization behavior. No early stopping criterion was applied, and the model’s internal parameters obtained after the final epoch were retained for subsequent evaluation and adversarial analysis.
The fully trained baseline model was assessed on set D 2 . Its performance is reported in Table 4. In two experimental runs, the model achieves an accuracy of 0.9973 and 0.9983, a macroaverage F1-score of 0.9294 and 0.9570, and an ROC AUC of 0.9629 and 0.9909, respectively. However, it should be noted that the reported performance serves solely as a reference point prior to adversarial manipulation and is not intended to reflect the model robustness in general.

3.3. Projected Gradient Descent Optimization

In order to explicitly steer the model predictions toward a predefined target class, a targeted binary cross-entropy loss function was employed. Given an input transaction vector x and a target label y * { 0 , 1 } , the loss function was defined so as to increase the model’s confidence in the target class, irrespective of the original class label.
Let f ( x ) denote the output of the neural network, representing the predicted probability of a transaction being fraudulent. The targeted loss for an adversarial sample x adv is defined as
L target = BCE ( y * , f ( x adv ) ) ,
where BCE denotes the binary cross-entropy loss function. In our experiments, the target label was set to the legitimate transaction class (i.e., y * = 0 ), thereby modeling an evasion attack in which fraudulent transactions are modified to be misclassified as non-fraudulent. More precisely, the gradient updates on input transaction vector x are computed in a direction that explicitly minimizes the discrepancy between the model output and the target label y * .
Adversarial samples were generated using a targeted PGD algorithm under an L norm constraint. The optimization process aims to iteratively modify a given input fraudulent transaction vector while enforcing a strict bound on the maximum allowable perturbation applied to each feature. It starts from a random point within the ϵ -bounded neighborhood of fraudulent transaction vector x :
x adv ( 0 ) = x + ξ , ξ U ( ϵ , ϵ ) ,
where x adv ( 0 ) denotes the initial adversarial vector, and U denotes a uniform distribution.
At each iteration, the gradient of the targeted loss function with respect to the input vector is computed by back-propagation through the target neural network. The adversarial vector is first updated according to
x adv ( t + 1 ) = x adv ( t ) α · sign x L target ( x adv ( t ) ) ,
where x adv ( t ) denotes the adversarial vector at iteration t, and α denotes the step size. The negative gradient direction reflects the targeted nature of the attack, as the optimization is aimed at reducing the loss with respect to the chosen target label. Immediately following this update, the adversarial perturbation is projected back onto the L ball of radius ϵ centered at the original input:
x adv ( t + 1 ) = x + clip x adv ( t + 1 ) x , ϵ , ϵ .
The projection step guarantees that the resulting adversarial sample remains within the predefined perturbation bounds. After a given number of iterations, the final adversarial transaction vector is obtained. The described procedure is formally represented by the pseudocode in Algorithm 1.
Algorithm 1 Targeted PGD attack under an L constraint.
  1:
Input: trained model f ( · ) , original inputs X , target label y * , iterations T, step size α , perturbation bounds ϵ
  2:
Output: adversarial inputs X adv
  3:
X 0 X
  4:
Sample Ξ U ( ϵ , ϵ ) with shape | X |
  5:
X adv ( 0 ) X 0 + Ξ
  6:
y * y * · 1 | X |
  7:
for  t = 0 to T  do
  8:
   Compute predictions y ^ f ( X adv ( t ) )
  9:
   Compute targeted loss L target BCE ( y * , y ^ )
10:
   Compute gradient g X L target ( X adv ( t ) )
11:
   Targeted update: X adv ( t + 1 ) X adv ( t ) α · sign ( g )
12:
   Project onto L -ball:
13:
      Δ clip X adv ( t + 1 ) X 0 , ϵ , ϵ
14:
      X adv ( t + 1 ) X 0 + Δ
15:
end for
16:
Return  X adv ( T )

4. White-Box Attack

(i) Parameter settings: The underlying datasets contain mixed features, i.e., the standard deviations of the normalized explanatory features, given in Table 3, take values in the ranges ( 0.322224 ,   2.107529 ) and ( 0.340038 ,   2.10669 ) , respectively. On the other hand, the proposed attack applies a single perturbation bound ( ϵ ) for a set of mixed values. When dealing with mixed-feature tabular data, adopting a high perturbation bound relative to the feature standard deviations would negatively affect the real-world validity of the data. Thus, to ensure a fair mixed-feature PGD attack, we adopted the following relatively strict perturbation bound constraint:
ϵ 0.33 · σ m i n ,
i.e., the perturbation bound ϵ must be less than 33% of the minimum standard deviation across the normalized explanatory features (which is in line with the common practice in the field [2]). Subject to this constraint, and with σ m i n being equal to 0.322224 and 0.340038, respectively, across two experimental runs (derived from Table 3), we consider the following values of the perturbation bound:
ϵ { 0.05 , 0.1 } .
Table 5 illustrates how the adopted perturbation bounds affect the Amount feature at the original monetary scale. It can be observed that the maximum change in this feature represents a relatively mild shift.
The other attack parameters are set as follows: L constraint, step size α = 0.0001 , number of iterations T = 5000 .
(ii) Selection of input transactional vectors: We considered all fraudulent transaction vectors from dataset D 1 . This vector subset was then restricted to retain only the fraudulent transaction vectors that were correctly classified by the baseline model introduced in Section 3.2:
X = { x | x D 1 label ( x ) = fraudulent class ( x ) = fraudulent } .
The proposed PGD attack was independently applied to each fraudulent transaction vector in set X .
(iii) Evaluation: For each of the selected samples x X , an adversarial counterpart x adv ( T ) X adv ( T ) was generated. After applying the PGD optimization, the obtained adversarial vectors were submitted to the baseline model. Only those adversarial vectors that successfully induced a malicious change in the model prediction from fraudulent to legitimate were retained for further analysis, i.e.,
X adv = { x adv | x adv X adv ( T ) class ( x adv ) = legitimate } .
In the first experimental run (i.e., random seed setting S 1 ), for ϵ = 0.05 , the attack resulted in one successful adversarial vector (i.e., | X adv | = 1 ), which gave a 0.60% attack success rate. For ϵ = 0.1 , four successful adversarial vectors were generated (i.e., | X adv | = 4 ), which gave a 2.42% attack success rate. In the second experimental run (i.e., random seed setting S 2 ), one successful adversarial vector was obtained for both perturbation bounds ϵ { 0.05 , , 0.01 } (i.e., | X adv | = 1 ), resulting in a 0.61% attack success rate. These results are summarized in Table 6.
However, to evaluate a given adversarial vector x i , adv , it is not sufficient only to demonstrate that it is classified as a legitimate sample by the baseline model. It is also necessary to show that it is most similar to the fraudulent transaction vector x i from which it has been derived and substantially different from other transaction vectors in dataset D . To estimate the similarity between two vectors, we resort to the cosine similarity measure [47]. For each successful adversarial transaction vector x i , adv X adv , we calculate its cosine similarity with each transaction vector x j contained in dataset D :  
s i , j = cos x i , adv , x j = x i , adv · x j x i , adv 2 x j 2 .
This computation yields an empirical distribution of similarity values between the given adversarial vector x i , adv and the dataset. The resulting reference similarity set is given by
S i , ref = cos x i , adv , x j , where x j D .
In addition, let s i , orig be the cosine similarity between adversarial vector x i , adv and vector x i D from which it has been derived:
s i , orig = cos x i , adv , x i .
In the given context, to evaluate adversarial vector x i , a d v , it is necessary to show that s i , orig represents an extreme outlier within distribution S i , ref . Thus, the value s i , orig was standardized using z-score normalization relative to the reference similarity distribution [48]:
z i , orig = s i , orig μ i , ref σ i , ref ,
where μ i , ref and σ i , ref denote the mean and standard deviation of the reference distribution, respectively:
μ i , ref = E S i , ref , σ i , ref = V S i , ref .
The standardized score z i , orig quantifies the extent to which the original transaction vector represents an extreme nearest neighbor of the adversarial vector when compared to all other transactions in dataset D .
The values of s i , orig , μ i , ref , σ i , ref and z i , orig obtained for the considered perturbation bounds ϵ = 0.05 and ϵ = 0.1 are reported in Table 7 and Table 8, respectively. In both cases, for each adversarial sample x i , adv X adv , it can be observed not only that s i , orig represents the maximum value within the reference distribution S i , ref ,
s i , orig = max x D cos x i , adv , x ,
i.e.,
x i = argmax x D cos x i , adv , x ,
but also that the obtained z-score z i , orig belongs to the range ( 4.23679112 , 6.18708116 ) . Such a high z-score indicates that s i , orig represents an outlier within distribution S i , ref , i.e., the original transaction vector x i represents the extreme nearest neighbour of the adversarial vector x i , adv within the global similarity distribution. Thus, we showed that the considered adversarial vectors were not only classified as legitimate transactions by the baseline model, but are also highly similar (in terms of mathematical proximity) to their corresponding original fraudulent transaction vectors and substantially different from other transaction vectors (fraudulent or legitimate) contained in dataset D .

5. Black-Box Attack

(i) Parameter settings: In black-box settings, we adopt a perturbation boundary constraint that is slightly relaxed compared to the white-box constraint defined in Equation (6):
ϵ 0.3 · σ a v g ,
i.e., the perturbation bound ϵ must be less than 30% of the mean standard deviation across the normalized explanatory features. Subject to this constraint, and with σ a v g being equal to 1.0703 and 1.0639, respectively, across two experimental runs (derived from Table 3), we consider the following values of the perturbation bound:
ϵ { 0.05 , 0.1 , 0.2 , 0.3 } .
It should be noted that all adopted perturbation boundaries are still less than the minimum standard deviation across the normalized explanatory features (cf. Table 3). The maximum change in the Amount feature at the original monetary scale for the considered perturbation bounds is given in Table 5 and Table 9. It represents a mild shift for ϵ { 0.05 , 0.1 } and a moderate-to-severe shift for ϵ { 0.2 , 0.3 } .
The other attack parameters remain unchanged: L constraint, step size α = 0.0001 , and number of iterations T = 5000 .
(ii) Selection of adversarial vectors for the transferability analysis: We considered all fraudulent transaction vectors from dataset D 1 . This vector subset was then restricted to retain only the fraudulent transaction vectors that were correctly classified by the baseline model introduced in Section 3.2. Then, for a given perturbation bound ϵ , for each of the retained fraudulent transaction vectors, its adversarial counterpart was derived using the proposed white-box PGD-based attack. Finally, the obtained adversarial vectors were submitted to the baseline model. Only those adversarial vectors that successfully induced a misclassification from fraudulent to legitimate were retained for the transferability analysis.
The numbers of the retained adversarial vectors obtained for the considered perturbation bounds are given in Table 10, together with their average z-score values indicating the alignment of the retained adversarial vectors with the corresponding original fraudulent vectors.
(iii) Attack transferability evaluation: For the purpose of evaluating the transferability of the generated adversarial transaction vectors, we developed 4092 victim models for credit card fraud. The victim models were also neural-network based, and they differed from the baseline model in terms of architecture. Their architectures were specified over the following hyperparameter space ( l , n , r ) , where
  • l L —the number of hidden layers, where L = { 1 , 2 , 3 , 4 , 5 } ,
  • n N —the number of neurons in a hidden layer, where N = { 16 , 32 , 64 , 128 } ,
  • r R —the dropout rate, where R = { 0.0 , 0.2 , 0.3 } .
All other hyperparameters (i.e., the activation functions, loss function, classification threshold, optimizer, number of epochs, batch size, and underlying datasets) were the same as in the baseline model (cf. Section 3.2). The adopted hyperparameter space resulted in | R | · k = 1 | L | 4 | N | = 4092 victim model architectures. The victim models were trained on dataset D 1 . The validation was conducted at the end of each training epoch using set D 2 (see Section 3.1).
The fully trained victim models were assessed on set D 2 . The clean-test performance of the victim models was evaluated using ROC-AUC and macroaveraged F 1 -score. The summary of this evaluation is given in Table 11. In addition, the performance of the victim models is summarized according to network depth (i.e., number of hidden layers), width (i.e., the maximum number of neurons in any single layer), and dropout rate (see Table 12, Table 13 and Table 14, respectively).
To ensure the fairness of the experiment, the black-box attack was applied only to those victim models that are considered adequately trained, i.e., whose macroaverage F 1 -scores were greater than a given threshold. To adaptively calculate the threshold, we applied the IsoData algorithm, which iteratively divides the observations into two groups and updates the threshold as the midpoint between their respective means until convergence [49]. Originally introduced for automatic image thresholding, the same iterative principle was applied to the one-dimensional distribution of the obtained macroaverage F 1 -scores. The tolerance parameter for the IsoData algorithm was set to 0.00001. We further tightened the model selection criterion as follows:
τ = max ( τ i s o , τ a v g ) ,
where τ , τ i s o and τ a v g respectively represent a final threshold value, a threshold value obtained by the IsoData algorithm, and an average macro-averaged F 1 -score across the victim models (cf. Table 11).
Thus, across two experimental runs, 2271 and 2334 (out of 4092) victim models respectively achieved macro-averaged F1-scores greater than the adopted threshold value and were retained for the subsequent adversarial transferability analysis, whereas the remaining models were omitted.
Let x i , adv be an adversarial transaction vector derived from original fraudulent vector x i D , and let m j be a victim model. The attack on victim model m j was considered successful if the model correctly classified the original transaction vector x i as fraudulent but misclassified its adversarial counterpart x i , adv as legitimate. The results of the attack transferability evaluation are summarized in Table 15. For each considered perturbation bound ϵ , this table provides the average number of successful attacks per adversarial vector (with standard deviation), the margin of error for a 95% confidence interval, the maximum number of successful attacks for an adversarial vector, and the attack success rate, defined as the proportion of eligible model-sample pairs, i.e.,
ASR = { ( m , x ) | m ( x ) = fraudulent m ( x adv ) = legitimate } { ( m , x ) | m ( x ) = fraudulent } .

6. Discussion

This section discusses the experimental settings, obtained results, and limitations of the scope of the study.
(i) Experimental settings: We recall that the underlying datasets contain mixed features, i.e., the standard deviations of the normalized explanatory features differ significantly (cf. Table 3). Thus, the experimental settings were designed to ensure a fair, mixed-feature attack, as follows:
  • Constrained perturbation bound: The perturbation bounds were constrained (cf. Equations (6), (7), (17) and (18)) to ensure that calculated adversarial vectors remain mathematically close to their original vectors.
  • Fine-grained optimization: To allow for fine-grained optimization inside the L ϵ -ball, we adopted a step size that is relatively small compared to the perturbation bound ( α = 0.0001 ). On the other hand, a relatively large iteration budget (i.e., T = 5000 optimization steps) was adopted to ensure that the perturbation reaches the boundary of the L ϵ -ball.
  • Class imbalance: The underlying datasets are selected to preserve a highly imbalanced class distribution of legitimate and fraudulent transactions, which is often present in financial data. Thus, in each of the considered datasets, fraudulent transactions account for approximately 1% of the samples, while legitimate transactions account for the remaining 99%.
  • Attack success criterion: The attack on a model m by submitting an adversarial sample x i , adv , derived from original fraudulent vector x i , was considered successful only if the model correctly classified vector x i as fraudulent and misclassified its adversarial counterpart x i , adv as legitimate.
  • Avoiding bias: In general, adversarial vector x i , adv was submitted to a target model m only if the model was not trained on its original counterpart x i . In black-box settings, the derivation of adversarial vectors was agnostic of the architectures of the victim models, and the adversarial vectors were derived only from the fraudulent transaction vectors which were correctly classified by the baseline (i.e., surrogate) model.
(ii) Summary of results: The results of the white-box evaluation suggest that feedforward neural network models for credit card fraud detection are susceptible to the proposed PGD-based attack even for relatively strictly constrained perturbation bounds ϵ { 0.05 , 0.1 } (cf. Equations (6) and (7)). For ϵ = 0.1 , the success rate of the white-box attack across two experimental runs was 2.42% and 0.61%, respectively. For ϵ = 0.05 , the obtained success rate was (approximately) 0.6% (cf. Table 6). The small number of adversarial vectors may be explained by the fact that they were derived from set D 1 , which was agnostic to the baseline model (cf. Section 3.1).
The black-box evaluation illustrated the extent to which adversarial vectors generated on a baseline (i.e., a surrogate attack) model may be transferred to a set of victim models (see Table 15). The adversarial vectors were derived from set D 1 , on which the baseline model was trained, and therefore the number of derived adversarial vectors was greater than in the white-box experiments. However, this is still in line with the black-box settings: the attacker has access to set D 1 , while the victim models are agnostic of this set. The attack success rate ranges from 28.64% for ϵ = 0.05 to 65.24% for ϵ = 0.3 . In addition, for all perturbation values in each experimental run, Table 15 provides the margins of error for a 95% confidence interval. The confidence intervals are calculated using the t-distribution because the number of samples was less than 30 in each case. The margins of error are high (i.e., the confidence intervals are wide), indicating strong heterogeneous transfer behavior. However, even with a small number of samples, for ϵ { 0.1 , 0.2 , 0.3 } , the entire confidence intervals are positive, which may indicate that the effect is likely positive. For the smallest pertubation bound (i.e., ϵ = 0.05 ), a statistically significant positive effect cannot be claimed.
In both white-box and black-box settings, the results of the standardized z-score analysis (cf. Table 7, Table 8 and Table 10) show that adversarial transaction vectors remain closely aligned with their corresponding original vectors in the feature space, i.e., the cosine similarity between an adversarial vector and its original counterpart consistently appears as an extreme value when compared to the reference distribution derived from similarities with all other dataset samples.
(iii) A consistency check: To evaluate the consistency of the reported results, we compared the findings against another constrained evasion attack—the targeted Basic Iterative Method (BIM). It was evaluated under the same conditions as the PGD attack, i.e., using random seed setting S 1 and the same underlying training and test sets, baseline model, perturbation boundary constraints, parameter settings, vector selection criterion, and attack success criterion.
  • The white-box BIM attack generated the same number of successful adversarial vectors as the PGD white-box attack, resulting in identical success rates to those reported in the PGD evaluation (cf. Table 6). The alignment of adversarial transaction vectors with the corresponding original fraudulent vectors was evaluated in Table 16 and Table 17.
  • The adversarial vectors selected for the BIM black-box attack transferability analysis are summarized in Table 18. The results of the attack transferability evaluation are given in Table 19.
It can be observed that the BIM evaluation results obtained in both white-box and black-box settings are highly comparable to the results reported in the PGD evaluation. However, since BIM and PGD are closely related iterative gradient attacks, the reported BIM experiment should be interpreted as a consistency check rather than as broad validation of adversarial robustness.
(iv) Limitations of the scope of the study: There are some scope limitations which may affect the interpretation, reproducibility, or generalizability of the reported results. They are the following:
  • Although the perturbation bounds were constrained to ensure a fair attack, the original meanings and dependencies of features V1V28 are unavailable. Thus, we do not claim that high cosine similarity represents evidence of semantic or operational validity of the generated adversarial vectors. Instead, the reported results established only close mathematical proximity of adversarial transaction vectors to their original counterpart vectors.
  • The underlying dataset is aged, collected over a period of several days, and no temporal or concept-drift evaluation was conducted; i.e., the study did not account for how data changes over time.
  • This study was focused on feedforward neural network architectures. The applicability of the proposed attack to an extended set of model families was not considered.
  • Although two runs were conducted for each PGD-based experiment in black-box settings, it should be noted that different perturbation bounds generate different sets of successful surrogate attacks. Consequently, attack success and transferability across perturbation bound values may still be influenced by changes in sample composition.
  • Extending this approach so that each explanatory feature is assigned its own adaptively calculated perturbation boundary is part of future work.

7. Conclusions

This study proposed a targeted Projected Gradient Descent-based attack on feedforward neural network models for credit card fraud detection. The attack was evaluated in white-box and black-box settings, illustrating the extent to which adversarial vectors generated on a surrogate attack model may be transferred to a set of victim models. The experimental settings are designed to ensure a fair, mixed-feature attack, including introduction of perturbation bound constraints, preservation of the class imbalance, specification of attack success criteria, selection of victim models, and avoiding bias. The obtained adversarial transaction vectors are evaluated in terms of their effect on model predictions and their mathematical proximity to the corresponding original fraudulent vectors. Finally, the evaluation results and limitations of the scope of this study are discussed.
The reported findings highlighted the vulnerability of neural network-based fraud detection systems to both direct white-box attacks and transfer-based black-box attacks. They also emphasized the need for defence mechanisms adapted to tabular financial data, including adversarial training procedures that can improve the robustness of fraud detection models against adversarial samples.

Author Contributions

Conceptualization, M.G.; methodology, A.M. and M.G.; software, A.M.; validation, M.J., D.S. and M.Č.; formal analysis, A.M., M.G., M.J., D.S. and M.Č.; investigation, A.M., M.G., M.J., D.S. and M.Č.; data curation, A.M.; writing—original draft preparation, A.M. and M.G.; writing—review and editing, M.J., D.S. and M.Č.; supervision, M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets applied in this study were derived from the Credit Card Fraud Detection Dataset [45]. The programming source code is available from the authors upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Fiore, U.; De Santis, A.; Perla, F.; Zanetti, P.; Palmieri, F. Using generative adversarial networks for improving classification effectiveness in credit card fraud detection. Inf. Sci. 2019, 479, 448–455. [Google Scholar] [CrossRef] [Scilit]
  2. Madry, A.; Makelov, A.; Schmidt, L.; Tsipras, D.; Vladu, A. Towards Deep Learning Models Resistant to Adversarial Attacks. In Proceedings of the 6th International Conference on Learning Representations (ICLR 2018), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  3. Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and harnessing adversarial examples. CoRR 2014, abs/1412.6572. Available online: https://api.semanticscholar.org/CorpusID:6706414 (accessed on 10 September 2026).
  4. Hu, C.; Chen, L.; Li, S.; Yi, Y.; Zhan, Y.; Liu, C.; Liu, J.; Shi, R. Cross-Gen: An efficient generator network for adversarial attacks on cross-modal hashing retrieval. Future Internet 2025, 17, 573. [Google Scholar] [CrossRef] [Scilit]
  5. He, Z.; Davila, D.; Bi, S.; Wang, T.; Hou, T. Machine Learning for Cybersecurity: A Survey of Applications, Adversarial Challenges, and Future Research Directions. Electronics 2025, 14, 4563. [Google Scholar] [CrossRef] [Scilit]
  6. Afolalu, O.; Tsoeu, M.S. Artificial Intelligence as the Next Frontier in Cyber Defense: Opportunities and Risks. Electronics 2025, 14, 4853. [Google Scholar] [CrossRef] [Scilit]
  7. Kim, H.; Park, H.; Cho, Y. Performance Comparison of Adversarial Example Attacks Against CNN-Based Image Steganalysis Models. Electronics 2025, 14, 4422. [Google Scholar] [CrossRef] [Scilit]
  8. Wang, Y.; Sun, T.; Li, S.; Yuan, X.; Ni, W.; Hossain, E.; Poor, H.V. Adversarial attacks and defenses in machine learning-empowered communication systems and networks: A contemporary survey. IEEE Commun. Surv. Tutor. 2023, 25, 2245–2298. [Google Scholar] [CrossRef] [Scilit]
  9. Carlini, N.; Wagner, D. Towards evaluating the robustness of neural networks. In Proceedings of the 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 22–26 May 2017; pp. 39–57. [Google Scholar] [CrossRef] [Scilit]
  10. Jia, X.; Li, J.; Gu, J.; Zhang, B.; Liu, J.; Cao, X. Fast propagation is better: Accelerating single-step adversarial training via sampling subnetworks. IEEE Trans. Inf. Forensics Secur. 2024, 19, 4547–4559. [Google Scholar] [CrossRef] [Scilit]
  11. Aggarwal, S.; Mittal, A.; Aggarwal, S.; Singh, A.K. Dynamic Programming-Based White Box Adversarial Attack for Deep Neural Networks. AI 2024, 5, 1216–1234. [Google Scholar] [CrossRef] [Scilit]
  12. Liu, X.; Xu, R. From Vulnerability to Robustness: A Survey of Patch Attacks and Defenses in Computer Vision. Electronics 2025, 14, 4553. [Google Scholar] [CrossRef] [Scilit]
  13. Khamaiseh, S.Y.; Bagagem, D.; Al-Alaj, A.; Mancino, M.; Alomari, H.W. Adversarial deep learning: A survey on adversarial attacks and defense mechanisms on image classification. IEEE Access 2022, 10, 102266–102291. [Google Scholar] [CrossRef] [Scilit]
  14. Ali, K.; Bhatti, M.S.; Saeed, A.; Athar, A.; Al-Dujaili, A. Adversarial robustness of vision transformers versus convolutional neural networks. IEEE Access 2024, 12, 105281–105293. [Google Scholar] [CrossRef] [Scilit]
  15. Tsai, M.-J.; Lee, Y.-C.; Lien, H.-Y.; Liang, C.-C. Adversarial Defense for Medical Images. Electronics 2025, 14, 4384. [Google Scholar] [CrossRef] [Scilit]
  16. Li, G.; Cao, M.; Zhang, Y.; Xu, S.; Cao, Y. From 2D-Patch to 3D-Camouflage: A Review of Physical Adversarial Attack in Object Detection. Electronics 2025, 14, 4236. [Google Scholar] [CrossRef] [Scilit]
  17. Chang, G.; Gao, H.; Cheng, N.; Yao, Z.; Li, H. TextShelter: Text Adversarial Example Defense Based on Input Reconstruction. Electronics 2025, 14, 4706. [Google Scholar] [CrossRef] [Scilit]
  18. Feng, Y.; Liu, Q.; Li, J. Audio Adversarial Example Detection Scheme via Re-Attack. Electronics 2026, 15, 1411. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, S.; Ko, R.K.; Bai, G.; Dong, N.; Choi, T.; Zhang, Y. Evasion attack and defense on machine learning models in cyber-physical systems: A survey. IEEE Commun. Surv. Tutor. 2022, 24, 1028–1063. [Google Scholar] [CrossRef] [Scilit]
  20. Huma, Z.; Jan, S.U.; Ahmad, J.; Buchanan, W.; Pitropakis, N. Adversarial Machine Learning in IoT Security: A Comprehensive Survey. ACM Comput. Surv. 2026, 58, 1–35, Erratum in ACM Comput. Surv. 2026, 58, 1. [Google Scholar] [CrossRef] [Scilit]
  21. Hu, F.; Zhou, W.; Liao, K.; Li, H.; Tong, D. Toward federated learning models resistant to adversarial attacks. IEEE Internet Things J. 2023, 10, 16917–16930. [Google Scholar] [CrossRef] [Scilit]
  22. Son, B.D.; Hoa, N.T.; Chien, T.V.; Khalid, W.; Ferrag, M.A.; Choi, W.; Debbah, M. Adversarial attacks and defenses in 6G network-assisted IoT systems. IEEE Internet Things J. 2024, 11, 19168–19187. [Google Scholar] [CrossRef] [Scilit]
  23. Wawrowski, Ł.; Biczyk, P.; Ślęzak, D.; Sikora, M. Adversarial Attacks Detection Method for Tabular Data. Mach. Learn. Knowl. Extr. 2025, 7, 112. [Google Scholar] [CrossRef] [Scilit]
  24. Cartella, F.; Anunciação, O.; Funabiki, Y.; Yamaguchi, D.; Akishita, T.; Elshocht, O. Adversarial attacks for tabular data: Application to fraud detection and imbalanced data. In Proceedings of the AAAI Workshop on Artificial Intelligence Safety (SafeAI), Virtual, 8 February 2021. [Google Scholar]
  25. Dal Pozzolo, A.; Caelen, O.; Le Borgne, Y.-A.; Waterschoot, S.; Bontempi, G. Learned lessons in credit card fraud detection from a practitioner perspective. Expert Syst. Appl. 2014, 41, 4915–4928. [Google Scholar] [CrossRef] [Scilit]
  26. Li, M.; Qiao, Y.; Lee, B. Adversarial robustness evaluation for multi-view deep learning cybersecurity anomaly detection. Future Internet 2025, 17, 459. [Google Scholar] [CrossRef] [Scilit]
  27. He, Z.; Ouyang, C.; Wen, L.; Liu, C.; Moreira, C. TabAttackBench: A benchmark for adversarial attacks on tabular data. Expert Syst. Appl. 2026, 301, 130491. [Google Scholar] [CrossRef] [Scilit]
  28. Lebichot, B.; Le Borgne, Y.-A.; He-Guelton, L.; Oblé, F.; Bontempi, G. Deep-learning domain adaptation techniques for credit cards fraud detection. In Recent Advances in Big Data and Deep Learning; Oneto, L., Navarin, N., Sperduti, A., Anguita, D., Eds.; Springer: Cham, Switzerland, 2020; pp. 78–88. [Google Scholar] [CrossRef] [Scilit]
  29. Carcillo, F.; Le Borgne, Y.-A.; Caelen, O.; Kessaci, Y.; Oblé, F.; Bontempi, G. Combining unsupervised and supervised learning in credit card fraud detection. Inf. Sci. 2021, 557, 317–331. [Google Scholar] [CrossRef] [Scilit]
  30. Carcillo, F.; Dal Pozzolo, A.; Le Borgne, Y.-A.; Caelen, O.; Mazzer, Y.; Bontempi, G. SCARFF: A scalable framework for streaming credit card fraud detection with Spark. Inf. Fusion 2018, 41, 182–194. [Google Scholar] [CrossRef] [Scilit]
  31. Makki, S.; Assaghir, Z.; Taher, Y.; Haque, R.; Hacid, M.S.; Zeineddine, H. An experimental study with imbalanced classification approaches for credit card fraud detection. IEEE Access 2019, 7, 93010–93022. [Google Scholar] [CrossRef] [Scilit]
  32. Esenogho, E.; Mienye, I.D.; Swart, T.G.; Aruleba, K.; Obaido, G. A neural network ensemble with feature engineering for improved credit card fraud detection. IEEE Access 2022, 10, 16400–16407. [Google Scholar] [CrossRef] [Scilit]
  33. Mienye, I.D.; Jere, N. Deep learning for credit card fraud detection: A review of algorithms, challenges, and solutions. IEEE Access 2024, 12, 96893–96910. [Google Scholar] [CrossRef] [Scilit]
  34. Alarfaj, F.K.; Shahzadi, S. Enhancing fraud detection in banking with deep learning: Graph neural networks and autoencoders for real-time credit card fraud prevention. IEEE Access 2025, 13, 20633–20646. [Google Scholar] [CrossRef] [Scilit]
  35. Srivastava, A.; Kundu, A.; Sural, S.; Majumdar, A. Credit card fraud detection using hidden Markov model. IEEE Trans. Dependable Secur. Comput. 2008, 5, 37–48. [Google Scholar] [CrossRef] [Scilit]
  36. Dal Pozzolo, A.; Boracchi, G.; Caelen, O.; Alippi, C.; Bontempi, G. Credit card fraud detection: A realistic modeling and a novel learning strategy. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 3784–3797. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Wu, Y.; Wang, L.; Li, H.; Liu, J. A deep learning method of credit card fraud detection based on continuous-coupled neural networks. Mathematics 2025, 13, 819. [Google Scholar] [CrossRef] [Scilit]
  38. Fok, J.L.; Zeng, Q.; Chen, S.; Fawkes, O.; Chen, H. Foe for Fraud: Transferable Adversarial Attacks in Credit Card Fraud Detection. In 2025 IEEE International Conference on Web Services (ICWS); IEEE: Piscataway, NJ, USA, 2025; pp. 286–292. [Google Scholar] [CrossRef] [Scilit]
  39. Goldblum, M.; Schwarzschild, A.; Patel, A.; Goldstein, T. Adversarial attacks on machine learning systems for high-frequency trading. In Proceedings of the 2nd ACM International Conference on AI in Finance (ICAIF ’21), New York, NY, USA, 3–5 November 2021. [Google Scholar] [CrossRef] [Scilit]
  40. Zheng, M.; Yan, X.; Zhu, Z.; Chen, H.; Wu, B. BlackboxBench: A Comprehensive Benchmark of Black-Box Adversarial Attacks. IEEE Trans. Pattern Anal. Mach. Intell. 2025, 47, 7867–7885. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Dong, Y.; Cheng, S.; Pang, T.; Su, H.; Zhu, J. Query-Efficient Black-Box Adversarial Attacks Guided by a Transfer-Based Prior. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 9536–9548. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. Chen, H.; Zhang, Y.; Dong, Y.; Yang, X.; Su, H.; Zhu, J. Rethinking Model Ensemble in Transfer-Based Adversarial Attacks. In Proceedings of the 12th International Conference on Learning Representations (ICLR 2024), Vienna, Austria, 7–11 May 2024; Available online: https://openreview.net/forum?id=AcJrSoArlh (accessed on 10 September 2026).
  43. Xie, P.; Bie, Y.; Mao, J.; Song, Y.; Wang, Y.; Chen, H.; Chen, K. Chain of Attack: On the Robustness of Vision-Language Models Against Transfer-Based Adversarial Attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2025), Nashville, TN, USA, 11–15 June 2025; pp. 14679–14689. [Google Scholar] [CrossRef] [Scilit]
  44. Xia, S.; Yang, W.; Yu, Y.; Lin, X.; Ding, H.; Duan, L.; Jiang, X. Transferable Adversarial Attacks on SAM and Its Downstream Models. In Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS 2024), Vancouver, BC, Canada, 10–15 December 2024; pp. 87545–87568. [Google Scholar] [CrossRef] [Scilit]
  45. Kaggle. Credit Card Fraud Detection Dataset. Machine Learning Group–ULB. Available online: https://www.kaggle.com/datasets/mlg-ulb/creditcardfraud (accessed on 31 March 2026).
  46. TransUnion, 2023 State of Omnichannel Fraud Report. Available online: https://www.transunion.ph/fraud-trends/reports/2023-state-of-omnichannel-fraud-report (accessed on 8 September 2026).
  47. Salton, G.; Wong, A.; Yang, C.S. A vector space model for automatic indexing. Commun. ACM 1975, 18, 613–620. [Google Scholar] [CrossRef] [Scilit]
  48. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer: New York, NY, USA, 2009. [Google Scholar] [CrossRef]
  49. Ridler, T.W.; Calvard, S. Picture thresholding using an iterative selection method. IEEE Trans. Syst. Man Cybern. 1978, 8, 630–632. [Google Scholar] [CrossRef] [Scilit]
Table 1. Summary of datasets.
Table 1. Summary of datasets.
Dataset# Transactions# Legitimate Transactions# Fraudulent Transactions
D 24,60024,354246
D 1 19,68019,483197
D 2 4920487149
D 24,60024,354246
D 1 19,68019,483197
D 2 4920487149
The symbol # is an abbreviation for “number”.
Table 2. Random seed settings used in this study.
Table 2. Random seed settings used in this study.
Random Seed SettingsRandom Seeds
s 1 s 2 s 3 s 4 s 5 s 6 s 7
S 1 22252748943467
S 2 35174790844455
Table 3. The mean and standard deviation of each explanatory feature in set D 1 across different random seed settings.
Table 3. The mean and standard deviation of each explanatory feature in set D 1 across different random seed settings.
FeatureRandom State Setting S 1 Random State Setting S 2
Mean St. dev. Mean St. dev.
V1−0.0565562.107529−0.0311752.106691
V20.0442641.7349430.0365731.70532
V3−0.0585721.767076−0.060451.761784
V40.0422651.4953530.0447191.496718
V5−0.0331831.48878−0.0228441.445343
V6−0.0032141.336646−0.0276911.321971
V7−0.0504261.526953−0.0582331.446825
V8−0.0052031.440624−0.0071391.390874
V9−0.0279511.141118−0.0211061.155883
V10−0.0405411.270388−0.0447581.309484
V110.0286611.0877490.033561.112917
V12−0.049771.194306−0.0505131.235508
V13−0.0019260.996708−0.0025540.991663
V14−0.0522911.19384−0.0676991.241511
V15−0.0097850.916255−0.0038210.918569
V16−0.0211060.990014−0.0247331.017455
V17−0.0516351.16142−0.0482581.241866
V18−0.010630.888276−0.0222960.899131
V190.0087960.8255280.0096020.819501
V200.007490.785778−0.0012340.766585
V210.0064330.8894870.0011140.824828
V22−0.0089540.7511430.0042590.741246
V230.0010630.67686−0.0051120.666892
V24−0.0049020.6033370.0003220.606508
V25−0.0017220.523075−0.0004180.523436
V26−0.0007180.482874−0.0058880.477928
V270.0023220.4176250.0049630.413537
V280.0024960.3222240.0012570.340038
Amount88.126243.21087.561225.313
Amount (after normalization)0.0029751.022533−0.0105870.871823
Table 4. Evaluation of the baseline model.
Table 4. Evaluation of the baseline model.
MetricRandom State Setting S 1 Random State Setting S 1
Accuracy0.99730.9983
ROC AUC0.96290.9909
Precision (Class 0)0.99810.9987
Recall (Class 0)0.99910.9995
F1-score (Class 0)0.99860.9991
Precision (Class 1)0.90900.9555
Recall (Class 1)0.81630.8775
F1-score (Class 1)0.86020.9148
Macroaverage F1-score0.92940.9570
Confusion matrix (TN, FP, FN, TP)(4867, 4, 9, 40)(4869, 2, 6, 43)
Table 5. The maximum change in the Amount feature at the original monetary scale for perturbation bounds ϵ { 0.05 , 0.1 } .
Table 5. The maximum change in the Amount feature at the original monetary scale for perturbation bounds ϵ { 0.05 , 0.1 } .
Amount FeatureRandom State Setting S 1 Random State Setting S 2
Minimum0.00.0
Maximum7429.1508182.7
Mean88.12687.561
Standard deviation243.210225.313
Maximum change ( ϵ = 0.05 )12.16011.265
Maximum change ( ϵ = 0.1 )24.32122.531
Table 6. Evaluation of the white-box PGD attack on the baseline model (step size α = 0.0001 , number of iterations T = 5000 ).
Table 6. Evaluation of the white-box PGD attack on the baseline model (step size α = 0.0001 , number of iterations T = 5000 ).
Random SeedPerturbation# Adv. Vectors# Successful Adv. VectorsAttack Success
Setting Bound ϵ | X adv ( T ) | | X adv | Rate
S 1 0.051651 0.60 % ( 1 165 )
0.11654 2.42 % ( 4 165 )
S 2 0.051641 0.61 % ( 1 164 )
0.11641 0.61 % ( 1 164 )
The symbol # is an abbreviation for “number”.
Table 7. Alignment of adversarial transaction vectors with the corresponding original fraudulent vectors in the context of the white-box PGD attack with a perturbation bound of ϵ = 0.05 : the results of the z-score analysis within dataset D 1 .
Table 7. Alignment of adversarial transaction vectors with the corresponding original fraudulent vectors in the context of the white-box PGD attack with a perturbation bound of ϵ = 0.05 : the results of the z-score analysis within dataset D 1 .
Random Seed Settingi s i , orig = cos x i , adv , x i μ i , ref σ i , ref z i , orig
S 1 10.99981611−0.005062060.211590254.74917050
S 2 10.99968608007221350.233584014.24885547
Table 8. Alignment of adversarial transaction vectors with the corresponding original fraudulent vectors in the context of the white-box PGD attack with a perturbation bound of ϵ = 0.1 : the results of the z-score analysis within dataset D 1 .
Table 8. Alignment of adversarial transaction vectors with the corresponding original fraudulent vectors in the context of the white-box PGD attack with a perturbation bound of ϵ = 0.1 : the results of the z-score analysis within dataset D 1 .
Random Seed Settingi s i , orig = cos x i , adv , x i μ i , ref σ i , ref z i , orig
S 1 10.99927033−0.005310500.211899974.74082566
20.99917149−0.007496390.162704816.18708116
30.999171490.011074550.203993584.83679768
40.99917149−0.007261210.203510664.94489495
S 2 10.998732370.007724060.233905394.23679112
Table 9. The maximum change in the Amount feature at the original monetary scale for perturbation bounds ϵ { 0.2 , 0.3 } .
Table 9. The maximum change in the Amount feature at the original monetary scale for perturbation bounds ϵ { 0.2 , 0.3 } .
Amount FeatureRandom State Setting S 1 Random State Setting S 2
Maximum change ( ϵ = 0.2 )48.64245.063
Maximum change ( ϵ = 0.3 )72.96367.594
Table 10. Summary of the alignment of adversarial transaction vectors selected for the transferability analysis with the corresponding original fraudulent vectors in the context of the black-box PGD attack: the results of the z-score analysis within dataset D 1 .
Table 10. Summary of the alignment of adversarial transaction vectors selected for the transferability analysis with the corresponding original fraudulent vectors in the context of the black-box PGD attack: the results of the z-score analysis within dataset D 1 .
Random SeedPerturbation Bound# Adv. VectorsAverage z-Score
Setting ϵ (st. dev)
S 1 0.3204.961 (±0.794)
0.2154.632 (±0.325)
0.1104.602 (±0.288)
0.0564.519 (±0.346)
S 2 0.3215.552 (±1.690)
0.2174.853 (±0.544)
0.1154.815 (±0.524)
0.0590.323 (±0.318)
The symbol # is an abbreviation for “number”.
Table 11. Summary of the clean-test performance of 4092 victim models.
Table 11. Summary of the clean-test performance of 4092 victim models.
Macroaverage F 1 -ScoreRandom Seed Setting S 1 Random Seed Setting S 2
Average ( τ a v g )0.90910.9532
Standard deviation0.01170.0098
Minimum0.84410.8650
Maximum0.94020.9785
Q10.90140.9489
Q20.91020.9551
Q30.91680.9611
Q40.94020.9785
Selection threshold ( τ )0.90670.9517
Table 12. Summary of the clean-test performance of 4092 victim models according to network depth (i.e., number of hidden layers).
Table 12. Summary of the clean-test performance of 4092 victim models according to network depth (i.e., number of hidden layers).
Random Seed SettingDepth# ModelsROC-AUCMacro F 1
S 1 1120.9521 ± 0.00590.9096 ± 0.0107
2480.9478 ± 0.00630.9113 ± 0.0102
31920.9471 ± 0.00700.9087 ± 0.0110
47680.9479 ± 0.00720.9087 ± 0.0114
530720.9483 ± 0.00710.9092 ± 0.0118
S 2 1120.9943 ± 0.00220.9584 ± 0.0052
2480.9923 ± 0.00290.9562 ± 0.0067
31920.9918 ± 0.00430.9546 ± 0.0092
47680.9922 ± 0.00370.9538 ± 0.0102
530720.9920 ± 0.00440.9530 ± 0.0099
The symbol # is an abbreviation for “number”.
Table 13. Summary of the clean-test performance of 4092 victim models according to network width (i.e., the maximum number of neurons in any single layer).
Table 13. Summary of the clean-test performance of 4092 victim models according to network width (i.e., the maximum number of neurons in any single layer).
Random Seed SettingWidth# ModelsROC-AUCMacro F 1
S 1 16150.9452 ± 0.01110.9091 ± 0.0091
321710.9486 ± 0.00810.9079 ± 0.0120
649030.9480 ± 0.00780.9089 ± 0.0123
12830030.9482 ± 0.00680.9092 ± 0.0115
S 2 16150.9921 ± 0.00290.9514 ± 0.0076
321710.9909 ± 0.00530.9508 ± 0.0103
649030.9916 ± 0.00440.9529 ± 0.0099
12830030.9922 ± 0.00410.9535 ± 0.0098
The symbol # is an abbreviation for “number”.
Table 14. Summary of the clean-test performance of 4092 victim models according to dropout rate.
Table 14. Summary of the clean-test performance of 4092 victim models according to dropout rate.
Random Seed SettingDropout Rate# ModelsROC-AUCMacro F 1
S 1 0.01.3640.9460 ± 0.00920.9028 ± 0.0129
0.21.3640.9490 ± 0.00590.9121 ± 0.0098
0.31.3640.9496 ± 0.00510.9125 ± 0.0094
S 2 0.013640.9899 ± 0.00570.9491 ± 0.0125
0.213640.9929 ± 0.00300.9558 ± 0.0076
0.313640.9932 ± 0.00260.9548 ± 0.0072
The symbol # is an abbreviation for “number”.
Table 15. Summary of the results of the PGD attack transferability evaluation across the selected victim models for different ϵ -values.
Table 15. Summary of the results of the PGD attack transferability evaluation across the selected victim models for different ϵ -values.
RandomPert.# Adv.Avg. # Succ.Margin of ErrorMax. # Succ.Attack
Seed Bound Vectors Attacks per (95% Conf. Attacks Success
Setting ϵ Vector (st. dev.) Interval) per Vector Rate
S 1 0.320556.550 (629.969)±294.831884 65.24 % ( 10 , 466 16 , 042 )
0.215466.266 (505.734)±280.101516 58.01 % ( 6817 11 , 750 )
0.110176.000 (198.246)±141.81488 35.36 % ( 1760 4977 )
0.05671.666 (84.554)±88,71220 28.64 % ( 430 1501 )
S 2 0.321180.333 (313.806)±142.851021 34.26 % ( 3787 11 , 051 )
0.217145.647 (224.780)±115.58665 61.07 % ( 2476 4054 )
0.115112.066 (161.940)±89.69479 41.61 % ( 1681 4039 )
0.05934.000 (68.585)±52.72209 32.34 % ( 306 946 )
The symbol # is an abbreviation for “number”.
Table 16. Alignment of adversarial transaction vector with the corresponding original fraudulent vector in the context of the white-box BIM attack with a perturbation bound of ϵ = 0.05 : the results of the z-score analysis within dataset D 1 .
Table 16. Alignment of adversarial transaction vector with the corresponding original fraudulent vector in the context of the white-box BIM attack with a perturbation bound of ϵ = 0.05 : the results of the z-score analysis within dataset D 1 .
i s i , orig = cos x i , adv , x i μ i , ref σ i , ref z i , orig
10.99981611−0.005062060.211590254.74917050
Table 17. Alignment of adversarial transaction vector with the corresponding original fraudulent vector in the context of the white-box BIM attack with a perturbation bound of ϵ = 0.1 : the results of the z-score analysis within dataset D 1 .
Table 17. Alignment of adversarial transaction vector with the corresponding original fraudulent vector in the context of the white-box BIM attack with a perturbation bound of ϵ = 0.1 : the results of the z-score analysis within dataset D 1 .
i s i , orig = cos x i , adv , x i μ i , ref σ i , ref z i , orig
10.99927033−0.00531050.211899974.74082566
20.99917149−0.007496390.162704816.18708116
30.997750220.011074550.203993584.83679768
40.99907762−0.007261210.203510664.94489495
Table 18. Summary of the alignment of adversarial transaction vectors selected for the transferability analysis with the corresponding original fraudulent vectors in the context of the black-box BIM attack: the results of the z-score analysis within dataset D 1 .
Table 18. Summary of the alignment of adversarial transaction vectors selected for the transferability analysis with the corresponding original fraudulent vectors in the context of the black-box BIM attack: the results of the z-score analysis within dataset D 1 .
Perturbation Bound ϵ # Adv. VectorsAverage z-Score (st. dev)
0.3205.031 (±0.952)
0.2154.632 (±0.326)
0.1104.589 (±0.301)
0.0564.518 (±0.351)
The symbol # is an abbreviation for “number”.
Table 19. Summary of the results of the BIM attack transferability evaluation across the selected victim models for different ϵ -values.
Table 19. Summary of the results of the BIM attack transferability evaluation across the selected victim models for different ϵ -values.
Pert.# Adv.Avg. # Succ.Margin of ErrorMax. # Succ.Attack
Bound Vectors Attacks per (95% Conf. Attacks Success
ϵ Vector (st. dev.) Interval) per Vector Rate
0.320582.950 (655.280)±306.681940 51.67 % ( 11 , 659 22 , 564 )
0.215488.466 (566.749)±313.891523 62.35 % ( 7327 11 , 750 )
0.110175.900 (198.105)±141.71488 35.28 % ( 1759 4985 )
0.05671.666 (84.554)±88.71220 28.64 % ( 430 1501 )
The symbol # is an abbreviation for “number”.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Miljković, A.; Gnjatović, M.; Joksimović, M.; Stefanović, D.; Čabarkapa, M. White-Box and Transfer-Based Black-Box Adversarial Attacks on Neural Network Models for Credit Card Fraud Detection. Electronics 2026, 15, 4297. https://doi.org/10.3390/electronics15184297

AMA Style

Miljković A, Gnjatović M, Joksimović M, Stefanović D, Čabarkapa M. White-Box and Transfer-Based Black-Box Adversarial Attacks on Neural Network Models for Credit Card Fraud Detection. Electronics. 2026; 15(18):4297. https://doi.org/10.3390/electronics15184297

Chicago/Turabian Style

Miljković, Aleksandar, Milan Gnjatović, Marijana Joksimović, Darko Stefanović, and Milan Čabarkapa. 2026. "White-Box and Transfer-Based Black-Box Adversarial Attacks on Neural Network Models for Credit Card Fraud Detection" Electronics 15, no. 18: 4297. https://doi.org/10.3390/electronics15184297

APA Style

Miljković, A., Gnjatović, M., Joksimović, M., Stefanović, D., & Čabarkapa, M. (2026). White-Box and Transfer-Based Black-Box Adversarial Attacks on Neural Network Models for Credit Card Fraud Detection. Electronics, 15(18), 4297. https://doi.org/10.3390/electronics15184297

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop