Views
No views yet
| File | Quant | Size | Notes |
|---|---|---|---|
security-lora.q8_0.gguf | Q8_0 | ~3.2 GB | High fidelity; indistinguishable from F16 for most use |
security-lora.q4_k_m.gguf | Q4_K_M | ~1.9 GB | Runs comfortably on an 8 GB laptop or 4 GB CPU server |
1./llama-cli -m security-lora.q4_k_m.gguf \
2 -p "Analyze this code for malicious behaviour. Source: \`example.js\`.\n\n\`\`\`js\nconst x = require('child_process').exec(process.env.CMD);\n\`\`\`"FROM ./security-lora.q4_k_m.gguf
SYSTEM "You are a security analyst. Given a source code file, return a JSON verdict {verdict, confidence, categories, reasoning, iocs} for whether the code is malicious. verdict ∈ {malicious, suspicious, benign}. Always cite specific line ranges in iocs.lines when flagging behaviour. Be precise and concise."
PARAMETER temperature 0.1
PARAMETER num_ctx 8192
PARAMETER stop "<|im_end|>"1ollama create security-scan -f Modelfile
2ollama run security-scan "Analyze this code..."1{
2 "verdict": "malicious | suspicious | benign",
3 "confidence": 0.0,
4 "categories": ["env_exfil", "crypto_miner", "backdoor", "typosquat",
5 "install_hook_abuse", "obfuscated_eval", "c2_beacon",
6 "credential_theft", "protestware"],
7 "reasoning": "step-by-step taint flow / deobfuscation walkthrough",
8 "iocs": {"domains": [], "files": [], "lines": [], "env_vars": []}
9}