← Tantular Cyber
RESEARCH REPORT · TANTULAR CYBER v0.3.0 · 2026-10-30

Tantular Cyber: deterministic findings, advisory explanations

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.

EVIDENCE-GRADEDSYNTHETIC BENCHMARK · NOT REAL-WORLD RATES
MEASURED
A dated number from a benchmark run recorded in the release documentation.
TESTED PROPERTY
A behaviour the code enforces and the test suite checks. Not a measurement, and not a proof.
INFERENCE
Our reading of the evidence. Stated so it can be disputed.
PROPOSED
Not built in v0.3.0. A research direction, not a commitment or a date.

Five findings, in descending order of confidence

Scanner facts and model text never mix: the model cannot change a finding, its status or the report’s status.
TESTED PROPERTY
Scanner output (rule, CWE, severity, path, lines) is authoritative; model output is schema-validated, sanitized, passed through a lexical overclaim guard and always marked 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).
On a 33-case synthetic corpus, the gated scanners reach precision 0.843 and recall 0.915. These are synthetic benchmark measurements used for regression testing, not estimates of real-world detection performance.
MEASURED
43 true positives, 8 false positives, 4 false negatives and 23 true negatives for Semgrep plus the in-process call-graph scanner (2026-10-29, manifest 1.2.0). We wrote the corpus, its labels and the rules, so the numbers show that the ruleset behaves as documented and has not regressed. They are not an estimate of how it performs on code nobody here has seen (benchmark results).
Interprocedural analysis is where the recall came from: 0.766 with Semgrep alone, 0.915 with the call graph, at no cost in false positives.
MEASURED
The call-graph scanner detects 7 vulnerable locations Semgrep misses, including the five that were documented false negatives after POC-004, and flags no safe-code location that Semgrep did not already flag. False positives stay at 8 in both configurations.
The weak point is the explanation, not the detection: Tantular Cyber’s model grounds its cited evidence in 57% of samples.
MEASURED
Across 120 paired samples per model, 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.
“Local” is a property of the default path and of what Ollama reports, not something the client can prove.
INFERENCE
The deterministic scan has no network path at all, and CI runs it in a network namespace without external interfaces. The optional AI stage talks to a loopback endpoint and refuses models Ollama marks as cloud-backed. But a loopback port that is really a tunnel or proxy cannot be detected by any client, and cloud detection depends on fields a future Ollama version could drop. The release documents this as a residual risk rather than claiming it away (privacy model).
RINGKASAN · BAHASA INDONESIA
Tantular Cyber 0.3.0 memisahkan bukti pemindai yang otoritatif dari penjelasan AI yang hanya bersifat saran. Pada korpus sintetis 33 kasus, Semgrep dan tantular-callgraph mencapai presisi 0,843 dan recall 0,915. Ini adalah hasil pengukuran benchmark sintetis yang dipakai untuk uji regresi pada korpus yang kami tulis sendiri, bukan perkiraan kinerja deteksi di dunia nyata. Analisis lintas-fungsi menaikkan recall dari 0,766 tanpa menambah false positive. Titik lemahnya ada pada penjelasan: model Tantular Cyber hanya mendasarkan bukti yang dikutipnya pada kode yang ditampilkan dalam 57% sampel. Bagian terakhir laporan ini memisahkan arah riset berikutnya dari kemampuan yang sudah ada.

What was built, and what it is not

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).

IN SCOPE
Python code and HTML/Jinja templates; CWE-89, 78, 22, 79 and 798, each with documented sinks, sanitizer boundaries and known false positives and negatives (rules). macOS, Linux and Windows through WSL2.
NOT CLAIMED
Not a vulnerability-management platform, not a general SAST replacement, and not an exploit tool. Every finding is an unverified pattern match: reachability and attacker control are not established, and zero findings does not mean the code is secure.

A pipeline with one-way trust

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.

Trust boundaries

DATATRUSTHANDLING
Scanner resultAuthoritativeNever modified by the model.
Repository contentUntrustedRead-only; redacted before it leaves the process; reaches the model only as escaped JSON inside an untrusted-data block.
Model outputUntrusted, advisorySchema-validated, sanitized, overclaim-guarded, CVE ids stripped; verified: false always.
Ollama model listUntrusted metadataCloud-backed models refused for --ai unless the user opts in.
Third-party pluginsUntrustedManifests validated, output normalized; plugin code is never executed.

Three mechanisms worth describing

Bounded interprocedural taint. The call-graph scanner indexes every in-scope module with 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.
Evidence context from the AST, under a hard budget. A fixed ±3-line window missed values built further up. The context now shows the enclosing function (or its header, the finding statement and the statements binding names used there) plus one level of same-file helpers, cut to 60 lines and 4,000 characters. All displayed lines come from the whole-file-redacted text, which preserves line numbers.
A lexical overclaim guard, in two languages. The model is known to overstate impact. For four claim classes (authentication bypass, data modification, OS command execution, verified exploitation) the guard matches Indonesian and English word families after Unicode normalization and homoglyph mapping. A claim without supporting tokens in the evidence is moved to conditional impact and its confidence forced to low. It is lexical, so novel phrasing can pass; its blind spots are kept as named test cases.

Two questions that must not be blended

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 DETECTIONEXPLANATION QUALITY
QuestionDid the rule flag the right lines?Is the advisory text faithful, cautious and useful?
MethodDeterministic matching to annotated ground truthDeterministic proxy checks, plus a human-review queue
StabilityExactly reproducibleSample-based; varies with model, seed and hardware
CIGatedNever gated; reported only

Corpus and ground truth

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.

Explanation rubric and statistics

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).

What the 2026-10-29 runs measured

FIG. 1 — SCANNER PRECISION AND RECALL BY CONFIGURATION, SYNTHETIC CORPUS (MANIFEST 1.2.0). FULL AXIS 0–1. SOURCE: docs/benchmark-results.md, 2026-10-29
recall · Semgrep + callgraph (gated)0.915
43 of 47 vulnerable locations.
recall · Semgrep only0.766
36 of 47. The 7-location gap is the call graph’s contribution.
recall · callgraph only0.638
30 of 47. Not designed to stand alone: CWE-79 and CWE-798 stay with Semgrep.
precision · Semgrep + callgraph (gated)0.843
8 false positives, the same 8 as Semgrep alone.
precision · Semgrep only0.818
The same 8 false positives; lower only because there are fewer true positives.
precision · callgraph only0.938
2 false positives: conservative resolution trades recall for precision.
TABLE 1 — GATED CONFIGURATION BY CWE
CWETPFPFNTNPRECISIONRECALL
CWE-89 SQL injection204280.830.91
CWE-78 OS command injection61030.861.00
CWE-22 Path traversal51030.831.00
CWE-79 Cross-site scripting71160.880.88
CWE-798 Hard-coded credentials51130.830.83
All five4384230.8430.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.

51 / 51
Detected locations where the AST context shows both the construct and the sink; the ±3-line window showed 47. None over budget.
50 + 7
Overclaim suite: 50 items pass, 7 documented blind spots behave as documented. Secrets suite: 23 pass, 4 known gaps.
3 / 7
Real-world pointers detected; 2 of the 6 held out from rule development. Upstream labels are unverified, so this is a count, not a rate.

Explanation quality across models

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.

TABLE 2 — DETERMINISTIC PROXIES, WILSON 95% INTERVALS. PINNED OPTIONS, SAME SYSTEM PROMPT
MODELQUANTEVIDENCE GROUNDEDIMPACT SEPARATEDREMEDIATION SOUNDP50 S
tantular-cyber:latestQ8_057% (0.48–0.66)92% (0.85–0.95)98% (0.93–0.99)25.9
qwen3:8bQ4_K_M95% (0.89–0.98)100% (0.97–1.00)83% (0.76–0.89)12.9
qwen3.5:9b⚠ mixed model filesQ4_K_M56% (0.47–0.65)87% (0.79–0.92)96% (0.91–0.98)31.2
tantular-office:0.5-9b⚠ not independentQ8_057% (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.

A CHANGE THAT WAS REJECTED
A concise prompt profile cut median latency 10–17% and raised evidence grounding from 56% to 72% (not significant, p = 0.087), but lost remediation in 12 paired samples with no gains (p = 0.0005). The adoption rule puts quality first, so the default stayed. A 4,096-token context produced the same outputs as 8,192 with no speed-up.
AN OBSERVATION, NOT A FINDING
Letting each Modelfile’s own system prompt and parameters apply, the same weights score about 77% on evidence grounding instead of 57%. The two modes differ in several ways at once, so the release records this as a hypothesis for the next investigation, not a reason to change defaults.

What is guaranteed, and what is only reported

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).

Coverage cannot shrink silently. Repository .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 PROPERTY
Loopback is not proof of local inference. A port that forwards to another machine is invisible to any client, and cloud-model detection fails open if Ollama renames the fields it relies on. One consent flag currently covers both remote endpoints and cloud-backed models. INFERENCE
Redaction is heuristic. Known token formats, encoded credentials, credential-named assignments and credentials in comments are masked; plain-letter unquoted values, hex or custom encodings and secrets in innocuously named variables are not. Secret-like files are never read at all.
Release integrity. SHA256SUMS 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.

Read these before the numbers

  • The corpus is small, synthetic and written by the same team as the rules. Precision and recall are synthetic benchmark measurements used for regression testing; they are not, and should not be quoted as, estimates of real-world detection performance.
  • The real-world sample is seven pointers to upstream code with advisory labels nobody here has independently verified. It supports descriptive counts only.
  • Explanation scores are lexical proxies. They can be fooled, and no human ratings exist to calibrate them.
  • Model comparisons confound model family with quantization (Q8_0 against Q4_K_M), and two of four arms are exploratory because their weight files changed or were shared.
  • Rules are syntactic and scoped; the call graph stops at depth 3 and does not follow dynamic dispatch. Nothing establishes that an attacker controls the value reaching a sink.
  • Latency is hardware-specific: about 26 s per finding at the median for the 9.7B Q8_0 model on the test machine, sequential, so a scan with many findings is bounded by --max-llm-findings.

Research directions, kept apart from what exists

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.

Find out why evidence grounding sits at 57%.
PROPOSED
The release names this the next model-quality milestone. The open question is whether the cause is the evidence supplied, the model’s use of it, the prompt or the rubric itself. The profile-mode observation in § 04 is one lead, and needs a design that changes one variable at a time.
Collect real human ratings and calibrate the proxies against them.
PROPOSED
The two-reviewer workflow with kappa and adjudication is built and tested on synthetic ratings. Real ratings would show how far evidence_grounded and the overclaim check can be trusted, which every explanation number above depends on.
A held-out real-world set with verified labels.
PROPOSED
Today’s pointers carry unverified upstream labels and one of them shaped the rules. A larger set, independently confirmed and kept out of rule development, is what would allow a real-world rate to be reported at all.
Coverage for the sinks the scanners do not model.
PROPOSED
The four missed pointers name the candidates: SQL through vendor SDK methods, directory creation, in-repo command wrappers and helper-based path use. Deeper call chains and dynamic dispatch remain pinned limits.
An enforceable sandbox, before any third-party plugin runs.
PROPOSED
The plugin API 1.0 contract exists; execution stays disabled because a subprocess with a timeout is not a sandbox. Candidates to evaluate are Linux namespaces with seccomp, macOS sandbox profiles, WebAssembly (WASI) runtimes and containers with networking disabled (plugin API).
Tighter provenance and consent.
PROPOSED
Recording the model digest per response rather than per arm, a separate consent switch for cloud-backed models, hash-pinned installs in release smoke jobs, and reproduction on an independent builder.

Research progress since the v0.3.0 report

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.

Exploratory PyGoat scan: 36 findings, independently unverified classifications.
MEASURED
An assessment recorded on 2026-10-31 scanned a pinned, deliberately vulnerable OWASP PyGoat repository using the published v0.3.0 wheel, without running the application. Across 115 Python files, the scanner reported 36 findings: one reviewer classified 29 as true positives and seven as false positives, with six additional known credential misses in dictionary literals. These are single-reviewer exploratory labels, not independently validated ground truth. No real-world recall is calculated, and this training application is not representative of production-code precision. The assessment is documented in the draft acceptance-run PR #19.
Release-acceptance execution is incomplete, not a release certification.
TESTED PROPERTY
The published wheel passed the executed installation, integrity, failure-handling and synthetic-regression checks reported by the tester. The overall decision remains NOT ACCEPTED — incomplete: mandatory offline test B11 was blocked to avoid interrupting active sessions. Other conditional Ollama and Linux network-tracing checks were also blocked. The supporting logs remain on the tester’s machine, not in the PR; the reported results have not been independently replayed.
POC-007: controlled evidence-grounding evaluation.
PROPOSED
POC-007 addresses provenance, missing and fabricated citations, reproducible model comparisons, abstention and blinded human review. Its historical 57% grounding proxy cannot be reconstructed as a controlled baseline because original per-sample artifacts and execution state were not fully retained. A new controlled baseline is required before claiming improvement. See POC-007 issue #11.
Weight Space Programming: research-only synthetic evaluation harness.
TESTED PROPERTY
A separate standard-library research scaffold now records paired synthetic runs, dataset and output hashes, failures, checkpoint-diff checks, reload drift and human decision records. Synthetic fixtures test the harness; no model checkpoint, dataset or provider has been accessed, and no model improvement, replication, safety result or autonomous weight-editing capability has been demonstrated. The harness is not part of the v0.3.0 wheel. Its code and documentation are public in docs/wsp/harness.md (merged in PR #23).
Experiment 8: qualified Qwen3.5-0.8B MATH-500 replication.
PROPOSED
A draft, unfrozen protocol proposes comparing published multimodal base and weight-edited checkpoints plus a no-edit reload. This substitutes published multimodal checkpoints for the authors’ unavailable text-only export; it would test behavioral replication under documented conditions, not reproduce the original discovery of the edit. License review, checkpoint verification, dataset and grader pins, infrastructure, approvals and inference are pending. No experiment has run and no replication result exists. The draft protocol and source pins are published as docs/wsp/exp8-replication-protocol.md, still marked draft and not frozen. The reference is Takehi, Teoh, Zhang and Khattab (2026), “Sparks of Weight-Space Programming”. The authors report that editing 131,072 weights (0.016%) increased Qwen3.5-0.8B MATH-500 accuracy from 7.9% to 48.1% and reduced the token-limit rate from 93.0% to 33.1%. These are the authors’ reported results, not Tantular measurements.
PEMBARUAN RISET · NOVEMBER 2026 · BAHASA INDONESIA
Evaluasi eksploratif OWASP PyGoat mencatat 36 temuan: 29 dinilai true positive, tujuh false positive, dan enam contoh kredensial tambahan belum terdeteksi. Klasifikasi tersebut dilakukan oleh satu evaluator dan belum divalidasi secara independen; tidak ada klaim recall dunia nyata. Pengujian penerimaan rilis masih berstatus NOT ACCEPTED — incomplete karena uji offline wajib belum dilakukan. POC-007 menyiapkan evaluasi penjelasan AI yang lebih terlacak dan dapat direproduksi, tanpa mengklaim peningkatan model. Riset Weight Space Programming baru memiliki kerangka pengujian sintetis; protokol replikasi MATH-500 masih berupa draf berdasarkan riset Takehi dan rekan (2026). Angka peningkatan MATH-500 dari 7,9% menjadi 48,1% adalah hasil yang dilaporkan penulis asli, bukan hasil eksperimen Tantular. Belum ada eksperimen model, hasil replikasi, atau kemampuan penyuntingan bobot otonom yang terbukti. Seluruh kegiatan riset ini terpisah dari kemampuan produk v0.3.0.
EXPLAINER VIDEO · 2:32 · BAHASA INDONESIA WITH ENGLISH CAPTIONS · NO AUDIO

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.

Where every number comes from

RELEASE DOCUMENTATION · v0.3.0
docs/benchmark-results.md — all figures in § 00 and § 04
docs/benchmark.md — corpus, matching, gates, rubric
docs/evaluation.md — real-world, human review, comparison
docs/provenance-audit.md — 33 cases, 7 pointers, licences
docs/architecture.md — pipeline, trust, call graph, context
docs/privacy.md — network table, residual risks
docs/rules.md — sinks, sanitizers, known gaps
docs/plugin-api.md — plugin contract, sandbox candidates
README.md — limitations
CHANGELOG.md — 0.3.0 changes
STATISTICAL METHODS
[1]
Wilson, E. B. (1927). Probable Inference, the Law of Succession, and Statistical Inference. Journal of the American Statistical Association 22(158), 209–212. The score interval used for every rate.
[2]
McNemar, Q. (1947). Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika 12(2), 153–157. The paired test, used here in its exact form.
[3]
Cohen, J. (1960). A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement 20(1), 37–46. Inter-reviewer agreement in the human-review workflow.
Compiled 2026-10-30 against Tantular Cyber v0.3.0 (source at the tag). Figures are quoted as recorded, not re-derived, except where a count is stated as derived. Benchmark results are synthetic and describe the release, not real-world performance.
END OF REPORT