Giter VIP home page Giter VIP logo

qsposd's Introduction

QCVE (Quantum Computing Vulnerabilities are Everywhere) CodeQL Runner

figure0

This repo is designed to allow CodeQL scripts to be submitted to detect for quantum vulnerabilities in open-source projects. This is a community-sourced project by pQCee.com in collaboration with ayks.io and moonlay.com. For more information or to participate in the program, please contact [email protected]

The URL for the project is: https://github.com/pqcee/QCVE-runner

How To

This repo contains workflow that will analyze submitted query against selected database, the workflow will generate sarif report

  • Clone this repo

    git clone https://github.com/pqcee/qcve-runner.git
    
  • Checkout new branch with folowing format request/{contributor-name}

    git checkout -b request/john
    
  • Create folder inside folder queries, make sure folder name using contributor name

  • Create file qlpack.yml inside contributor folder, copy following script

    name: pqcee/qcve-runner
    version: 0.0.0
    dependencies:
        #this must match your query language
        codeql/javascript-all: "*"
  • Create queries.xml file inside contributor folder, copy following script

    #this must match your query language
    <queries language="javascript"/>
  • Add new CodeQL query (with .ql extenstion) inside contributor folder

    figure1

  • Commit and push changes

    git add .
    git commit -m “commit message”
    git push -u origin request/john
    
  • Go to Pull Request Page, and Create Pull Request from your request/{contributor-name} branch to main branch

    figure2

  • Select branch to compare and create pull request, this must same with branch you create before.

    figure3

  • Add configuration tag inside PR description

    • #database: selected database for analyze
    • #username: name of contributor (this must equivalent with query folder you created before) example
    Add new query to analyze #database=openssl submitted by #username=maulanardy
    

    figure4

  • The Pull Request will trigger action to run, You can see the detail in Github Action Tab

    figure5

  • Green check icon marks the process is succeeded.

    figure6

  • Back to Pull Request page, select Tab Commits, you will see new Commit by github-actions[bot] containing new sarif report inside output/{contributor}/result.sarif folder

    figure7

  • Pull your branch to local environment

    git pull
    
  • You will see sarif generated report inside /output/{username} directory

    figure8

  • Install sarif viewer extension in vscode to view the report

    figure9

    figure10

  • Back to Github Repository, Merge Pull Request to branch ‘main’ if submitted query approved

    figure11

for more details, please contact [email protected]

qsposd's People

Contributors

anibrata avatar

Watchers

 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.