GDataCyberDefense.Vaas 6.1.2

dotnet add package GDataCyberDefense.Vaas --version 6.1.2
NuGet\Install-Package GDataCyberDefense.Vaas -Version 6.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GDataCyberDefense.Vaas" Version="6.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GDataCyberDefense.Vaas --version 6.1.2
#r "nuget: GDataCyberDefense.Vaas, 6.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GDataCyberDefense.Vaas as a Cake Addin
#addin nuget:?package=GDataCyberDefense.Vaas&version=6.1.2

// Install GDataCyberDefense.Vaas as a Cake Tool
#tool nuget:?package=GDataCyberDefense.Vaas&version=6.1.2

gdata-vaas

An SDK to easily utilize G DATA VaaS.

Verdict-as-a-Service (VaaS) is a service that provides a platform for scanning files for malware and other threats. It allows easy integration in your application. With a few lines of code, you can start scanning files for malware.

What does the SDK do?

It gives you as a developer a functions to talk to G DATA VaaS. It wraps away the complexity of the API into 5 basic functions.

forSha256Async

If you calculate the sha256 for a file, you can request that sha256 against G DATA VaaS. It's the fastest way to get a verdict from our service.

forSha256ListAsync

You can also request multiple sha256 with a single function call.

forUrlAsync

If you want to request if a file behind a URL is safe, you can specify the URL as well. Depending on the file size, the duration for the analysis can vary.

forFileAsync

You can also ask for a file itself. You will still get the benefit of a fast verdict via Sha256 because the SDK will do that for you first. But additionally, if we don't know the file, the file will get uploaded and (automatically) analyzed by us.

forFileListAsync

You can also request multiple files with a single function call.

How to use

Installation

dotnet add package GDataCyberDefense.Vaas

Import

using Vaas;

Request a verdict

Authentication & Initializing:

var vaas = new Vaas.Vaas();
var authenticator = new ClientCredentialsGrantAuthenticator(
    CLIENT_ID,
    CLIENT_SECRET,
    TOKEN_URL
);
await vaas.Connect(await authenticator.GetToken());

Verdict Request for SHA256:

var sha256 = "000005c43196142f01d615a67b7da8a53cb0172f8e9317a2ec9a0a39a1da6fe8";
var verdict = await vaas.ForSha256Async(sha256);

Console.WriteLine($"{verdict.Sha256} is detected as {verdict.Verdict}");

Verdict Request for a file:

var file = "/path/to/file";
var verdict = await vaas.ForFileAsync(file);

Console.WriteLine($"{verdict.Sha256} is detected as {verdict.Verdict}");

Verdict Request for a URL:

var url = "https://www.gdatasoftware.com/oem/verdict-as-a-service";
var verdict = await vaas.ForUrlAsync(new Uri(url));;

Console.WriteLine($"{verdict.Sha256} is detected as {verdict.Verdict}");

I'm interested in VaaS

You need credentials to use the service in your application. If you are interested in using VaaS, please contact us.

Developing with Visual Studio Code

Every single SDKs also includes Devcontainer. If you use the Visual Studio Code Dev Containers extension, you can run the code in a full-featured development environment.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.1.2 353 3/14/2024
6.1.0 306 2/22/2024
6.1.0-beta 201 2/16/2024
6.0.3 253 2/15/2024
6.0.2 1,855 1/2/2024
6.0.1 469 11/14/2023
6.0.0 411 11/6/2023
6.0.0-alpha.2 65 11/2/2023
6.0.0-alpha.1 74 10/19/2023
5.2.0 425 10/18/2023
5.1.1 6,335 8/25/2023
5.0.0 449 8/22/2023
4.1.1 5,086 7/18/2023
4.1.0 1,974 5/17/2023
4.0.0 590 5/9/2023
3.1.1 932 3/6/2023
3.1.0 686 2/28/2023
3.0.3 1,025 11/15/2022
3.0.2 713 11/15/2022
3.0.1 699 11/15/2022
3.0.0 745 11/11/2022
2.0.0 856 10/19/2022
1.1.0 800 10/14/2022
1.0.2 889 9/15/2022