SkillAgentSearch skills...

BASES

Code repository for Blackbox Attacks via Surrogate Ensemble Search (BASES), NeurIPS 2022

Install / Use

/learn @CSIPlab/BASES
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BASES: Blackbox Attacks via Surrogate Ensemble Search

Paper | Code | Poster | Slides

Pytorch implementation of Blackbox Attacks via Surrogate Ensemble Search in NeurIPS 2022.

Blackbox Attacks via Surrogate Ensemble Search
Zikui Cai, Chengyu Song, Srikanth V. Krishnamurthy, Amit K. Roy-Chowdhury, M. Salman Asif<br> UC Riverside

In this paper, we propose a novel method for blackbox attacks via surrogate ensemble search (BASES) that can generate highly successful blackbox attacks using an extremely small number of queries. We first define a perturbation machine that generates a perturbed image by minimizing a weighted loss function over a fixed set of surrogate models. To generate an attack for a given victim model, we search over the weights in the loss function using queries generated by the perturbation machine. Since the dimension of the search space is small (same as the number of surrogate models), the search requires a small number of queries.

<center> <img src='doc/framework.png' width='800px'> </center>

Environment

See requirements.txt, some key dependencies are:

  • python==3.8
  • torch==1.11.0

Perform attacks

Classifiers

# Query in a blackbox setting
python query_w_bb.py --n_wb 20 --victim densenet121

# Learn weights in a whitebox setting
python learn_w_wb.py

Google cloud vision API

gcv_images.zip contains randomly selected images and responses from GCV

python gcv_attack.py

Comparison with other methods

Go to comparison folder for more details

Related Skills

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated2mo ago
Forks5

Languages

Python

Security Score

75/100

Audited on Jan 30, 2026

No findings