@@ -203,6 +203,94 @@ def artprompt(args):
203203 start_spec (spec , args )
204204
205205
206+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
207+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
208+ default = None )])
209+ def dan (args ):
210+ spec = AttackSpecification .create (
211+ 'dan' ,
212+ args .target_model ,
213+ params = vars (args ))
214+ start_spec (spec , args )
215+
216+
217+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
218+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
219+ default = None )])
220+ def encoding (args ):
221+ spec = AttackSpecification .create (
222+ 'encoding' ,
223+ args .target_model ,
224+ params = vars (args ))
225+ start_spec (spec , args )
226+
227+
228+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
229+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
230+ default = None )])
231+ def goodside (args ):
232+ spec = AttackSpecification .create (
233+ 'goodside' ,
234+ args .target_model ,
235+ params = vars (args ))
236+ start_spec (spec , args )
237+
238+
239+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
240+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
241+ default = None )])
242+ def latentinjection (args ):
243+ spec = AttackSpecification .create (
244+ 'latentinjection' ,
245+ args .target_model ,
246+ params = vars (args ))
247+ start_spec (spec , args )
248+
249+
250+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
251+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
252+ default = None )])
253+ def malwaregen (args ):
254+ spec = AttackSpecification .create (
255+ 'malwaregen' ,
256+ args .target_model ,
257+ params = vars (args ))
258+ start_spec (spec , args )
259+
260+
261+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
262+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
263+ default = None )])
264+ def phrasing (args ):
265+ spec = AttackSpecification .create (
266+ 'phrasing' ,
267+ args .target_model ,
268+ params = vars (args ))
269+ start_spec (spec , args )
270+
271+
272+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
273+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
274+ default = None )])
275+ def promptinject (args ):
276+ spec = AttackSpecification .create (
277+ 'promptinject' ,
278+ args .target_model ,
279+ params = vars (args ))
280+ start_spec (spec , args )
281+
282+
283+ @subcommand ([arg ('target_model' , help = 'Name of the target model to attack' ),
284+ arg ('--output_file' , '-o' , help = 'Output file with results' ,
285+ default = None )])
286+ def suffix (args ):
287+ spec = AttackSpecification .create (
288+ 'suffix' ,
289+ args .target_model ,
290+ params = vars (args ))
291+ start_spec (spec , args )
292+
293+
206294@subcommand ([arg ('file' ,
207295 help = 'Path to the JSON file containing the attack specification.' , # noqa: E501
208296 nargs = '?' ),
0 commit comments