Why security teams run into refusals
Defence depends on understanding offence. A penetration tester has to read exploit code, a reverse engineer has to explain what a dropper does, and a detection engineer has to describe an attack well enough to write a rule for it. General-purpose assistants often treat these as dangerous topics and answer with a refusal or a vague warning. That is a poor fit for people whose job is to find weaknesses before someone else does.
Unrestricted ai for cybersecurity is the search phrase that follows. What people usually want is not a tool that attacks for them. They want a colleague who will talk about vulnerabilities plainly, read hostile code without flinching and draft the dull parts of the work.
The model behind this API is an open-weight model tuned to answer without content refusals for lawful adult use. The word lawful matters here more than anywhere. Authorisation, scope and the law in your jurisdiction decide what you may do. The model does not check any of that, so you must.
Workloads that fit well
Source code review
Feed a file or a diff and ask for injection points, unsafe deserialisation, missing authorisation checks, hard-coded secrets and risky dependencies. Models are good at spotting patterns across a few thousand lines and explaining why a pattern is dangerous.
Malware and log triage
Paste a decoded script, a suspicious macro or a chunk of authentication logs, and ask what it does, what indicators it exposes and what to check next. This is analysis of samples you already hold, which is routine in incident response.
Detection engineering
Ask for first drafts of Sigma, YARA or Suricata-style rules from a description of the behaviour, then test them against your own data. The draft saves time; the testing is still yours.
Reporting and training
Turn terse notes into a client-ready finding with impact, reproduction steps and remediation advice. Generate scenarios for tabletop exercises, or explain a CTF challenge you are stuck on.
Notice what the list leaves out: attacking systems you do not own, and targeting individuals. Do not do those, with this tool or any other.
A few concrete prompts show the register that works well. "Explain what this PowerShell does line by line and list the network indicators" gives an analyst a quick start on an unknown script. "Here is a failed login pattern from our SSH logs; suggest three hypotheses and the log queries to separate them" speeds up triage. "Rewrite this finding for a non-technical executive, keeping the severity rating" saves an hour at the end of an engagement.
A code review call with structured output
For tooling you want machine-readable results. JSON mode returns valid JSON; describe the shape you expect in the prompt. The endpoint is OpenAI-compatible, with base URL https://api.unrestrictedaimodels.cc/v1 and model uncensored.
import json
from openai import OpenAI
client = OpenAI(
base_url="https://api.unrestrictedaimodels.cc/v1",
api_key="YOUR_API_KEY",
)
SYSTEM = (
"You are a senior application security reviewer. Return a JSON object with the key "
"'findings', an array of objects with: line (integer), category (string), "
"severity (low|medium|high), explanation (string), fix (string). "
"Report only issues you can point to in the code. If none, return an empty array."
)
def review(path):
code = open(path, encoding="utf-8").read()
resp = client.chat.completions.create(
model="uncensored",
temperature=0.1,
response_format={"type": "json_object"},
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": "File: " + path + "\n\n" + code},
],
)
return json.loads(resp.choices[0].message.content)["findings"]
for f in review("app/auth.py"):
print(f["severity"], f["category"], "line", f["line"])
A low temperature makes the output steadier, and a fixed seed makes reruns comparable when you tune the prompt. The instruction to report only what can be pointed to in the code cuts down on invented issues, though it does not remove them.
Scanning many files within the limits
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. Exceed either and the API returns HTTP 429, with error code concurrency or rate_limited. Plan for it with a bounded worker pool and retries.
import asyncio
from openai import AsyncOpenAI, RateLimitError
client = AsyncOpenAI(
base_url="https://api.unrestrictedaimodels.cc/v1",
api_key="YOUR_API_KEY",
)
gate = asyncio.Semaphore(8)
async def scan(path, text):
async with gate:
for attempt in range(4):
try:
r = await client.chat.completions.create(
model="uncensored",
temperature=0.1,
messages=[
{"role": "system", "content": "List security weaknesses with line numbers. Be terse."},
{"role": "user", "content": path + "\n" + text},
],
)
return path, r.choices[0].message.content
except RateLimitError:
await asyncio.sleep(5 * (attempt + 1))
return path, None
async def main(files):
return await asyncio.gather(*(scan(p, t) for p, t in files))
Set the semaphore to your key's concurrency limit, which is 8 for a full key and 2 for a trial key. The 100,000 token window means most single files fit with room to spare, but split very large ones. If a request body goes past 8 MB it will be rejected, which is a sign that you are sending too much at once.
Group findings by file and severity before showing them to a human. Reviewers tire quickly of long flat lists, and a sorted view lets them check the high-severity items first. Keep the raw model output alongside your processed version, so you can audit later why something was flagged or dismissed.
Tool calling for triage assistants
Tool calling lets the model request data instead of guessing. You describe functions such as lookup_hash, whois_domain or grep_repo, pass them in tools, run whichever the model asks for and send results back as messages with role tool. The model then folds that evidence into its answer.
The key design point is that your code executes the tools, so your code enforces scope. Make the functions read-only where possible, allow-list the targets they can touch and log every call. A model without refusals will happily call whatever you expose. The guard rails sit in your orchestration layer, which is where they belonged anyway.
The documentation shows the request format for tools and tool_choice in detail.
Prompt injection deserves its own mention. If your triage assistant reads attacker-controlled text, such as a phishing email or a log line, that text can contain instructions aimed at the model. Keep untrusted content clearly separated in the prompt, never give the model tools that can change systems based on it, and review actions before they run.
Verification and data handling
Two disciplines matter more than any prompt.
Verify everything
Models produce plausible findings that are wrong. They can cite a line that does not contain the issue, name a CVE that does not apply or write a detection rule that never fires. Treat each output as a hypothesis. Reproduce the issue, run the rule against known-good and known-bad data, and keep a human reviewer in the loop before anything reaches a client report.
Respect the data you hold
Prompts are not used for training, but your engagement contract may still limit where client code, credentials or personal data can go. Strip secrets and personal data before sending, or get written approval for the transfer. Never paste live credentials into a prompt.
The same rule that applies to every use of this service applies here: sexual content involving minors is never allowed, and you remain responsible for staying within the law and your scope of authorisation.
Build a small gold set before you trust the pipeline. Take ten files with known issues and ten clean ones, run the review, and count hits, misses and false alarms. Those three numbers tell you how much human review you still need, and they let you compare prompt versions honestly.
Cost of a real scan
Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. Say you review 500 files that average 3,000 tokens each, and the model replies with about 400 tokens per file.
- Input: 500 × 3,000 = 1,500,000 tokens, so 1.5 × $0.15 = $0.225
- Output: 500 × 400 = 200,000 tokens, so 0.2 × $0.50 = $0.10
- Total: $0.325
Rerunning the whole repository after every release is affordable at that price. Requests that fail or are refused are not charged, and credit never expires.
To try it, sign up for a key, claim the $0.50 trial credit with one click on the key page (one per person, 7 days, no card), and run a single file you already understand well. If the findings match what you know, scale up. Top-ups run from $20 to $500, payable by crypto; see pricing. For related background, our guide to models without guardrails explains what this class of model can and cannot do.
