Skip to main content

JScope

Evidence-backed application security intelligence for JavaScript and web applications.

JScope reconstructs how a web application behaves from its JavaScript and related client-side artifacts. It connects routes, components, API calls, authentication and authorization signals, roles, and data flows into an evidence-backed application map.

Its goal is not to produce the longest list of URLs or suspicious strings. It helps you understand what the code actually shows, where relationships are supported by evidence, and where further manual investigation is needed.

JScope findings are investigation leads, not proof of remotely exploitable vulnerabilities. Always validate results and test only systems you own or are explicitly authorized to assess.

Requirements

  • Python 3.10 or newer
  • Internet access for remote crawling and downloading
  • Supported JavaScript/TypeScript parser dependencies (installed automatically with JScope)

Optional:

  • PyYAML for YAML OpenAPI specifications
  • Playwright for browser-based observation features

Installation

From PyPI

python -m pip install --upgrade jscope

Optional features:

python -m pip install "jscope[yaml]"
python -m pip install "jscope[browser]"

Verify the installation

jscope --version
jscope --help
jscope doctor

Quick start

Analyze a local project

jscope analyze ./path/to/project

Start an investigation against an authorized web application

jscope https://app.example.com

Start the interactive shell with:

jscope

Enter a URL or local project path to begin. The shell keeps the active investigation context so you can inspect findings, view the application graph, and generate reports without repeatedly specifying file paths.

Crawl a site

jscope crawl https://app.example.com

The crawler follows ordinary same-host HTML links and discovers supported client-side assets. Defaults are limited to 25 pages and link depth 2. Adjust the limits with:

jscope crawl https://app.example.com --max-pages 100 --max-depth 4

External hosts are not crawled as pages. Requests are subject to scope and transport policy. Forms are not submitted, and authentication or WAF controls are not bypassed.

Common workflow

After starting an investigation, these commands operate on the active context:

jscope status
jscope findings
jscope show 1
jscope show 1 --source
jscope graph
jscope report --format html
jscope history
jscope switch 2

Useful direct commands:

Command Purpose
jscope analyze PATH Analyze local JavaScript/TypeScript project files
jscope crawl URL Discover same-host pages and client-side assets
jscope download URL Download JavaScript assets from a URL list
jscope scan URL Run crawl, download, analysis, and reporting
jscope graph Display route, component, API, and guard relationships
jscope findings List ranked, evidence-backed findings
jscope show ID Inspect a finding and its supporting evidence
jscope investigate Correlate saved evidence into investigation leads
jscope report Generate human-readable or machine-readable reports
jscope status Show active target, scope, and evidence state
jscope history List recent investigation contexts
jscope switch N Restore a previous investigation context
jscope doctor Diagnose installation and environment issues
jscope plugins List available analyzers and their trust tier
jscope benchmark Run the bundled analysis benchmark

For exact flags and options, use:

jscope COMMAND --help

What JScope analyzes

JScope includes analyzers for:

  • Frontend routes and routing frameworks
  • Authentication and client-side authorization patterns
  • Components, guards, and declared roles
  • API endpoints and route-to-API attribution
  • Storage and token-handling patterns
  • GraphQL operations and schemas
  • OpenAPI specifications
  • Service workers, source maps, and HTML security configuration
  • WebAssembly references and modules
  • Potentially exposed secrets
  • Interprocedural data-flow paths and project-level module relationships

The application graph and investigation output preserve evidence provenance. Unresolved imports, dynamic module names, ambiguous bindings, and unsupported conventions remain unresolved instead of being silently guessed.

Scope and safety controls

JScope is designed to make network activity explicit.

  • Remote commands are constrained by the target and assessment scope.
  • Loopback and private-network destinations are refused by default. Use --allow-private only for a controlled local environment you are authorized to test.
  • An alternate --base-url requires explicit host authorization with --allow-host.
  • Runtime confirmation and verification are opt-in and require --authorize-active-tests in non-interactive use.
  • Browser observation requires explicit host authorization.
  • Non-interactive remote go runs require -y.
  • Crawling uses GET requests; it does not submit forms or attempt to bypass authentication or WAF controls.

Review the command's --help output before enabling any runtime operation. Authorization to inspect client-side code does not automatically authorize active requests against the server.

Reports and automation

JScope can render saved analysis results in human-readable, JSON, Markdown, HTML, and SARIF formats where supported by the selected command.

Some commands support --json for scripting. Check command-specific help for exact output and exit-code behavior.

Limitations

  • Static analysis cannot establish that a server-side vulnerability is exploitable.
  • A missing client-side guard does not prove that server-side authorization is missing.
  • Route-to-API attribution can be less precise for imported components than for components defined in the route file.
  • Dynamic imports, custom loaders, unsupported framework conventions, and ambiguous symbol bindings can limit cross-file resolution.
  • Runtime confirmation is narrow and indicates that a route responds; it does not prove vulnerability.
  • Benchmark results use a synthetic fixture corpus and should be treated as regression signals, not estimates of real-world precision or recall.
  • Plugin code is executable Python. File-based community plugins may run in a worker process, but installed entry-point plugins and explicitly trusted plugins can run in-process. This is not a hardened operating-system sandbox.

Version

This distribution is JScope 1.0.0. The package version is intentionally unchanged.

License

MIT. See LICENSE.

Metadata

Release files for jscope 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jscope 1.0.0
File Size Uploaded Provenance Actions
jscope-1.0.0.tar.gz 218.1 kB Without provenance Details for jscope-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jscope 1.0.0
File Interpreter ABI Platform Actions
jscope-1.0.0-py3-none-any.whl Python 3 none any Details for jscope-1.0.0-py3-none-any.whl

Total release size: 469.1 kB

Release files / jscope-1.0.0.tar.gz

Download URL jscope-1.0.0.tar.gz
Size 218.1 kB
Tags Source
SHA-256 checksum
How to use checksums
540776e9c1932ed9e5a489482a27413b175bc9fa78264da1868e682c8275a520
BLAKE2b-256 checksum
How to use checksums
9ca4b037f245efe26b285b96ed6ddbd87e340fc9cfd089934adfbaf3e76db6e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / jscope-1.0.0-py3-none-any.whl

Download URL jscope-1.0.0-py3-none-any.whl
Size 251.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a3453aac1546230aa4ff1cc9a3350f01c3633fc4d01a76f943fab101c759464
BLAKE2b-256 checksum
How to use checksums
2c2ffa365c5bd5d7e0ffa375ecfef5c925988addd25577a176c6dc9018b17d46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for jscope 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page