
项目说明
🛡️ Cyber Claude
AI-Powered Defensi Agent with Guided Workflows
<p align="center">
<img src="docs/images/cyber-claude-demo.png" alt="Cyber Claude Interacti" width="800">
</p>
Perfect for Beginners & Security Professionals
An AI-powered cybersecurity agent built with the Claude Agent SDK, designed exclusively for defensi operations. Features 10 pre-configured workflows for guided security tasks, web application testing, OSINT reconnaissance, network traffic analysis (pcap), system hardening, and AI-powered security analysis.
🎯 NEW: Guided Workflows - Step-by-step security tasks perfect for learning and fast execution!
🔒 Defensi - No exploitation, credential har, or offensi
🤖 AI-Powered - Claude, OpenAI GPT-5.1, Gemini (cloud) or DeepSeek-R1, Gemma (local) for intelligent analysis
🏠 Privacy Option - Run 100% locally with Ollama (no cloud, no API keys, offline capable)
!License
!TypeScript
!Claude
!Tests
!Build
!Co
!
---
🚀 Getting Started (60 seconds!)
Option 1: Cloud Models (Fastest Setup)
Option 2: Local Models (Pri)
First time?
Cloud users: Try the "Quick Security Health Check" workflowLocal users: Start with gemma3-4b for fast responses, upgrade to deepseek-r1-8b for better analysis---
📖 Documentation
User Guides
Complete Workflows & Playbook Guide - Comprehensi to getting the most out of Cyber ClaudeAgent Modes Guide - Detailed guide to using different agent modes effectivelyQuick Start Guide - Fast track to getting startedSecurity Policy - Security reporting and best practicesTechnical Documentation
Technical Architecture - Architecture, de, and implementation detailsProject Structure - Codebase organization and file structureProfessional Enhancements - IOC extraction, MITRE ATT&CK mapping, e preserProject Assessment - Independent security audit and assessment History
Changelog - history and release notesCapabilities O - Complete feature list and capabilities matrix---
🚀 Quick Start
Prerequisites
Required:
Node.js 18+npm or yarnChoose at least one AI provider:
Cloud (API-based): - Anthropic API key (Get one here) for Claude models, OR
- Google API key (Get one here) for Gemini models
Local (Pri): - Ollama (Install here) for DeepSeek-R1 and Gemma models
- 8-16GB RAM recommended for local models
Installation
Basic Usage
🎯 FASTEST START: Pre-Configured Workflows (Perfect for Beginners!)
🌟 Interacti (Recommended for Power Users)
📋 One-Off Commands (For Scripts & Automation)
---
🆕 What's New
v0.7.0 - Smart Contract Security (NEW!)
📜 Web3 / Smart Contract Security Scanner
Full-featured Solidity smart contract detection based on DeFiHackLabs real-world exploit patterns:
11 Detectors:
🔄 Reentrancy - Cross-function and cross-contract reentrancy🔐 Access Control - Missing modifiers, unprotected functions🔢 Integer O - Arithmetic (pre-0.8.0)📝 State Modification - Unexpected state changes after external calls⚡ Flash Loan - Flash loan attack 📊 Oracle Manipulation - Price oracle 🎯 Precision Loss - Dition, unsafe downcasts📞 Arbitrary Call - User-controlled call targets, delegatecall risks💾 Storage Collision - Non-EIP1967 proxies, missing storage gaps⏰ Timestamp Dependence - Block timestamp manipulation (SWC-116)🎲 Weak Randomness - Predictable randomness sources (SWC-120)Real-World Exploit References:
Links to DeFiHackLabs exploit reproductions ($200M+ in documented exploits)Includes: Hundred Finance, Qubit Finance, Multichain, Audius, Furucombo, Fomo3DNew Agent Mode:
smartcontract mode (📜) - Specialized for DeFi security and smart contract auditing---
v0.6.0 - Autonomous Agent Mode (De)
🤖 NEW: Autonomous AI Execution - Ad Users
The new auto command enables fully autonomous task execution with AI-powered planning and execution:
Key Features:
🧠 AI Planning - Automatically breaks down tasks into executable steps🔄 Self-Correction - Reflects on results and adapts strategy🎯 Multi-Tool - Intelligently selects and chains security tools⚡ Extended Thinking - Claude's extended thinking for complex planning🛡️ Safety Controls - Appro for high-risk operationsNOTE: MCP (Model Context Protocol) security tools have been removed. Built-in tools provide comprehensi for all scanning needs.
🔧 NEW: Enhanced Security Toolkit
Four new npm-based security tools have been integrated to replace the non-functional MCP tools:
1. DependencyScanner (retire.js)
📦 Scans Ja dependencies for known 🔍 C and se classification📊 Comprehensi reporting⚡ No API keys required2. SSLAnalyzer (ssl-checker)
🔒 SSL/TLS certificate analysis⏰ Expiration monitoring and alerts🎯 Risk scoring and security recommendations✅ Certificate chain 3. ScreenshotTool (Puppeteer)
📸 Automated website screenshots🔍 Technology detection (React, Vue, WordPress, etc.)🌐 Full-page or captures🎨 reconnaissance capabilities4. ExternalToolManager
🛠️ Auto-detects 12 external CLI security tools (nmap, nuclei, ffuf, sqlmap, etc.)📊 checking and a status📚 Installation guides for missing tools🔄 Tool execution wrapperAll tools work out-of-the-box with zero configuration!
v0.5.1 - Workflows & Enhanced User Experience
🎯 Pre-Configured Workflows - Perfect for Beginners!
The flows command provides guided, step-by-step workflows for common security tasks:
10 Pre-Built Workflows:
🛡️ Quick Security Health Check (2-3 min, beginner) - Desktop security scan🌐 Website Security Audit (3-5 min, beginner) - OWASP Top 10 assessment🔍 Domain Intelligence Gathering (3-5 min, beginner) - Full OSINT scan🚨 Incident Response Triage (5-7 min, intermediate) - Security incident analysis📡 Network Traffic Threat Hunting (4-6 min, intermediate) - PCAP analysis🕵️ Full OSINT In (5-10 min, intermediate) - Deep reconnaissance🔒 System Hardening Guide (10-15 min, intermediate) - Security impro🎯 Red Team Reconnaissance (10-15 min, ad) - External recon🚩 CTF Web Challenge Solver (10-20 min, ad) - CTF assistance📚 Learn OSINT Basics (15-20 min, beginner) - InteractiWhy Workflows?
🎓 Beginner-Friendly: Guided step-by-step experiences⚡ Fast: Pre-configured for common tasks📖 Educational: Learn security concepts while using them🎯 Goal-Oriented: Each workflow solves a specific problemv0.5.0 - OSINT Reconnaissance Suite
🔍 NO API KEYS REQUIRED!
📡 10 Comprehensi Tools: All free, no API keys needed!🛠️ Included Tools (All FREE): -
DNS Reconnaissance - A/AAAA/MX/NS/TXT/SOA records, reverse DNS
-
WHOIS Lookup - Domain registration, age, expiration analysis
-
Subdomain Enumeration - Certificate transparency + DNS brute force
-
Email Har - Website scraping + common patterns
-
Username Enumeration - 35+ platforms (GitHub, Twitter, Instagram, etc.)
-
Breach Data Lookup - Have I Been Pwned integration
-
Technology Detection - Web server, CMS, frameworks (50+ signatures)
-
Wayback Machine - Historical snapshots and domain history
-
IP Geolocation - Country/city/ISP lookup
-
Reverse IP Lookup - Find other domains on same IP
🎯 Professional Features: - Risk scoring and assessment
- Attack surface identification
- Data exposure analysis
- Export to JSON/Markdown
- No rate limits (free tier APIs)
- Pri (passive only)
Professional Features:
🎯 IOC Extraction: Automatic extraction with STIX 2.1 export🗺️ MITRE ATT&CK: Technique mapping and threat intelligence🔬 E Preser: Chain of custody with triple hash (MD5/SHA1/SHA256)📊 Forensics: Forensically sound metadata tracking📦 Network Traffic Analysis - AI-Powered Wireshark!
🔍 PCAP Analysis: Analyze network capture files with AI-powered insights!🎯 Wireshark-Inspired Features: Protocol dissection, display filters, statistics📊 Comprehensi: Con, endpoints, DNS queries, HTTP requests🚨 Threat Detection: Port scans, suspicious ports, anomaly detection📈 Export Options: JSON, Markdown, CS🔬 Analysis Modes: Quick, full, or threat-hunt analysisPrevious: v0.3.0 - Web Security Testing + Multi-Provider Support
🔍 Web Scanning: Test web applications for OWASP Top 10 🎯 New webpentest Mode: AI agent specialized in web security analysis🔒 Ethical Framework: Authorization required, domain blocklists, CTF mode🔮 Gemini API Support: Use Google's Gemini 2.5 models alongside Claude!9 Total Models: 6 Claude models + 3 Gemini models to choose fromPrevious Updates (v0.2.0):
✨ Interacti (REPL) - persistent, no re-typing commands🤖 Model Selector - choose from multiple AI models📖 See FEATURES.md for all features✨ Features
🎯 Pre-Configured Workflows (NEW!)
Perfect for beginners and fast task execution!10 Guided Workflows: Step-by-step security tasks with AI assistance5 Categories: Security, Reconnaissance, Analysis, CTF, Learning3 Difficulty Levels: Beginner, Intermediate, AdTime Estimates: 2-20 minutes depending on workflowEducational: Learn while doing with interactiExamples: Quick security check, website audit, OSINT in, threat huntingEasy Access: cyber-claude flows or just flows in interactive mode🔄 Interacti
Persistent REPL Interface: Like Claude Code - single session, no re-typingNatural Commands: Just type scan, harden, mode redTeam, etc.Command History: Use ↑/↓ arrows to naMode-Colored Prompts: feedback for current modeBuilt-in Help: Type help for all commands🔍 Security Scanning
Desktop Security Scan: Comprehensi analysisWeb Application Scanning: OWASP Top 10 detectionOSINT Reconnaissance: Domain, email, username intelligence gatheringNetwork Traffic Analysis: PCAP file analysis with AI insightsQuick Check: Rapid security assessmentNetwork Analysis: Connection monitoring and threat detectionProcess Monitoring: Identify suspicious activity🕵️ OSINT Reconnaissance (NEW!)
NO API KEYS NEEDED: All 10 tools completely freeDNS Reconnaissance: Full DNS record analysis with security posture assessmentWHOIS Lookup: Domain age, expiration, registrar info with risk analysisSubdomain Enumeration: Certificate transparency logs + DNS brute forcing (100+ wordlist)Email Har: Website scraping, mailto links, common patterns (info@, support@, etc.)Username Enumeration: Check 35+ platforms (GitHub, Twitter, Instagram, LinkedIn, Reddit, etc.)Breach Data Lookup: Have I Been Pwned integration with password breach checkingTechnology Detection: Identify web server, CMS, frameworks, analytics (50+ signatures)Wayback Machine: Historical snapshots, first/last archi, change detectionIP Geolocation: Country, city, ISP, organization, timezone lookupReverse IP Lookup: Find other domains hosted on same IP (shared hosting detection)Risk Scoring: Automated assessment based on exposure, age, breaches, attack surfaceExport Options: JSON and Markdown export for all results📦 Network Traffic Analysis
PCAP/PCAPNG Support: Analyze Wireshark capture filesProtocol Dissection: Ethernet, IPv4/IPv6, TCP/UDP, HTTP, DNS, ICMP, ARPTraffic Statistics: Protocol distribution, con, endpointsDNS Analysis: Query extraction and analysisHTTP Extraction: Request/response analysisThreat Detection: Port scans, suspicious ports, anomaly detectionDisplay Filters: Filter by protocol, IP, or port (Wireshark-style)Export Formats: JSON, Markdown, CSVAI-Powered Insights: Threat hunting, pattern analysis, recommendations🌐 Web Security Testing
OWASP Top 10: SQL injection, XSS, CSRF, SSRF detectionSecurity Headers: CSP, HSTS, X-Frame-Options analysisCookie Security: Secure, HttpOnly, SameSite checksForm Analysis: CSRF token detectionCTF Support: Educational challenge assistanceEthical Framework: Authorization required before scanning📜 Smart Contract Security (NEW!)
11 Detectors: Reentrancy, access control, precision loss, weak randomness, and moreDeFiHackLabs Integration: Real-world exploit references from 674+ documented hacksSWC Registry: Maps findings to Smart Contract Weakness Classification IDsMulti-Format Output: Terminal display and Markdown reports saved to scans/AI-Powered Analysis: Deep assessment with remediation codeExternal Tool Support: Integrates with Slither, Mythril, Solhint if installed🔒 System Hardening
Hardening Checks: security configurationsPlatform-Specific Recommendations: macOS, Linux, WindowsCompliance : Security baseline checkingAI-Powered Recommendations: Prioritized, actionable advice🔧 Built-In Security Tools
Web Application Scanning: OWASP Top 10, security headers, CSRF/XSS detectionDesktop Security: System scanning, network connections, process analysisOSINT Reconnaissance: 10 comprehensi (DNS, WHOIS, subdomains, emails, usernames, breaches, tech detection, Wayback, IP lookup)Network Traffic Analysis: PCAP parsing, protocol dissection, con trackingHardening : Platform-specific security checks (macOS FileVault, Linux UFW, Windows Defender)Dependency Scanning: Ja detection with retire.js (C, se classification)SSL/TLS Analysis: Certificate , expiration monitoring, risk scoring Reconnaissance: Automated screenshots with Puppeteer, technology detectionExternal Tool Integration: Auto-detection of 12 CLI security tools (nmap, nuclei, ffuf, sqlmap, wpscan, testssl, gobuster, amass, masscan, subfinder, httpx, katana)AI-Powered Analysis: All results analyzed by Claude/Gemini models for actionable insights🔬 Professional Analysis Features
IOC Extraction: Extract IPs, domains, URLs, emails, hashes, CVEs from pcap filesSTIX 2.1 Export: Share threat intelligence in standard formatMITRE ATT&CK Mapping: 20+ technique definitions with automatic mappingE Preser: Forensically sound chain of custodyTriple Hash : MD5/SHA1/SHA256 for integrityCase Management: Track analyst, case number, collection method🤖 Multi-Provider AI Models (NEW!)
12 Models Total: 6 Claude + 3 Gemini + 3 Ollama (local) modelsClaude Models: Opus 4.1, Opus 4, Sonnet 4.5 (default), Sonnet 4, Sonnet 3.7, Haiku 3.5Gemini Models: 2.5 Flash, 2.5 Pro, 2.5 Flash LiteOllama Models (Local): DeepSeek R1 14B, DeepSeek R1 8B, Gemma 3 4BInteracti: Choose any model in session with menuSeamless Switching: Switch between Claude, Gemini, and Ollama anytimeUse Cases: Opus for complex analysis, Gemini Flash for speed, Ollama for privacy & offline use💬 Multiple Agent Modes (7 total)
Switch On-The-Fly: Change modes without restartingModes A: - 🤖
base: General security assistant
- ⚔️
redteam: Offensi perspecti only)
- 🛡️
blueteam: Defensi focus
- 🔒
desktopsecurity: Personal computer security
- 🌐
webpentest: Web application security testing
- 🕵️
osint: Open source intelligence reconnaissance
- 📜
smartcontract: Smart contract and DeFi security (NEW!)
📊 Reporting
Beautiful Terminal UI: Gradient colors, ASCII art, formatted tablesExport Options: JSON and Markdown reportsSe Classification: Critical, High, Medium, Low, InfoActionable Remediation: Clear steps to fix issues---
📖 Commands
cyber-claude (default) / cyber-claude interactive
Start interacti (NEW!)
Options:
-m, --mode <mode> - Initial mode (base, redteam, blueteam, desktopsecurity, webpentest)--model <model> - AI model (sonnet-4, opus-4, haiku-4, sonnet-3.5)Session Commands:
scan / scan full / scan network - Desktop security scanswebscan <url> - Web application scanpcap <file> - Analyze network capture fileharden - Hardening checkmode <mode> - Switch modemodel - Select AI modelstatus - Show session infoclear - Clear conhistory - Show command historyhelp - Show helpexit / quit - ExitExamples:
cyber-claude flows 🆕 BEGINNER-FRIENDLY!
Pre-configured workflows for common cybersecurity tasks - perfect for getting started!
Categories:
🛡️ Security: Quick health checks, system hardening, security audits🔍 Reconnaissance: Domain intelligence, OSINT in📊 Analysis: Network traffic analysis, incident response triage🚩 CTF: Capture The Flag challenge solving workflows📚 Learning: Interacti and guided learning pathsA Workflows:
1. Quick Security Health Check (2-3 min, beginner) - Scan your computer for common security issues
2. Website Security Audit (3-5 min, beginner) - Comprehensi Top 10 assessment
3. Domain Intelligence Gathering (3-5 min, beginner) - Full OSINT on a domain
4. Incident Response Triage (5-7 min, intermediate) - Quick security incident assessment
5. Network Traffic Threat Hunting (4-6 min, intermediate) - Analyze PCAP files for threats
6. Full OSINT In (5-10 min, intermediate) - Deep-di
7. System Hardening Guide (10-15 min, intermediate) - Step-by-step security impro
8. Red Team Reconnaissance (10-15 min, ad) - Professional external reconnaissance
9. CTF Web Challenge Solver (10-20 min, ad) - Systematic CTF solving approach
10. Learn OSINT Basics (15-20 min, beginner) - Interacti tutorial
Options:
-l, --list - List all a workflows-c, --category <category> - Filter by category (security, recon, analysis, incident, ctf, learning)-d, --difficulty <level> - Filter by difficulty (beginner, intermediate, ad)-m, --model <model> - AI model to use for analysisExamples:
💡 Pro tip: Start with "Quick Security Health Check" or "Website Security Audit" to see what Cyber Claude can do!
cyber-claude auto 🆕 AUTONOMOUS MODE!
AI-powered autonomous task execution - ad planning and self-correction
Options:
--mode <mode> - Agent mode (base, redteam, blueteam, desktopsecurity, webpentest, osint)--model <model> - AI model to use (default: claude-sonnet-4-5)--thinking - Enable extended thinking for complex planning--max-steps <n> - Maximum steps to execute (default: 20)--max-duration <ms> - Maximum duration in milliseconds (default: 600000)--auto-approve - Auto-approve all steps - USE WITH CAUTION-- - output with progress updates--export <file> - Export execution context to fileExamples:
⚠️ Ad Feature: Requires understanding of autonomous AI execution. Use flows for guided experiences.
cyber-claude scan
Scan your system for security issues
Options:
-q, --quick - Quick security check-f, --full - Full system scan (default)-n, --network - Network connections scan--model <model> - AI model to use--json <file> - Export results to JSON--md <file> - Export results to MarkdownExamples:
cyber-claude harden
Check system hardening and get recommendations
Options:
-c, --check - Check hardening status (default)-r, --recommendations - Get hardening recommendations--model <model> - AI model to use--json <file> - Export results to JSON--md <file> - Export results to MarkdownExamples:
cyber-claude webscan
Scan web applications for security
Options:
-q, --quick - Quick security scan (headers only)-f, --full - Full scan (CSRF, XSS detection)-a, --aggressive - ⚠️ AGGRESSIVE scan with payload testing (requires authorization!)--ctf - CTF challenge mode--skip-auth - Skip authorization checks (use only for sites you own)--model <model> - AI model to use--timeout <ms> - Request timeout in milliseconds--test-types <types> - types to test (comma-separated): sqli,xss,cmd_injection,path_tra,ssrf--max-payloads <number> - Maximum payloads per type (default: 10)Examples:
cyber-claude pcap (NEW!)
Analyze network capture files with AI-powered insights
Options:
-m, --mode <mode> - Analysis mode: quick, full, or threat-hunt (default: quick)--model <model> - AI model to use-f, --filter <protocol> - Display filter (protocol name, e.g., "tcp", "udp", "dns")--src <ip> - Filter by source IP address--dst <ip> - Filter by destination IP address--port <port> - Filter by port (source or destination)--sport <port> - Filter by source port--dport <port> - Filter by destination port--packets - Display packet list (up to 50 packets)--max-packets <n> - Maximum packets to analyze--stats-only - Show only statistics without AI analysis--extract-iocs - Extract indicators of compromise (IPs, domains, URLs, hashes, CVEs)--export-iocs <file> - Export IOCs in STIX 2.1 format--mitre - Map findings to MITRE ATT&CK techniques--preser - Create forensically sound e package with chain of custody--case-number <number> - Case number for e preser--analyst <name> - Analyst name for e chain of custody--export-json <file> - Export analysis to JSON--export-md <file> - Export report to Markdown--export-csv <file> - Export packets to CSVExamples:
cyber-claude daemon ✨ NEW in v0.6.0
Background daemon for scheduled security scanning
Subcommands:
daemon start - Start the daemon (foreground or detached)daemon stop - Stop the daemondaemon status - Show daemon status and statisticsdaemon jobs - List all scheduled jobsdaemon add - Add a new scheduled jobdaemon remove <job-id> - Remove a jobdaemon enable <job-id> - Enable a jobdaemon disable <job-id> - Disable a jobdaemon run <job-id> - Execute a job immediatelyAdd Job Options:
-n, --name <name> - Job name (required)-t, --type <type> - Job type: webscan, log-analysis, c (required)-T, --target <target> - Scan target (URL, log file, C) (required)-s, --schedule <cron> - Cron schedule expression (required)--disabled - Create job in disabled state-o, --options <json> - Job options as JSON stringExamples:
Supported Cron Expressions:
* * * * * - Every minute0 * * * * - Every hour0 */6 * * * - Every 6 hours0 2 * * * - Daily at 2 AM0 0 * * 0 - Weekly on Sunday0 0 1 * * - Monthly on the 1stcyber-claude web3 ✨ NEW in v0.7.0
Smart contract security scanning and auditing
Subcommands:
web3 scan <file> - Scan Solidity contract for web3 audit <file> - Full security audit with AI analysisweb3 tools - Check a Web3 security tools (Slither, Mythril, etc.)Scan Options:
-q, --quick - Quick pattern-based scan (default)-f, --full - Full scan with external tools if a--no-ai - Skip AI analysis--model <model> - AI model to use for analysisExamples:
Detected :
Reentrancy (SWC-107)Access Control issues (SWC-105)Integer O/Underflow (SWC-101)Timestamp Dependence (SWC-116)Weak Randomness (SWC-120)Precision Loss / Rounding ErrorsArbitrary External CallsStorage Collision in ProxiesFlash Loan Attack Oracle ManipulationUnchecked Return Output:
Terminal report with se levelsMarkdown report saved to scans/ directoryReal-world exploit references from DeFiHackLabscyber-claude chat
Interactive chat with security agent (one-off con)
Note: Consider using cyber-claude interactive for a better experience!
Options:
-m, --mode <mode> - Agent mode (base, redteam, blueteam, desktopsecurity, webpentest)--model <model> - AI model to useChat Commands:
/mode <mode> - Switch agent mode/clear - Clear con history/help - Show help/exit - Exit chat modeExamples:
🎨 Beautiful CLI Interface
Cyber Claude features a gorgeous terminal UI with:
🌈 Gradient colors for cybersecurity theme🎭 ASCII art banner with ANSI Shadow font📦 Boxed messages for important information⚡ Animated spinners for loading states🎯 Se indicators with color coding📊 Formatted tables for scan results🔐 Security & Ethics
Defensi Only
✅ Security scanning and assessment✅ identification✅ Hardening recommendations✅ Threat detection and analysis❌ NO actual exploitation❌ NO credential har❌ NO malicious operationsBuilt-in Guardrails
Safe Mode: Enabled by defaultAudit Logging: All actions loggedUser Consent: Required for system changesTransparency: Explains all actionsEthical Boundaries: Follows responsible disclosureAuthorization Framework: Domain blocklists, user consent, legal warningsAlignment with Anthropic's AI Safety Standards
Cyber Claude is built following Anthropic's guidelines for AI in cybersecurity:
✅ Focus on defensi: Finding , patching, testing security infrastructure✅ Avoid offensi: No exploitation capabilities or attack automation✅ Empower defenders: AI-powered analysis helps security teams protect systems✅ Responsible AI: Ethical guardrails and transparency in all operations📁 Project Structure
🛠️ Technology Stack
Core
Claude Agent SDK - AI agent frameworkTypeScript - Type-safe deNode.js - Runtime enCLI & UI
Commander.js - CLI frameworkInquirer.js - InteractiChalk - Terminal colorsGradient String - Beautiful gradientsFiglet - ASCII artBoxen - Terminal boxesOra - Elegant spinnersCLI Table 3 - Formatted tablesSecurity Tools
systeminformation - Desktop system data collectionaxios - HTTP client for web scanningcheerio - HTML parsing and analysis - URL and input uuid - Unique identifier generationwinston - Loggingretire - Ja dependency scanner (C)ssl-checker - SSL/TLS certificate analysis and puppeteer - Headless browser automation for screenshots and web analysissubquest - Subdomain enumeration toolpcap-parser - Network traffic analysis from PCAP fileswhois-json - WHOIS lookup functionality🔧 De
📚 Resources
Claude Agent SDK DocumentationBuilding Agents with ClaudeResearch Notes - Detailed research on cybersecurity agents🎯 Roadmap
Phase 1: Core Agent ✅
[x] Basic CLI with beautiful UI[x] Claude Agent SDK integration[x] Chat interface[x] Desktop security scanner[x] System hardening checker[x] Reporting system[x] Multi-provider support (Claude + Gemini)[x] Interacti (REPL)Phase 2: Web Security Testing ✅
[x] Web application scanning[x] OWASP Top 10 detection[x] Security header analysis[x] Ethical scanning framework[x] CTF challenge support[x] Authorization and guardrailsPhase 3: Enhanced Features ✅
[x] MITRE ATT&CK mapping (20+ techniques)[x] Autonomous agent mode with AI planning and execution[x] IOC extraction and STIX 2.1 export[x] E preser with chain of custody[x] OSINT reconnaissance suite (10 tools)[x] PCAP network traffic analysis[x] Pre-configured workflows (10 guided tasks)[x] Log file analysis (6 formats, 15+ anomaly types) ✨ NEW in v0.6.0[x] database integration (NVD/C) ✨ NEW in v0.6.0[x] Multi-provider smart fallbacks ✨ NEW in v0.6.0[x] Ad web detection (SQLi, XSS, Command Injection, Path Tra, SSRF) ✨ NEW in v0.6.0[x] Scheduled scanning (daemon mode with cron scheduling) ✨ NEW in v0.6.0[x] Smart contract security scanning (11 detectors, DeFiHackLabs integration) ✨ NEW in v0.7.0[ ] Security posture dashboardPhase 4: Ad Capabilities (In Progress)
[ ] Custom security rules engine[ ] Incident response playbooks[ ] Threat intelligence feeds integration[ ] Compliance frameworks (CIS, NIST, SOC 2)[ ] Automated remediation suggestions[ ] Team collaboration featuresPhase 5: Agent Enhancements (Future)
[ ] Subagents for parallel analysis[ ] Long-term memory and context management[ ] Custom tool creation framework[ ] Plugin system for community extensions[ ] Multi-language support (Python, Go, Rust)[ ] API for programmatic access🤝 Contributing
Contributions are welcome! Please read our Code of Conduct before submitting a pull request.
Quick steps:
1. Fork the repository
2. Create a feature branch (git checkout -b feature/amazing-feature)
3. Follow the code style and run tests (npm test)
4. Commit your changes (git commit -m 'Add amazing feature')
5. Push to the branch (git push origin feature/amazing-feature)
6. Open a Pull Request
Contribution Guidelines:
All contributions must maintain defensi security operationsNo exploitation, credential har, or malicious capabilitiesFollow existing code patterns and documentation standardsAdd tests for new featuresUpdate documentation as needed📄 License
Apache 2.0 License - see LICENSE for details
⚠️ Disclaimer
Defensi Only: This tool is designed exclusively for defensi operations. It does not and will not include exploitation capabilities, credential har, or any features that could be used for unauthorized system access.
Authorization Required: Users are responsible for ensuring they ha written authorization before scanning any systems. Unauthorized security testing is illegal in most jurisdictions.
No Warranty: The authors are not responsible for misuse of this tool. Use at your own risk and in compliance with all applicable laws and regulations.
Educational Purpose: This tool is intended for security professionals, researchers, and educators to impro security posture.
---
Built with ❤️ using Claude Agent SDK
For questions or feedback, please open an issue on GitHub.
🎯 Workflow Examples
Quick Security Audit (Interacti)
Red Team Assessment
Web Security Testing (NEW!)
Quick One-Off Scan
🔑 Model Selection Guide
Comprehensi Comparison
| Model | Provider | Speed | Quality | Cost | Best For | RAM Req. |
|-------|----------|-------|---------|------|----------|----------|
| Claude Opus 4.1 | Cloud | Slow | ⭐⭐⭐⭐⭐ | $$$$ | Complex forensics, deep threat analysis | N/A |
| Claude Opus 4 | Cloud | Slow | ⭐⭐⭐⭐⭐ | $$$$ | Ad red team ops, thorough audits | N/A |
| Claude Sonnet 4.5 | Cloud | Fast | ⭐⭐⭐⭐ | $$ | Daily security checks, general analysis | N/A |
| Claude Sonnet 4 | Cloud | Fast | ⭐⭐⭐⭐ | $$ | Balanced performance for most tasks | N/A |
| Claude Haiku 3.5 | Cloud | Fastest | ⭐⭐⭐ | $ | Quick scans, batch processing | N/A |
| Gemini 2.5 Pro | Cloud | Moderate | ⭐⭐⭐⭐ | $$ | Complex reasoning, thinking model | N/A |
| Gemini 2.5 Flash | Cloud | Very Fast | ⭐⭐⭐ | $ | Fast scanning, cost-effective | N/A |
| Gemini Flash Lite | Cloud | Fastest | ⭐⭐ | $ | Simple checks, high | N/A |
| DeepSeek R1 14B | Local | Slow* | ⭐⭐⭐⭐ | Free | Pri, offline analysis | 16GB |
| DeepSeek R1 8B | Local | Moderate* | ⭐⭐⭐ | Free | Balanced local performance | 8-10GB |
| Gemma 3 4B | Local | Fast | ⭐⭐ | Free | Quick local scans, learning | 4-6GB |
Note: DeepSeek-R1 models use extended reasoning (thinking) which can take 2-15 minutes on complex questions.
Use Case Recommendations
#### 🔒 Pri Work (Sensitive Data, Compliance)
Best: deepseek-r1-14b or deepseek-r1-8b (local)Why: All data stays on your machine, no cloud transmissionCaveat: Slower responses, requires patience#### 💰 Cost-Sensitive / High
Best: gemini-2.5-flash-lite or gemma3-4b (local)Why: Lowest API costs or completely free (local)Good for: Batch scanning, automated workflows#### ⚡ Speed-Critical Operations
Best: haiku-3.5 (cloud) or gemma3-4b (local)Why: Fastest responsesGood for: Quick health checks, rapid triage#### 🧠 Complex Security Analysis
Best: opus-4 (cloud) or deepseek-r1-14b (local)Why: Best reasoning and depthGood for: Threat hunting, research, forensics#### 🎯 Balanced Daily Use (Recommended)
Best: sonnet-4.5 (default)Why: Great quality, reasonable cost, good speedGood for: Most security tasks, interacti#### 🌐 Offline / Air-Gapped En
Best: deepseek-r1-14b or deepseek-r1-8bWhy: No internet required after model downloadGood for: Secure facilities, disconnected networksTask-Specific Recommendations
| Task | Cloud Option | Local Option | Notes |
|------|-------------|--------------|-------|
| Quick security scan | haiku-3.5 | gemma3-4b | Fast triage |
| Full system audit | sonnet-4.5 | deepseek-r1-8b | Balanced depth |
| Web scan | sonnet-4 | deepseek-r1-8b | Good reasoning |
| PCAP analysis | opus-4 | deepseek-r1-14b | Complex patterns |
| OSINT reconnaissance | gemini-2.5-flash | gemma3-4b | Fast enumeration |
| Incident response | opus-4 | deepseek-r1-14b | Thorough in |
| CTF challenges | opus-4.1 | deepseek-r1-14b | Creati |
| Learning/tutorials | sonnet-4 | deepseek-r1-8b | Clear explanations |
🔮 Google Gemini Support
Cyber Claude now supports Google Gemini models! Use Gemini for fast, cost-effecti analysis.
Quick Start with Gemini:
1. Get API key: Google AI Studio
2. Add to .env: GOOGLE_API_KEY=your_key_here
3. Use: cyber-claude scan --model gemini-2.5-flash
A Gemini Models:
gemini-2.5-flash - Most balanced (recommended for Gemini)gemini-2.5-pro - Most powerful thinking modelgemini-2.5-flash-lite - Fastest & most cost-efficient📖 Full Guide: See GEMINI_INTEGRATION.md for complete details!
🏠 Ollama (Local Models) Support
Cyber Claude now supports Ollama for running AI models locally! Perfect for privacy, offline use, and zero API costs.
Quick Start with Ollama:
1. Install Ollama: ollama.com
2. Pull a model: ollama pull deepseek-r1:14b
3. Start Ollama: ollama serve (runs on port 11434 by default)
4. Use with Cyber Claude: cyber-claude scan --model deepseek-r1-14b
A Ollama Models:
deepseek-r1-14b - DeepSeek R1 14B (recommended) - Best reasoning for complex security analysisdeepseek-r1-8b - DeepSeek R1 8B - Faster, balanced performancegemma3-4b - Gemma 3 4B - Quickest for simple scansWhy Ollama?
🔒 Privacy: All data stays on your machine💰 Cost: No API fees, unlimited usage🌐 Offline: Works without internet connection⚡ Performance: Fast local inference (with sufficient RAM)System Requirements:
16GB RAM recommended for 14B models8-10GB RAM sufficient for 8B models4-6GB RAM for 4B models⚠️ Performance Characteristics:
DeepSeek-R1 Models (Extended Reasoning):
🧠 Uses "thinking" process before answering (like o1/o3)⏱️ Response times: 2-15 minutes for complex questions✅ Best for: Deep analysis, thorough in, complex reasoning❌ Not ideal for: Quick scans, rapid iteration, simple questions💡 Tip: Ask focused questions, break complex tasks into stepsSpeed Comparison:
gemma3-4b: 5-30 seconds (instant feel)deepseek-r1-8b: 1-5 minutes (extended reasoning)deepseek-r1-14b: 2-15 minutes (deep reasoning)When to Use Each:
gemma3-4b → Quick scans, learning, rapid testingdeepseek-r1-8b → Balanced analysis, moderate complexitydeepseek-r1-14b → Complex in, forensics, critical decisionsConfiguration (Optional):
Add to .env only if Ollama runs on a different port:
Example Usage:
🔧 Troubleshooting:
Timeout Errors:
Connection Errors:
Memory Issues:
📋 Quick Reference Card:
| Need | Use This | Command |
|------|----------|---------|
| Fast scans | gemma3-4b | cyber-claude scan --model gemma3-4b |
| Balanced analysis | deepseek-r1-8b | cyber-claude webscan example.com --model deepseek-r1-8b |
| Deep in | deepseek-r1-14b | cyber-claude pcap capture.pcap --model deepseek-r1-14b |
| Privacy critical | Any Ollama model | All processing happens locally |
| Offline work | Any Ollama model | No internet needed after download |
| Learning/practice | gemma3-4b | Fast iteration for trying things |
项目信息
开发语言:TypeScript
Star 数:99
技术要点
该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕An AI-powered cybersecurity agent inspired by Claude Agent SDK, designed exclusively for defensive security operations.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。