Steal then attack: evaluating the robustness of object detection to black-box adversarial attacksSteal Now and Attack Later: Evaluating Robustness of Object Detection against Black-box Adversarial Attacks
The authors propose a "steal now, attack later" black-box latency attack, using objects pre-collected from public datasets to generate ghost targets, achieving the highest ASR of 83% on YOLOv8 at ϵ=32 (Table 1).
Black-box latency attack: the attacker has no prior knowledge of the victim model or training data and can only obtain output predictions; the perturbation is limited within an L-inf norm ϵ ball; the attacker can deploy a private model locally and use public datasets to pre-collect candidate objects; the victim system is a cloud-deployed object detection model and public vision APIs.
- Latency attacks against object detection slow down inference by creating ghost objects, but in the black-box setting information about filtered low-confidence objects is not visible, making ghost objects difficult to generate. The authors study whether an attack can be launched under these conditions at an acceptable cost.
- Proposes "steal now, attack later": first collect candidate objects from public datasets via a local model to build a library, then use a position-centric algorithm to place patches on a grid, and finally use color manipulation to project the perturbation back into the L-inf ϵ ball.
- Tested on 6 models and the GCP and Azure vision APIs: at ϵ=32, YOLOv8 has the highest ASR at 83%, SSD300 and Azure all fail, and GCP is at most 18%; the authors estimate the data cost of locally collecting 500 images is no more than 3 USD.
- The authors point out that the attack is size-variant and cannot take effect within a small ϵ ball, and that the black-box attack is weaker than white-box (white-box ASR 100% but only on a single image); the experiments test only 100 target images and do not report the number of repetitions or statistical tests.
- Evaluated models
- YOLOv8RetinanetFCOSSSD300Faster-RCNNDERTAzureGCP
- Benchmarks
- MS COCO 2017Open ImagesImageNet
- Metrics
- ASRobject incrementL-inf norm
The researchers demonstrate a black-box adversarial attack against object detection models that lengthens inference time by generating phantom objects in images; without prior knowledge of the target model, it succeeds against multiple commonly used models and the Google Vision API. The method extends the idea of "steal-then-decrypt" attacks to address the problem that in black-box settings phantom object information is opaque and difficult to generate; experiments show the average cost of a single attack is less than 1 US dollar. The authors state that such adversarial examples can be used to exploit potential vulnerabilities in AI services, posing a significant threat to AI security.
Paper analysis
What problem does this paper attempt to solve?
Latency attacks against object detection in the black-box setting are difficult because information about low-confidence objects is not visible; the authors study their feasibility and cost.
Core question: in the black-box setting, can a latency attack be launched against object detection models—that is, creating ghost objects to slow down inference—at an affordable cost?
- Problem setting and importance: object detection is widely used in everyday applications; latency attacks increase the number of objects in an image so that the system cannot respond in time or exhausts computational resources; the authors cite prior research stating that such attacks pose a security threat to real-time detectors and autonomous driving perception.
- Shortcomings of existing methods: detectors internally filter low-confidence objects, and this information is invisible to end users; the authors state that this prevents attackers from exploiting stable outputs, making appearing attacks in the black-box setting especially difficult.
- Core observation and assumption: the authors believe the initial image should contain external objects obtained from pre-collected data, and then the perturbation is projected into a given ϵ ball; the collected information can be reused across images, and data collection can be regarded as a one-time cost.
- Method proposed in the paper: the authors propose a "steal now, attack later" strategy, first collecting candidate objects from public datasets to build a library, then generating adversarial images via candidate selection and color projection; the authors state this is the first paper to study the feasibility of latency attacks on object detection in the black-box setting.
- Threat model:
- Goal: increase the total number of predicted objects, thereby increasing processing time (the authors assume inference time is proportional to the number of objects).
- Knowledge: black-box, with no prior knowledge of the victim model or training data, and only output predictions available.
- Capability: the perturbation must be limited within a given ϵ ball; a private model can be deployed locally and public datasets used.
- Victim system: detection models deployed in the cloud and public vision APIs (experiments include GCP and Azure).
What related research exists?
Related work falls into four categories: object detection models, adversarial attacks, black-box attacks, and latency attacks; the authors state that black-box latency attacks have received little study.
Object detection models
- Faster R-CNN [37] and the YOLO series [19]: commonly used two-stage and one-stage detectors; the paper also mentions transformer-based models [4, 9], and the three correspond to three designs of detection heads.
Adversarial attacks against object detection
- Traffic sign attacks [36]: mislead autonomous driving systems into misidentifying traffic signs.
- Hiding attacks and physical patches [41, 43, 45]: use physical patches to make specific objects invisible or deceive detectors.
Black-box adversarial attacks
- ZOO [13]: estimates gradients via differences in output information; Square attack [1]: the authors state that score-based attacks perform better when gradients are unreliable.
- Hard-label attacks [14]: similar to a detector filtering out unqualified objects; the authors compare this paper's candidate selection step to the initial attack of hard-label attacks.
- Universal perturbations [25] and black-box attacks against detection [27, 28]: demonstrated the existence of universal perturbations across multiple models and query-based black-box attacks.
Latency attacks and parallel work
- Overload [11] and Phantom Sponges [38]: the authors state that many objects appearing simultaneously increases execution time, posing a threat to real-time detectors; this paper's position-centric algorithm is inspired by Overload.
- SlowTrack [33]: studies how latency attacks interfere with autonomous driving perception, with simulations showing increased collision rates (as relayed by the authors).
- Parallel work [6, 7]: uses a co-occurrence graph to suggest object placement positions, mainly focusing on minimizing the number of queries; the authors state that this paper's difference lies in controllable data collection cost.
Baselines and benchmarks: the paper sets no comparison baseline methods; the authors state that to their knowledge this is the first work to focus on appearing attacks in the black-box setting, and that there is no general evaluation metric; experiments use MS COCO 2017, Open Images (target images and patch sources), and ImageNet (collecting patches in the ablation).
How does the paper address this problem?
In three steps: pre-collect candidate objects from public data to build a library, select patches on a position-centric grid, and use color manipulation to project the perturbation back into the ϵ ball.
The overall idea draws on "steal now, decrypt later": "steal now, attack later"—first collect information through legitimate means to build a library, then during the attack paste external objects onto the target image, and finally project the perturbation into the ϵ ball (the pipeline is shown in Figure 2, and the outputs of each stage in Figure 3).
Problem setting
- Goal: maximize the total number of objects output by the victim model; the authors assume inference time is proportional to the number of objects, so it is simplified to increasing the object count.
- Constraint: the perturbation is projected into an L-inf norm ϵ ball; a successful attack is defined as an object increment greater than 20 brought by the adversarial image.
- Three challenges: the cost of data collection, selecting which objects to paste where as the initial point, and the algorithm for projecting the perturbation into the ϵ ball.
Open-world data collection
- Approach: repeatedly feed images from public datasets such as MS COCO, PASCAL VOC, or Open Images to the detector, and store candidate object information in a database; false positives are also acceptable.
- Local private model: querying service providers directly is limited by rate and cost; the authors believe a private model can be deployed locally, comparing outputs of different models and filtering out divergent results, and that direct access to the victim model is not necessary.
- Data augmentation: the authors advocate adding spatial cropping and color transformations (color jitter, random equalization, random posterization), with objects that cannot be recognized after color transformation filtered out in advance, to reduce the failure rate and number of queries.
Position-centric candidate selection (Algorithm 1)
- Gridding: the target image is divided into a two-dimensional grid by grid dimension sg, with each grid evaluated independently; one query obtains the output information of all grids, which the authors state is more cost-effective than an object-centric approach.
- Process: each trial queries the model output, uses BCount to count the objects in each grid, and if it does not exceed threshold tp, uses PatchGen to randomly select multiple objects from the database to paste into that grid (possibly with color transformation), and restores the original image with a certain probability; k trials are performed in total.
- Patch recording: tracks each grid's patch perturbation, object count, color space distance, active pixel map, and qualification flag; qualified means the perturbation is within the ϵ ball and contains more than one object.
- Selection criterion: for simplicity, among objects in each grid with confidence above the threshold, the patch with the smallest edit distance is selected; the authors point out that the purpose of this step is similar to the initial attack of hard-label attacks and does not directly produce a qualified adversarial image.
Color manipulation (Algorithm 2)
- Goal: project the perturbed image that exceeds the ϵ ball back into the ϵ ball while maintaining attack strength; based on prior research [24, 39], the authors believe many perturbed pixels can be discarded without affecting predictions.
- Projection definition: Xp = Me ⊗ Fe(Xp) + (1 − Me) ⊗ Fi(Xp), i.e., a linear transformation Fe(·) = seXp + be is applied to qualified pixels (b_e resets the mean, s_e scales the strength, both depending on the target image background), and Fi(·) = siMr ⊗ Xp is applied to unqualified pixels (s_i=0 is dropout).
- Iterative process: tolerance d allows internal steps to operate within a larger ϵd ball; each round iterates over the grids, regenerating patches for grids with no objects, otherwise applying Projection, and finally Clamp to ϵd; d is gradually reduced and the process repeated.
- Fallback mechanism: the object count is not differentiable, and the authors state that gradient-based black-box algorithms are infeasible, so the output for each d is recorded, and if results worsen as the radius shrinks, it falls back to the previous state and retries.
Success criterion
- The perturbation is projected to the L-inf norm; an object increment greater than 20 is judged a successful attack; the authors state that the maximum number of output objects differs across models, so total object counts should not be compared directly.
What experiments did the paper conduct?
ASR was measured on 6 models and 2 vision APIs: at ϵ=32, YOLOv8 is highest at 83%, SSD300 and Azure fail entirely, and GCP is highest at 18%.
Experimental setup
- Models tested: YOLOv8, Retinanet, FCOS, SSD300 (one-stage), Faster-RCNN (two-stage), DERT (transformer), and the Azure vision and GCP vision APIs.
- Data: A total of 100 images randomly selected from each of the MS COCO 2017 and Open Images validation sets as target images; the input size is fixed at (640, 640) during both the data collection and inference stages.
- Metric: ASR (the proportion of successful attacks out of total attacks); an attack is defined as successful when the object increment is greater than 20; the perturbation is projected onto the L-inf norm.
- Attack budget: The maximum number of queries for attack iterations is set to 4,000; patches are collected from MS COCO and Open Images.
- Baselines: There is no comparison baseline method; the authors state that to their knowledge this is the first work to focus on appearance attacks in the black-box setting and that there is no general metric.
- Number of repetitions and review method: The paper does not report the number of repetitions; success is determined by a rule (object increment threshold), with no human or model review.
Main results
ASR (%) for each model at different ϵ radii (according to Table 1; the left half is patches collected from MS COCO, the right half is Open Images):
Swipe horizontally to read the table
Model COCO ϵ=8 COCO ϵ=16 COCO ϵ=24 COCO ϵ=32 OI ϵ=8 OI ϵ=16 OI ϵ=24 OI ϵ=32 DERT 1 7 13 29 1 6 15 28 Faster-RCNN 2 10 21 35 1 8 24 36 Retinanet 3 9 22 37 5 8 28 39 FCOS 5 12 29 49 4 9 31 52 YOLOv8 8 15 42 81 9 13 45 83 SSD300 0 0 0 0 0 0 0 0 Azure 0 0 0 0 0 0 0 0 GCP 0 0 11 15 0 0 12 18 - Authors' interpretation: ASR decreases as ϵ decreases; the authors state the reason is that small perturbations cannot produce a sufficient output signal and the attack is a stochastic process; the attack has the highest ASR on YOLOv8 and is also effective on other models except SSD300.
- Failure cases: It fails completely on SSD300; the authors explain that the attack favors patches containing multiple small objects, whereas prior work [18] shows that SSD struggles to recognize small objects, and the objects disappear during iterations; Azure internally removes objects smaller than 5% of the image, and the authors state that the attack is by definition doomed to fail.
- DERT second worst: The authors believe this may be because this paper assumes no interaction between grid cells, which is inconsistent with the attention mechanism of transformers.
Ablation: number of collected images and collection configuration
- Number of images (Table 2, ϵ=32, MS COCO): When 100/200/500 images are collected, the ASR of YOLOv8 is 81%/83%/84%, FCOS is 49%/52%/55%, and DERT is 29%/31%/32%; the authors state that the improvement is not obvious, because each dataset has its own distribution (e.g., many green-textured objects are incompatible with black backgrounds).
- Collection configuration (Table 3, ϵ=32): config 1 collects from MS COCO using the target model, config 2 uses ImageNet instead, config 3 collects from MS COCO using YOLOv8, and config 4 collects using the GCP vision API; on YOLOv8 the ASR of the four configurations is 81%/81%/81%/83%, and on FCOS it is 49%/47%/43%/52%. The authors state that there is no obvious performance gap among the configurations, and that data collection is important but not the current performance bottleneck.
Analysis of spatial and color distributions
- Clustering phenomenon (Figure 5): The authors state that generated objects tend to cluster in specific regions rather than being uniformly distributed, consistent with the findings of [11]; clustering causes multiple candidates to be eliminated in the internal stage, making ghost object generation difficult, and the authors suggest introducing a spatial attention mechanism.
- Color dependence (Figure 4): The authors state that attack strength depends heavily on the color distribution between the target image and the collected data; in Figure 4a the upper part of the left image is almost entirely black, making it difficult to match objects in the database, whereas Figure 4b has large color variation and can embed ghost objects at any position.
Cost analysis and other
- Data collection cost: The authors estimate that about 500 images are needed and one model is deployed locally; inference on 500 images with an Nvidia V100 takes less than 1 hour, and renting the same GPU model on GCP (2.48 dollars per hour) including initialization costs no more than 3 dollars in total; using the GCP vision API costs 1.5 dollars per 1,000 requests, with a single request taking no more than 10 seconds, for a total collection time of about 2 hours.
- White-box comparison: The authors state that by the criteria of this paper, the white-box attack ASR is 100%, but it targets only a single image, with fewer iterations and a smaller ϵ ball.
- Appendix visualizations (Figure 6–10): The authors state that all models fail at ϵ=8, and that the objects generated in the adversarial images are relatively small in size, which the authors consider the main reason the attack currently cannot be used against SSD.
What are some points that can be further explored?
The authors state that the attack is size-variant and weaker than white-box, and imply three defenses; the experiments cover only 100 images and do not report the number of repetitions.
Limitations and future directions noted by the authors
- size-variant limitation (Section 4.5): The attack is inherently size-variant and cannot generate adversarial examples within a narrow ϵ ball; inputs are resized to an undisclosed predefined size, and compression removes the fine structure of the perturbation, causing many queries to fail.
- Future direction: EoT (Section 4.5): The authors believe that integrating Expectation over Transformation (EoT) [2, 3] into the attack may improve its effectiveness.
- Weaker than white-box (Section 4.5): The black-box attack is far weaker than the white-box attack (white-box ASR 100%, but only a single image, fewer iterations, smaller ϵ ball).
- Real systems are more complex (Section 4.5): In the GCP vision API, some categories (e.g., "2D barcode") suppress the appearance of other objects, which may cause the attack to fail; the authors state that more data must be collected to analyze the victim model's preferences to improve ASR, and that the time and cost would exceed the results in this paper.
- Do not recommend using public AI systems to collect data (Section 4.5): GCP has a 20MB input and 10MB output limit, and the experiments encountered bandwidth limits and rejected requests; the authors believe GCP has an internal request management system.
- Implied defenses (Section 4.5): The authors state that these limitations imply three possible defenses—multiple inference at multiple input sizes with comparison of results, context inconsistency detection [26], and image quality assessment—but the paper does not implement or evaluate these defenses.
Scope of experiments
- Models tested: 6 detection models (YOLOv8, Retinanet, FCOS, SSD300, Faster-RCNN, DERT) plus two vision APIs, Azure and GCP, for a total of 8 targets (Section 4.1).
- Target image scale: A total of 100 images randomly selected from the MS COCO 2017 and Open Images validation sets (Section 4.1).
- Attack budget: Maximum number of queries 4,000; ϵ takes four levels: 8/16/24/32 (Section 4.2).
- Ablation coverage: Number of collected images (100/200/500) and four collection configurations (including ImageNet, YOLOv8, and GCP API collection) (Table 2, Table 3).
- Information not reported: The paper does not report the number of repetitions per condition, statistical significance tests, specific versions or weights of each model, or human evaluation of the visibility of perturbations within the ϵ ball.
Summarize the main content of the paper
The authors propose a black-box latency attack, "steal now, attack later," which pre-collects objects using public data to create ghost targets, at a stated cost of less than 1 dollar each time.
A paper on black-box latency attacks against object detection, which the authors state is the first work to study the feasibility of this setting.
- Problem to solve: detectors internally filter low-confidence objects, making their information invisible, so under black-box conditions it is difficult to create ghost objects to slow down inference; the authors study whether an attack is feasible in this case and at what cost.
- Method highlights: drawing on "steal now, decrypt later", candidate objects are first collected from public datasets (MS COCO, Open Images, etc.) via a local private model to build a library; during the attack, a position-centric algorithm places patches on a grid (obtaining all grid information in one query), then color manipulation projects the perturbation back into the L-inf ϵ ball, and an object increment greater than 20 is judged successful.
- Main results (Table 1): at ϵ=32, YOLOv8 has the highest ASR (81% collected from MS COCO, 83% collected from Open Images), FCOS is 49%/52%; SSD300 and Azure have ASR of 0% at all ϵ, and GCP vision API is at most 18%.
- Ablation (Tables 2, 3): increasing collected images from 100 to 500 raises ASR only slightly (YOLOv8 81%→84%); collecting patches with ImageNet, YOLOv8, or GCP API has little effect on ASR.
- Cost (Section 4.4): the authors estimate that locally deploying one model and collecting about 500 images costs no more than 3 USD in total GPU rental, and the abstract states the average cost per attack is less than 1 USD.
- Authors' conclusion: the authors consider locally deploying a private model the most economical option, that the attack cost is affordable, and that this may prompt attackers to invest in improving algorithms; they also acknowledge that the attack is size-variant and weaker than white-box, and hint at three possible defenses (not evaluated): multi-scale inference, context inconsistency detection, and image quality assessment.