项目作者: CERTCC

项目描述 :
VINCE is the Vulnerability Information and Coordination Environment developed and used by the CERT Coordination Center to improve coordinated vulnerability disclosure. VINCE is a Python-based web platform.
高级语言: Python
项目地址: git://github.com/CERTCC/VINCE.git
创建时间: 2020-03-02T15:00:02Z
项目社区:https://github.com/CERTCC/VINCE

开源协议:

下载


VINCE

Description

VINCE - The Vulnerability Information and Coordination Environment - Software
designed for multi-party vulnerability coordination. VINCE enables
collaborative and efficient coordination by allowing all involved parties to
tap into a central, web-based platform to communicate directly with one
another about a vulnerability. It is based on the decades of experience with
coordinated vulnerability disclosure (CVD) at the CERT Coordination Center
(CERT/CC) which is a part of the Software Engineering Institute at Carnegie
Mellon University.

Bugs and Feature Requests

You can report a bug, feature request, or other issue in this GitHub project. VINCE users can also send feedback through the Private Message feature.

About

VINCE, a Django application, is designed to run in Amazon Web Services (AWS)
and is developed around many
of AWS services such as Cognito, S3, ElasticBeanstalk, Cloudfront, SQS, SNS,
and SES. VINCE uses the python library,
warrant, for AWS Cognito
authentication. Warrant has been
slightly modified and is included with VINCE.

VINCE also uses and includes
the django-bakery project to
generate and publish flat HTML files of vulnerability notes that are served
via an AWS S3 bucket. The
django-bakery project has been
modified to generate the flat files in memory versus using the filesystem.

VINCE also has a development
branch which can be run using LocalStack.

Architecture

VINCE follows a traditional Django’s Model-Template-View-Controller for most part.
VINCE’s 3-Tier setup is designed to work with Web/Presentation Tier (Amazon CloudFront),
Application Tier (Amazon ElasticBeanStalk) and Database Tier (Amazon RDS). All these
components can be mimicked (or replaced) to either use LocalStack or individual
open-source software for each of these tiers. VINCE’s services interface to Storage (Amazon S3)
Notifications (Amazon SNS), Queueing (Amazon SQS) and Messaging (Amazon SES) are all modular
and can be adapted to either LocalStack or other python3+Django supported modules. VINCE’s
Identity Management is defaulted to Cognito - this also can be modified to use other Identity
Providers. Cognito identity is also tied to few modules such as S3 buckets used for file
storage, including both uploads and downloads. These can be mimicked using LocalStack. Code
updates may be required in cases of file interactions.

VINCE application is made of three individual applications and databases.

  • VINCETRACK application (database vincetrack) launched from (vince/)[vince/] folder.
  • VINCECOMM application (database vincecomm) launched from (vinny/)[vinny/].
  • VINCEPUB application (database vincepub) launched from (vincepub/)[vincepub/].

The VINCETRACK application requires access to all three database schemas and tables.
The VINCETRACK app is meant for Coordinators and Administrators by default deisgned to be in
a group labeled as Coordinator or as setup in bigvince.settings.COGNITO_ADMIN_GROUP
with higher privileges. The VINCECOMM and VINCEPUB applications have access to their respective schemas.
The VINCECOMM applications is acessible to Vendors, Finders
(Security Researchers) as well as other stakeholders that are registered, verified and have been approved. The
VINCEPUB application provides publicly available publications and reports that unauthenticated
users. Each application can also be further protected by network access controls as desired to
reduce the risk of exposure.

Local Install

  1. Clone the repo

  2. Create a virtual environment and install requirements

    1. cd bigvince
    2. mkvirtualenv bigvince
    3. source env/bin/activate
    4. pip install -r requirements.txt
  3. Create a postgres database using docker

    1. docker run --name bv-postgres -p 5432:5432 -e POSTGRES_PASSWORD=PASSWORD -d postgres
    2. createdb -h localhost -U postgres bigvince
  4. Alternate (not using docker):

    1. psql postgres
    2. CREATE ROLE vince;
    3. ALTER ROLE vince CREATEDB;
    4. ALTER ROLE "vince" WITH LOGIN;
    5. CREATE DATABASE vincetest;
    6. GRANT ALL PRIVILEGES ON DATABASE vincetest TO vince;
    7. CREATE DATABASE vincecommtest;
    8. GRANT ALL PRIVILEGES ON DATABASE vincecommtest TO vince;
    9. CREATE DATABASE vincepubtest;
    10. GRANT ALL PRIVILEGES ON DATABASE vincepubtest TO vince;
  5. Edit and copy VINCE.env to bigvince.env with the environment variables needed to run VINCE locally - this includes the database connection string and password for the new database, AWS keys, Google reCAPTCHA keys, etc.

    1. DATABASE_URL=postgres://postgres@127.0.0.1:5432/bigvince
    2. DATABASE_PASSWORD=PASSWORD
  6. Create secret key

    1. python3 -c 'from django.utils.crypto import get_random_string; chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#%^&*(-_=+)"; print(get_random_string(50, chars));';

    Add it to bigvince/.env

  7. Edit bigvince/settings_.py as needed with your settings. Important settings to pay attention to:

  1. EMAIL_BACKEND
  2. BUILD_DIR
  3. DEFAULT_FROM_EMAIL
  4. DEFAULT_REPLY_EMAIL
  5. DEFAULT_VISIBLE_NAME
  6. STANDARD_VENDOR_EMAIL
  7. STANDARD_PARTICIPANT_EMAIL
  8. DEFAULT_PHONE_NUMBER
  9. DEFAULT_EMAIL_SIGNATURE
  10. STANDARD_EMAIL_SIGNATURE
  11. WEB_TITLE
  12. ORG_NAME
  13. CONTACT_EMAIL
  14. *_BASE_TEMPLATES
  15. REPORT_IDENTIFIER
  16. CASE_IDENTIFIER
  17. SUPERUSER
  1. Run migrations

    1. python manage.py makemigrations
    2. python manage.py migrate
    3. python manage.py migrate --database=vincecomm
    4. python manage.py migrate --database=vincepub
  2. Create a django super user. This will be used to login into the application.

It uses the credentials defined in the settings.py SUPERUSER variable. Alternatively
you can use Django’s createsuperuser command to set your own username and password.

NOTE: Skip this step if using cognito auth (the default)

  1. python manage.py createsu
  1. Load initial data:

    1. python manage.py loadinitialdata
  2. Start the development server. (Profit)

    1. python manage.py runserver
  3. Attempt login

  4. Set “is_superuser” to “true” for your user in vincecomm and vincetrack databases, auth_user relation.

Running tests

Vince test are stored in vince/tests. To run tests:

  1. python3 manage.py test vince

This will create a new database for the tests and will delete it when the tests completes. To speed up tests, you can tell Django to not delete the test DB.

  1. python3 manage.py test vince -k

Fresh deployment reminders

Remember to give the “vince” group access to all of the Ticket Queues in admin console.

AWS Install

See docs for full AWS configuration