Adversarial Attacks on Binary Image Recognition Systems

Eric Balkanski, Harrison Chase, Kojin Oshiba, Alexander Rilee, Yaron Singer, Richard Wang

Abstract

While adversarial research predominantly focuses on subtle perturbations in the continuous color space, many high-stakes industrial systems—such as those used for license plate recognition and financial document processing—operate on binarized (black-and-white) images. This paper introduces SCAR (Shaded Combinatorial Attack on Recognition systems), a greedy optimization algorithm designed to exploit the discrete nature of binary classifiers. The authors demonstrate that binarization, often mistaken for a natural defense, is highly vulnerable to strategic pixel-flipping. Notably, the research shows that commercial banking software used for mobile check deposits can be fooled into accepting fraudulent amounts by altering only a handful of pixels.

Introduction

In the field of adversarial machine learning, most attacks rely on making infinitesimal changes to pixel intensities that are imperceptible to the human eye. However, a significant class of real-world applications converts images into a binary format (0 or 1) before processing. In this discrete domain, a "tiny" change is impossible; a pixel is either flipped or it is not.

Because flipping a pixel is a visible, discrete action, many researchers previously assumed that binarization acted as a robust defense against adversarial manipulation. This paper challenges that assumption, identifying a critical gap in current security models and providing an efficient algorithm to compromise these systems.

The SCAR Algorithm

The authors propose SCAR, a combinatorial approach tailored for the constraints of binary image recognition. The algorithm is built on several key principles:

  • Greedy Optimization: SCAR iteratively identifies and flips the pixel that causes the most significant reduction in the model's confidence for the correct label.
  • Boundary Constraints: To maintain visual fidelity and ensure the attack remains "unnoticeable," SCAR restricts flips to the boundaries between black and white regions. This ensures that changes appear as natural variations in handwriting or font rendering rather than random noise.
  • Query Efficiency: Attacking black-box systems is computationally expensive. SCAR improves efficiency by utilizing spatial and temporal correlations—predicting that if a specific pixel flip is effective, its neighbors are likely candidates for subsequent steps. This drastically reduces the number of queries required to find a successful adversarial example.

Experimental Evaluation

The researchers evaluated SCAR across diverse datasets and real-world engines:

  • Standard Benchmarks: MNIST and EMNIST were used to establish baseline performance on handwritten digits and letters.
  • Tesseract OCR: The popular open-source engine was tested using common English words rendered in standard fonts.
  • Commercial Banking Software: The authors tested proprietary software used by major US banks for mobile deposits, specifically targeting the CAR (Courtesy Amount Recognition) and LAR (Legal Amount Recognition) models.

Key Insights

The Fragility of OCR

The study revealed a startling vulnerability in the Tesseract OCR engine: flipping a single pixel was often sufficient to transform one English word into another (e.g., changing "idle" to "die"). Approximately 50% of the printed words in the test dictionary could be misclassified through minimal pixel manipulation.

Binarization is Not a Shield

The results debunk the myth that binarization provides inherent robustness. While it restricts the search space for an attacker, the optimization landscape of these models remains highly exploitable. The authors prove that while it is theoretically possible to build robust binary classifiers, the models currently deployed in industry fall far short of these theoretical limits.

Bypassing Financial "Double-Check" Systems

Banking systems typically use two independent models (CAR and LAR) to verify check amounts. For a fraudulent check to be accepted, both models must be fooled into seeing the same incorrect amount. The authors demonstrated that because these models often share underlying feature-extraction logic, an attacker can find "adversarial intersections." In tests against commercial software, SCAR achieved a 17.1% success rate in simultaneous CAR/LAR fraud, requiring as few as 11–15 pixel flips.

Conclusion and Future Work

SCAR demonstrates that binary recognition systems are significantly more fragile than previously understood. While the attack is query-intensive—requiring thousands of interactions with a black-box API—it poses a credible threat to automated financial and administrative workflows.

Future research is needed to bridge the "print-to-digital" gap, determining if these digital perturbations remain effective when an adversarial document is physically printed and photographed. Additionally, the development of provably robust classifiers and better monitoring for high-frequency API queries remains a priority for securing these vital systems.

Summary updated

BibTeX
@misc{balkanski2020adversarial,
  author = {Eric Balkanski and Harrison Chase and Kojin Oshiba and Alexander Rilee and Yaron Singer and Richard Wang},
  title = {{Adversarial Attacks on Binary Image Recognition Systems}},
  year = {2020},
  eprint = {2010.11782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11782},
}
Figure