v1.5.0New: the passive web scanner, rebuilt

From source to sink, from code to site.

Kashif is a free, open-source security scanner. Its dataflow engine follows untrusted input through 12 languages and shows the path behind every dataflow finding. Its passive web scanner reads a site you are authorized to test the way a browser does, and judges it against 184 checks. No dependencies, no account, no telemetry: it runs on your machine, in English and Arabic.

All downloads & pip
Free and open source (MIT) Your code never leaves your machine Windows · Linux · macOS
$ kashif ./demo-app --no-deps --lang en
Kashif — ./demo-app  (1 file scanned, 2 findings)

━━ CRITICAL (1) ━━
  DF002 [CWE-78] Tainted data reaches a shell command
     app.py:10
     ▸ Source: request.args
     → Do not build OS commands from input; use an
       argument list without a shell and validate it.
       1. app.py:8   host = request.args
       2. app.py:9   cmd = …
       3. app.py:10  Sink: os.system
━━ INFO (1) ━━
  vql/entry-point-without-auth [CWE-306]
     Routed entry point without an authentication
     decorator
     app.py:7

Real output, abridged: an 11-line Flask app, and a deliberately weak test page served on localhost.

One tool, two scanners

Static analysis for the code you write. Passive checks for the site you ship.

Each one finds what the other cannot see. Both run from the same program and UI, with the same report formats and CI exit codes.

Code · SAST

Follows untrusted input to the dangerous call

  • Dataflow analysis in 12 languages, plus Oracle APEX and Android apps
  • The source-to-sink path behind every dataflow finding
  • Secrets, dependencies with reachability, verified autofix
  • OWASP Benchmark: 93.1% Python, 98.3% Java
How dataflow analysis works
Site · passive

Reads your site like a browser, and grades its defenses

  • 184 checks: transport, CSP, headers, CORS, cookies, page code, TLS and exposed files
  • Plain GET requests only, at least 0.2 s apart, within a stated budget
  • Kashif, MDN Observatory-compatible and SSL Labs-compatible grades
  • A coverage table that never shows an untested check as passed
What the web scanner checks
How it works

From source to sink, with the evidence attached.

Kashif builds a model of your program, follows untrusted data through it, and reports only where that data reaches a dangerous operation, with every step shown.

Diagram: untrusted data flows from a source, through propagation steps, to a sink
  1. Source

    Finds where untrusted data enters: request parameters, headers, cookies, files, environment variables and APEX page items.

  2. Data flow

    Propagates taint through assignments, calls, fields, collections and database tables, across functions and files. A sanitizer clears it only for the sinks it actually defends.

  3. Sink

    Reports when tainted data reaches a dangerous API (SQL, shell, file paths, templates, deserialization, redirects) with the CWE, the full path and how to fix it.

app.py$ kashif ./shop-api
1import os2from flask import Flask, request34app = Flask(__name__)56@app.route("/ping")7def ping():8    host = request.args.get("host")source9    cmd = "ping -c 1 " + host10    os.system(cmd)sink11    return "ok"
CRITICALDF002CWE-78app.py:10
Untrusted input reaches a shell command (OS command injection)
  1. 1sourcerequest.args.get("host")app.py:8
  2. 2flowcmd = "ping -c 1 " + hostapp.py:9
  3. 3sinkos.system(cmd)app.py:10
Do not build shell commands from input. Pass an argument list to subprocess.run() without a shell, and validate the host against an allowlist.
Passive web scannerNew in 1.1

It reads your site the way a browser does. Nothing more.

Point Kashif at a site you own or are authorized to test. It requests what an anonymous visitor would receive, judges it against 184 checks, and tells you exactly what it sent.

What it sends, and what it never does

  • Plain GET requests only: no attack payloads, no form submission, no guessing, no firewall evasion.
  • At least 0.2 s between two requests to one host (0.5 s by default), one request at a time. Crawl-delay raises the gap; repeated 429 or 503 with Retry-After stops requests to that host.
  • An honest User-Agent that names Kashif and links to a page explaining the scanner.
  • robots.txt is honoured when crawling, and links that change state, such as logout, are never followed.
  • Nothing is sent without --authorized, and no lookup reveals the site's name to a third party.

Pick a request budget

--web-profile minimalat most 10 requests

The page and its redirects: the 1.0 behaviour.

standarddefaultat most 45 requests

Adds the http/https counterpart, one cookieless CORS request, robots.txt, security.txt, the favicon and up to 15 of the site's own scripts and styles.

--deepat most 150 requests

Adds a fixed list of 40 commonly exposed paths, 21 paths of detected platforms such as their login pages (fetched once, nothing submitted), third-party scripts, source maps and images.

Crawled pages (--crawl) come on top of the budget: same origin only, at most 500 pages.

184 checks in 11 families

Every check has a stable id, a severity, a confidence, and CWE, WSTG and ASVS mappings.

Passive web checks per family
FamilyChecks
Transport, redirects and HSTS18
Content-Security-Policy25
Framing, MIME, referrer, permissions, isolation and caching23
CORS8
Cookies18
Page content and client-side code27
Information disclosure23
TLS and certificates25
Components and technologies7
Exposed and well-known files8
Scan meta: inconclusive scans, checks that could not run2
All 184 checks and their fixes

Three grades, each with its reasons

A+…F

Kashif Web Grade

Six weighted families, capped by serious findings. * marks a provisional grade, ? a firewall that answered instead of the site.

MDN

HTTP Observatory

A compatible score (algorithm 6) that matches the official grader on its test cases.

TLS

SSL Labs-compatible

A TLS grade without the attack-only tests Kashif does not perform.

Coverage that never pretends

Each check ends in one of five states, with the reason. A check that did not run is never shown as passed and never counts in a grade.

  • passed
  • failed
  • not applicable
  • not tested
  • inconclusive

Evidence you can repeat, fixes you can paste

Every finding carries a confidence (certain, firm or tentative), the request, the redirect chain, the headers as received with cookie values redacted, and a curl command that repeats the request. Copy-paste fixes cover 18 platforms, from nginx and IIS to Django and Rails.

What a passive scan cannot find

  • Pages behind a login: Kashif never signs in.
  • Injection, XSS, authentication, access control and business logic: testing them needs requests built to break the application, which Kashif never sends.
  • Certificate revocation: Kashif reads a stapled OCSP response but never contacts the certificate authority.
  • A clean grade is not a clean bill of health: pair the web scan with a code scan of the same application.

Measured on a labelled local corpus

380test cases on 127.0.0.1, no network
579labels, covering all 184 rules
1.00precision, certain and firm findings
1.00recall, for every rule

Each case where a rule must fire has a trap case where it must not, including traps from ZAP's 20 most frequent false-positive families.

The project wrote these cases and tuned the rules on them, so the numbers measure regressions on known cases, not accuracy on real sites. No comparison with other tools has been run yet.
Platform

One scanner for code, apps, archives and sites.

Pattern rules, a cross-file dataflow engine and a query language, plus verified autofixes, secrets, dependency vulnerabilities with reachability and passive web checks, in a single tool that runs anywhere.

153built-in pattern rules
48dataflow and APEX rules
6,447modelled library APIs
19built-in VQL queries

Dataflow (taint) analysis

Tracks untrusted input across functions, classes and files, and attaches the full source-to-sink path to every finding.

Flow- and context-sensitive

Constant folding and dead-branch pruning, plus context-sensitive (k=2) points-to analysis, so one factory called from two places yields two distinct objects.

Context-specific sanitizers

html.escape protects HTML, not SQL or a shell. A sanitizer clears only the sinks it actually defends.

Second-order injection

Follows user data written to a database table and later read back into SQL or a shell command: stored injection, in every language.

Secrets, now and in git history

Provider-specific patterns for cloud, payment and messaging keys, plus entropy analysis that catches keys with no known format. kashif history finds every secret ever committed, even if a later commit deleted it.

Dependencies with reachability

Reads 23 manifest and lockfile types, looks up known vulnerabilities in OSV.dev, and tells you whether your code imports the package and calls the vulnerable function. The lookup is optional and the only network call a code scan makes.

Archives, APK and JAR

Scan a zip, tar.gz, APK, JAR, AAR or DEX directly. With jadx installed, Android and Java bytecode is decompiled and analyzed.

Passive web checks

184 read-only checks of redirects and HSTS, CSP, headers, CORS, cookies, page content, TLS and certificates, libraries and exposed files, with Kashif and MDN Observatory grades and a coverage table that never shows an untested check as passed.

All 184 checks and their fixes

Your own rules

Write checks in VQL, a declarative from/where/select language over the program database in the style of CodeQL, then test, pack and share them with kashif rules.

Verified autofix

Deterministic fixes for 39 rules, from parameterized SQL to yaml.safe_load. A fix is offered only after the patched file parses and the rule no longer matches; review the diff, or apply it with --fix.

Triage, policy and compliance

Triage decisions kept in the repository, a kashif.yml policy gate, mapping to 10 frameworks (OWASP, ASVS, CWE Top 25, PCI DSS, NIST, ISO 27001…) with an auditor report, and an attack-surface map.

For AI coding assistants

kashif mcp is an MCP server: Claude Code, Cursor, VS Code agents, Windsurf and Zed can check the code they write, locally and offline. It never runs your code.

Languages and targets

12 languages with dataflow, and the places other scanners skip.

The same taint engine runs on every language below, alongside pattern rules for configuration, containers and CI files.

  • Python
  • JavaScript / TS
  • Java
  • Kotlin
  • C#
  • Go
  • PHP
  • C / C++
  • Rust
  • Swift
  • Ruby
  • PL/SQL

Oracle APEX and ORDS

Analyzes APEX application exports, plug-ins and PL/SQL packages for SQL injection, substitution strings, XSS and AI-assistant prompt injection, and points to the page and component.

Android APK and JAR via jadx

Unpacks APK, JAR, AAR and DEX files and runs dataflow analysis on the decompiled code. Third-party libraries are excluded by default.

CI/CD and SARIF

Fits the pipeline you already have.

Upload SARIF to GitHub Code Scanning and findings appear in the Security tab and inline on pull requests, with severity, CWE and the data-flow path.

.github/workflows/vulnscan.yml
name: vulnscan
on: [push, pull_request]
permissions:
  contents: read
  security-events: write   # required to upload SARIF
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with: { python-version: "3.12" }
      - run: pip install git+https://github.com/abdulrahmanahmedelabed-prog/vulnscan
      - run: kashif . --no-deps -f sarif -o vulnscan.sarif
      - uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: vulnscan.sarif

Baseline: report only what's new

Record today's findings once and commit the file (fingerprints only, no code). Later scans report, and fail CI on, new findings alone. Fingerprints survive line shifts and reformatting.

kashif . --write-baseline .vulnscan-baseline.json kashif . --baseline .vulnscan-baseline.json --fail-on high

Audit profile

For security reviews, --audit also lists every dangerous call (eval, shell, SQL, pickle…) that dataflow analysis could not prove reachable, so reviewers see the whole attack surface.

kashif . --audit -f html -o review.html

Reports for the tools you use

SARIF is validated against the OASIS 2.1.0 schema and opens in GitHub and VS Code; exports go to DefectDojo, SonarQube, GitLab, Code Climate, Jira, GitHub Issues, AWS Security Hub and more. Every finding carries a stable fingerprint.

sarif 2.1.0jsonhtmlmarkdowngitlab-sastcodeclimatesonarqubedefectdojojunitcsvjira-csvgithub-issuesasffocsf

In your editor

The same findings as the CLI, in VS Code and any LSP editor: severity, CWE and the cross-file data-flow trail on hover, with quick fixes to apply a verified fix, suppress a finding or add it to the baseline. Offline; nothing leaves your machine.

VS Code extension (.vsix)Any LSP editorkashif lsp

On every pull request

PR review comments on GitHub, GitLab SAST and Code Quality reports, and a pre-commit hook. Diff-aware scans report only what the branch changed.

GitHub PR commentsGitLab SASTGitLab Code Qualitypre-commit
CI and pull-request setup
Accuracy

Measured in public. Reproducible with one command.

We score Kashif on the OWASP Benchmark and publish every category, including the weak ones.

Overall score
93.1%

OWASP Benchmark · test cases. Score = mean over categories of true-positive rate minus false-positive rate (Youden's J).

$ git clone --depth 1 https://github.com/OWASP-Benchmark/BenchmarkPython $ python bench/score_owasp.py BenchmarkPython
OWASP Benchmark results per category
CategoryTPRFPRScore (TPR − FPR)
The engine is never tuned to benchmark files: no test-case names, paths or expected results are encoded anywhere. Rules model real library APIs.
Where false-positive rates are high (Python path traversal, XSS and redirects; Java XSS), the gap is reported as measured: those cases need deeper value tracking, and that is where work continues.
Each suite is scanned whole, as one application (the Python repository, the Java src/main tree), with the default profile, exactly as you would scan your own code.
Java rose from 76.3% to 98.3% in 1.0 through two general call-resolution fixes, and an independent audit found no Benchmark-specific code: a fully renamed copy scores the same. The Benchmark is synthetic, so read the score as evidence of how the engine reasons, not as accuracy on your code. Scores come from the project's own scorer (bench/score_owasp.py) using OWASP's method.
On real code: across the 35 open-source projects (of 38) that 0.9 could finish, 1.0 reports 2,607 findings instead of 17,228, and 783 critical or high instead of 4,345. Half of 0.9's findings were in test, docs and example code.
Compare

How Kashif compares, honestly.

The established tools are excellent. Here is where each one is strong, and where Kashif fills a gap.

Comparison of Kashif with other security scanners
CapabilityKashifSemgrepSonarQubeSnyk CodeCodeQLBanditTrivy
Dataflow (taint) analysis12 languagesPro (cross-file)DeepestAST only
Rule and library-model breadthGrowingLargeLargeLargeLargePython onlyIaC and config
IDE and pull-request integrationsVS Code, LSP, PR commentsLimited
Years of real-world tuningNew
Runs fully local, no accountCommunity EditionSelf-hosted serverCloud accountCLI
Runtime dependenciesNoneBinaryJava + databaseCLI + accountCLI bundlepipBinary
Oracle APEX and PL/SQLCode + dataflowPL/SQL (commercial)
Archives, APK and JARWith jadxImages and artifacts
Passive web scanningSeparate product
Local web UIBuilt inCloud appSelf-hosted serverCloud appOn GitHub
Arabic interface and reports
PriceFree (MIT)Free tier + paidFree tier + paidFree tier + paidFree for public reposFreeFree

Where the established tools lead

Semgrep, SonarQube, Snyk Code and CodeQL have far more rules and library models, IDE and pull-request integrations, and years of tuning on real codebases. If you already run them, keep them.

Where Kashif fits

Fully local with zero dependencies, Oracle APEX and PL/SQL, archives and Android apps, passive web checks and an Arabic interface in one tool. It can also merge Semgrep, Bandit, gitleaks and npm audit results into its dashboard.

Known limitations

  • Static analysis does not replace human review or penetration testing.
  • Far fewer library models than the established tools, and less tuning on large real-world codebases.
  • Not yet modeled: templates other than Jinja (EJS, ERB) and values passed between PHP files through include.
  • Without jadx, APK and JAR contents are scanned as text only.
  • A passive web scan sees anonymous pages only and does not test injection, XSS, authentication, access control or business logic; its grade measures configuration hygiene, not the absence of vulnerabilities.
Security and supply chain

Verify every byte you run.

A security tool should meet the bar it sets. Every release is built in GitHub Actions and ships with the evidence you need to check it.

SLSA build provenance

Signed attestations prove each binary was built from this repository by its release workflow.

CycloneDX SBOM

A software bill of materials ships with every release as kashif-sbom.cdx.json.

SHA-256 checksums

SHA256SUMS.txt lets you confirm that every download is intact.

Hardened CI

Every GitHub Action is pinned by commit SHA with least-privilege tokens, monitored by OpenSSF Scorecard and Dependabot.

No dependency tree

Standard library only: nothing is pulled in at install or run time, so there is no transitive supply chain to attack.

Private disclosure

Report vulnerabilities privately through GitHub, as described in our security policy.

Verify a download
# 1. Check the file against the published checksums
sha256sum -c SHA256SUMS.txt --ignore-missing

# 2. Verify the signed SLSA build provenance (GitHub CLI)
gh attestation verify kashif-linux-x86_64 \
  --repo abdulrahmanahmedelabed-prog/vulnscan
Download

Download Kashif v1.5.0

An installer for Windows and single-file programs for every system. Run Kashif with no arguments to open the web UI, or pass a path to scan from the command line.

Your system

Windows

kashif-setup.exex64 · Installer (recommended)Download for Windowsor the portable .exe (no install)
Your system

Linux

kashif-linux-x86_64x86-64 · Ubuntu 22.04+, Debian 12, RHEL 9+Download for Linuxor install with one command
Your system

macOS · Apple Silicon

kashif-macos-arm64arm64 · M1 and laterDownload for Apple Siliconor install with one command
Your system

macOS · Intel

kashif-macos-x86_64x86_64Download for Intel Macor install with one command

Windows

Run kashif-setup.exe and follow the steps. Then open Kashif from the Start menu, or use it from any new terminal:

kashif .\project --fail-on high

No install? Download kashif-windows-x86_64.exe and double-click it to open the web UI, or run it from a terminal with a path to scan.

Linux

Make the file executable, then run it:

chmod +x kashif-linux-x86_64 ./kashif-linux-x86_64 # web UI ./kashif-linux-x86_64 ./project # CLI

macOS

Easiest: Homebrew or the one-command install below (no quarantine step). If you downloaded the file in a browser, remove the quarantine flag once before the first launch:

chmod +x kashif-macos-arm64 xattr -d com.apple.quarantine kashif-macos-arm64 ./kashif-macos-arm64

Which file do I need?

Every release has the same files. Most people need just one: the file for their system above.

  • kashif-setup.exeWindowsInstaller. Adds Kashif to the Start menu and to PATH (you can untick it), and uninstalls from Windows Settings. The one to pick on Windows.
  • kashif-windows-x86_64.exeWindowsThe same program as a single portable file; nothing is installed. For a USB stick, a PC where you cannot install, or CI.
  • kashif-linux-x86_64LinuxSingle-file program for 64-bit Linux. Make it executable and run it.
  • kashif-macos-arm64macOSFor Macs with Apple Silicon (M1 and later).
  • kashif-macos-x86_64macOSFor Macs with an Intel processor.
  • kashif-vscode.vsixVS CodeExtension that shows findings inside VS Code as you work. Install Kashif first (it must be on PATH), then in VS Code: Extensions → ⋯ → Install from VSIX.
  • SHA256SUMS.txtThe SHA-256 checksum of every file, to confirm a download is intact.
  • kashif-sbom.cdx.jsonSoftware bill of materials (CycloneDX): everything Kashif is built from.
  • vulnscan-*The same programs under Kashif's old name, kept so versions before 1.0 can update themselves. You don't need them.

Install with one command

Downloads the release for your machine, verifies its SHA-256 before installing, and puts kashif on your PATH (vulnscan still works as an alias). On macOS no quarantine step is needed.

# macOS and Linux curl -fsSL https://abdulrahmanahmedelabed-prog.github.io/vulnscan/install.sh | sh
# Homebrew brew tap kashif/vulnscan https://github.com/abdulrahmanahmedelabed-prog/vulnscan && brew install kashif
# Windows (PowerShell) irm https://abdulrahmanahmedelabed-prog.github.io/vulnscan/install.ps1 | iex

Or install with pip

Python 3.10 or later. No runtime dependencies are installed.

pip install git+https://github.com/abdulrahmanahmedelabed-prog/vulnscan kashif ui # web UI on 127.0.0.1:8765 kashif ./project -f sarif -o out.sarif # CLI
FAQ

Questions, answered.

Is Kashif free?

Does Kashif upload my code?

Can it run offline or in an air-gapped network?

How accurate is it?

Which languages and targets are supported?

How do I use it in CI?

How does it compare with Semgrep, SonarQube, Snyk Code or CodeQL?

Is a web scan safe to run against my live site?

How do I report a security issue in Kashif?

Start scanning in a minute.

Download one file, point it at a project or at a site you are authorized to test, and read a report ordered from critical to info, with the evidence behind every finding.