GDataCyberDefense.Vaas
6.0.0-alpha.1
See the version list below for details.
dotnet add package GDataCyberDefense.Vaas --version 6.0.0-alpha.1
NuGet\Install-Package GDataCyberDefense.Vaas -Version 6.0.0-alpha.1
<PackageReference Include="GDataCyberDefense.Vaas" Version="6.0.0-alpha.1" />
paket add GDataCyberDefense.Vaas --version 6.0.0-alpha.1
#r "nuget: GDataCyberDefense.Vaas, 6.0.0-alpha.1"
// Install GDataCyberDefense.Vaas as a Cake Addin #addin nuget:?package=GDataCyberDefense.Vaas&version=6.0.0-alpha.1&prerelease // Install GDataCyberDefense.Vaas as a Cake Tool #tool nuget:?package=GDataCyberDefense.Vaas&version=6.0.0-alpha.1&prerelease
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
- CommunityToolkit.Diagnostics (>= 8.2.1)
- Websocket.Client (>= 4.7.0)
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.5.8 | 79 | 11/4/2024 |
7.5.7 | 242 | 10/14/2024 |
7.5.6 | 128 | 10/7/2024 |
7.5.5 | 142 | 9/30/2024 |
7.5.4 | 105 | 9/23/2024 |
7.5.3 | 140 | 9/16/2024 |
7.5.2 | 252 | 9/9/2024 |
7.5.1 | 174 | 9/2/2024 |
7.5.0 | 2,407 | 8/26/2024 |
7.4.1 | 91 | 8/26/2024 |
7.4.0 | 141 | 8/20/2024 |
7.3.0 | 174 | 7/24/2024 |
7.2.0 | 124 | 7/17/2024 |
7.1.4 | 101 | 7/15/2024 |
7.1.3 | 231 | 6/24/2024 |
7.1.2 | 136 | 6/20/2024 |
7.1.1 | 246 | 5/21/2024 |
7.1.0 | 169 | 5/15/2024 |
7.0.0 | 5,576 | 4/29/2024 |
6.1.2 | 448 | 3/14/2024 |
6.1.0 | 338 | 2/22/2024 |
6.1.0-beta | 227 | 2/16/2024 |
6.0.3 | 282 | 2/15/2024 |
6.0.2 | 2,088 | 1/2/2024 |
6.0.1 | 495 | 11/14/2023 |
6.0.0 | 445 | 11/6/2023 |
6.0.0-alpha.2 | 78 | 11/2/2023 |
6.0.0-alpha.1 | 86 | 10/19/2023 |
5.2.0 | 458 | 10/18/2023 |
5.1.1 | 6,368 | 8/25/2023 |
5.0.0 | 473 | 8/22/2023 |
4.1.1 | 5,125 | 7/18/2023 |
4.1.0 | 2,005 | 5/17/2023 |
4.0.0 | 616 | 5/9/2023 |
3.1.1 | 955 | 3/6/2023 |
3.1.0 | 717 | 2/28/2023 |
3.0.3 | 1,053 | 11/15/2022 |
3.0.2 | 733 | 11/15/2022 |
3.0.1 | 725 | 11/15/2022 |
3.0.0 | 772 | 11/11/2022 |
2.0.0 | 878 | 10/19/2022 |
1.1.0 | 829 | 10/14/2022 |
1.0.2 | 916 | 9/15/2022 |