VulnZap Faradayโ€ฏMiniโ€ฏ1

VulnZap Faradayโ€ฏMiniโ€ฏ1 is a 4โ€‘bit GGUF LoRAโ€‘finetuned snapshot of unsloth/Qwen2.5โ€‘Coderโ€‘7Bโ€‘Instruct, trained on ~363 securityโ€‘oriented code snippets and patches.

intended use

  • Patch suggestion โ€“ given a vulnerable code block, return a fixed version.
  • Risk explanation โ€“ describe why the snippet is vulnerable and how the patch mitigates it.
  • CWE classification โ€“ identify vulnerability class from raw code.

Not designed for general chat; it excels at short, codeโ€‘focused prompts.

training details

  • Base model: Qwenโ€ฏ2.5 Coder 7โ€ฏB (instructionโ€‘tuned)
  • Fineโ€‘tuning: LoRA (rโ€ฏ=โ€ฏ64, ฮฑโ€ฏ=โ€ฏ128) with Unsloth on A100 40โ€ฏGB
  • Sequence length: 4โ€ฏ096 tokens
  • Epochs: 3 (effective batch = 8)
  • Quantisation: Q4_K_M via Unslothโ€™s GGUF exporter
  • Date: 2025-07-19

example

### task: patch the vulnerability
### language: typescript
### cwe: CWEโ€‘434 โ€“ unrestricted file upload
### code
import express from 'express';
import multer from 'multer';
const upload = multer();
app.post('/upload', upload.single('file'), (req, res) => {
  /* vulnerable: accepts any file type without checks */
});
### response
<assistant outputs fixed code here>

evaluation

  • manual spotโ€‘checks on 50 heldโ€‘out snippets show

    • 100โ€ฏ% patch compiles,
    • 76โ€ฏ% fully resolves the vulnerability.

(Automatic benchmarks will be added soon.)

limitations & bias

  • trained on openโ€‘source repos โ†’ may underโ€‘perform on exotic frameworks
  • no guarantee the patch is productionโ€‘ready; always review before deploying
  • doesnโ€™t reason about businessโ€‘logic flaws beyond the CWE classes seen in fineโ€‘tuning data

license

Apacheโ€ฏ2.0 for both the adapter and the exported GGUF.


(c) 2025 PlawLabs โ€“ questions: yaz [at] plawlabs.com

Downloads last month
38
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for plaw/vulnzap-faraday-mini-1

Base model

Qwen/Qwen2.5-7B
Quantized
(16)
this model