Skip to content

Run yara rules on Chrome extension source code and extract embedded URLs, code using extension IDs

Notifications You must be signed in to change notification settings

pratinavchandra/inspectra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inspectra

Inspectra is a powerful tool for analyzing Chrome extensions with minimal setup. It enables you to:

  • Run YARA rules on Chrome extension source code.
  • Extract URLs and source code using Chrome extension IDs.

🚀 Features

  • Customizable YARA Rules: Add your own YARA rules for tailored analysis.
  • Raw Source Code: Extract and print extension source code to stdout for quick analysis.

📥 Installation

Follow these steps to set up Inspectra:

  1. Clone the Repository:

    git clone /~https://github.com/pratinavchandra/inspectra.git
  2. Navigate to the Directory:

    cd inspectra
  3. Build the Docker Image:

    docker build -t inspectra .
  4. Add YARA Rules:

    • Place your YARA rules in the yara_rules folder within the inspectra directory.
    • Alternatively, mount a local directory containing YARA rules.

🛠️ Usage

   inspectra.py [-h] [--code] [--scan] extension_ids [extension_ids ...]

   arguments:
      extension_ids  List of Chrome extension IDs to process.
      --code         Print source code if specified.
      --scan         Run yara rules and perform analysis on the extension if specified.

Analyze Chrome Extensions

Run the following command to analyze a Chrome extension by its ID:

docker run -v ~/inspectra/yara_rules:/app/yara_rules inspectra <extension ID> --scan
image

Get Raw Source Code to Stdout

To display the source code of the extension, use the --code flag:

docker run -v /localpath/to/yara_rules:/app/yara_rules inspectra <extension ID> --code
image

🤝 Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve Inspectra. Building a library of yara rules tailored to Chrome extensions would be awesome!

Happy Inspecting! 🔍

About

Run yara rules on Chrome extension source code and extract embedded URLs, code using extension IDs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published