Skip to main content

Super Secref Finder

Super Secref Finder is an advanced regex-based security scanner designed to discover sensitive information like API keys, passwords, tokens, and other secrets exposed within web applications and their associated JavaScript files. It leverages a comprehensive collection of regular expressions and employs multi-threading for efficient scanning of large websites.

It can scan a target URL to find and analyze its linked JavaScript files, or scan a specific JavaScript file directly.

Features

  • Advanced Regex Engine: Utilizes a powerful regex engine with customizable patterns for precise secret detection. Includes a curated list of common sensitive patterns (e.g., AWS keys, JWT tokens, various API keys).
  • Multi-threaded Scanning: Employs multi-threading to significantly speed up the scanning process, allowing for efficient analysis of large websites and numerous JavaScript files.
  • JavaScript File Analysis: Can be pointed directly at a .js file URL for scanning. When scanning a main URL, it automatically extracts and analyzes linked JavaScript files for exposed secrets.
  • Interactive Menu: Provides a user-friendly interactive menu for easy configuration of target URL, thread count, request delay, and verbose output options.
  • Contextualized Findings: Presents findings with surrounding context to aid in quick verification and analysis of potential vulnerabilities.
  • False Positive Filtering: Includes a mechanism to log and filter potential false positives, improving the accuracy of the results.
  • JSON Output: Saves scan results in a structured JSON format for easy integration with other security tools and workflows.
  • Summary Reporting: Generates a summary of findings categorized by secret type for a quick overview of discovered vulnerabilities.
  • Customizable Confidence Threshold: Allows adjusting the confidence threshold for reported findings, balancing sensitivity and precision.
  • Rate Limit Handling: Implements dynamic delay adjustments to handle rate limiting imposed by target servers.
  • User-Agent Spoofing: Uses a common user agent to mimic normal browser behavior and avoid detection.
  • Error Handling and Retries: Includes robust error handling and retry mechanisms to ensure scan completion even in the face of network issues.
  • Verbose Output: Offers a verbose output mode for detailed information on the scanning process.
  • Cross-Platform Compatibility: Designed to run on various operating systems.

Installation

pip install super-secref-finder

Option 2: Install from Source

  1. Clone the repository:

    git clone https://github.com/LifeJiggy/Super-Secref-Finder.git
    cd Super-Secref-Finder
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. (Optional) Create a virtual environment: It's recommended to use a virtual environment to manage dependencies.

    python3 -m venv .venv
    source .venv/bin/activate # On Linux/macOS
    .venv\Scripts\activate # On Windows
    

Usage

Using the Command Line Interface

After installation, you can run the scanner from anywhere:

super-secref-finder https://example.com --threads 10 --delay 2 --verbose

Using the Interactive Menu

  1. Run the scanner:

    python Regex_patterns.py
    
  2. Follow the interactive menu:

    • Enter the target URL (e.g., https://example.com) or a direct link to a JavaScript file (e.g., https://example.com/main.js).
    • Specify the number of threads (1-600).
    • Set the delay between requests (1-100 seconds).
    • Choose verbose output (y/n).
  3. Review the results: The findings will be saved to findings.json and a summary will be displayed in the console.

Configuration

The sensitive_patterns.py file contains the regular expressions used for secret detection. You can customize these patterns or add new ones as needed. Ensure that the validate_pattern function in sensitive_patterns.py is updated accordingly to minimize false positives.

Contributing

Contributions are welcome! Please feel free to submit pull requests for bug fixes, new features, or improvements to existing patterns.

License

This project is licensed under the
MIT License

Disclaimer

This tool is intended for security testing and research purposes only. Use it responsibly and ethically. Unauthorized access to computer systems is illegal. The developers are not responsible for any misuse of this tool.

Contact

ArkhAngelLifeJiggy -
GITHUB:
https://github.com/LifeJiggy

Metadata

Release files for super-secref-finder 6.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 super-secref-finder 6.0.0
File Size Uploaded
super_secref_finder-6.0.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for super-secref-finder 6.0.0
File Interpreter ABI Platform
super_secref_finder-6.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / super_secref_finder-6.0.0.tar.gz

Download URL super_secref_finder-6.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
273a7bff371fa7cabb43765dadfb0248a79a30555a2d1b79ecbb92f00f679018
BLAKE2b-256 checksum
How to use checksums
f4ad2f772822167ad3646b9d56f26c1e4c6a10c44351ad6ba41d0ebc6d25ae05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / super_secref_finder-6.0.0-py3-none-any.whl

Download URL super_secref_finder-6.0.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbe39aa9b30d3336bca6b33bc756055ba1b8fea57e6fcc9c003484cbd12db2d9
BLAKE2b-256 checksum
How to use checksums
20464aab9413059cb6409c35c59d2ec04350230c2f015414375a42e739703e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

6.0.0 This release

2 release files

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