How a local-first repository security analyzer separates what a scanner can establish from what a language model can only suggest, how that separation is evaluated, and what the evaluation does and does not show. Every internal figure is quoted from the documentation shipped with release v0.3.0, which this site republishes unchanged under /cyber/docs.
verified: false. Prompt-injection resistance rests on structure, not on the model obeying instructions: a constant system prompt, repository text confined to an escaped <untrusted_data> block, and model output rendered only as escaped text (architecture).tantular-cyber:latest scores 57% on evidence_grounded (Wilson 95%: 0.48–0.66). qwen3:8b scores 95% there but 83% on remediation_sound, where Tantular scores 98%. These are deterministic lexical proxies, no human review data exists yet, and model family is confounded with quantization, so this is evidence for choosing models per security task, not a ranking.Tantular Cyber is a command-line analyzer for a repository the user is authorized to assess. It reads the repository without executing or importing any of it, runs Semgrep with five bundled local rulesets and an in-process Python call-graph scanner, normalizes the findings, and writes report.json (a versioned schema, 1.3.0) and report.md. Since v0.3.0 the scan is deterministic by default; explanations in Bahasa Indonesia from a local model served by Ollama are opt-in with --ai (changelog).
The pipeline has five stages. Only the fourth involves a model, and it runs only when asked for. Each stage’s output either keeps the trust level of its input or lowers it; nothing downstream can promote model text into a scanner fact.
| DATA | TRUST | HANDLING |
|---|---|---|
| Scanner result | Authoritative | Never modified by the model. |
| Repository content | Untrusted | Read-only; redacted before it leaves the process; reaches the model only as escaped JSON inside an untrusted-data block. |
| Model output | Untrusted, advisory | Schema-validated, sanitized, overclaim-guarded, CVE ids stripped; verified: false always. |
| Ollama model list | Untrusted metadata | Cloud-backed models refused for --ai unless the user opts in. |
| Third-party plugins | Untrusted | Manifests validated, output normalized; plugin code is never executed. |
ast.parse and follows a call only when it resolves to exactly one repository function. Dynamic dispatch, ambiguous redefinitions, star imports and external calls are counted as unresolved, never turned into findings. A finding needs a value that was built (f-string, concatenation, %, .format, path joins) or raw request input reaching a sink. Budgets are hard: call depth 3, 2,000 files, 20,000 functions, 8 trace steps. Each finding carries its call path and an uncertainty note, which the model receives as untrusted data.The benchmark measures scanner detection and explanation quality separately, because they fail differently. A fluent explanation cannot make up for a missed vulnerability, and perfect recall says nothing about whether the text overstates impact (benchmark method).
| SCANNER DETECTION | EXPLANATION QUALITY | |
|---|---|---|
| Question | Did the rule flag the right lines? | Is the advisory text faithful, cautious and useful? |
| Method | Deterministic matching to annotated ground truth | Deterministic proxy checks, plus a human-review queue |
| Stability | Exactly reproducible | Sample-based; varies with model, seed and hardware |
| CI | Gated | Never gated; reported only |
33 cases: 29 synthetic and 4 CVE-informed, all written independently under Apache-2.0, with no third-party code copied (provenance audit). A CVE-informed case reproduces the publicly described pattern, not the original code, and records how it differs. Each annotation states what the code really is (vulnerable or safe) and, separately, what the current ruleset is expected to do, so known false positives and negatives are explicit labels rather than surprises. Labels never appear inside case files, because the model reads them; a test enforces this.
Matching is deterministic: same file, CWE in the finding’s list, intersecting line ranges, one-to-one assignment closest to the sink. Any detection that differs from its expectation fails the build, including an improvement, so a change in behaviour is always reviewed rather than silently absorbed.
Nine deterministic checks score each explanation, among them evidence_grounded (every identifier cited as evidence occurs in the evidence shown), impact_separated (conditional impact present and hedged), remediation_sound (parameterization recommended; any corrected code parses and passes parameters) and injection_resisted. Rates carry Wilson 95% intervals [1]; models are compared on paired samples with an exact McNemar test [2]. Model comparisons pin sampling options so Modelfile defaults cannot differ between arms, and record each model’s digest and weights blob before and after the run.
A human-review workflow exists, with pseudonymous reviewers, Cohen’s kappa for agreement [3] and a comparison of human consensus against the proxies. It is tested with synthetic ratings only; no real reviewer data exists yet (evaluation workflows).
| CWE | TP | FP | FN | TN | PRECISION | RECALL |
|---|---|---|---|---|---|---|
| CWE-89 SQL injection | 20 | 4 | 2 | 8 | 0.83 | 0.91 |
| CWE-78 OS command injection | 6 | 1 | 0 | 3 | 0.86 | 1.00 |
| CWE-22 Path traversal | 5 | 1 | 0 | 3 | 0.83 | 1.00 |
| CWE-79 Cross-site scripting | 7 | 1 | 1 | 6 | 0.88 | 0.88 |
| CWE-798 Hard-coded credentials | 5 | 1 | 1 | 3 | 0.83 | 0.83 |
| All five | 43 | 8 | 4 | 23 | 0.843 | 0.915 |
Each CWE row rests on between 9 and 34 labelled locations, so a single case moves its rate by several points. In the POC-004 run every false positive and false negative was a documented limitation, one of each per new CWE by design; the remaining false negatives include the pinned limits on call depth and dynamic dispatch.
40 findings × 3 seeds, n = 120 per model, zero request errors, on an Apple M4 Pro with 24 GB under Ollama 0.40.2. During the run Ollama migrated two models’ weight files between requests; those arms are kept but marked, and one of them turned out to be served by the Tantular Cyber weights for 118 of 120 samples.
| MODEL | QUANT | EVIDENCE GROUNDED | IMPACT SEPARATED | REMEDIATION SOUND | P50 S |
|---|---|---|---|---|---|
tantular-cyber:latest | Q8_0 | 57% (0.48–0.66) | 92% (0.85–0.95) | 98% (0.93–0.99) | 25.9 |
qwen3:8b | Q4_K_M | 95% (0.89–0.98) | 100% (0.97–1.00) | 83% (0.76–0.89) | 12.9 |
qwen3.5:9b⚠ mixed model files | Q4_K_M | 56% (0.47–0.65) | 87% (0.79–0.92) | 96% (0.91–0.98) | 31.2 |
tantular-office:0.5-9b⚠ not independent | Q8_0 | 57% (0.48–0.66) | 91% (0.84–0.95) | 98% (0.93–0.99) | 24.4 |
On the one clean pair, qwen3:8b beats tantular-cyber:latest on evidence grounding (27 vs 0 discordant pairs, p < 0.001) and impact separation (10 vs 0, p = 0.002), loses on remediation (3 vs 20, p = 0.0005), and answers about twice as fast at the median. All four models score 100% on schema validity, absence of unsupported assertions and Bahasa Indonesia. tantular-cyber:latest is a prompt and parameter profile of the same weights as ghifidanukusumo/tantular:latest, not a separate fine-tune: under the pinned request the two gave byte-identical outputs.
There is no telemetry, analytics, login, licence server or update check. The deterministic scan makes no network requests: Semgrep runs with metrics and version checks off against bundled rules, and the call-graph scanner is in-process. Scanned code is never executed or imported, subprocesses run without a shell, secrets are masked before evidence is cut, prompts and source are never logged, and the repository is never written to (privacy model).
.semgrepignore and .gitignore files do not choose scan targets. Coverage is checked against Semgrep’s own list of scanned paths, and any gap, a missing Semgrep or an unsupported platform makes the report degraded, never complete. TESTED PROPERTYSHA256SUMS detects corruption, not tampering; the build-provenance attestation is the integrity anchor. The reproducibility check rebuilds on the same runner, which shows determinism, not independent reproduction.--max-llm-findings.Nothing in this section is in v0.3.0. Each item comes from a follow-up or candidate the release documentation names; none has a date, and the documentation is explicit that coverage candidates are not commitments.
evidence_grounded and the overclaim check can be trusted, which every explanation number above depends on.This dated update adds later research activity without changing the release-tag measurements above. The original synthetic benchmark, historical lexical-proxy model scores and proposed directions retain their original scope. New experiments are not presented as released product capabilities.
An illustrated overview of the open-weight landscape and of the research directions in this update. Its simulations are illustrative, not recordings of experiments. The figures it shows are the measured v0.3.0 grounding proxy (57% vs 95%, synthetic corpus) and the MATH-500 numbers reported by Takehi et al., not Tantular results. The self-improvement loop it depicts is proposed and has not been run.
WSP status is based on the research harness documentation and the Experiment 8 draft protocol dated 2026-11-04, now public in the tantular-cyber repository at the merge of PR #23. Publication does not change their status: the harness has run only on synthetic fixtures, the protocol is an unfrozen draft, and no model experiment or replication has run.