Skip to content

kartikus/OffsecCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OffSecCode

Offensive Security Agent Swarm — An AI-powered multi-agent offensive cybersecurity platform built on OpenCode.

10 AI agents. 20 domain skills. 17 security tools. Attack chain synthesis. Persistent memory.

Quick Start

git clone https://github.com/kartikus/offseccode.git
cd offseccode
./install.sh

What's Inside

Component Count
AI Agents 10 (2 primary + 7 subagents + 1 advisor)
Domain Skills 20 (19 security domains)
Security Tools 17 (Kali Linux integration)
Knowledge Base 2,027 atomic documents

Architecture

offsec-plan (blue) → plans the engagement
    │
offsec-exec (red) → executes the assessment
    ├── recon        (OSINT, subdomain, port scanning)
    ├── network      (protocol exploitation, AD)
    ├── webapp       (SQLi, XSS, SSRF, API)
    ├── exploit      (vulnerability exploitation)
    ├── post-exploit (lateral movement, privesc)
    ├── cloudsec     (AWS/Azure/GCP, K8s, CI/CD)
    ├── reporter     (pentest reports, MITRE, CVSS)
    └── advisor      (second-opinion QA, Opus 4.8)

Features

  • Attack Chain Synthesis: Automatically chains individual findings into complete compromise paths (SSRF → internal network → RCE → root)
  • Persistent Memory: Attack graph + session state survive restarts, crashes, and multi-day pauses
  • Two-Model Verification: Independent advisor on different model lineage catches blind spots
  • Domain-Aware KB: 2,027-document knowledge base with 50x search precision
  • Human-in-the-Loop: Approval required at all critical exploitation gates
  • Model Flexibility: /model openai/gpt-5 switches all agents instantly

Requirements

  • Kali Linux (or Linux with security tools)
  • OpenCode installed
  • Bun or Node.js
  • DeepSeek API key (or any LLM provider via /model)
  • Knowledge base at /root/knowledge-base/kb-normalized/

Usage

  1. Run opencode
  2. Tab to offsec-plan (blue) → plan your engagement
  3. Tab to offsec-exec (red) → execute the assessment
  4. Or just describe your target to begin

Commands

  • /model openai/gpt-5 — switch all agents to a different LLM
  • Ask advisor to review the findings — get second opinion
  • Generate the final report — produce client-ready report

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages