GDataCyberDefense.Vaas
7.4.1
See the version list below for details.
dotnet add package GDataCyberDefense.Vaas --version 7.4.1
NuGet\Install-Package GDataCyberDefense.Vaas -Version 7.4.1
<PackageReference Include="GDataCyberDefense.Vaas" Version="7.4.1" />
paket add GDataCyberDefense.Vaas --version 7.4.1
#r "nuget: GDataCyberDefense.Vaas, 7.4.1"
// Install GDataCyberDefense.Vaas as a Cake Addin #addin nuget:?package=GDataCyberDefense.Vaas&version=7.4.1 // Install GDataCyberDefense.Vaas as a Cake Tool #tool nuget:?package=GDataCyberDefense.Vaas&version=7.4.1
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.2.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.0.2)
- 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 | 167 | 11/25/2024 |
7.6.0 | 141 | 11/18/2024 |
7.5.8 | 291 | 11/4/2024 |
7.5.7 | 332 | 10/14/2024 |
7.5.6 | 139 | 10/7/2024 |
7.5.5 | 150 | 9/30/2024 |
7.5.4 | 113 | 9/23/2024 |
7.5.3 | 153 | 9/16/2024 |
7.5.2 | 259 | 9/9/2024 |
7.5.1 | 181 | 9/2/2024 |
7.5.0 | 3,700 | 8/26/2024 |
7.4.1 | 98 | 8/26/2024 |
7.4.0 | 148 | 8/20/2024 |
7.3.0 | 187 | 7/24/2024 |
7.2.0 | 135 | 7/17/2024 |
7.1.4 | 108 | 7/15/2024 |
7.1.3 | 240 | 6/24/2024 |
7.1.2 | 143 | 6/20/2024 |
7.1.1 | 258 | 5/21/2024 |
7.1.0 | 176 | 5/15/2024 |
7.0.0 | 6,777 | 4/29/2024 |
6.1.2 | 453 | 3/14/2024 |
6.1.0 | 343 | 2/22/2024 |
6.1.0-beta | 234 | 2/16/2024 |
6.0.3 | 287 | 2/15/2024 |
6.0.2 | 2,093 | 1/2/2024 |
6.0.1 | 500 | 11/14/2023 |
6.0.0 | 452 | 11/6/2023 |
6.0.0-alpha.2 | 83 | 11/2/2023 |
6.0.0-alpha.1 | 89 | 10/19/2023 |
5.2.0 | 463 | 10/18/2023 |
5.1.1 | 6,375 | 8/25/2023 |
5.0.0 | 478 | 8/22/2023 |
4.1.1 | 5,130 | 7/18/2023 |
4.1.0 | 2,010 | 5/17/2023 |
4.0.0 | 621 | 5/9/2023 |
3.1.1 | 960 | 3/6/2023 |
3.1.0 | 722 | 2/28/2023 |
3.0.3 | 1,058 | 11/15/2022 |
3.0.2 | 738 | 11/15/2022 |
3.0.1 | 732 | 11/15/2022 |
3.0.0 | 777 | 11/11/2022 |
2.0.0 | 883 | 10/19/2022 |
1.1.0 | 834 | 10/14/2022 |
1.0.2 | 921 | 9/15/2022 |