-
Notifications
You must be signed in to change notification settings - Fork 8
/
5e437f42-cd5f-400f-b65d-d78821f31c69.yml
37 lines (37 loc) · 1.44 KB
/
5e437f42-cd5f-400f-b65d-d78821f31c69.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- id: 5e437f42-cd5f-400f-b65d-d78821f31c69
name: Build and Attack a Custom CFTarget
description: Creates an interface between a target model and the attacks included in
a framework. This is done by creating a sub-class of counterfit.core.targets.CFTarget,
where the collected target.model_server.prediction_endpoint fact will be used to
specify the target_endpoint. Once the respective target is built, the attack is
executed against the target.
tactic: ml-attack-staging
technique_name: craft-adversarial-data
technique_id: AML.T0043
executors:
- platform: linux
name: sh
command: |
$HOME/venv/cf_venv/bin/python3 build_and_attack_counterfit_target.py \
--endpoint #{target.model_server.prediction_endpoint}
payloads: [
build_and_attack_counterfit_target.py,
kitten.jpg,
persons.jpg,
imagenet_name_to_index.json,
coco_index_to_name.json
]
cleanup: [rm build_and_attack_counterfit_target.py \
kitten.jpg \
persons.jpg \
imagenet_name_to_index.json \
coco_index_to_name.json
]
timeout: 2400 # setting timeout to be 45 minutes; just in case the attack takes a while
requirements:
- module: plugins.stockpile.app.requirements.paw_provenance
relationship_match:
- source: target.model_server.prediction_endpoint
- module: plugins.stockpile.app.requirements.existential
relationship_match:
- source: host.install.counterfit