SnatchML: Hijacking ML Models Without Training Access

The widespread deployment of Machine Learning (ML) models has been accompanied by the emergence of various attacks that threaten their trustworthiness and raise ethical and societal concerns. One such attack is model hijacking, where an adversary seeks to repurpose a victim model to perform a different task than originally intended. Model hijacking can cause significant accountability and security risks since the owner of a hijacked model can be framed for having their model offer illegal or unethical services. Prior works consider model hijacking as a training time attack, whereby an adversary requires full access to the ML model training. In this paper, we consider a stronger threat model for an inference-time hijacking attack, where the adversary has no access to the training phase of the victim model. Our intuition is that ML models, which are typically over-parameterized, might have the capacity to (unintentionally) learn more than the intended task they are trained for. We propose SnatchML, a new training-free model hijacking attack, that leverages the extra capacity learnt by the victim model to infer different tasks that can be semantically related or unrelated to the original one. Our results on models deployed on AWS Sagemaker showed that SnatchML can deliver high accuracy on hijacking tasks. Interestingly, while all previous approaches are limited by the number of classes in the benign task, SnatchML can hijack models for tasks that contain more classes than the original. We explore different methods to mitigate this risk; We propose meta-unlearning, which is designed to help the model unlearn a potentially malicious task while training for the original task. We also provide insights on over-parametrization as a possible inherent factor that facilitates model hijacking, and accordingly, we propose a compression-based countermeasure to counteract this attack. We believe this work offers a previously overlooked perspective on model hijacking attacks, presenting a stronger threat model and higher applicability in real-world contexts. Our code is available at https://github.com/ihsenLab/SnatchML.

Authors

Institutions

Publication Details

Published
2025-04-09
DOI
https://doi.org/10.1109/satml64287.2025.00013
Primary Topic
Machine Learning and Data Classification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SnatchML: Hijacking ML Models Without Training Access

Ihsen Alouani, Ioan Marius Bilasco, Mahmoud Ghorbel, Halima Bouzidi
Machine Learning and Data Classification
article

SnatchML: Hijacking ML Models Without Training Access

Ihsen Alouani, Ioan Marius Bilasco, Mahmoud Ghorbel, Halima Bouzidi
article en

Abstract

The widespread deployment of Machine Learning (ML) models has been accompanied by the emergence of various attacks that threaten their trustworthiness and raise ethical and societal concerns. One such attack is model hijacking, where an adversary seeks to repurpose a victim model to perform a different task than originally intended. Model hijacking can cause significant accountability and security risks since the owner of a hijacked model can be framed for having their model offer illegal or unethical services. Prior works consider model hijacking as a training time attack, whereby an adversary requires full access to the ML model training. In this paper, we consider a stronger threat model for an inference-time hijacking attack, where the adversary has no access to the training phase of the victim model. Our intuition is that ML models, which are typically over-parameterized, might have the capacity to (unintentionally) learn more than the intended task they are trained for. We propose SnatchML, a new training-free model hijacking attack, that leverages the extra capacity learnt by the victim model to infer different tasks that can be semantically related or unrelated to the original one. Our results on models deployed on AWS Sagemaker showed that SnatchML can deliver high accuracy on hijacking tasks. Interestingly, while all previous approaches are limited by the number of classes in the benign task, SnatchML can hijack models for tasks that contain more classes than the original. We explore different methods to mitigate this risk; We propose meta-unlearning, which is designed to help the model unlearn a potentially malicious task while training for the original task. We also provide insights on over-parametrization as a possible inherent factor that facilitates model hijacking, and accordingly, we propose a compression-based countermeasure to counteract this attack. We believe this work offers a previously overlooked perspective on model hijacking attacks, presenting a stronger threat model and higher applicability in real-world contexts. Our code is available at https://github.com/ihsenLab/SnatchML.

Centre National de la Recherche Scientifique (FR), University of California, Irvine (US), Université de Lille (FR), Centre de Recherche en Informatique (FR), Institut d'Electronique, de Microélectronique et de Nanotechnologie (FR), Dublin City University (IE), Université Polytechnique Hauts-de-France (FR), École Centrale de Lille (FR)
Gender equality
Openalex Percentile: Top 99%
Machine Learning and Data Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.