Security log triage with an LLM
Security log triage with a model
Use orcacyber-minimax-m3.1-flash at https://api.pentestllm.ai/v1 to triage a batch of security or authentication logs you have already collected and redacted: your script groups the repeated events, sends the grouped facts, and gets one short note per group and a suggested review order back. Every line the model flags is a lead a responder checks against the source, not a confirmed alert.
from openai import OpenAI client = OpenAI(base_url="https://api.pentestllm.ai/v1", api_key="sk-ptl-live-…") reply = client.chat.completions.create( model="auto/security", messages=[{"role": "user", "content": "Explain this advisory and list what to check on an affected host."}],)print(reply.model) # the build that answeredprint(reply.choices[0].message.content)Reading a batch you already hold
Keep observed strings and their source offsets in an IOC evidence register. If the source is a finished detonation report, sandbox report evidence review separates recorded behavior from heuristic labels.
A day of authentication logs from a handful of servers runs to tens of thousands of lines, nearly all of them routine. The job is to find the few groups worth a person’s attention and to say why, and that is a reading task a model handles well once the noise is folded. This page starts with the export on your machine, collected by someone with authorized access during an investigation or a scheduled review. The model never connects to a log source, never runs a query and never sees a system; it reads the grouped text you send and returns notes.
Fold the noise in code, not in the prompt
Group lines by the fields that define an event type: the source, the message template with its variable parts removed, the actor placeholder and the result. Ten thousand successful logins by the same service account at the same interval become one group with a count and a time range. Two hundred failed logins against forty accounts from one address become one group with the account count and the address placeholder. Keep every line reference inside its group. Grouping is deterministic when you do it, and it is not when a model does it, which is why the model is never asked to.
Give each group an id, the message template, the count, the first and last time, the distinct actors and the distinct sources. Send a sample of two or three original lines with placeholders applied, so the model can see the real shape.
Placeholders for every identifier
Account names, host names and addresses are replaced before the request, with a map kept on your side and the same placeholder used for the same value across the batch. Log lines also carry session ids and sometimes tokens; strip those entirely, since a note about a group never needs them. The gateway’s redaction setting catches a secret that slips through, and that is its role here, a second net under your own pass.
Ask for a note per group and an order
Ask for one note per group id that says what the pattern usually means and what a responder would open to decide whether it matters here, plus a review order across all groups. Constrain the reply through a json_schema response format, so each note is tied to its group id and has a fixed set of fields; orcacyber-minimax-m3.1-flash lists response_format on the live catalog and answers quickly on a large batch. Tell the model that every group is from authorized log collection, that it must not call any group an incident, and that it must add no actors, hosts or events that are not in the group.
A reply’s usage.cost says what that batch cost, and its request id travels in the response headers; the security builds’ per-token rates are on the pricing page.
A flag is a lead, not an alert
A model will flag a burst of failures as a possible password spray or an odd login hour as worth a look. Those are reasons to open the group, nothing more. The service account that logs in at three in the morning may be the backup job; the burst of failures may be a misconfigured client. The responder opens the source lines, checks the context the model cannot see, and decides. Nothing from the model’s notes goes into a ticket or a report until that check is done and the responder’s name is on it.
From triage to timeline
Triage tells you which window and which actors matter. Once a responder has confirmed that a group is worth a full look, the lines in that window go to the incident timeline page, which orders them with every entry tied to a line. If the investigation reaches a file or a sample, the malware analysis hub covers that reading, and if the review suggests a detection should have fired, the detection rule review page is where an existing rule gets checked. The grouped file, the model’s notes and the responder’s verdicts stay together in the case record.
16 security builds, priced per token
USD per million tokens, live on 2026-12-03; auto/security bills at the build that answers.
Detected refusals and invalid non-streamed JSON qualify for automatic refunds within the daily cap. Verify your receipt.
| Wire formats | |||||
|---|---|---|---|---|---|
| Qwen3.8 27B Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Uncensored Qwen3.8 27b Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Gemma 4 26B A4B Cybersecurity | Security | $0.4224 | $1.3376 | 262K | |
| Gemma 4 26B A4B Cybersecurity (Uncensored) | Security | $0.48 | $1.52 | 262K | |
| GLM-5.3 Flash Cybersecurity | Security | $0.525 | $1.75 | 1049K | |
| GLM-5.3 Flash Cybersecurity (Uncensored) | Security | $0.525 | $1.75 | 1049K | |
| Red Team (Flash) | Security | $0.90 | $3.00 | 1000K | |
| Red Team (Pro) | Security | $1.455 | $5.82 | – | |
| OrcaCyber MiniMax M3.1 Flash | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber MiniMax M3.1 Flash (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next | Security | $2.00 | $4.00 | 262K | |
| Uncensored Qwen3.8 Flash Next Cybersecurity | Security | $2.00 | $4.00 | 262K | |
| Cyber Frontier | Security | $5.25 | $15.75 | 1049K | |
| OrcaCyber Zero 1.5 | Security | $7.50 | $18.75 | 999K | |
| OrcaCyber Zero 1.5 (Uncensored) | Security | $7.50 | $18.75 | 999K |
Questions
How do I group log noise before the model sees it?
In your script, by source, message template with the variable parts removed, actor placeholder and result, keeping every line reference inside its group with a count and a time range. Grouping done in code is repeatable; grouping done by a model is not, so the model is never asked to.
Does a model flag mean an incident?
No. A flag is a reason for a responder to open that group’s source lines and check the context the model cannot see, such as whether the odd-hour login is a scheduled job. The responder decides and signs; the model’s note never becomes a ticket on its own.
What stays on my machine?
The raw logs, the placeholder map, the session ids and tokens you stripped, and the grouped file with every line reference. The model receives only the group summaries with placeholders applied and a few sample lines, and returns notes. This API does not keep request or response bodies by default.
Why this model for log triage?
orcacyber-minimax-m3.1-flash supports the schema response that ties each note to its group id and answers quickly on a large batch, which suits a daily review. It was available on the live catalog on the date below; check the catalog before pinning it in a script.