Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/williballenthin/govt

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/williballenthin/govt

  • v0.0.0-20190415151500-3ca547fdfb87
  • Source
  • Go
  • Socket score

Version published
Created
Source

govt - VirusTotal API for Go

govt is a go module to use the API of VirusTotal.com.

Implemented Features

ResourceDescriptionVT APIgovt support
POST /vtapi/v2/file/scanUpload a file for scanning with VirusTotal.publictrue
GET /vtapi/v2/file/scan/upload_urlGet a special URL to upload files bigger than 32MB in size.privatefalse
POST /vtapi/v2/file/rescanRescan a previously submitted file or schedule a scan to be performed in the future.publictrue
POST /vtapi/v2/file/rescan/deleteDelete a previously scheduled scan.privatefalse
GET /vtapi/v2/file/reportGet the scan results for a file.publictrue
GET /vtapi/v2/file/behaviourGet a report about the behaviour of the file when executed in a sandboxed environment.privatetrue
GET /vtapi/v2/file/network-trafficGet a dump of the network traffic generated by the file when executed.privatetrue
GET /vtapi/v2/file/searchSearch for samples that match certain binary/metadata/detection criteria.privatetrue
GET /vtapi/v2/file/clustersList file similarity clusters for a given time frame.privatefalse
GET /vtapi/v2/file/distributionGet a live feed with the lastest files submitted to VirusTotal.privatetrue
GET /vtapi/v2/file/downloadDownload a file by its hash.privatetrue
GET /vtapi/v2/file/false-positivesConsume file false positives from your notifications pipe.privatefalse
POST /vtapi/v2/url/scanSubmmit a URL for scanning with VirusTotal.publictrue
GET /vtapi/v2/url/reportGet the scan results for a given URL.publictrue
GET /vtapi/v2/url/distributionGet a live feed with the lastest URLs submitted to VirusTotal.privatefalse
GET /vtapi/v2/ip-address/reportGet information about a given IP address.publictrue
GET /vtapi/v2/domain/reportGet information about a given domain.publictrue
POST /vtapi/v2/comments/putPost a comment on a file or URL.publictrue
GET /vtapi/v2/comments/getGet comments for a file or URL.privatetrue

Missing Features

  • all of the above with a false in the govt support column.
  • at least for testing the VT apikey has currently be put into the source (get the apikey from a file or an environment variable would be better)
  • more and better testing

Install

If you have a go workplace setup and working you can simply do:

go get github.com/williballenthin/govt

go install github.com/williballenthin/govt

Usage

In order how to use the govt module please have a look at the SampleClients directory and it's content.

You need to have an VirusTotal API Key. You can register for an account at VirusTotal in order to get an public API key. There are also private API keys available, for those you have to be accepted by VirusTotal and you need to pay for. Depending on your API Key and the access level granted you can use all of the above functions, all but the ones reserved for AV companies, or just the public ones (if you have a free publich API key).

Check out the README.md file in the SampleClients directory to find out how to set-up your API key in order to use the provided Example programs.

Authors

govt was initially written by Willi Ballenthin. Later improved and new features added by Christopher 'tankbusta' Schmitt and Florian 'scusi' Walther

FAQs

Package last updated on 15 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc