Package virustotal. May 1, 2017

Similar documents
Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package fastdummies. January 8, 2018

Package ECctmc. May 1, 2018

Package goodpractice

Package calpassapi. August 25, 2018

Package fitbitscraper

Package SEMrushR. November 3, 2018

Package robotstxt. November 12, 2017

Package dkanr. July 12, 2018

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package opencage. January 16, 2018

Package rzeit2. January 7, 2019

Package rwars. January 14, 2017

Package internetarchive

Package facerec. May 14, 2018

Package httpcache. October 17, 2017

Package censusapi. August 19, 2018

Package validara. October 19, 2017

Package canvasxpress

Package data.world. April 5, 2018

Package condusco. November 8, 2017

Package repec. August 31, 2018

Package spark. July 21, 2017

Package rgho. R topics documented: January 18, 2017

Package githubinstall

Package datasets.load

Package labelvector. July 28, 2018

Package genesysr. June 14, 2018

Package RODBCext. July 31, 2017

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package smapr. October 20, 2017

Package gtrendsr. August 4, 2018

Package modules. July 22, 2017

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package lumberjack. R topics documented: July 20, 2018

Package pdfsearch. July 10, 2018

Package ezknitr. September 16, 2016

Package loggit. April 9, 2018

Package patentsview. July 12, 2017

Package algorithmia. September 13, 2016

Package elasticsearchr

Package wikitaxa. December 21, 2017

Package knitrprogressbar

Package triebeard. August 29, 2016

Package dbx. July 5, 2018

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package pmatch. October 19, 2018

Package climber. R topics documented:

Package postgistools

Package semver. January 6, 2017

Package messaging. May 27, 2018

Package jpmesh. December 4, 2017

Package splithalf. March 17, 2018

Package gtrendsr. October 19, 2017

Package statsdk. September 30, 2017

Package rbraries. April 18, 2018

Package slickr. March 6, 2018

Package docxtools. July 6, 2018

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package editdata. October 7, 2017

Package vinereg. August 10, 2018

Package deductive. June 2, 2017

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package widyr. August 14, 2017

Package guardianapi. February 3, 2019

Package nngeo. September 29, 2018

Package promote. November 15, 2017

Package omu. August 2, 2018

Package kdtools. April 26, 2018

Package cancensus. February 4, 2018

Package texpreview. August 15, 2018

Package available. November 17, 2017

Package readxl. April 18, 2017

Package ezsummary. August 29, 2016

Package rgdax. January 7, 2019

Package knitrbootstrap

Package essurvey. August 23, 2018

Package mapsapi. March 12, 2018

Package UNF. June 13, 2017

Package rtext. January 23, 2019

Package bigqueryr. October 23, 2017

Package memoise. April 21, 2017

Package shinyfeedback

Package barcoder. October 26, 2018

Package eply. April 6, 2018

Package aws.transcribe

Package colf. October 9, 2017

Package bisect. April 16, 2018

Package jug. April 13, 2017

Package redux. May 31, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package datapasta. January 24, 2018

Package rsppfp. November 20, 2018

Package reval. May 26, 2015

Package BiocManager. November 13, 2018

Package projector. February 27, 2018

Package farver. November 20, 2018

Package darksky. September 20, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package nlgeocoder. October 8, 2018

Transcription:

Title R Client for the VirusTotal API Version 0.2.1 Maintainer Gaurav Sood <gsood07@gmail.com> Package virustotal May 1, 2017 Use VirusTotal, a Google service that analyzes files and URLs for viruses, worms, trojans etc., provides category of the content hosted by a domain from a variety of prominent services, provides passive DNS information, among other things. See <http://www.virustotal.com> for more information. URL http://github.com/soodoku/virustotal BugReports http://github.com/soodoku/virustotal/issues Depends R (>= 3.3.0) License MIT + file LICENSE LazyData true VignetteBuilder knitr Imports httr, plyr Suggests knitr, rmarkdown, testthat, lintr RoxygenNote 6.0.1 NeedsCompilation no Author Gaurav Sood [aut, cre] Repository CRAN Date/Publication 2017-05-01 19:25:07 UTC R topics documented: virustotal-package...................................... 2 add_comments....................................... 2 domain_report........................................ 3 file_report.......................................... 4 ip_report........................................... 5 rate_limit.......................................... 6 rescan_file.......................................... 6 1

2 add_comments scan_file........................................... 7 scan_url........................................... 8 set_key........................................... 9 url_report.......................................... 9 virustotal_check....................................... 10 virustotal_get....................................... 11 virustotal_post...................................... 11 Index 13 virustotal-package virustotal: Access Virustotal API Access virustotal API. See https://www.virustotal.com/. Details about results of calls to the API can be found at. You will need credentials to use this application. If you haven t already, get the API Key at https: //www.virustotal.com/. Author(s) Gaurav Sood add_comments Add comments on Files and URLs Add comments on files and URLs. For instance, flagging false positives, adding details about malware, instructions for cleaning malware, etc. add_comments(hash = NULL, comment = NULL,...) hash hash for the resource you want to comment on; Required; String comment review; Required; String... Additional arguments passed to virustotal_get.

domain_report 3 data.frame with 2 columns: response_code, verbose_msg If the hash is incorrect or a duplicate comment is posted, response_code will be 0 If the hash is incorrect, verbose_msg will be 'Invalid resource' If a duplicate comment is posted, verbose_msg will be 'Duplicate comment' If a comment is posted successfully, response_code will be 1 and verbose_msg will be 'Your comment was successfully posted' add_comments(hash='99017f6eebbac24f351415dd410d522d', comment="this is great.") domain_report Get Domain Report Retrieves report on a given domain, including passive DNS, urls detected by at least one url scanner. Gives category of the domain from bitdefender. domain_report(domain = NULL,...) domain domain name. String. Required.... Additional arguments passed to virustotal_get.

4 file_report named list with the following possible items: BitDefender category, undetected_referrer_samples, whois_times domain_report("http://www.google.com") domain_report("http://www.goodsfwrfw.com") # Domain not found file_report Get File Scan Report Get File Scan Report file_report(hash = NULL,...) hash Hash for the scan... Additional arguments passed to virustotal_get. data.frame with 16 columns: service, detected, version, update, result, scan_id, sha1, resource, response_

ip_report 5 file_report(hash='99017f6eebbac24f351415dd410d522d') ip_report Get IP Report Get passive DNS data and URLs detected by URL scanners ip_report(ip = NULL,...) ip a valid IPv4 address in dotted quad notation; String; Required... Additional arguments passed to virustotal_get. named list with the following potential items: undetected_referrer_samples, detected_downloaded_samples, detect ip_report(ip="8.8.8.8")

6 rescan_file rate_limit Rate Limits Virustotal requests throttled at 4 per min. The function creates an env. var. that tracks number of requests per minute, and enforces appropriate waiting. rate_limit() rescan_file Rescan already submitted files The function returns a data.frame with a scan_id and sha256, sha1, md5 hashes, all of which can be used to retrieve the report using file_report rescan_file(hash = NULL,...) hash Hash for the scan. String. Required.... Additional arguments passed to virustotal_post. data.frame with 12 columns: scans, scan_id, sha1, resource, response_code, scan_date, permalink, verbose_m response_code is 0 if the file is not in the database (hash can t be found).

scan_file 7 rescan_file(hash='99017f6eebbac24f351415dd410d522d') rescan_file(hash='99017f6ee51415dd410d522d') # incorrect hash scan_file Submit a file for scanning Submit a file for scanning scan_file(file_path = NULL,...) file_path Required; Path to the document... Additional arguments passed to virustotal_post. data.frame with the following columns: scan_id, sha1, resource, response_code, sha256, permalink, md5, verbo scan_file(file_path='path_to_suspicious_file')

8 scan_url scan_url Submit URL for scanning Submit a URL for scanning. Returns a data.frame with scan_id which can be used to fetch the report using url_report scan_url(url = NULL,...) url url; string; required... Additional arguments passed to virustotal_post. data.frame with 7 columns: permalink, resource, url, response_code, scan_date, scan_id, verbose_msg scan_url("http://www.google.com")

set_key 9 set_key Set API Key Before anything else, get the API key from https://www.virustotal.com/en/. Next, use set_key to store the API key in an environment variable VirustotalToken. Once you have set the API key, you can use any of the functions. set_key(api_key = NULL) api_key API key. String. Required. set_key('api_key_here') url_report Get URL Report Retrieve a scan report for a given URL. If no scan report is available, set scan to 1 to get a new report. url_report(url = NULL, scan_id = NULL, scan = 1,...)

10 virustotal_check url URL. String. url or scan_id must be specified. scan_id scan id for a particular url scan. String. url or scan_id must be specified. scan String. Optional. Can be 0 or 1. Default is 1. When 1, submits url for scanning if no existing reports are found. When scan is set to 1, the result includes a scan_id field, which can be used again to retrieve the report.... Additional arguments passed to virustotal_get. data.frame with 13 columns: scan_id, resource, url, response_code, scan_date, permalink, verbose_msg, posi url_report("http://www.google.com") url_report(scan_id = "ebdd15c397d2b0c6f50c3f2df531357d1201ff5976802316405e60880d6bf5ec-1478786749") virustotal_check Request Response Verification Request Response Verification virustotal_check(req) req request in case of failure, a message

virustotal_get 11 virustotal_get Base POST AND GET functions. Not exported. GET virustotal_get(query = list(), path = path, key = Sys.getenv("VirustotalToken"),...) query path key query list path to the specific API service url A character string containing Virustotal API Key. The default is retrieved from Sys.getenv("VirustotalToken").... Additional arguments passed to GET. list virustotal_post POST POST virustotal_post(query = list(), path = path, body = NULL, key = Sys.getenv("VirustotalToken"),...) query path body key query list path to the specific API service url file A character string containing Virustotal API Key. The default is retrieved from Sys.getenv("VirustotalToken").... Additional arguments passed to POST.

12 virustotal_post list

Index add_comments, 2 domain_report, 3 file_report, 4, 6 GET, 11 ip_report, 5 POST, 11 rate_limit, 6 rescan_file, 6 scan_file, 7 scan_url, 8 set_key, 3 9, 9, 10 url_report, 8, 9 virustotal (virustotal-package), 2 virustotal-package, 2 virustotal_check, 10 virustotal_get, 2 5, 10, 11 virustotal_post, 6 8, 11 13