baseline

package
v0.0.0-...-17e6b21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNIST80053HighBaseline

func NewNIST80053HighBaseline() *oscal.Catalog

Types

type AIAnalysisResult

type AIAnalysisResult struct {
	ModelID         string
	AnalysisType    string
	Confidence      float64
	Insights        []AIInsight
	RiskScore       float64
	Recommendations []string
	Evidence        map[string]interface{}
	Timestamp       time.Time
}

type AIBaselineAnalyzer

type AIBaselineAnalyzer struct {
	// contains filtered or unexported fields
}

func (*AIBaselineAnalyzer) AnalyzeBaseline

func (aa *AIBaselineAnalyzer) AnalyzeBaseline(
	ctx context.Context,
	catalog *oscal.Catalog,
) (*AIBaselineProfile, error)

type AIBaselineProfile

type AIBaselineProfile struct {
	ControlPatterns map[string]float64
	RiskFactors     map[string]float64
	ComplianceScore float64
	Recommendations []AIRecommendation
	LastAnalysis    time.Time
}

type AIInsight

type AIInsight struct {
	Type       string
	Confidence float64
	Suggestion string
	Evidence   []string
	Timestamp  time.Time
	ModelID    string
}

type AIModelIntegration

type AIModelIntegration struct {
	// contains filtered or unexported fields
}

func (*AIModelIntegration) AnalyzeCompliance

func (ai *AIModelIntegration) AnalyzeCompliance(
	ctx context.Context,
	catalog *oscal.Catalog,
) (*AIAnalysisResult, error)

type AIRecommendation

type AIRecommendation struct {
	Type        string
	Confidence  float64
	Description string
	Impact      string
	Priority    int
	Evidence    []string
}

type AuditRecord

type AuditRecord struct {
	ID           string
	Action       string
	Timestamp    time.Time
	Actor        string
	Resource     string
	Changes      []ChangeRecord
	Attestation  *quantum.Attestation
	AIValidation *AIValidationResult
}

type AuditTrail

type AuditTrail struct {
	// contains filtered or unexported fields
}

func (*AuditTrail) RecordAction

func (at *AuditTrail) RecordAction(
	ctx context.Context,
	action string,
	resource string,
	changes []ChangeRecord,
) error

type BaselineCache

type BaselineCache struct {
	// contains filtered or unexported fields
}

type BaselineControl

type BaselineControl struct {
	ID          string
	Title       string
	Description string
	Parameters  map[string]interface{}
	Guidance    []string
	References  []string
	Risk        RiskAssessment
	AIInsights  []AIInsight
}

type BaselineManager

type BaselineManager struct {
	// contains filtered or unexported fields
}

func NewBaselineManager

func NewBaselineManager(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
	daprClient client.Client,
) *BaselineManager

func (*BaselineManager) LoadBaseline

func (bm *BaselineManager) LoadBaseline(
	ctx context.Context,
	baselineID string,
) (*oscal.Catalog, error)

type BaselineMetadata

type BaselineMetadata struct {
	ID            string
	Version       string
	LastUpdated   time.Time
	SecurityLevel int
	Category      string
	Framework     string
	Hash          string
	AISignature   string
}

type BaselineVersion

type BaselineVersion struct {
	Version     string
	Timestamp   time.Time
	Changes     []ChangeRecord
	ApprovedBy  string
	Signature   string
	AIValidated bool
}

type CachedBaseline

type CachedBaseline struct {
	Catalog    *oscal.Catalog
	Metadata   *BaselineMetadata
	Versions   []BaselineVersion
	LastAccess time.Time
	AIProfile  *AIBaselineProfile
}

type ChangeRecord

type ChangeRecord struct {
	Type          string
	Component     string
	Description   string
	Justification string
	Timestamp     time.Time
	Author        string
}

type ComplianceReport

type ComplianceReport struct {
	ID                string
	BaselineID        string
	Timestamp         time.Time
	OverallScore      float64
	Controls          []ControlStatus
	Gaps              []ComplianceGap
	AIRecommendations []AIRecommendation
	Evidence          map[string]interface{}
	Metadata          ReportMetadata
}

type ComplianceReporter

type ComplianceReporter struct {
	// contains filtered or unexported fields
}

func (*ComplianceReporter) GenerateReport

func (cr *ComplianceReporter) GenerateReport(
	ctx context.Context,
	catalog *oscal.Catalog,
	options *ReportOptions,
) (*ComplianceReport, error)

type ControlMapper

type ControlMapper struct {
	// contains filtered or unexported fields
}

func (*ControlMapper) MapControls

func (cm *ControlMapper) MapControls(
	ctx context.Context,
	sourceCatalog *oscal.Catalog,
	targetCatalog *oscal.Catalog,
) ([]MappingResult, error)

type ControlStatus

type ControlStatus struct {
	ID             string
	Status         string
	Score          float64
	Implementation string
	Evidence       []string
	AIInsights     []AIInsight
	LastValidated  time.Time
}

type GeneratedPolicy

type GeneratedPolicy struct {
	ID          string
	Name        string
	Description string
	Rules       []PolicyRule
	Metadata    PolicyMetadata
	AISignature string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type MappingResult

type MappingResult struct {
	SourceControl     string
	TargetControl     string
	MappingConfidence float64
	AIRecommendations []string
	Evidence          map[string]interface{}
	ValidationStatus  string
}

type PolicyGenerator

type PolicyGenerator struct {
	// contains filtered or unexported fields
}

func (*PolicyGenerator) GeneratePolicy

func (pg *PolicyGenerator) GeneratePolicy(
	ctx context.Context,
	catalog *oscal.Catalog,
	options *GenerationOptions,
) (*GeneratedPolicy, error)

type PolicyMetadata

type PolicyMetadata struct {
	Version    string
	Framework  string
	Category   string
	Author     string
	AIAssisted bool
	ValidFrom  time.Time
	ValidUntil time.Time
}

type PolicyRule

type PolicyRule struct {
	ID          string
	Name        string
	Condition   string
	Action      string
	Parameters  map[string]interface{}
	Severity    string
	AIGenerated bool
}

type PolicyValidator

type PolicyValidator struct {
	// contains filtered or unexported fields
}

func (*PolicyValidator) ValidateBaseline

func (pv *PolicyValidator) ValidateBaseline(
	ctx context.Context,
	catalog *oscal.Catalog,
	policySet string,
) (*ValidationResult, error)

type PolicyViolation

type PolicyViolation struct {
	ControlID   string
	Severity    string
	Description string
	Remediation string
	AIFeedback  string
	RiskLevel   float64
}

type ReportMetadata

type ReportMetadata struct {
	Framework   string
	Version     string
	GeneratedBy string
	ValidUntil  time.Time
	AIValidated bool
	Signatures  []DigitalSignature
}

type RiskAnalyzer

type RiskAnalyzer struct {
	// contains filtered or unexported fields
}

func (*RiskAnalyzer) AnalyzeRisks

func (ra *RiskAnalyzer) AnalyzeRisks(
	ctx context.Context,
	catalog *oscal.Catalog,
) (*RiskProfile, error)

type RiskAssessment

type RiskAssessment struct {
	Level      string
	Impact     float64
	Likelihood float64
	Score      float64
	Factors    []string
}

type RiskFactor

type RiskFactor struct {
	Type        string
	Score       float64
	Impact      string
	Likelihood  string
	Description string
	Mitigations []string
}

type RiskProfile

type RiskProfile struct {
	ID                string
	BaselineID        string
	RiskFactors       []RiskFactor
	TotalScore        float64
	Severity          string
	AIRecommendations []string
	LastUpdated       time.Time
}

type ValidationResult

type ValidationResult struct {
	Valid      bool
	Score      float64
	Violations []PolicyViolation
	AIInsights []AIInsight
	Timestamp  time.Time
	Evidence   map[string]interface{}
}

type VersionController

type VersionController struct {
	// contains filtered or unexported fields
}

func (*VersionController) CreateVersion

func (vc *VersionController) CreateVersion(
	ctx context.Context,
	catalog *oscal.Catalog,
	changes []ChangeRecord,
	approver string,
) (*BaselineVersion, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL