liveBook · Manning

Security

As explained in Machine Learning System Design

Security is the protection of a system, its models, data, and interfaces from unauthorized access, misuse, or compromise.

Security protects models, data, and interfaces against unauthorized access, misuse, and compromise. The right safeguards depend on where inference runs: backend predictions remain inside an organizational perimeter, while mobile deployment raises model reverse-engineering risks and user-driven jailbreak attempts. section 15.1

Treat security as a serving and deployment concern:

  • Identify the target platform and its exposure before choosing protections. section 15.1
  • Protect sensitive data with secured infrastructure, external-access isolation, and credentials for authentication and authorization. section 15.5.1
  • Include privacy and security in production tradeoffs alongside latency, throughput, scalability, cost, reliability, and flexibility. section 15.6
  • Prefer building when sensitive data cannot be shared with third parties or legal restrictions prohibit outsourcing information security. section 3.2.1

Supermegaretail batch forecasting

A retail forecasting service processes sensitive inventory and sales data in Docker containers orchestrated by AWS Batch on EC2. Scheduled jobs read from S3 and write results back to S3; processing remains on secured AWS infrastructure isolated from external access, with credentials enforcing authentication and authorization. section 15.5.1

How Machine Learning System Design covers it

How deep it goes
Identifies platform risks and practical controls but defers detailed security treatment beyond protocols, isolation, credentials, and deployment tradeoffs.
Examples
Uses mobile model deployment, large language model jailbreaks, and isolated AWS batch forecasting for sensitive retail data.
What you can do after
Operate/configure serving systems with platform-appropriate protections, secured infrastructure, access controls, and explicit security tradeoffs.
How it connects
Connects security with privacy, serving and inference, model reverse engineering, authentication and authorization, and build-versus-buy decisions.

Also explained in

Compare how 28 books explain security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.