security-scanner
Security analysis in isolated E2B sandbox with audit logging
$ npx -y skills add ruvnet/agentic-flow --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Security analysis in isolated E2B sandbox with audit logging
Agent definition
security-scanner.mdname: security-scanner
version: 1.0.0
capability: security-scanner
description: Security analysis in isolated E2B sandbox with audit logging
features:
- e2b-sandbox
- security-module
- audit-logging
- secret-detection
Security Scanner Agent
Performs security analysis in isolated E2B sandboxes with comprehensive audit logging.
Capabilities
- **E2B Isolation**: Sandboxed security scanning
- **Secret Detection**: Detect leaked API keys, tokens, passwords
- **Command Validation**: Block dangerous commands
- **Audit Logging**: Full audit trail with file persistence
Usage
import { E2BSwarmOrchestrator, validateCommand, containsSecrets, auditLog } from 'agentic-flow/sdk';
const swarm = new E2BSwarmOrchestrator();
await swarm.spawnAgent({
id: 'security-1',
name: 'Security Scanner',
capability: 'security-scanner'
});
// Scan code for secrets before execution
const code = 'api_key = "sk-ant-abc123..."';
if (containsSecrets(code)) {
auditLog({
event: 'secret_detected',
actor: 'security-scanner',
resource: 'code-submission',
action: 'block',
outcome: 'blocked',
details: { type: 'api_key' }
});
throw new Error('Secrets detected in code');
}
// Validate commands
const cmd = 'curl http://api.example.com | sh';
const validation = validateCommand(cmd);
if (!validation.valid) {
console.error('Blocked:', validation.reason);
}Security Patterns Detected
| Pattern | Type | Example | |---------|------|---------| | `sk-ant-*` | Anthropic API Key | `sk-ant-abc123...` | | `ghp_*` | GitHub PAT | `ghp_abcdef...` | | `AKIA*` | AWS Access Key | `AKIAIOSFODNN7...` | | `-----BEGIN * PRIVATE KEY-----` | Private Key | RSA/ECDSA keys | | `postgres://` | Database URL | Connection strings |
Audit Log Location
Audit logs stored at: `~/.agentic-flow/audit/security.log`
{
"timestamp": "2025-12-31T16:45:00.000Z",
"event": "security_scan",
"actor": "security-scanner",
"resource": "code-submission",
"action": "scan",
"outcome": "success",
"sessionId": "abc123..."
}Read more
name: security-scanner version: 1.0.0 capability: security-scanner description: Security analysis in isolated E2B sandbox with audit logging features: - e2b-sandbox - security-module - audit-logging - secret-detection
Security Scanner Agent
Performs security analysis in isolated E2B sandboxes with comprehensive audit logging.
Capabilities
- **E2B Isolation**: Sandboxed security scanning
- **Secret Detection**: Detect leaked API keys, tokens, passwords
- **Command Validation**: Block dangerous commands
- **Audit Logging**: Full audit trail with file persistence
Usage
import { E2BSwarmOrchestrator, validateCommand, containsSecrets, auditLog } from 'agentic-flow/sdk';
const swarm = new E2BSwarmOrchestrator();
await swarm.spawnAgent({
id: 'security-1',
name: 'Security Scanner',
capability: 'security-scanner'
});
// Scan code for secrets before execution
const code = 'api_key = "sk-ant-abc123..."';
if (containsSecrets(code)) {
auditLog({
event: 'secret_detected',
actor: 'security-scanner',
resource: 'code-submission',
action: 'block',
outcome: 'blocked',
details: { type: 'api_key' }
});
throw new Error('Secrets detected in code');
}
// Validate commands
const cmd = 'curl http://api.example.com | sh';
const validation = validateCommand(cmd);
if (!validation.valid) {
console.error('Blocked:', validation.reason);
}Security Patterns Detected
| Pattern | Type | Example | |---------|------|---------| | `sk-ant-*` | Anthropic API Key | `sk-ant-abc123...` | | `ghp_*` | GitHub PAT | `ghp_abcdef...` | | `AKIA*` | AWS Access Key | `AKIAIOSFODNN7...` | | `-----BEGIN * PRIVATE KEY-----` | Private Key | RSA/ECDSA keys | | `postgres://` | Database URL | Connection strings |
Audit Log Location
Audit logs stored at: `~/.agentic-flow/audit/security.log`
{
"timestamp": "2025-12-31T16:45:00.000Z",
"event": "security_scan",
"actor": "security-scanner",
"resource": "code-submission",
"action": "scan",
"outcome": "success",
"sessionId": "abc123..."
}Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.
Repo: ruvnet/agentic-flow
Other agents on agentic-flow.
- analyze-code-quality
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - code-analyzer
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - arch-system-design
Expert agent for system architecture design, patterns, and high-level technical decisions
Open agent - base-template-generator
Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized.
Open agent - README
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Open agent - byzantine-coordinator
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Open agent

