GDataCyberDefense.Vaas
7.5.6
See the version list below for details.
dotnet add package GDataCyberDefense.Vaas --version 7.5.6
NuGet\Install-Package GDataCyberDefense.Vaas -Version 7.5.6
<PackageReference Include="GDataCyberDefense.Vaas" Version="7.5.6" />
paket add GDataCyberDefense.Vaas --version 7.5.6
#r "nuget: GDataCyberDefense.Vaas, 7.5.6"
// Install GDataCyberDefense.Vaas as a Cake Addin #addin nuget:?package=GDataCyberDefense.Vaas&version=7.5.6 // Install GDataCyberDefense.Vaas as a Cake Tool #tool nuget:?package=GDataCyberDefense.Vaas&version=7.5.6
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 | 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. |
-
net8.0
- CommunityToolkit.Diagnostics (>= 8.3.2)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
- System.IdentityModel.Tokens.Jwt (>= 8.1.1)
- Websocket.Client (>= 5.1.2)
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 | 55 | 11/25/2024 |
7.6.0 | 82 | 11/18/2024 |
7.5.8 | 253 | 11/4/2024 |
7.5.7 | 319 | 10/14/2024 |
7.5.6 | 132 | 10/7/2024 |
7.5.5 | 143 | 9/30/2024 |
7.5.4 | 106 | 9/23/2024 |
7.5.3 | 141 | 9/16/2024 |
7.5.2 | 253 | 9/9/2024 |
7.5.1 | 175 | 9/2/2024 |
7.5.0 | 2,867 | 8/26/2024 |
7.4.1 | 92 | 8/26/2024 |
7.4.0 | 142 | 8/20/2024 |
7.3.0 | 178 | 7/24/2024 |
7.2.0 | 125 | 7/17/2024 |
7.1.4 | 102 | 7/15/2024 |
7.1.3 | 232 | 6/24/2024 |
7.1.2 | 137 | 6/20/2024 |
7.1.1 | 249 | 5/21/2024 |
7.1.0 | 170 | 5/15/2024 |
7.0.0 | 6,061 | 4/29/2024 |
6.1.2 | 449 | 3/14/2024 |
6.1.0 | 339 | 2/22/2024 |
6.1.0-beta | 230 | 2/16/2024 |
6.0.3 | 283 | 2/15/2024 |
6.0.2 | 2,089 | 1/2/2024 |
6.0.1 | 496 | 11/14/2023 |
6.0.0 | 448 | 11/6/2023 |
6.0.0-alpha.2 | 81 | 11/2/2023 |
6.0.0-alpha.1 | 87 | 10/19/2023 |
5.2.0 | 459 | 10/18/2023 |
5.1.1 | 6,371 | 8/25/2023 |
5.0.0 | 474 | 8/22/2023 |
4.1.1 | 5,126 | 7/18/2023 |
4.1.0 | 2,006 | 5/17/2023 |
4.0.0 | 617 | 5/9/2023 |
3.1.1 | 956 | 3/6/2023 |
3.1.0 | 718 | 2/28/2023 |
3.0.3 | 1,054 | 11/15/2022 |
3.0.2 | 734 | 11/15/2022 |
3.0.1 | 728 | 11/15/2022 |
3.0.0 | 773 | 11/11/2022 |
2.0.0 | 879 | 10/19/2022 |
1.1.0 | 830 | 10/14/2022 |
1.0.2 | 917 | 9/15/2022 |