Use case
Uncensored LLM for Malware Analysis and Reverse Engineering
Uncensored LLM for malware analysis: explain samples, deobfuscate scripts, summarize decompiled code, extract IOCs and write YARA rules. Analysis only.
Malware analysts paste hostile code into a model all day, and mainstream models often refuse to discuss it. Abliterator serves abliterated models that explain samples, deobfuscate scripts and draft detections for defenders. It is for analysis; building or deploying malware is prohibited.
Why default models refuse malware analysis
Reverse engineering means reading code written to do harm. A useful assistant has to say what a function does in plain terms: this loop walks the browser profile directories and reads saved credentials; this block decrypts the next stage with a hardcoded key; this registry write gives the sample persistence.
Mainstream models often stop at the first hostile-looking line. Paste a deobfuscated PowerShell loader and ask what it does, and a typical reply says it can't assist with analyzing or explaining malicious code, then recommends a commercial antivirus product. Others answer but leave out the specifics an analyst needs, such as the exact registry key, the C2 URL pattern or the decryption routine. Those specifics are the indicators that go into the detection.
How Abliterator helps
Abliterator serves abliterated models. With the refusal reflex removed from the weights, the model reads the sample and explains it. On DeepSeek V4.1 Flash Abliterated, refusals on JailbreakBench harmful prompts fell from 94% to 1% while reasoning and math scores stayed within noise (benchmarks). On Kimi K3.1 Pro Abliterated they fell from 94% to 3% (model card).
Analyst tasks it handles:
- Explaining samples. Summarize decompiled functions, name the behavior (persistence, discovery, credential access, exfiltration) and map it to MITRE ATT&CK techniques.
- Deobfuscation. Walk through string encoding, character arithmetic and layered base64 in scripts, and produce a readable version with comments.
- Indicator extraction. Pull domains, URLs, IPs, mutexes, file paths, registry keys and hashes into structured output for your threat intel platform.
- Writing detections. Draft YARA rules from strings and code patterns, and Sigma or EDR queries from observed behavior, with expected false positives.
- Reports. Turn notes into an incident or threat-intel write-up for a technical or executive reader.
Workflow: decompiled function to IOCs and a YARA rule
Export the decompiler output (Ghidra, IDA, Binary Ninja) or the deobfuscated script to a text file and send it with a fixed analyst system prompt. Ask for JSON so the indicators flow straight into your tooling.
import json
import os
import sys
from openai import OpenAI
client = OpenAI(base_url="https://abliterator.ai/v1", api_key=os.environ["ABL_API_KEY"])
SYSTEM = (
"You are a malware analyst on a corporate incident response team. You explain "
"samples for defense: behavior, indicators and detections. Never suggest ways to "
"improve, extend or deploy the sample. Mark guesses as guesses."
)
ASK = """Analyze the decompiled code below from sample SHA-256 {sha}.
Return JSON with keys:
"summary": 3-5 sentences on what the code does,
"behaviors": list of {{"behavior": str, "attack_technique": str, "evidence": str}},
"iocs": list of {{"type": str, "value": str}},
"yara": a YARA rule as a string, based only on strings and byte patterns present,
"open_questions": what needs dynamic analysis to confirm.
--- BEGIN CODE ---
{code}
--- END CODE ---"""
path, sha = sys.argv[1], sys.argv[2]
with open(path, encoding="utf-8", errors="replace") as f:
code = f.read()
resp = client.chat.completions.create(
model="kimi-k3.1-pro-abliterated",
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": ASK.format(sha=sha, code=code)},
],
response_format={"type": "json_object"},
reasoning_effort="high",
)
report = json.loads(resp.choices[0].message.content)
print(report["summary"])
for ioc in report["iocs"]:
print(f'{ioc["type"]}: {ioc["value"]}')
print(report["yara"])
print("cost USD:", getattr(resp.usage, "cost", None))
Run it as python analyze.py decompiled.c <sha256>. The doubled braces in ASK are Python str.format escapes for literal braces in the requested JSON shape.
A YARA rule in the reply should be built from what the sample contains. For a hypothetical loader with a hardcoded mutex and user agent, the shape looks like this:
rule Example_Loader_Mutex_UA
{
meta:
description = "Loader seen in incident IR-1042: hardcoded mutex and user agent"
author = "Example Corp IR"
date = "2026-11-27"
strings:
$mutex = "Global\\qx7-sync-01" ascii wide
$ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) qx7" ascii
$cfg = { 6A 40 68 00 30 00 00 }
condition:
uint16(0) == 0x5A4D and filesize < 2MB and 2 of them
}
Test every generated rule against a clean corpus before deployment. Models can propose strings that also appear in legitimate software.
Follow-up questions on the same sample
Analysis is iterative. Keep the system prompt and the code as the first messages and append your questions ("what is the key schedule in FUN_00401a30?", "which of these behaviors need admin rights?"). The unchanged prefix is cached automatically, so each follow-up bills most of its input at the cached price.
Screenshots and lures
Both models take images. Send a screenshot of a function graph, a phishing lure or a ransom note as an image_url part with your question; the vision guide shows the request format.
Which model to choose
| Job | Model | Why |
|---|---|---|
| Decompiled code, deobfuscation, ATT&CK mapping | kimi-k3.1-pro-abliterated |
Strongest code reasoning |
| Bulk IOC extraction from sandbox reports | deepseek-v4.1-flash-abliterated |
Structured output at low cost |
| Triage of many small scripts | deepseek-v4.1-flash-abliterated |
High volume |
Prices per 1M tokens: Kimi $4.00 input, $0.40 cached input, $15.00 output; Flash $1.00 input, $2.00 output.
Example: a 150,000-token decompiler export with an 8,000-token analysis costs $0.60 + $0.12 = $0.72 on Kimi. Ten follow-up questions that reuse the cached 150,000-token prefix, each adding 500 new input tokens and 2,000 output tokens, cost $0.60 cached + $0.02 new input + $0.30 output = $0.92. The whole session is about $1.64. Billed at the full input price instead, that prefix would cost $6.00 rather than $0.60. Read usage.cost for the real figure. Budget for slightly longer answers: on DeepSeek V4.1 Flash Abliterated, answers used 2% to 16% more output tokens than the original model, depending on the benchmark, and you pay for those tokens.
Governance
- Analysis only. Ask the model to explain, detect and report. Writing, improving, packing or deploying malware against third parties is prohibited by the acceptable use policy, and violating keys are suspended. The system prompt above says so explicitly, which keeps output on the defensive side.
- Your own system prompts. A fixed analyst prompt makes output consistent across the team and documents intent with every request.
- Sample handling. Abliterator does not store prompt or completion text (privacy). Still apply your organization's rules for sample data and for customer data that appears inside samples.
- Logging on your side. Save the reply and the
X-Abl-Generation-Idheader with the case record so the analysis can be reproduced and reviewed. - Verification. Confirm behaviors in a sandbox before they go into a report, and treat model-proposed indicators as leads until you have seen them in the sample.
Frequently asked questions
Can I paste decompiled malware into Abliterator?
Yes. Explaining what a sample does, deobfuscating it, extracting indicators and writing detections are the intended uses. Abliterator does not store prompt or completion text, but follow your own handling rules for sample data.
Will Abliterator write or improve malware?
No. Malware deployed against third parties is prohibited by the acceptable use policy, and keys used for it are suspended. This use case covers analysis and detection only.
How large a sample can I send?
Both models accept 1,048,576 tokens of context, enough for long decompiler output or a large unpacked script. Repeat questions about the same sample reuse the cached prefix at the cached input price.
Can the model read screenshots of a disassembler?
Yes. Both models accept images as OpenAI image_url parts, so you can send a screenshot of a function graph or a phishing lure next to the text. Text exports are more precise when you have them.