TL;DR
AttackPilot is an autonomous, LLM-powered multi-agent framework designed to automate privacy and security risk assessments of machine learning services via inference attacks. By utilizing task-specific action spaces and a split controller-executor architecture, it achieves a 100% task completion rate and near-expert attack performance at a fraction of the cost (~$0.63 per run), enabling non-experts to audit ML models effectively.
What Problem Does This Paper Address?
Evaluating the security and privacy risks of deployed machine learning models usually involves simulating inference attacks (e.g., checking if training data leaks or if the model can be stolen). However, executing these attacks effectively requires highly specialized domain expertise to navigate a massive combinatorial search space of shadow datasets, model architectures, and hyperparameters.
Non-expert service providers, third-party auditors, and regulators often lack this expertise. While general-purpose LLM agents exist, they frequently fail at complex ML tasks due to bad planning, context loss, and hallucinations when confronted with verbose code execution logs.
Methods
The authors introduce AttackPilot, a specialized multi-agent framework consisting of two primary components:
- ControllerAgent: Acts as the orchestrator, determining which attacks are feasible based on the target service's basic description and managing the lifecycle of the execution agents.
- AttackAgent: Executes specific attacks concurrently within a structured environment.
Instead of relying on general file-writing or terminal commands, AttackPilot uses a task-specific action space (e.g., Choose Shadow Dataset, Set Parameters) backed by empirical, step-by-step guidelines to keep the agents on track. The environment provides reusable resources like Linux shells, starter scripts for common attacks, and pre-loaded datasets/models.
Datasets
The framework was evaluated using five diverse, standard datasets to train 20 distinct target models across four architectures (Xception, ResNet18, ResNet50, and SimpleCNN):
- CIFAR10 & STL10: Standard image classification benchmarks.
- CelebA, UTKFace, & AFAD: Facial attribute, race, and age prediction datasets used to test more complex multi-attribute and sensitive attribute leakages.
Key Insights and Ideas
- Specialization Beats Generalization: General ML agents (like MLAgentBench) fail because their action spaces are too broad, leading them down debugging rabbit holes. Constraining the agent to task-specific actions (like selecting a semantically similar dataset) dramatically improves reliability.
- The Power of Memory Isolation: Splitting the task into a Controller and independent AttackAgents prevents the "long memory" problem where an LLM forgets its original instructions due to verbose error logs during debugging loops.
- Outperforming Humans via Hyperparameters: In model-stealing scenarios, AttackPilot actually beat human experts because its guidelines systematically pushed it to select more powerful shadow architectures and larger training configurations than standard defaults.
Key Results
- 100% Completion Rate: Powered by GPT-4o, AttackPilot successfully completed all risk assessment tasks across all 20 target services, compared to just 26.3% for the baseline MLAgentBench framework.
- Near-Expert Performance: AttackPilot's attack accuracy was remarkably close to a human expert using the state-of-the-art ML-Doctor framework—trailing by only 1.0% in membership inference and 2.4% in attribute inference, while outperforming humans by 2.8% in model stealing.
- Highly Cost-Effective: The average API token cost per full assessment run was only $0.627, taking about 17.4 minutes on average.
Limitations and Future Work
- The current implementation focuses primarily on vision models and standard black-box inference attacks; it has not yet been extended to evaluate Large Language Models (LLMs) as target services.
- While it showed promise adapting to basic query limits using importance-based sampling, more work is needed to handle complex, dynamic model-level defenses (like adversarial training or differential privacy) seamlessly.
- The human evaluation was conducted by the authors themselves; future work should include user studies with actual non-expert practitioners to evaluate the readability and utility of the generated risk reports.
Summary updated