Code Monkey home page Code Monkey logo

vcodeautomitigate's Introduction

Veracode Auto Mitigate

Description

Command line app that mitigates flaws in Veracode based on CWE, scan type, and specific text in the description.

Parameters

-config: path to JSON config file

Configuration File

A sample config file is below:

{
    "auth": {
      "credsFile": "/Users/bpitta/.veracode/credentials"
    },
    "scope": {
        "allApps": false,
        "appListTextFile": "applist.txt"
    },
    "mode":{
      "logOnly": true,
      "proposeOnly": false,
      "proposeAndAccept": false
    },
    "targetFlaws": {
      "cweList": "80, 79",
      "requireTextInDesc": true,
      "requiredText":"texToSearchFor",
      "static": true,
      "dynamic": true
    },
    "mitigationInfo":{
        "mitigationType": "netenv",
        "proposalComment": "Proposal text",
        "approvalComment": "Approval text"
    }
}

Configuration Notes:

  1. The appsListTextFile parameter should be used when allApps is set to false. It should be a text file with target app IDs on separate lines.
  2. The cweList parameter should be a comma separated list of CWEs to target for mitigation.
  3. The requiredTextInDesc parameter will search for text in the flaw description. The text to search for should be placed in the requiredText parameter. For example, you can use this to target flaws on a specific cookie from a dynamic scan by including the cookie name.
  4. The mitigationType must be comment, fp, appdesign, osenv, or netenv.

Credentials File

The credentials file should be set up as follows:

veracode_api_key_id = ID HERE
veracode_api_key_secret = SECRET HERE

Executables

The executable is available in the release section of the repository: https://github.com/brian1917/vcodeAutoMitigate/releases

Third-party Packages

github.com/brian1917/vcodeapi (https://godoc.org/github.com/brian1917/vcodeapi)

vcodeautomitigate's People

Contributors

brian1917 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.