Giter VIP home page Giter VIP logo

logstash-filter-virustotal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logstash-filter-virustotal's Issues

Add http proxy support for networks where people can only connect to internet via http proxy

Not sure if you want to add this to the code or just want to document it but if somebody is on a network where they need to connect via http proxy in order to connect to the internet then they can just change the code in virustotal.rb to

    connection = Faraday.new(baseurl, ssl: {verify:false}) do |connection|
      # middleware ...
      connection.adapter :em_http

      connection.proxy "http://172.20.1.2:8080"

Or if they are making use of an HTTP proxy that requires authentication then change the code in virustotal.rb to:

    connection = Faraday.new(baseurl, ssl: {verify:false}) do |connection|
      # middleware ...
      connection.adapter :em_http

      connection.proxy "http://username:[email protected]:8080"

Domain check

Hi,
I want to check the domain list I have. But there are only ip, hash and url as types. I think it will be necessary to add the domain type as well. Or can I use the Url type? thanks.

VT API requests cause Logstash process to "freeze"

I configured my Logstash with an extra filter to automatically search for MD5 hashed on VT. The filter is defined as follow:

filter {
if ( [event_type] == "fileinfo" and [fileinfo][filename] =~ /(?i).(doc|pdf|exe)/ {
virustotal {
apikey => ""
field => '[fileinfo][md5]'
lookup_type => 'hash'
target => 'virustotal'
}
}
}

When multiple requests are sent in parallel or with a short delay, the Logstash process enters a stuck state and don't process any new incoming event! (+ all my forwarders are disconnected)

Somebody reported that the VT API is facing some issues for a few days. Is it related?

/x

Logstash-filter-virustotal freezes with Logstash2.0

I'm trying to use the plugin with Logstash2.0 without any results.
I've configured my conf file using the snippet code below

virustotal {
        apikey => "myapikey"
        field => [src_ip]
        lookup_type => "url"
        target => "virustotal"
} 

If Logstash is started in debug mode, i obtain this output

Exception in filterworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash. {"exception"=>#<JSON::ParserError: A JSON text must at least contain two octets!>

JSON::ParserError: A JSON text must at least contain two octets!
 initialize at json/ext/Parser.java:175
        new at json/ext/Parser.java:151
      parse at /opt/logstash/vendor/bundle/jruby/1.9/gems/json-1.8.3-java/lib/json/common.rb:155
     filter at /opt/logstash/vendor/local_gems/0f94f654/logstash-filter-virustotal-0.1.1/lib/logstash/filters/virustotal.rb:53
multi_filter at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/filters/base.rb:152
       each at org/jruby/RubyArray.java:1613
multi_filter at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/filters/base.rb:149
filter_func at (eval):1467
filterworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:219
start_filters at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:154

How can i avoid this issue?
Thanks

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.