Skip to content

Security and machine learning in the real worldSecurity and Machine Learning in the Real World

arXiv· arXiv:2007.07205· Ivan Evtimov, Weidong Cui, Ece Kamar, Emre Kiciman, Tadayoshi Kohno, Jerry LiUniversity of Washington; Microsoft ResearchIndexed by this site · 27 days ago· Originally publishedOpinion

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

Based on experience evaluating the security of a large-scale deployed ML system, the authors argue for reframing adversarial machine learning research from a systems security perspective and offer short-term mitigation recommendations.

Questions
Most adversarial example research targets isolated models and ℓp-bounded perturbations; the authors argue that its assumptions are often violated in real deployments, and that algorithmic defenses have not substantially improved the security of real systems.
Methods
Based on experience from a full-access security evaluation of a large-scale deployed ML product, the authors proceed along two axes: reframing adversarial ML research using the threat modeling and work factor principles of systems security, and discussing how four practices—input sanitization, security testing, updates, and vulnerability sharing—can be adapted for ML.
Experiments and results
The paper has no experiments. The authors report observations from the evaluation: vulnerabilities often arise from the compositional logic of multiple model outputs; attackers rarely succeed on the first attempt; physical adversarial examples have high variance across video frames.
Limitations and future work
The authors state that the recommendations are not exhaustive; input sanitization datasets are small (e.g., ASVspoof 2017 has 18,000 entries); public ML models facilitate attacks, and updates are hampered by system dependencies; the paper uses no datasets and conducts no experiments.
AI summaryDrawing on security experience from evaluating a large-scale deployed machine learning software product, the researchers argue for expanding the discussion of adversarial example vulnerabilities from isolated neural network models to a systems security perspective. The paper describes new challenges in implementing systems security best practices in software containing machine learning components, offers short-term mitigation recommendations for practitioners deploying machine learning modules, and outlines new research directions for machine learning attacks and defenses.

Drawing on security experience from evaluating a large-scale deployed machine learning software product, the researchers argue for expanding the discussion of adversarial example vulnerabilities from isolated neural network models to a systems security perspective. The paper describes new challenges in implementing systems security best practices in software containing machine learning components, offers short-term mitigation recommendations for practitioners deploying machine learning modules, and outlines new research directions for machine learning attacks and defenses.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors argue that adversarial ML research is confined to isolated models and the ℓp perturbation assumption, and needs to shift to a systems security perspective.

    Core problem: adversarial machine learning research mostly targets isolated models and ℓp-bounded perturbations, assumptions often violated in real deployments, so algorithmic defenses have not substantially improved the security of real ML systems.

    • Scenario and importance: ML is being deployed in systems of social and commercial significance, facing adversaries who intentionally cause unintended behavior; the authors state that trustworthy AI requires systems that can withstand adversaries.
    • Shortcomings of existing research: The authors state that most work studies standalone neural networks and assumes adversaries can only make small pixel modifications; these assumptions are often violated in real deployments, so known defenses (whether or not broken) cannot provide guarantees against the most likely attacks on deployed systems.
    • Core observation: Based on experience from a full-access security evaluation of a deployed ML product with millions of users, the authors believe that generating adversarial examples is not the attacker's only means, and that simpler attacks are currently more likely to occur and are equally hard to defend against.
    • What the paper proposes: Recommendations organized along two axes—reframing adversarial ML research using systems security principles (threat modeling, work factor analysis); adapting systems security practices (input sanitization, security testing, updates, vulnerability knowledge sharing) for ML, with short-term mitigation recommendations and research directions.
    • Empirical basis: The analysis was conducted by a research team with expertise in AI security and robustness, ML theory, large-scale system reliability, and systems security; the paper states that the recommendations are not exhaustive.
  2. What related research exists?

    Related work falls into two categories: single-model attack and defense research, and systematization and critique of threat models in the attack and defense literature.

    Single-model attack and defense research

    • Origins of adversarial examples and the standard threat model: Szegedy et al. [2013] found that small perturbations can drastically change vision model outputs; the gradient optimization method of Carlini and Wagner [2017b] defeated the defenses of the time, thereby forming the "standard" threat model—measuring robustness by robust accuracy (the proportion of correct classifications under perturbations within ε distance).
    • Robustification methods: Madry et al. [2017], Lecuyer et al. [2019], and Wong and Kolter [2017] proposed promising defenses within this threat model.
    • Physical and cross-modal attacks: Sharif et al. [2016] used adversarial eyeglass frames to mislead face recognition; Eykholt et al. [2018] used stickers to attack road sign recognition; Cao et al. [2019] attacked LiDAR depth networks; Carlini and Wagner [2018] attacked speech transcription; Gleave et al. [2019] attacked the input state space of reinforcement learning.

    Systematization and critique of threat models

    • Intersection of security and ML: Barreno et al. [2010] early studied the interaction between ML and security; Papernot et al. [2018] first systematized the deep learning security and privacy literature; Papernot [2018] used the 10 security principles of Saltzer and Schroeder [1975] to analyze how ML violates them. The authors state that some findings overlap with theirs, but this paper observes new challenges not yet discussed.
    • Gilmer et al. [2018]: critiqued the "perturbation literature," arguing that most motivating scenarios do not apply to the settings studied and that no realistic scenario requires imperceptible adversarial examples. The authors state that their own experience evaluating deployed systems corroborates this observation, but this paper's challenges are not limited to adversarial patches, and it concretizes and elaborates the solutions in more detail.

    Software engineering perspective

    • Sculley et al. [2014]: pointed out from a software engineering rather than security perspective that ML breaks software isolation, introduces costly data dependencies, and encourages "spaghetti" code; the authors state that some of these observations also apply to ML system security.

    Positioning

    The authors state that this paper provides a new perspective based on experience evaluating the security of a deployed end-to-end system: adversarial inputs are not limited to adversarial examples, and the challenges and solutions proposed are broader and more concrete than those of Gilmer et al. [2018].

  3. How does the paper address this problem?

    The authors proceed along two axes: reframing adversarial ML using threat modeling and work factor principles, and adapting four categories of systems security practice to ML.

    This is a position paper based on empirical analysis, with no algorithms or experimental methods. Based on full-access evaluation experience with one large-scale deployed ML system, the authors organize observations and recommendations along two axes.

    Reframing Adversarial ML Through a Systems Security Lens (Section 3)

    • Threat modeling: The authors argue for drawing on systems security: first think clearly about who might misuse the system, what capabilities they have, how they would carry it out, and how large the overall risk is, and decide the direction of defense investment accordingly.
    • Work factor analysis: The goal is not perfect security but making attackers bear a cost disproportionate to the defender's; ML systems should be designed so that an attacker must expend excessive effort to overcome a small defensive investment.

    End-to-End ML Security (3.1)

    • Incorporate system-level interactions into the threat model: In full-access attack evaluations, the authors found that vulnerabilities are often caused by the way program logic composes the outputs of multiple ML models, and that improving the accuracy of individual components alone cannot fix this; when one component fails to block invalid input, downstream models work outside the valid operating region, and under adversarial input this can lead to the entire system being compromised.
    • System-level defenses raise the work factor: The authors observed that attackers rarely succeed on the first attempt (even with knowledge of all components and model parameters), and recommend that the system stop feeding data to the model early and hide its response when it receives multiple "erroneous" inputs; they cite Chen et al. [2019]'s gradient-estimation query detection for cloud ML APIs as an example of such a scheme.

    Robust Input Modalities (3.2)

    • Input generation methods that raise attack cost: The authors observed that in most systems attackers cannot directly replace pixel input and can only project fake objects (Nassi et al. [2019]) or create physical adversarial objects, which costs more; adversarial objects for 3D vision are more conspicuous and harder to fabricate.
    • Temporal inconsistency as an attack signal: The authors observed that physical adversarial examples under video input have high prediction variance across frames, with some frames close to the attack target and in some frames the attack failing, and recommend using temporal inconsistency to detect ongoing attacks; they also suggest that combining multiple orthogonal input modalities may raise attack cost.

    Adaptive Defenses (3.3)

    • Problems with static benchmarks: The authors argue that benchmarks targeting robust accuracy correspond to a static threat model, and that high-scoring defenses are continually broken by adversaries who understand the mechanism (Carlini and Wagner [2017b,a], Athalye et al. [2018], Tramer et al. [2020]); moreover, adversarial examples do not cover all attack capabilities, and attackers can find out-of-distribution inputs, leading to "whack-a-mole" catch-up.
    • Directions to pursue: The authors affirm that Brown et al. [2018]'s "unrestricted adversarial examples" competition is a first step, and call for exploring methods such as simulation or game theory to programmatically reason about adaptive adversarial input.

    Adapting Four Categories of Security Practice (Section 4)

    • Input sanitization (4.1): Invalid or adversarial input should be rejected or ignored (e.g., autonomous driving should not treat a projected road sign as a real object); the authors found that existing sanitization methods are more ad-hoc than the models themselves, that input validity is often undefined, and that the relevant datasets are too small—the speech anti-spoofing benchmark ASVspoof 2017 has only 18,000 utterances, whereas the transcription dataset has over 65,000 (Kinnunen et al. [2017], Warden [2018]).
    • Security evaluation and testing (4.2): Disclosing model details in ML encourages stronger attacks (white-box backpropagation is the most efficient way to generate adversarial examples), conflicting with the traditional principle that "disclosure promotes security"; private auditing is constrained by model complexity, and the authors affirm Pei et al. [2017]'s "neuron coverage" testing framework and subsequent work.
    • Updates (4.3): Model updates are hampered by system dependencies (e.g., code in the pipeline depends on the old model's output distribution, requiring old and new models to run in parallel), so vulnerabilities persist for a long time; the authors recommend keeping the model unchanged and guarding it with peripheral defense algorithms so that "hot" patches can be deployed quickly.
    • Sharing vulnerability knowledge (4.4): The authors propose establishing a public database of ML failure modes similar to CVE, so that practitioners can share model failure cases and turn "unknown unknowns" into "known unknowns."
  4. What experiments did the paper conduct?

    The paper has no experiments; it only reports qualitative observations from a full-access security evaluation and cites two dataset size figures.

    Experimental Setup

    • No controlled experiments: The paper reports no benchmarks, comparative experiments, or quantitative evaluations; all content is based on the authors' team's full-access security evaluation experience with one deployed ML system.
    • Evaluation target: A large-scale deployed ML software product with millions of users at the authors' institution; the paper does not state the specific system name, model architecture, or task.
    • Evaluation method: A full-access exploration, including developing attacks, conducted by a research team with backgrounds in AI security and robustness, ML theory, large-scale system reliability, and systems security.
    • Paper statement: The Broader Impact section explicitly states that this work did not use any datasets.

    Main Results (Empirical Observations)

    The paper has no results tables; the following are qualitative observations reported by the authors in Sections 3 and 4:

    • Compositional logic vulnerabilities: The authors found that vulnerabilities are often caused by the way program logic composes the outputs of multiple ML models; when one model fails to block invalid input, downstream models process data outside the valid operating region, and under adversarial input this can lead to the entire system being compromised (3.1).
    • Attacks rarely succeed on the first try: The authors observed that even when an attacker has full knowledge of every software component and the model architecture, parameters, and configuration, they rarely compromise the system on the first attempt (3.1).
    • Temporal instability of physical adversarial examples: With video input, model predictions have high variance across frames; some frames are close to the attack target, while in some frames the attack property is lost (3.2).
    • Sanitization methods are weak: The authors found that methods for ensuring only valid input reaches the model are less robust and more ad-hoc than the models themselves (4.1).
    • Updates are difficult: Code in the pipeline depends on the old model's output distribution, and old and new models must run in parallel until sufficient new data is available, so vulnerabilities persist for a long time (4.3).

    Quantitative Numbers Cited

    • Dataset size comparison: The speech anti-spoofing benchmark ASVspoof 2017 contains 18,000 utterances (Kinnunen et al. [2017]), while the transcription task dataset has over 65,000 (Warden [2018]); the authors use this to argue that adversarial input datasets may be too small (4.1).

    Other Ablations and Analyses

    None. The paper reports no ablations, parameter analyses, or statistical tests.

  5. What are some points that can be further explored?

    The authors list five open research questions and state that their recommendations are not exhaustive; the paper has no experiments and used no datasets.

    Limitations and future directions noted by the authors

    • Recommendations not exhaustive: The authors state that these recommendations are not exhaustive but believe they can help other researchers pursue safer ML systems (Section 1).
    • Input sanitization mechanisms: Mechanisms are needed that can reject invalid and adversarial inputs so that models do not process them; open research questions include whether inputs can be generated that fool both the sanitization model and the task model, whether multi-model collaboration raises attack costs, and which route is better—anomaly detection or input sanitization (4.1, Section 5).
    • Security testing methods: Methods are needed that make it easy to check ML models for security flaws during testing (Section 5).
    • Publicly releasable safe models: Models are needed that can be released safely and that do not increase attacker capabilities at excessive cost (4.2, Section 5).
    • Update mechanisms: Update mechanisms are needed that preserve "good" functionality and output distributions, support rapid updates to vulnerable models, and remain backward compatible with old outputs (4.3, Section 5).
    • Failure mode database: A standardized database of common failure cases needs to be established (4.4, Section 5).
    • Exploration of adaptive adversarial inputs: The authors call for research on programmatically exploring and reasoning about adaptive adversarial inputs using new methods such as simulation or game theory (3.3).

    Scope of experimental coverage

    • The paper conducts no controlled experiments or quantitative evaluations; all content is based on experience from a full-access security evaluation of one deployed ML system (Section 1).
    • The evaluated system is an ML product with millions of users at the authors' institution; the paper does not state the system's name, task, number of models, or architecture.
    • The paper explicitly states that no datasets were used (Broader Impact).
    • The paper does not report quantitative information such as the duration of the evaluation, the number of vulnerabilities found, or the number of attack attempts.
    • The defense evaluations discussed in the paper only cite others' work (e.g., query detection by Chen et al. [2019], neuron coverage testing by Pei et al. [2017]); the authors did not implement or evaluate them themselves.
  6. Summarize the main content of the paper

    Based on experience evaluating the security of a deployed system, the authors argue for reframing adversarial ML research using systems security principles and offer short-term mitigation recommendations.

    This is a position paper: based on experience from a full-access security evaluation of a deployed ML product with millions of users, the authors argue that adversarial machine learning research should expand from single-model algorithmic attack and defense to a systems security perspective.

    • Problem to be solved: The authors believe that mainstream adversarial example research assumes attackers can only make small ℓp-bounded perturbations, an assumption often violated in real deployments, so known defenses cannot provide guarantees against the most likely real-world attacks.
    • Core claim: The design of secure ML systems should be treated directly as a systems security problem, using threat modeling and work factor analysis so that attack costs are disproportionate to defense costs.
    • Empirical observations: Vulnerabilities often arise from program logic that combines the outputs of multiple models rather than from single-model accuracy; attackers rarely succeed on the first attempt even with full knowledge of model details; physical adversarial examples behave unstably across video frames.
    • Short-term mitigation recommendations (Section 5): threat model against adaptive attackers who know the defenses; analyze how ML vulnerabilities propagate into system-level vulnerabilities; use multiple mutually checking models to raise attack costs; introduce robust input modalities that make adversarial inputs themselves more expensive.
    • Long-term research directions: input rejection mechanisms, ML security testing methods, models that can be released safely, update mechanisms that preserve output distributions, and a public CVE-like database of failure modes.
    • Authors' conclusion: The authors believe these changes would let us use ML's capabilities better and more reliably, while acknowledging that the recommendations are not exhaustive and that these principles could also be used to harden malicious ML systems (Broader Impact).
Read originalarxiv.org