Skip to content

0xi6r/scritpscope

Repository files navigation

ScriptScope

A Chrome Extension that captures, prettifies, and statically analyzes JavaScript files for vulnerabilities and secrets.

Features

  • Comprehensive Script Discovery: Finds all JS files (inline, external, dynamic)
  • Code Prettification: De-obfuscate minified code with Prettier
  • Security Scanning: Detects secrets, dangerous patterns, and info disclosure
  • Risk Classification: HIGH/MEDIUM/LOW risk categorization
  • Syntax Highlighting: Full JavaScript syntax support via CodeMirror 6
  • Source Map Detection: Identifies scripts with source maps
  • Export Reports: Generate JSON reports of all findings
  • Performance Optimized: Web Workers for non-blocking analysis

Security Patterns Detected

High Risk

  • AWS Access Keys & Secret Keys
  • Private Cryptographic Keys
  • Google API Keys
  • Stripe API Keys
  • Slack Tokens
  • GitHub Tokens
  • Hardcoded passwords

Medium Risk

  • innerHTML/outerHTML assignments (XSS)
  • document.write usage
  • eval() usage
  • setTimeout/setInterval with strings
  • dangerouslySetInnerHTML

Low Risk

  • IP addresses
  • Email addresses
  • TODO/FIXME comments
  • Console debug statements
  • Internal file paths

Installation

Development

  1. Clone the repository
git clone https://github.com/yourusername/scriptscope.git
cd scriptscope
bun install
bun run build
  1. On your chrome browser tab type Chrome://extensions and hit ENTER

    • Enable develooper mode
    • Click on load unpacked
    • Go to the dist directory where the builds are at and hit ENTER
  2. Now you can you use the extension, figure out its features by yourself

About

Chrome extension to find vulnerabilities in JavaScript files. Scan live tabs, upload URL lists, or paste/upload single JS files for quick assessment.

Topics

Resources

Stars

Watchers

Forks

Contributors