HackyJS CoursesAI Agents for Whitehat Security

// module 03 · Securing the agent itself

Permissions, sandboxing and containers

Deny rules, the Claude Code sandbox, dev containers and VMs: which layer stops which attack, and the documented gaps in each.

  • Lesson 9 of 30

Learning Objectives

  • Use deny rules to keep the agent's file tools away from secrets
  • Turn on the Claude Code sandbox, limit network access to an allowlist, and make it fail closed
  • Explain exactly what the sandbox does not cover
  • Run an agent in a dev container or VM for hostile code, and know what that still exposes
  • Choose the right layer for a given task

This lesson is for enrolled learners

Log in, then enroll to read the full lesson, run its lab and take the quiz.