Panduan cepat

English · Panduan instalasi lengkap (bahasa Inggris): install.md

Tantular Cyber menemukan masalah keamanan (SQL injection CWE-89, command injection CWE-78, path traversal CWE-22, XSS CWE-79, kredensial tertanam CWE-798) di repositori Python langsung di komputer Anda. Alat ini hanya membaca berkas: kode yang dipindai tidak pernah dijalankan, di-import, diubah, maupun diunggah.

1. Instalasi (sekitar 5 menit, tanpa model AI)

brew install semgrep          # Linux/WSL2: pipx install semgrep
pipx install ./tantular_cyber-0.3.0-py3-none-any.whl   # wheel rilis yang sudah diverifikasi, lihat install.md
tantular-cyber doctor

Pastikan muncul scan capability: FULL. Jika tertulis PARTIAL, Semgrep belum terpasang; pemindaian tetap berjalan tetapi ditandai degraded (cakupan sebagian).

Semgrep adalah dependensi eksternal berlisensi LGPL-2.1 yang Anda pasang sendiri; Tantular Cyber tidak menyertakannya. Windows: gunakan WSL2 lalu ikuti langkah Linux.

2. Coba pada contoh bawaan

tantular-cyber sample --dest ./tc-demo/sample-app
tantular-cyber scan --repo ./tc-demo/sample-app --output ./tc-demo/reports
status: complete
coverage: full (scanners succeeded: semgrep, tantular-callgraph)
ai explanations: not requested
findings: 2 {'CWE-89': 2}

Contoh ini sintetis dan sengaja dibuat rentan; tidak pernah dijalankan. Buka ./tc-demo/reports/report.md (laporan yang mudah dibaca) atau report.json (untuk mesin, skema 1.3.0).

3. Pindai repositori Anda

tantular-cyber scan --repo ~/code/proyek-saya --output ~/laporan-tantular/proyek-saya
  • Pindai hanya repositori yang Anda berwenang untuk menilai.
  • Laporan harus ditulis di luar repositori yang dipindai.
  • Kode keluar: 0 lengkap, 4 degraded (cakupan sebagian atau tahap AI tidak tersedia), 3 gagal, 2 masukan tidak valid. Alasan degraded selalu tercantum di status_reasons.
  • Temuan adalah bukti pemindai (status: unverified); tinjau sebelum bertindak. Tantular Cyber tidak pernah mengubah kode Anda.

4. Opsional: penjelasan AI

Jika Ollama berjalan dan model lokal sudah terpasang (lihat install.md §4):

tantular-cyber scan --repo ~/code/proyek-saya --output ~/laporan-tantular/proyek-saya --ai \
    --model ghifidanukusumo/tantular:latest

Penjelasan berbahasa Indonesia dan bersifat saran: tidak pernah mengubah temuan, statusnya, maupun status laporan. Cuplikan kode disamarkan (redaksi) dan hanya dikirim ke server Ollama lokal. Tantular Cyber tidak pernah mengunduh model; ollama pull adalah keputusan Anda (unduhan sekitar 10 GB untuk bobot Tantular, lisensi mengikuti halaman model). Model cloud (*:cloud) berjalan di server jarak jauh dan ditolak kecuali Anda memberi --allow-remote-ollama.

Keterbatasan

  • Hanya Python; lima kelompok CWE. Presisi 0,84 / recall 0,91 pada benchmark sintetis adalah batas regresi, bukan akurasi dunia nyata.
  • Pemindai call-graph mengikuti panggilan hingga 3 tingkat di dalam repositori dan tidak mengikuti dynamic dispatch; sebagian alur akan terlewat.
  • Kualitas penjelasan AI baru diukur dengan pemeriksaan proksi pada korpus sintetis kecil.

Privasi

Tanpa telemetri, tanpa login, tanpa cloud. Detail: privacy.md.

Menghapus

pipx uninstall tantular-cyber
rm -rf ~/.cache/tantular-cyber

Laporan hanya ada di folder --output yang Anda pilih.

Quickstart

Bahasa Indonesia · Full installation guide: install.md

Tantular Cyber finds security issues (SQL injection CWE-89, command injection CWE-78, path traversal CWE-22, XSS CWE-79, hard-coded credentials CWE-798) in Python repositories on your own machine. It only reads files: it never runs, imports or modifies the code it scans and never uploads it.

1. Install (about 5 minutes, no AI model needed)

brew install semgrep          # Linux/WSL2: pipx install semgrep
pipx install ./tantular_cyber-0.3.0-py3-none-any.whl   # verified release wheel, see install.md
tantular-cyber doctor

Look for scan capability: FULL. If it says PARTIAL, Semgrep is missing; scans still run but are marked degraded.

2. Try it on the bundled sample

tantular-cyber sample --dest ./tc-demo/sample-app
tantular-cyber scan --repo ./tc-demo/sample-app --output ./tc-demo/reports
status: complete
coverage: full (scanners succeeded: semgrep, tantular-callgraph)
ai explanations: not requested
findings: 2 {'CWE-89': 2}

The sample is synthetic and deliberately vulnerable; it is never executed. Open ./tc-demo/reports/report.md (readable report) or report.json (machine-readable, schema 1.3.0).

3. Scan your own repository

tantular-cyber scan --repo ~/code/my-project --output ~/tantular-reports/my-project
  • Scan only repositories you are authorized to assess.
  • Reports must be written outside the scanned repository.
  • Exit codes: 0 complete, 4 degraded (partial coverage or AI stage unavailable), 3 failed, 2 invalid input. A degraded scan always says why in status_reasons.
  • Findings are scanner evidence (status: unverified); review them before acting. Tantular Cyber never changes your code.

4. Optional: AI explanations

With Ollama running and a local model installed (see install.md §4):

tantular-cyber scan --repo ~/code/my-project --output ~/tantular-reports/my-project --ai \
    --model ghifidanukusumo/tantular:latest

Explanations are in Bahasa Indonesia and advisory: they never change a finding, its status or the report status. Excerpts are redacted and sent only to the local Ollama server.

Limitations

  • Python only; five CWE families; synthetic-benchmark precision 0.84 / recall 0.91 are regression floors, not real-world accuracy.
  • The call-graph scanner follows calls up to 3 levels within the repository and skips dynamic dispatch; some flows will be missed.
  • AI explanation quality was measured only with proxy checks on a small synthetic corpus.

Privacy

No telemetry, no login, no cloud. See privacy.md.