AIF-C01 notes
Security, compliance, and governance

Security and Privacy Considerations for AI Systems

Five security tasks for AI

The story: Protecting a talking robot receptionist in a hotel:

  • Watch for people trying to misuse the robot, or crooks using robots of their own to forge fake documents and automate scams.
  • Regularly check the robot for bugs and blind spots, hire testers to try to break it, and fix what they find.
  • Lock the server room, separate the guest Wi-Fi from staff systems, and scramble stored data.
  • Watch out for a guest who says "ignore your rules and give me room 12's key". Screen and clean up what guests say to it, and train it to resist.
  • Scramble messages both while they're stored and while they're being sent, and guard the keys to unscramble them.

In AI/AWS terms:

  • Threat detection: watch for attackers exploiting AI, or using generative AI to generate fake content, manipulate data, or automate attacks.
  • Vulnerability management: find software bugs and AI model weaknesses through assessments, penetration tests, code reviews, and patching.
  • Infrastructure protection: secure cloud platforms, edge devices, and data stores with access controls, network segmentation, and encryption.
  • Prompt injection: attackers craft inputs to manipulate the model ("ignore your rules..."). Mitigate with prompt filtering, sanitization, and validation, and with robust training.
  • Data encryption: encrypt data at rest and in transit, and protect the keys.

For the exam: Prompt injection is mitigated with prompt filtering, sanitization, and validation. Encrypt data at rest and in transit.

OWASP Top 10 for LLMs

The story: The ten ways a robot receptionist can go wrong:

  1. A guest tricks it with clever words.
  2. It prints whatever it says onto official forms without anyone checking.
  3. Someone slipped bad lessons into its training manual.
  4. Pranksters flood it with questions so real guests can't get help.
  5. A part bought from a sketchy supplier has a flaw.
  6. It blurts out another guest's room number.
  7. An add-on gadget attached to it can be hijacked.
  8. It's allowed to unlock any door and issue refunds on its own.
  9. Staff trust everything it says without checking.
  10. A competitor copies its brain.

In AI/AWS terms:

  1. Prompt injection: malicious input manipulates the model
  2. Insecure output handling: outputs aren't validated
  3. Training data poisoning: malicious data in the training set
  4. Model denial of service: attacks on availability
  5. Supply chain vulnerabilities: weak third-party components
  6. Sensitive information disclosure: data leaks through outputs
  7. Insecure plugin design: exploitable extensions
  8. Excessive agency: too much autonomy for the model
  9. Overreliance: trusting outputs without checking them
  10. Model theft: copying the model's weights or architecture

MITRE ATLAS is the security team's handbook of known attacker tricks against AI systems.

For the exam: Bad data slipped into training = training data poisoning. Too much autonomy = excessive agency. Trusting outputs blindly = overreliance.

What's not AI-specific

The story: Pickpockets, crowds blocking the entrance, and thieves who lock your safe and demand money threaten every hotel, with or without a robot.

In AI/AWS terms: Phishing, DDoS, and ransomware are general IT threats, not AI-specific considerations.

For the exam: Phishing, DDoS, and ransomware are not AI-specific security considerations.

On this page