
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@declaw/sdk
Advanced tools
Secure runtime for AI agents - isolated sandboxes with network isolation, PII scanning, prompt injection defense, and egress filtering.
Secure runtime for AI agents. Spin up isolated sandboxes in milliseconds with built-in guardrails — PII scanning, prompt injection defense, network isolation, and egress filtering.
npm install @declaw/sdk
import { Sandbox } from '@declaw/sdk';
const sandbox = await Sandbox.create({
apiKey: 'your-api-key',
template: 'base',
timeout: 60,
});
// Run commands
const result = await sandbox.commands.run('echo "Hello from a secure sandbox"');
console.log(result.stdout);
// Read/write files
await sandbox.files.write('/tmp/hello.txt', 'Hello World');
const content = await sandbox.files.read('/tmp/hello.txt');
// Clean up
await sandbox.kill();
AI agents need to execute code, call APIs, and interact with the world. Declaw gives them a secure sandbox to do it — with built-in guardrails that protect your users and infrastructure.
Every outbound request from the sandbox passes through a configurable security pipeline.
Detect and redact sensitive data before it leaves the sandbox.
const sandbox = await Sandbox.create({
security: SecurityPolicy.from({
pii: {
enabled: true,
types: ['ssn', 'credit_card', 'email', 'phone', 'api_key'],
action: 'redact',
},
}),
});
Block prompt injection attempts in agent outputs.
const sandbox = await Sandbox.create({
security: SecurityPolicy.from({
injectionDefense: {
enabled: true,
action: 'block',
threshold: 0.85,
},
}),
});
security: SecurityPolicy.from({
toxicity: { enabled: true, action: 'block', threshold: 0.7 },
})
security: SecurityPolicy.from({
codeSecurity: { enabled: true, action: 'log' },
invisibleText: { enabled: true, action: 'block' },
})
// Allow only specific domains
const sandbox = await Sandbox.create({
network: { allowOut: ['api.openai.com', 'huggingface.co'] },
});
// Block all egress
const isolated = await Sandbox.create({
network: { denyOut: ['ALL_TRAFFIC'] },
});
Transform sensitive values in-flight.
security: SecurityPolicy.from({
transformations: [
{ pattern: 'sk-[a-zA-Z0-9]+', replacement: '[API_KEY]', direction: 'egress' },
],
})
All guardrails compose — enable multiple and they run in sequence:
const sandbox = await Sandbox.create({
template: 'ai-agent',
timeout: 300,
network: { allowOut: ['api.openai.com', 'api.anthropic.com'] },
security: SecurityPolicy.from({
pii: { enabled: true, action: 'redact', types: ['ssn', 'credit_card'] },
injectionDefense: { enabled: true, action: 'block' },
toxicity: { enabled: true, action: 'log' },
invisibleText: { enabled: true, action: 'block' },
}),
});
| Template | Description |
|---|---|
base | Minimal Linux |
python | Python 3.12 with pip |
node | Node.js 22 LTS with npm |
code-interpreter | Python with data science libraries |
ai-agent | Python + Node.js + AI/ML tools |
mcp-server | MCP server runtime |
web-dev | Node.js + browser testing |
devops | Docker, Terraform, kubectl |
// Create sandbox
const sandbox = await Sandbox.create({ template, apiKey, timeout, network, security });
// Commands
const result = await sandbox.commands.run('ls -la');
const stream = sandbox.commands.stream('python script.py');
// Files — `path` is the literal absolute path inside the sandbox.
// Files appear at exactly that path — no remapping, no bridge directory.
await sandbox.files.write(path, content);
const data = await sandbox.files.read(path);
const entries = await sandbox.files.list('/');
// PTY (interactive terminal)
const pty = await sandbox.pty.create({ cols: 80, rows: 24 });
// Lifecycle
await sandbox.kill();
Apache-2.0
FAQs
Secure runtime for AI agents - isolated sandboxes with network isolation, PII scanning, prompt injection defense, and egress filtering.
The npm package @declaw/sdk receives a total of 754 weekly downloads. As such, @declaw/sdk popularity was classified as not popular.
We found that @declaw/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.