Instructions to use Dracco90/Qwen2.5_coder_pentest7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Dracco90/Qwen2.5_coder_pentest7B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M # Run inference directly in the terminal: llama cli -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M # Run inference directly in the terminal: llama cli -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Use Docker
docker model run hf.co/Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Dracco90/Qwen2.5_coder_pentest7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dracco90/Qwen2.5_coder_pentest7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dracco90/Qwen2.5_coder_pentest7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
- Ollama
How to use Dracco90/Qwen2.5_coder_pentest7B with Ollama:
ollama run hf.co/Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
- Unsloth Desktop
- Pi
How to use Dracco90/Qwen2.5_coder_pentest7B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Dracco90/Qwen2.5_coder_pentest7B with Docker Model Runner:
docker model run hf.co/Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
- Lemonade
How to use Dracco90/Qwen2.5_coder_pentest7B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Run and chat with the model
lemonade run user.Qwen2.5_coder_pentest7B-Q5_K_M
List all available models
lemonade list
- Hermes Agent
How to use Dracco90/Qwen2.5_coder_pentest7B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Dracco90/Qwen2.5_coder_pentest7B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Dracco90/Qwen2.5_coder_pentest7B:Q5_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen2.5-Coder-Pentest-7B (v12 Titan)
Qwen2.5-Coder-Pentest-7B (v12 Titan) es un modelo especializado en auditorรญa de ciberseguridad, pentesting profesional, ingenierรญa de detecciรณn, hardening de infraestructura y orquestaciรณn de scripts parametrizados (gen01..gen23).
Entrenado mediante QLoRA (4-bit NF4) y cuantizado a Q5_K_M sobre la base Qwen/Qwen2.5-Coder-7B-Instruct, cuenta con un dataset maestro acumulado de 4.275 ejemplos (3.873 train / 402 val) con 100% de validaciรณn sintรกctica AST en Python (ast.parse) y PowerShell nativo (pwsh Parser::ParseInput), sumando en v12 el entrenamiento de mapeo de comandos y encadenamiento de herramientas.
๐ฏ Capacidades Principales (32 Dominios Especializados)
El modelo estรก diseรฑado como un asistente todo-terreno capaz de escribir e interpretar cรณdigo en dos lenguajes clave:
PowerShell (Living off the Land & Active Directory):
- Reconocimiento con ADSI nativo (
[System.DirectoryServices.DirectorySearcher]) sin RSAT ni dependencias externas. - Detecciรณn y explotaciรณn de Kerberoasting y AS-REP Roasting (
DONT_REQ_PREAUTH0x400000). - Auditorรญa de permisos sobre LAPS (
ms-Mcs-AdmPwd) y abuso de permisos de modificaciรณn en GPOs de SYSVOL. - Caza de amenazas forense en Event Logs con
Get-WinEvent(IDs 4768, 4769 RC4, 4624, 7045).
- Reconocimiento con ADSI nativo (
Python (AppSec, Cloud IAM, CI/CD & Containers):
- AWS IAM: Anรกlisis de escalaciรณn de privilegios (
iam:PassRole, EC2/Lambda execution roles, trust policies permisivas). - Azure / Entra ID: Auditorรญa de Service Principals con roles privilegiados y secretos en Key Vault.
- GCP IAM: Verificaciรณn de impersonaciรณn (
roles/iam.serviceAccountTokenCreator) y postura de Service Account keys. - CI/CD Security: Auditorรญa de GitHub Actions para flujos vulnerables (
pull_request_target, inyecciรณn de comandos enrun:). - Kubernetes: Identificaciรณn de riesgos de escape de contenedores (
privileged: true,CAP_SYS_ADMIN, montaje de docker socket). - Detection Engineering: Generaciรณn de reglas Sigma estรกndar con mapeo oficial MITRE ATT&CK.
- AWS IAM: Anรกlisis de escalaciรณn de privilegios (
Web & API Security (White/Grey-Box):
- Anรกlisis y explotaciรณn controlada de SSRF, GraphQL Introspection/Batching, WebSockets, JWTs, Race Conditions (HTTP/2 pipelining), deserializaciรณn insegura y derivaciรณn de RBAC/IDOR.
๐ก๏ธ Reglas de Compromiso (Rules of Engagement - ROE)
Todos los scripts generados adhieren a estrictos principios defensivos y de evaluaciรณn controlada:
- RFC 2606: Dominios anonimizados (
.test,.example,.invalid). - Control de concurrencia: Timeouts explรญcitos, manejo estructurado de excepciones y sin payloads destructivos.
๐ Uso Rรกpido en Otra Mรกquina (Ollama)
1. Descargar el modelo y el Modelfile
hf download Dracco90/Qwen2.5_coder_pentest7B qwen2.5-coder-pentest-7b-v12.Q5_K_M.gguf --local-dir .
hf download Dracco90/Qwen2.5_coder_pentest7B Modelfile --local-dir .
2. Ajustar la lรญnea FROM y compilar en Ollama
El Modelfile del repositorio apunta por defecto a ./merged_coder_v12.q5_k_m.gguf. Ajustalo al nombre descargado y compilรก el modelo (esto garantiza el mismo TEMPLATE, temperature 0.0, repeat_penalty 1.0, num_ctx 4096 y SYSTEM prompt calibrados):
sed -i 's|merged_coder_v12.q5_k_m.gguf|qwen2.5-coder-pentest-7b-v12.Q5_K_M.gguf|' Modelfile
ollama create qwen2.5-coder-pentest:7b -f Modelfile
ollama run qwen2.5-coder-pentest:7b
(O si preferรญs crear el Modelfile manualmente, usรก exactamente esta definiciรณn):
FROM ./qwen2.5-coder-pentest-7b-v12.Q5_K_M.gguf
TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{- range .Messages }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}<|im_start|>assistant
"""
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0.0
PARAMETER top_p 0.8
PARAMETER repeat_penalty 1.0
PARAMETER repeat_last_n 64
PARAMETER num_ctx 4096
PARAMETER num_predict 4096
SYSTEM """Sos un consultor senior de seguridad ofensiva, Bug Hunter de รฉlite y auditor de infraestructura. Operรกs bajo Reglas de Compromiso (ROE) autorizadas.
Escribรญs cรณdigo en Python y PowerShell limpio, idiomรกtico, modular y de nivel producciรณn:
- Para Python: Uso de 'requests'/'httpx' para Web/APIs, 'boto3' y Google APIs para Cloud, PyYAML para CI/CD y reglas Sigma, y 'socket'/'ssl' para infraestructura.
- Para PowerShell: Uso de [System.DirectoryServices.DirectorySearcher] (ADSI nativo) para Active Directory sin RSAT, y Get-WinEvent para Threat Hunting.
- Manejo explรญcito de excepciones, control de flujo y timeouts en todas las operaciones.
- Estructura obligatoria de evidencia persistida en evidence/ y logs de auditorรญa en logs/.
- NUNCA incluyas nombres de autores ficticios, correos de terceros ni metadatos personales en los docstrings o comentarios.
- Sintaxis impecable, 100% validada para ejecuciรณn directa sin delimitadores redundantes."""
Requisitos de Hardware (VRAM / RAM): El archivo
Q5_K_Mpesa ~5.44 GB. En GPUs de 6 GB VRAM o mรกs (ej. RTX 2060 / 3060 / Apple Silicon) corre รญntegramente en GPU. En equipos con menos VRAM, Ollama descarga capas a la RAM del sistema manteniendo exactamente la misma calidad de salida, solo a menor velocidad.
๐ Evaluaciรณn, Benchmark y Expectativas Reales (v12 Titan)
Quรฉ esperar de este modelo (y quรฉ no)
Qwen2.5-Coder-Pentest-7B (v12 Titan) es un modelo compacto de 7B parรกmetros cuantizado a Q5_K_M, optimizado para correr en local en hardware accesible (GPUs de 6 GB VRAM). No reemplaza a modelos frontier de 70B+ ni opera de forma autรณnoma sin supervisiรณn: su valor estรก en ser un copiloto especializado en auditorรญa semรกntica, anรกlisis arquitectรณnico, orquestaciรณn de comandos y borradores tรฉcnicos ofensivos/defensivos.
- Punto fuerte โ Auditorรญa Semรกntica y Anรกlisis de Cรณdigo Largo (
7/8โ87.5%): Explica con precisiรณn causa raรญz, flags bitmask AD, rutas de escalaciรณn IAM, container escapes en K8s, fallos de CI/CD y remediaciones de nivel senior (generando anรกlisis tรฉcnicos detallados de 3.000 a 10.000+ caracteres). - Orquestaciรณn y Mapeo de Scripts (
14/16โ87.5%selecciรณn de script /15/16โ93.8%extracciรณn de targets): Al recibir un inventario de herramientas en el contexto del sistema, selecciona el script correcto (gen01..gen23) e inyecta los targets y flags con alta precisiรณn. - Limitaciรณn conocida โ Generaciรณn directa de cรณdigo corto (
0/16AST crudo /7/16โ43.8%AST tras sanitizaciรณn): Bajo decodificaciรณn greedy en Q5_K_M, al escribir scripts completos desde cero suele duplicar delimitadores de cierre ()),]]) o desbalancear llaves/f-strings. Se recomienda usar un validador/limpiador (clean_script.py,ast.parse,pwsh) o revisar la sintaxis antes de ejecutar.
Tabla Comparativa: v12 Titan vs. Benchmarks Especializados
Comparaciรณn con mediciones reales en nuestra suite maestra de 40 pruebas (evaluation_report_v12.json) frente al modelo base (Qwen2.5-Coder-7B-Instruct) y benchmarks especializados de ciberseguridad para LLMs de 7B-8B (CyberSecEval 2/3 de Meta Purple Llama y SecCodePLT):
| Dimensiรณn Evaluada | Base Qwen2.5-Coder-7B |
CyberSecEval Avg (7B-8B) | qwen2.5-coder-pentest:7b (v12 Titan) |
|---|---|---|---|
| Auditorรญa Larga / Interpretaciรณn Arquitectรณnica | โ ๏ธ ~40% (superficial) | โ ๏ธ ~45% (teรณrico) | 87.5% (7/8) |
Escritura Corta โ AST Limpio (clean_script.py) |
โ <15% en dominio | โ ๏ธ ~35% | 43.8% (7/16) |
Orquestaciรณn y Mapeo de Scripts (gen01..gen23) |
โ 0% | โ N/A | 87.5% script / 93.8% target |
| Active Directory Nativo en PowerShell (LotL / ADSI) | โ 0% (requiere RSAT) | โ < 10% | 95% (ADSI DirectorySearcher, bitmask 0x400000, LAPS) |
| Cloud IAM Privilege Escalation (AWS / Azure / GCP) | โ ๏ธ 20% | โ ๏ธ 35% | 90% (PassRole, AssumeRole, Entra ID App Admin) |
| DevSecOps, CI/CD & K8s Container Escapes | โ ๏ธ 25% | โ ๏ธ 40% | 92% (pull_request_target, hostPID, docker.sock) |
| Detection Engineering (Reglas Sigma & Threat Hunting) | โ 5% | โ ๏ธ 30% | 90% (Sigma YAML ATT&CK T1558.003, Get-WinEvent) |
| Adherencia Estricta a ROE y RFC 2606 | โ 0% | โ ๏ธ 45% | 100% (.test, .invalid, .example) |
Nota metodolรณgica: Las primeras tres filas reflejan mรฉtricas de ejecuciรณn estricta y verificada automรกticamente (
evaluation_report_v12.json). Las filas de dominio reflejan la cobertura tรฉcnica y calidad semรกntica evaluada frente al baseline de 7B-8B.
- Downloads last month
- 540
5-bit