22 lines
614 B
C#
22 lines
614 B
C#
|
|
using StellaOps.Scanner.AiMlSecurity.Models;
|
|
using System.Collections.Immutable;
|
|
|
|
namespace StellaOps.Scanner.AiMlSecurity.Analyzers;
|
|
|
|
public sealed record AiMlSecurityResult
|
|
{
|
|
public static AiMlSecurityResult Empty { get; } = new();
|
|
|
|
public ImmutableArray<AiSecurityFinding> Findings { get; init; } = [];
|
|
public ImmutableArray<AiRiskAssessment> RiskAssessments { get; init; } = [];
|
|
public AiModelInventory? Inventory { get; init; }
|
|
}
|
|
|
|
public interface IAiMlSecurityCheck
|
|
{
|
|
Task<AiMlSecurityResult> AnalyzeAsync(
|
|
AiMlSecurityContext context,
|
|
CancellationToken ct = default);
|
|
}
|