Giter VIP home page Giter VIP logo

extensiontotal-vscode's Introduction

ExtensionTotal - VSCode

Overview

ExtensionTotal is a free Visual Studio Code extension designed to enhance your development environment's security. By utilizing ExtensionTotal, it scans all your installed extensions, helping you identify and mitigate potential security risks.

Features

  • Extension Scanning: Scan all your installed extensions for security vulnerabilities.
  • Background Scanning: ExtensionTotal continuously scans your extensions in the background whenever you open VSCode.
  • Detailed Security Reports: Receive comprehensive reports on the security status of each extension.
  • Real-Time Alerts: Get immediate notifications for any detected security threats.

Installation

To install the VSCode ExtensionTotal Scanner:

  1. Open Visual Studio Code.
  2. Navigate to the Extensions view by clicking the Extensions icon in the Activity Bar or pressing Ctrl+Shift+X.
  3. Search for ExtensionTotal.
  4. Click Install to add the extension to your environment.

Get an API key (Free)

ExtensionTotal's Extension is FREE for PERSONAL USE (limited at 250 requests per day). To begin get your API key at ExtensionTotal Website

For organizational use or direct API access, visit our ExtensionTotal Sponsorship Page and choose a membership that suits your needs. We'll send the API key in 1-2 days to the email provided in the membership payment.

Note: Organizations must purchase an API key for direct API use.

Adding Your API Key

To add your API key for ExtensionTotal:

  1. Open Visual Studio Code.
  2. Go to Settings > Extensions > ExtensionTotal.
  3. Enter your API key in the provided field.

Usage

Real-Time Alerts

  • The extension provides real-time alerts for any new security issues found in your extensions.
  • Notifications will appear in VSCode, allowing you to address potential risks immediately.

Organizations and Rate Limits

For organizations or to increase rate limits, please visit our website.

Contributing

We welcome contributions! If you have suggestions, ideas, or bug reports, please open an issue or submit a pull request on our GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or support, please contact us at [email protected].


Example scripts for API use

$codeExtensions = $(code --list-extensions)

Write-Output += "Found $($codeExtensions.Count) extensions to check..."
$extArray = @()

foreach ($extension in $codeExtensions) {

    $headers = @{ 
        "Content-Type" = "application/json"
        "Cookie"       = "SameSite=None"
        "X-API-Key"       = "API_KEY_HERE"
    }
    
    $payload = @{
        "q" = $extension
    }

    $response = Invoke-WebRequest -Uri 'https://app.extensiontotal.com/api/getExtensionRisk' `
                                    -Method Post `
                                    -Body $( $payload | ConvertTo-Json) `
                                    -Headers $headers
    
    $responseContent = $response.Content | ConvertFrom-Json
    $extArray += $responseContent

    Start-Sleep -Seconds 10
}

$extArray | Sort-Object -Property risk -Descending | Format-Table -Property display_name, version, risk, updated_at 
loggedInUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' )
codePath="/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"
codeExtensions=$(sudo -u "$loggedInUser" "$codePath" --list-extensions)

while IFS= read -r line || [[ -n $line ]]; do
        content=$(curl -s --location 'https://app.extensiontotal.com/api/getExtensionRisk' \
        --header 'Content-Type: application/json' \
        --header 'X-API-Key: API_KEY_HERE' \
        --header 'Cookie: SameSite=None' \
        --data "{
          \"q\": \"$line\"
        }")
        risk=$(jq -r '.risk' <<<"$content")
        echo "$line - $risk"
done < <(printf '%s' "$codeExtensions")

Thank you for using the VSCode ExtensionTotal Scanner! Stay secure and happy coding!

We do not collect any personal information or data regarding the user or the usage of the ExtensionTotal extension, with the exception of the API key necessary for the extension's functionality and the non-sensitive extension IDs.

All rights reserved to Extension Total LTD. By using this extension you agree to the privacy policy and terms of service.

extensiontotal-vscode's People

Contributors

amitassaraf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.