Table of Contents

Interface IThreatModelContributor<TContext>

Namespace
AsiBackbone.Core.ThreatModeling
Assembly
AsiBackbone.Core.dll

Contributes host-defined threat-aware assessment data to policy evaluation.

public interface IThreatModelContributor<in TContext> where TContext : IAsiBackboneConstraintEvaluationContext

Type Parameters

TContext

The framework-neutral context type evaluated by the contributor.

Remarks

Contributors are extension points. AsiBackbone does not claim to detect threats by itself; hosts provide the checks that are appropriate for their domain. Return NoThreat() when no finding is present. Actionable assessments must not recommend Allowed; use Warning, Denied, Deferred, AcknowledgmentRequired, or EscalationRecommended instead.

Properties

Name

Gets the stable name of the contributor for audit metadata.

string Name { get; }

Property Value

string

Methods

AssessAsync(TContext, CancellationToken)

Assesses the supplied context and returns a threat assessment.

ValueTask<ThreatAssessment> AssessAsync(TContext context, CancellationToken cancellationToken = default)

Parameters

context TContext

The context to assess.

cancellationToken CancellationToken

A token that can cancel asynchronous assessment.

Returns

ValueTask<ThreatAssessment>

The threat assessment reported by the contributor.