Git Product home page Git Product logo

bisu's Introduction

travis

TODO: Readme

bisu's People

Contributors

hannesfostie avatar joren avatar

Stargazers

Van Driessche Vincent avatar

Watchers

Jeroen Jacobs avatar Van Driessche Vincent avatar Steven De Coeyer avatar James Cloos avatar Bram avatar Jeroen avatar Frederik Thuysbaert avatar Robbe avatar Giel avatar

bisu's Issues

Collect node data.

The application needs to be capable of collecting subscribed node data, and storing the details accordingly.

Multiple agents

Currently there is only 1 'agent' where we pull our security information from; We should make the vulnerability data collection more abstract, so we can have multiple agents to compare to a system.

No correctly using minitest gem

The platform_test.rb file contains a commented out test that I think should work/pass, but we're still getting nomethod errors on :stub. Not sure what's wrong...

Debsecan functionality questions

EDIT: Changing this issue to be more generic about questions about debsecan's inner workings.

  • Is binary_package being used?
  • Should we check for vulnerabilities using the version only, or also check all of the versions in the other_versions array?

The original debsecan tool for debian CVE listing works with an attribute "binary_package", as well as an array of source_packages per binary_package.

However as far as I can tell this is not used in any way. There are no vulnerabilities where binary_package is true, so I removed the functionality before even committing it.

Here's my first attempt at the code:

# in the #parse_vulnerabilities method (Vulnerability.new)
truct.new({
          package: package,
          identifier: matching_cve.identifier,
          description: matching_cve.description,
          unstable_version: unstable_version,
          other_versions: other_versions.split(' '),
          binary_package: flags[0] == 'B',
          urgency: urgency_from_flag(flags[1]),
          remotely_exploitable: remotely_exploitable_from_flag(flags[2]),
          fix_available: flags[3] == 'F',
          binary_packages: binary_packages[package]
        })
# In the VulnerabilityParser class
    def binary_packages
      @packages ||= parse_binary_packages
    end

    def parse_binary_packages
      vulnerability_data.split(/\n\n/)[2].split(/\n/).each_with_object(Hash.new([])) do |package_string, packages|
        package_name, source_packages_string = package_string.split(',', 2)
        packages[package_name] = source_packages_string.split(' ')
      end
    end

Replace Nokogiri with Oga

Nokogiri is a pain to install. Having it as a requirement for a maintenance tool that you'll need to install on a wide variety of servers seems like a bad plan.

Let's replace it with Oga

Parse listing-data.

The application needs to be able to correctly parse all data provided by the debian platform; This means the application should be able to assert between questionable and complete data as wel.

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.