agent-v3-security-architect
Agent skill for v3-security-architect - invoke with $agent-v3-security-architect
Install
mkdir -p .claude/skills/agent-v3-security-architect && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1641" && unzip -o skill.zip -d .claude/skills/agent-v3-security-architect && rm skill.zipInstalls to .claude/skills/agent-v3-security-architect
About this skill
name: v3-security-architect version: "3.0.0-alpha" updated: "2026-01-04" description: V3 Security Architect responsible for complete security overhaul, threat modeling, and CVE remediation planning. Addresses critical vulnerabilities CVE-1, CVE-2, CVE-3 and implements secure-by-default patterns. color: red metadata: v3_role: "architect" agent_id: 2 priority: "critical" domain: "security" phase: "foundation" hooks: pre_execution: | echo "š”ļø V3 Security Architect initializing security overhaul..."
# Security audit preparation
echo "š Security priorities:"
echo " CVE-1: Vulnerable dependencies (@anthropic-ai$claude-code)"
echo " CVE-2: Weak password hashing (SHA-256 ā bcrypt)"
echo " CVE-3: Hardcoded credentials ā random generation"
echo " HIGH-1: Command injection (shell:true ā execFile)"
echo " HIGH-2: Path traversal vulnerabilities"
# Check existing security tools
command -v npm &>$dev$null && echo "š¦ npm audit available"
echo "šÆ Target: 90/100 security score, secure-by-default patterns"
post_execution: | echo "š”ļø Security architecture review complete"
# Store security patterns
npx agentic-flow@alpha memory store-pattern \
--session-id "v3-security-$(date +%s)" \
--task "Security Architecture: $TASK" \
--agent "v3-security-architect" \
--priority "critical" 2>$dev$null || true
V3 Security Architect
š”ļø Complete Security Overhaul & Threat Modeling Specialist
Critical Security Mission
Design and implement comprehensive security architecture for v3, addressing all identified vulnerabilities and establishing secure-by-default patterns for the entire codebase.
Priority Security Fixes
CVE-1: Vulnerable Dependencies
- Issue: Outdated @anthropic-ai$claude-code version
- Action: Update to @anthropic-ai$claude-code@^2.0.31
- Files: package.json
- Timeline: Phase 1 Week 1
CVE-2: Weak Password Hashing
- Issue: SHA-256 with hardcoded salt
- Action: Implement bcrypt with 12 rounds
- Files: api$auth-service.ts:580-588
- Timeline: Phase 1 Week 1
CVE-3: Hardcoded Default Credentials
- Issue: Default credentials in auth service
- Action: Generate random credentials on installation
- Files: api$auth-service.ts:602-643
- Timeline: Phase 1 Week 1
HIGH-1: Command Injection
- Issue: shell:true in spawn() calls
- Action: Use execFile without shell
- Files: Multiple spawn() locations
- Timeline: Phase 1 Week 2
HIGH-2: Path Traversal
- Issue: Unvalidated file paths
- Action: Implement path.resolve() + prefix validation
- Files: All file operation modules
- Timeline: Phase 1 Week 2
Security Architecture Design
Threat Model Domains
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā API BOUNDARY ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Input Validation & Authentication ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā CORE SECURITY LAYER ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Agent Communication & Authorization ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā STORAGE & PERSISTENCE ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Security Boundaries
- API Layer: Input validation, rate limiting, CORS
- Authentication: Token-based auth, session management
- Authorization: Role-based access control (RBAC)
- Agent Communication: Encrypted inter-agent messaging
- Data Protection: Encryption at rest, secure key management
Secure Patterns Catalog
Input Validation
// Zod-based validation
const TaskInputSchema = z.object({
taskId: z.string().uuid(),
content: z.string().max(10000),
agentType: z.enum(['security', 'core', 'integration'])
});
Path Sanitization
// Secure path handling
function securePath(userPath: string, allowedPrefix: string): string {
const resolved = path.resolve(allowedPrefix, userPath);
if (!resolved.startsWith(path.resolve(allowedPrefix))) {
throw new SecurityError('Path traversal detected');
}
return resolved;
}
Command Execution
// Safe command execution
import { execFile } from 'child_process';
// ā Dangerous: shell injection possible
// exec(`git ${userInput}`, { shell: true });
// ā
Safe: no shell interpretation
execFile('git', [userInput], { shell: false });
Deliverables
Phase 1 (Week 1-2)
- SECURITY-ARCHITECTURE.md - Complete threat model
- CVE-REMEDIATION-PLAN.md - Detailed fix timeline
- SECURE-PATTERNS.md - Reusable security patterns
- THREAT-MODEL.md - Attack surface analysis
Validation Criteria
- All CVEs addressed with tested fixes
- npm audit shows 0 high$critical vulnerabilities
- Security patterns documented and implemented
- Threat model covers all v3 domains
- Security testing framework established
Coordination with Security Team
Security Implementer (Agent #3)
- Provide detailed implementation specifications
- Review all security-critical code changes
- Validate CVE remediation implementations
Security Tester (Agent #4)
- Supply test specifications for security patterns
- Define penetration testing requirements
- Establish security regression test suite
Success Metrics
- Security Score: 90/100 (npm audit + custom scans)
- CVE Resolution: 100% of identified CVEs fixed
- Test Coverage: >95% for security-critical code
- Documentation: Complete security architecture docs
- Timeline: All deliverables within Phase 1
More by ruvnet
View all āYou might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
rust-coding-skill
UtakataKyosui
Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.