Back to Skills

network-security-setup

Configure Claude Code sandbox network isolation with trusted domains, custom access policies, and environment variables

133stars17forksUpdated 3/7/2026

Security Assessment

Medium Risk(65/100)

Detected risks:

Secret Exposure([SKILL.md] PRIVATE_KEY)
Sensitive File Access([SKILL.md] .env)
Security Score65/100

About network-security-setup

The Network Security Setup skill provides a comprehensive solution for configuring secure network access within the Claude Code sandbox environment. It addresses the challenge of safely executing AI code while preventing unauthorized or potentially harmful network interactions. By offering flexible network isolation policies, this skill helps organizations and developers maintain strict control over which external resources the sandbox can access, mitigating risks such as data exfiltration, prompt injection attacks, and exposure to unsafe package registries or APIs.

This skill includes multiple network isolation modes, including Trusted Network Access, No Network Access, and Custom Access, allowing users to tailor connectivity based on project requirements. It supports the creation of whitelists for trusted domains, secure handling of environment variables and secrets, and integration with corporate proxies or internal registries. Default trusted domains cover popular package managers, container registries, source control platforms, CDNs, and development tools, ensuring smooth functionality while maintaining security. Users can define custom domains and proxies for enterprise-specific setups, combining internal resources with selective public access where needed.

Ideal for developers, IT security teams, and enterprise administrators, this skill is suited for scenarios ranging from general development to highly sensitive projects requiring offline operation. Open-source contributors and enterprise teams can leverage it to enforce zero-trust network architectures, securely manage credentials, and configure access rules that align with corporate policies. Whether for secure experimentation, regulated environments, or internal infrastructure management, the skill ensures safe, controlled, and efficient network interactions within AI code execution environments.

FAQ

How do I enable Trusted Network Access in Claude Code sandbox?

Set the network mode to 'trusted', which restricts access to a predefined list of known-safe domains provided by the skill. This is the recommended default for general development.

Can I configure my own internal registries or proxies?

Yes, the Custom Access mode allows you to define your own trusted domains and configure custom HTTP/HTTPS proxies, including no-proxy exceptions for internal resources.

What happens if I choose No Network Access mode?

The sandbox is completely isolated from external networks, making it suitable for offline development or projects requiring maximum security.

Are there default domains already approved for use?

Yes, the skill includes a list of default trusted domains covering package registries, container registries, source control platforms, CDNs, and common development tools.

Which users or projects benefit most from this skill?

Enterprise administrators, IT security teams, and developers working on sensitive or regulated projects benefit most. It is also useful for open-source contributors needing secure sandboxed environments.

All Files

2 files
metadata.json0.5 KB
View
SKILL.md10.5 KB
View

Install network-security-setup

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill