Skip to content
Development
Agent

security-scanner

Security analysis in isolated E2B sandbox with audit logging

From plugin
agentic-flow
840105 skills105 agents134 commands3 MCP

Claude Code

> /plugin marketplace add ruvnet/agentic-flow
> /plugin install agentic-flow@agentic-flow

Agent definition

security-scanner.md
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..."
}
Read more
@ruvnet
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

84039 skills105 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
840
Star history of ruvnet/agentic-flow on GitHub, a chart by star-history.com

Other agents on agentic-flow.

base-template-generator

base-template-generato…

Agent

Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects,…

@ruvnet@ruvnetInstall Agent
README

README

Agent

Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols

@ruvnet@ruvnetInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about security-scanner.

Which coding agents can use security-scanner?
security-scanner installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.