GDataCyberDefense.Vaas
4.0.0
See the version list below for details.
dotnet add package GDataCyberDefense.Vaas --version 4.0.0
NuGet\Install-Package GDataCyberDefense.Vaas -Version 4.0.0
<PackageReference Include="GDataCyberDefense.Vaas" Version="4.0.0" />
paket add GDataCyberDefense.Vaas --version 4.0.0
#r "nuget: GDataCyberDefense.Vaas, 4.0.0"
// Install GDataCyberDefense.Vaas as a Cake Addin #addin nuget:?package=GDataCyberDefense.Vaas&version=4.0.0 // Install GDataCyberDefense.Vaas as a Cake Tool #tool nuget:?package=GDataCyberDefense.Vaas&version=4.0.0
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Websocket.Client (>= 4.6.1)
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 |
---|---|---|
7.6.1 | 57 | 11/25/2024 |
7.6.0 | 99 | 11/18/2024 |
7.5.8 | 281 | 11/4/2024 |
7.5.7 | 321 | 10/14/2024 |
7.5.6 | 134 | 10/7/2024 |
7.5.5 | 145 | 9/30/2024 |
7.5.4 | 108 | 9/23/2024 |
7.5.3 | 143 | 9/16/2024 |
7.5.2 | 255 | 9/9/2024 |
7.5.1 | 177 | 9/2/2024 |
7.5.0 | 2,934 | 8/26/2024 |
7.4.1 | 94 | 8/26/2024 |
7.4.0 | 144 | 8/20/2024 |
7.3.0 | 180 | 7/24/2024 |
7.2.0 | 127 | 7/17/2024 |
7.1.4 | 104 | 7/15/2024 |
7.1.3 | 234 | 6/24/2024 |
7.1.2 | 139 | 6/20/2024 |
7.1.1 | 252 | 5/21/2024 |
7.1.0 | 172 | 5/15/2024 |
7.0.0 | 6,122 | 4/29/2024 |
6.1.2 | 451 | 3/14/2024 |
6.1.0 | 341 | 2/22/2024 |
6.1.0-beta | 230 | 2/16/2024 |
6.0.3 | 285 | 2/15/2024 |
6.0.2 | 2,091 | 1/2/2024 |
6.0.1 | 498 | 11/14/2023 |
6.0.0 | 450 | 11/6/2023 |
6.0.0-alpha.2 | 81 | 11/2/2023 |
6.0.0-alpha.1 | 87 | 10/19/2023 |
5.2.0 | 461 | 10/18/2023 |
5.1.1 | 6,373 | 8/25/2023 |
5.0.0 | 476 | 8/22/2023 |
4.1.1 | 5,128 | 7/18/2023 |
4.1.0 | 2,008 | 5/17/2023 |
4.0.0 | 619 | 5/9/2023 |
3.1.1 | 958 | 3/6/2023 |
3.1.0 | 720 | 2/28/2023 |
3.0.3 | 1,056 | 11/15/2022 |
3.0.2 | 736 | 11/15/2022 |
3.0.1 | 730 | 11/15/2022 |
3.0.0 | 775 | 11/11/2022 |
2.0.0 | 881 | 10/19/2022 |
1.1.0 | 832 | 10/14/2022 |
1.0.2 | 919 | 9/15/2022 |