Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
Strumenti/GitHubGitHub/zilbonn/owasp-wstg-rag
Analisi delle VulnerabilitàTest di Sicurezza delle APIRaccolta InformazioniSicurezza WebCrittografiaPenetration TestingAutenticazioneApprendimento e FormazioneRisorse CuratePercorsi e CorsiSicurezza dell'IA
22399 mesi faRevisionato da Kitploit
GitHub
zilbonn/owasp-wstg-rag

OWASP-WSTG-Rag

Sistema RAG della Guida OWASP per i Test di Sicurezza Web con ChromaDB, MCP per Claude Code

Vedi Repository

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

OWASP WSTG RAG

Un sistema Retrieval-Augmented Generation (RAG) che indicizza la OWASP Web Security Testing Guide (WSTG) in un database vettoriale, fornendo accesso immediato alle metodologie di test di sicurezza tramite API REST e MCP (Model Context Protocol) per l'integrazione con Claude Code.

Funzionalità

  • Copertura completa di WSTG - Tutte le 12 categorie di test WSTG indicizzate e ricercabili
  • Ricerca semantica - Trova metodologie di test pertinenti utilizzando query in linguaggio naturale
  • Integrazione MCP - Integrazione diretta con Claude Code per il penetration testing assistito da IA
  • API REST - Endpoint HTTP per l'accesso programmatico
  • Ricerca per ID WSTG - Recupera casi di test completi tramite identificatore WSTG (es., WSTG-INPV-05)

Categorie WSTG

CategoriaID WSTGDescrizione
Raccolta di informazioniWSTG-INFOFingerprinting, enumerazione, mappatura
ConfigurazioneWSTG-CONFTest di configurazione di server/piattaforma
Gestione delle identitàWSTG-IDNTRegistrazione utente, provisioning degli account
AutenticazioneWSTG-ATHNTest di login, policy delle password, MFA
AutorizzazioneWSTG-ATHZEscalation dei privilegi, IDOR, controllo degli accessi
Gestione delle sessioniWSTG-SESSToken di sessione, cookie, fixation
Validazione degli inputWSTG-INPVSQLi, XSS, command injection, SSTI
Gestione degli erroriWSTG-ERRHMessaggi di errore, stack trace
CrittografiaWSTG-CRYPTLS, crittografia, hashing
Logica di businessWSTG-BUSLBypass del flusso di lavoro, caricamento di file
Lato clientWSTG-CLNTDOM XSS, clickjacking, WebSockets
Test APIWSTG-APITREST, GraphQL, sicurezza delle API

Avvio rapido

1. Installare le dipendenze

root@kitploit:~
cd RAG_runner
pip install -r requirements.txt

2. Costruire il database

root@kitploit:~
python3 build_database.py

Questa operazione:

  • Analizza tutti i file HTML di OWASP WSTG
  • Crea chunk semantici per il recupero
  • Costruisce il database vettoriale ChromaDB

3. Avviare il server

root@kitploit:~
python3 -m server.http_server

Il server gira su http://localhost:5004

4. Testare l'API

root@kitploit:~
# Health check
curl http://localhost:5004/health

# Search for SQL injection testing
curl -X POST http://localhost:5004/search \
  -H "Content-Type: application/json" \
  -d '{"query": "SQL injection testing methodology"}'

# Get specific WSTG test case
curl http://localhost:5004/wstg/WSTG-INPV-05

Endpoint API REST

EndpointMethodDescrizione
/healthGETControllo di integrità
/infoGETStatistiche del database
/listGETElenca tutti i documenti
/categoriesGETElenca categorie e ID WSTG
/doc/{id}GETRecupera il documento tramite ID
/wstg/{id}GETRecupera tutti i chunk per ID WSTG
/searchPOSTRicerca semantica

Corpo della richiesta di ricerca

root@kitploit:~
{
  "query": "SQL injection testing",
  "n_results": 5,
  "category": "input_validation",
  "wstg_id": "WSTG-INPV-05"
}

Integrazione con Claude Code (MCP)

Aggiungi a ~/.claude.json:

root@kitploit:~
{
  "mcpServers": {
    "owasp-wstg-rag": {
      "command": "python3",
      "args": ["/path/to/OWASP_WSTG_Rag/RAG_runner/server/mcp_client.py"],
      "env": {
        "WSTG_RAG_URL": "http://localhost:5004"
      }
    }
  }
}

Strumenti MCP

ToolDescrizione
search_wstgCerca in WSTG metodologie di test
search_test_methodologyCerca guide pratiche su come eseguire i test
search_test_objectivesCerca obiettivi di test
get_wstg_test_caseRecupera il caso di test completo tramite ID WSTG
get_wstg_documentRecupera il documento tramite ID
list_wstg_categoriesElenca tutte le categorie e gli ID WSTG
wstg_healthControllo di integrità
wstg_infoStatistiche del database

Esempio di utilizzo in Claude Code

root@kitploit:~
# Search for SQL injection testing methodology
search_wstg("SQL injection testing methodology")

# Get specific test case
get_wstg_test_case("WSTG-INPV-05")

# Search within a category
search_wstg("authentication bypass", category_filter="authentication")

# Get test objectives for IDOR
search_test_objectives("IDOR insecure direct object reference")

Struttura del progetto

root@kitploit:~
OWASP_WSTG_Rag/
├── README.md
├── CLAUDE.md                    # Claude Code project guide
├── raw_data/                    # OWASP WSTG HTML source files
│   ├── 01-Information_Gathering/
│   ├── 02-Configuration_and_Deployment_Management_Testing/
│   ├── 03-Identity_Management_Testing/
│   ├── 04-Authentication_Testing/
│   ├── 05-Authorization_Testing/
│   ├── 06-Session_Management_Testing/
│   ├── 07-Input_Validation_Testing/
│   ├── 08-Testing_for_Error_Handling/
│   ├── 09-Testing_for_Weak_Cryptography/
│   ├── 10-Business_Logic_Testing/
│   ├── 11-Client-side_Testing/
│   └── 12-API_Testing/
└── RAG_runner/
    ├── build_database.py        # Main build pipeline
    ├── requirements.txt
    ├── parsers/
    │   └── wstg_parser.py       # HTML parser for WSTG
    ├── chunking/
    │   └── chunker.py           # Semantic chunking
    ├── server/
    │   ├── vector_store.py      # ChromaDB wrapper
    │   ├── http_server.py       # REST API server
    │   └── mcp_client.py        # MCP tools for Claude Code
    └── data/
        ├── processed/           # Intermediate JSON files
        └── chroma_db/           # Vector database

Architettura

root@kitploit:~
┌─────────────────────────────────────────────────────────────────┐
│                    OWASP WSTG HTML Files                        │
│                      (raw_data/*.html)                          │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                     wstg_parser.py                              │
│              Parse HTML → Structured JSON                       │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                       chunker.py                                │
│              Create Semantic Chunks for RAG                     │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                   ChromaDB Vector Store                         │
│                 (data/chroma_db/)                               │
└────────────────────────────┬────────────────────────────────────┘
                             │
              ┌──────────────┴──────────────┐
              ▼                             ▼
┌──────────────────────────┐   ┌──────────────────────────┐
│    http_server.py        │   │    mcp_client.py         │
│    REST API :5004        │   │    MCP for Claude Code   │
│                          │   │                          │
│  GET  /health            │   │  search_wstg()           │
│  GET  /info              │   │  get_wstg_test_case()    │
│  GET  /wstg/{id}         │   │  search_test_methodology │
│  POST /search            │   │  list_wstg_categories()  │
└──────────────────────────┘   └──────────────────────────┘

Casi d'uso

Penetration testing assistito da IA

Integra con Claude Code per ottenere accesso immediato alle metodologie di test OWASP durante le valutazioni di sicurezza:

root@kitploit:~
User: "How do I test for SQL injection?"

Claude: [Queries WSTG RAG]
→ Returns WSTG-INPV-05 methodology with:
  - Test objectives
  - Step-by-step testing procedures
  - Example payloads
  - Tools to use

Automazione dei test di sicurezza

Usa l'API REST per integrare le metodologie WSTG in pipeline di sicurezza automatizzate:

root@kitploit:~
import requests

# Get testing methodology for current test
response = requests.post('http://localhost:5004/search', json={
    'query': 'session fixation testing',
    'n_results': 3
})
methodology = response.json()['results']

Formazione sulla sicurezza

Riferimento rapido per le metodologie di test di sicurezza durante corsi di formazione o sfide CTF.

Requisiti

  • Python 3.8+
  • ChromaDB
  • BeautifulSoup4
  • httpx
  • MCP SDK (per l'integrazione con Claude Code)

Licenza

Questo progetto utilizza contenuti della OWASP Web Security Testing Guide, che è distribuita sotto licenza Creative Commons Attribution-ShareAlike 4.0.

Progetti correlati

  • OWASP WSTG - Materiale di riferimento
  • Claude Code - Assistente di programmazione con IA e supporto MCP
  • ChromaDB - Database vettoriale per embedding
Scarica lo strumento