TAXII2Sharp.Client 1.0.0

Install-Package TAXII2Sharp.Client -Version 1.0.0
dotnet add package TAXII2Sharp.Client --version 1.0.0
<PackageReference Include="TAXII2Sharp.Client" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TAXII2Sharp.Client --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TAXII2Sharp.Client, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install TAXII2Sharp.Client as a Cake Addin
#addin nuget:?package=TAXII2Sharp.Client&version=1.0.0

// Install TAXII2Sharp.Client as a Cake Tool
#tool nuget:?package=TAXII2Sharp.Client&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TAXII2Sharp.Client

TAXII2Sharp.Client is a C# .NET Standard implementation of the TAXII2 specifications for retrieving STIX structured data from a TAXII Endpoint.

For more information on the TAXII Specifications, please see the References section below. For more information on the STIX specifications, please see the References section below.

Usage

using System;
using System.Collections.Generic;
// Please note that the client version to be imported is dependent on the TAXII Standard version run by the server
using TAXIISharp2.Client.V20;

...

// Create a server
Server endpoint = new Server("https://somesite.org/taxii");

// Get a list of the APIRoot endpoints provided by that server
List<APIRoots> APIRoots = endpoint.GetAPIRoots();

// Iterate over the APIRoot objects
foreach (APIRoot root in APIRoots)
{
    // Iterate over the Collection hosted at that APIRoot 
    foreach (Collection collection in root.Collections)
    {
        // Get the STIX objects that the collection contains
        var Objects = collection.GetObjects();
        Console.WriteLine("Total objects in collection: {0}", Objects.Objects.Length);
    }
}

For additional information, please see the example included in the project

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

References

TAXII 2.0 Specification TAXII 2.1 Specification STIX Specification

License

GNU Lesser General Public License v2.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
1.0.0 244 4/14/2021

Initial release of TAXII2Sharp.Client

This release contains a TAXII2 client with implementations for TAXII2 v2.0 and 2.1, with STIX2 Object definitions in order to allow for connection to a TAXII Endpoint to gather relevant data from it.