mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-03-20 09:13:37 +00:00
116 modules | 100 vuln types | 18 API routes | 18 frontend pages Major features: - VulnEngine: 100 vuln types, 526+ payloads, 12 testers, anti-hallucination prompts - Autonomous Agent: 3-stream auto pentest, multi-session (5 concurrent), pause/resume/stop - CLI Agent: Claude Code / Gemini CLI / Codex CLI inside Kali containers - Validation Pipeline: negative controls, proof of execution, confidence scoring, judge - AI Reasoning: ReACT engine, token budget, endpoint classifier, CVE hunter, deep recon - Multi-Agent: 5 specialists + orchestrator + researcher AI + vuln type agents - RAG System: BM25/TF-IDF/ChromaDB vectorstore, few-shot, reasoning templates - Smart Router: 20 providers (8 CLI OAuth + 12 API), tier failover, token refresh - Kali Sandbox: container-per-scan, 56 tools, VPN support, on-demand install - Full IA Testing: methodology-driven comprehensive pentest sessions - Notifications: Discord, Telegram, WhatsApp/Twilio multi-channel alerts - Frontend: React/TypeScript with 18 pages, real-time WebSocket updates
50 lines
1.8 KiB
Python
Executable File
50 lines
1.8 KiB
Python
Executable File
"""
|
|
NeuroSploit v3 - Report Model
|
|
"""
|
|
from datetime import datetime
|
|
from typing import Optional
|
|
from sqlalchemy import String, DateTime, Text, ForeignKey, Boolean
|
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
|
from backend.db.database import Base
|
|
import uuid
|
|
|
|
|
|
class Report(Base):
|
|
"""Report model"""
|
|
__tablename__ = "reports"
|
|
|
|
id: Mapped[str] = mapped_column(String(36), primary_key=True, default=lambda: str(uuid.uuid4()))
|
|
scan_id: Mapped[str] = mapped_column(String(36), ForeignKey("scans.id", ondelete="CASCADE"))
|
|
|
|
# Report details
|
|
title: Mapped[Optional[str]] = mapped_column(String(255), nullable=True)
|
|
format: Mapped[str] = mapped_column(String(20), default="html") # html, pdf, json
|
|
file_path: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
|
|
|
|
# Content
|
|
executive_summary: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
|
|
|
|
# Auto-generation flags
|
|
auto_generated: Mapped[bool] = mapped_column(Boolean, default=False) # True if auto-generated on scan completion/stop
|
|
is_partial: Mapped[bool] = mapped_column(Boolean, default=False) # True if generated from stopped/incomplete scan
|
|
|
|
# Timestamps
|
|
generated_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
|
|
|
# Relationship
|
|
scan: Mapped["Scan"] = relationship("Scan", back_populates="reports")
|
|
|
|
def to_dict(self) -> dict:
|
|
"""Convert to dictionary"""
|
|
return {
|
|
"id": self.id,
|
|
"scan_id": self.scan_id,
|
|
"title": self.title,
|
|
"format": self.format,
|
|
"file_path": self.file_path,
|
|
"executive_summary": self.executive_summary,
|
|
"auto_generated": self.auto_generated,
|
|
"is_partial": self.is_partial,
|
|
"generated_at": self.generated_at.isoformat() if self.generated_at else None
|
|
}
|