Skip to content

Latest commit

 

History

History
407 lines (305 loc) · 8.99 KB

File metadata and controls

407 lines (305 loc) · 8.99 KB

NULLSEC AI v3.0 - Enhancement Summary

🎯 Mission Accomplished

Enhanced NULLSEC AI to work 100% OFFLINE with NO API KEYS OR USER ACCOUNTS REQUIRED

✨ Major Changes

What Was Changed

Old Version (v2.0):

  • Required API keys (Anthropic, OpenAI, or GitHub Copilot)
  • Needed user accounts and subscriptions
  • Couldn't work offline
  • Privacy concerns with external APIs

New Version (v3.0):

  • NO API keys required
  • NO user accounts needed
  • Works 100% offline
  • 100% free and open source
  • Privacy-first - all data stays local
  • Rule-based expert system fallback

🤖 AI Models Added

Added 10+ specialized pentesting AI models (all free & open source):

Code Generation Specialists

  1. DeepSeek Coder 6.7B ⭐ RECOMMENDED

    • Trained on code and security
    • Best for exploit development
    • Excellent balance of size/capability
  2. CodeLlama 13B

    • Meta's official code model
    • Great general-purpose coding
    • Good for payload generation
  3. WizardCoder 15B

    • Enhanced coding abilities
    • Complex exploit chains
    • Advanced code generation

General Purpose Models

  1. Mistral 7B

    • Fast and efficient
    • Quick responses
    • Good for reconnaissance
  2. Mixtral 8x7B

    • Expert mixture model
    • Most powerful option
    • Advanced reasoning
  3. OpenHermes 7B

    • Instruction-tuned
    • Detailed explanations
    • Educational responses
  4. Solar 10.7B

    • Advanced reasoning
    • Attack path planning
    • Strategy development

Efficient Models

  1. Phi-2 (2.7B)

    • Microsoft's efficient model
    • Smallest and fastest
    • Low resource requirements
  2. Orca2 13B

    • Microsoft's reasoning model
    • Complex problem solving
    • Strategic thinking
  3. Neural Chat 7B

    • Conversational AI
    • Interactive pentesting
    • User-friendly responses

🏗️ Architecture

Offline-First Design

User Query
    ↓
┌─────────────────────────────────────┐
│  NULLSEC AI v3.0                   │
├─────────────────────────────────────┤
│  1. Try Local AI (Ollama/LM Studio)│
│  2. Try HTTP AI (GPT4All/LocalAI)  │
│  3. Fallback to Expert System      │
└─────────────────────────────────────┘
    ↓
Response (Always Works!)

Supported Providers

  1. Ollama (Recommended)

    • Full-featured local AI
    • Easy model management
    • Best performance
    • ollama pull <model>
  2. LM Studio

    • GUI-based
    • User-friendly
    • Visual model management
  3. GPT4All

    • Desktop application
    • Simple to use
    • Cross-platform
  4. LocalAI

    • OpenAI-compatible API
    • Docker-based
    • Server deployment

🛠️ New Features

1. Rule-Based Expert System

When no AI is available:

  • 100+ pre-programmed pentesting rules
  • Methodology-based command generation
  • Tool recommendations
  • Best practice guidance

Example output without AI:

PENTESTING METHODOLOGY:

1. RECONNAISSANCE
   - Port scanning: nmap -sV -sC -p- <target>
   - Service enumeration: identify versions
   - Technology detection: whatweb, wappalyzer

2. VULNERABILITY ANALYSIS
   - searchsploit for known exploits
   - nmap NSE vuln scripts
   - Manual testing

3. EXPLOITATION
   [detailed commands...]

2. Model Management

# List installed models
models

# Install new model
install deepseek-coder:6.7b

# Auto-detection of available providers
# Automatic fallback to expert system

3. Enhanced Categories

Specialized prompts for:

  • Network pentesting
  • Web application security
  • Wireless attacks
  • Credential attacks
  • Malware development
  • Reconnaissance
  • Cloud security
  • Mobile security

4. Knowledge Base

SQLite database storing:

  • Attack sessions
  • Commands executed
  • Vulnerabilities found
  • Success patterns
  • Learning from results

5. Interactive Console

nullsec-ai(category)[target] > 

Commands:
- set target <ip/domain>
- set category <name>
- models
- install <model>
- execute <cmd>
- history
- help
- exit

📦 Installation

Quick Install (Recommended)

# Run installation wizard
cd /home/antics/nullsec
bash install-ai.sh

# Choose option 1 for recommended setup

Manual Install

# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Pull recommended model
ollama pull deepseek-coder:6.7b

# Launch NULLSEC AI
python3 nullsec-ai.py

No Installation Option

# Works immediately with expert system
python3 nullsec-ai.py

# Still provides pentesting commands and guidance

🎯 Use Cases

Scenario 1: With AI (Best Experience)

nullsec-ai> set target 192.168.1.100
nullsec-ai> enumerate this target

[AI generates detailed reconnaissance plan with working commands]

Scenario 2: Without AI (Still Useful)

nullsec-ai> set target 192.168.1.100
nullsec-ai> enumerate this target

[Expert system provides methodology and command templates]

Scenario 3: Command Execution

nullsec-ai> execute nmap -sV 192.168.1.100

[Runs command and logs to knowledge base]

📊 Comparison

Feature v2.0 (Old) v3.0 (New)
API Keys Required NOT required ✅
User Accounts Required NOT required ✅
Offline Support No Yes ✅
Privacy External APIs 100% Local ✅
Cost Subscriptions Free ✅
AI Models 0 local 10+ local ✅
Fallback None Expert system ✅
Setup Time Complex 2 minutes ✅

🎓 Educational Value

The AI teaches:

  • OWASP Top 10 exploitation
  • Network pentesting methodologies
  • Privilege escalation techniques
  • Wireless security attacks
  • Cloud penetration testing
  • Mobile app security
  • Red team operations
  • OPSEC best practices

🔒 Privacy & Security

100% Private:

  • All AI processing happens locally
  • No data sent to external servers
  • No telemetry or tracking
  • No API keys or accounts stored
  • Complete control over your data

Security:

  • Review AI-suggested commands
  • Auto-execute disabled by default
  • Knowledge base stored locally
  • Full audit trail

📁 Files Created/Modified

New Files

  1. nullsec-ai.py - Complete rewrite (offline-first)
  2. install-ai.sh - Easy installation wizard
  3. NULLSEC_AI_V3_GUIDE.md - Comprehensive documentation

Backed Up

  1. nullsec-ai-v2.py - Original version preserved

Database

  1. .nullsec-ai-v3.db - SQLite knowledge base
  2. .nullsec-ai-v3.json - Configuration file

🚀 Performance

Model Comparison

Model Size Speed Quality RAM Best For
Phi-2 2.7B ⚡⚡⚡⚡⚡ ⭐⭐⭐ 4GB Low-spec systems
Mistral 7B ⚡⚡⚡⚡ ⭐⭐⭐⭐ 8GB General use
DeepSeek 6.7B ⚡⚡⚡⚡ ⭐⭐⭐⭐⭐ 8GB Pentesting
CodeLlama 13B ⚡⚡⚡ ⭐⭐⭐⭐ 16GB Code generation
WizardCoder 15B ⚡⚡ ⭐⭐⭐⭐⭐ 16GB Complex exploits
Mixtral 47B ⭐⭐⭐⭐⭐ 32GB Maximum capability

💡 Tips

  1. Start Small: Use Phi-2 or Mistral for testing
  2. Upgrade: Move to DeepSeek Coder for serious work
  3. Experiment: Try different models for different tasks
  4. Learn: Even without AI, expert system teaches methodology
  5. Privacy: Everything stays on your machine

🌟 Highlights

What Makes v3.0 Special

  1. Zero Barriers to Entry

    • No signup required
    • No payment needed
    • No API key hunting
    • Works in 2 minutes
  2. True Offline Capability

    • Air-gapped environments
    • No internet dependency
    • Complete privacy
  3. Educational

    • Learn pentesting methodologies
    • Understand attack chains
    • Build knowledge base
  4. Professional Grade

    • Multiple specialized models
    • Learning from successes
    • Attack pattern recognition
  5. Open Source Spirit

    • All models are open source
    • Free forever
    • Community-driven

🎉 Conclusion

NULLSEC AI v3.0 represents a complete transformation:

  • From: Requires paid API keys and accounts

  • To: Works 100% free and offline

  • From: Privacy concerns with cloud APIs

  • To: 100% local, private, secure

  • From: One AI provider

  • To: 10+ specialized models + expert system

  • From: Didn't work without internet

  • To: Works anywhere, anytime

This is professional-grade AI-powered pentesting for everyone, with no barriers and no compromises.


🚀 Quick Start

# Install everything (recommended)
bash /home/antics/nullsec/install-ai.sh

# Or just run it (works without AI)
python3 /home/antics/nullsec/nullsec-ai.py

# Read the guide
cat /home/antics/nullsec/NULLSEC_AI_V3_GUIDE.md

Author: bad-antics development
Repository: github.com/bad-antics/nullsec
Version: 3.0
Status: Production Ready ✅
Philosophy: Free, Private, Powerful