audiovisual

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AVAttackProfile

type AVAttackProfile struct {
	Name            string
	Description     string
	AudioVectors    []AudioAttackType
	VideoVectors    []VideoAttackType
	FusionStrategy  FusionStrategy
	TargetModels    []string
	DifficultyLevel int
	SuccessRate     float64
}

type AVFusionAttack

type AVFusionAttack struct {
	AttackID       string
	AudioComponent *AudioAttack
	VideoComponent *VideoAttack
	FusionStrategy FusionStrategy
	SyncProfile    *SynchronizationProfile
	Metadata       *AVFusionMetadata
}

type AVFusionEngine

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

AVFusionEngine coordinates audio-video fusion attacks

func NewAVFusionEngine

func NewAVFusionEngine() *AVFusionEngine

type AVFusionMetadata

type AVFusionMetadata struct {
	AttackID              string
	Timestamp             time.Time
	AudioVideoSync        float64
	PerceptualCoherence   float64
	CognitiveLoad         float64
	AttentionManipulation float64
	OverallEffectiveness  float64
	BypassTechniques      []string
}

type AcousticInjector

type AcousticInjector struct{}

func (*AcousticInjector) EmbedAcousticPayload

func (a *AcousticInjector) EmbedAcousticPayload(audio []byte, payload string) ([]byte, error)

type AdaptiveController

type AdaptiveController struct{}

func (*AdaptiveController) GenerateAdaptiveSchedule

func (a *AdaptiveController) GenerateAdaptiveSchedule(payload string, streamType StreamType) []PayloadSchedule

type AdversarialSpeechSynth

type AdversarialSpeechSynth struct{}

type AttentionManipulator

type AttentionManipulator struct{}

func (*AttentionManipulator) ApplyAttentionSplitting

func (a *AttentionManipulator) ApplyAttentionSplitting(attack *AVFusionAttack)

type AudioAttack

type AudioAttack struct {
	AttackID           string
	AttackType         AudioAttackType
	BaseAudio          []byte
	ModifiedAudio      []byte
	FrequencyProfile   *FrequencyProfile
	SteganographicData *SteganographicData
	VoiceProfile       *VoiceProfile
	Metadata           *AudioAttackMetadata
}

type AudioAttackEngine

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

AudioAttackEngine handles audio-specific attack vectors

func NewAudioAttackEngine

func NewAudioAttackEngine() *AudioAttackEngine

type AudioAttackMetadata

type AudioAttackMetadata struct {
	AttackID          string
	Timestamp         time.Time
	Duration          time.Duration
	SampleRate        int
	Bitrate           int
	ChannelCount      int
	CompressionFormat string
	QualityScore      float64
	DetectionRisk     float64
	BypassTechniques  []string
}

type AudioAttackType

type AudioAttackType int
const (
	UltrasonicInjection AudioAttackType = iota
	SubsonicInjection
	VoiceCloning
	AcousticSteganography
	FrequencyMasking
	SpeechSynthesisAttack
	PhonemicConfusion
	AccentExploitation
	BackgroundNoiseInjection
)

type AudioVisualAttackEngine

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

AudioVisualAttackEngine implements advanced audio and video attack vectors Based on 2025 research in multi-modal AI exploitation

func NewAudioVisualAttackEngine

func NewAudioVisualAttackEngine(logger common.AuditLogger) *AudioVisualAttackEngine

NewAudioVisualAttackEngine creates a new AV attack engine

func (*AudioVisualAttackEngine) GenerateAVFusionAttack

func (e *AudioVisualAttackEngine) GenerateAVFusionAttack(ctx context.Context, audioAttack *AudioAttack, videoAttack *VideoAttack, strategy FusionStrategy) (*AVFusionAttack, error)

GenerateAVFusionAttack creates a coordinated audio-video fusion attack

func (*AudioVisualAttackEngine) GenerateAudioAttack

func (e *AudioVisualAttackEngine) GenerateAudioAttack(ctx context.Context, attackType AudioAttackType, baseAudio []byte, harmfulPayload string) (*AudioAttack, error)

GenerateAudioAttack creates an audio attack with specified parameters

func (*AudioVisualAttackEngine) GenerateStreamingAttack

func (e *AudioVisualAttackEngine) GenerateStreamingAttack(ctx context.Context, streamType StreamType, attackVector StreamAttackVector, harmfulPayload string) (*StreamingAttack, error)

GenerateStreamingAttack creates a real-time streaming attack

func (*AudioVisualAttackEngine) GenerateVideoAttack

func (e *AudioVisualAttackEngine) GenerateVideoAttack(ctx context.Context, attackType VideoAttackType, baseVideo []byte, harmfulPayload string) (*VideoAttack, error)

GenerateVideoAttack creates a video attack with specified parameters

type CognitiveExploiter

type CognitiveExploiter struct{}

func (*CognitiveExploiter) ApplyCognitiveOverload

func (c *CognitiveExploiter) ApplyCognitiveOverload(attack *AVFusionAttack)

type ConditionType

type ConditionType int
const (
	TimeThreshold ConditionType = iota
	ViewerAttention
	ModelResponse
	ExternalSignal
)

type DeepfakeData

type DeepfakeData struct {
	TargetFace       []byte
	SourceFace       []byte
	SwapQuality      float64
	DetectionEvasion *EvasionMetrics
	RealismScore     float64
}

type DeepfakeGenerator

type DeepfakeGenerator struct{}

func (*DeepfakeGenerator) GenerateDeepfake

func (d *DeepfakeGenerator) GenerateDeepfake(video []byte, payload string) ([]byte, error)

type EncodingType

type EncodingType int
const (
	BinaryEncoding EncodingType = iota
	ASCIIEncoding
	Base64Encoding
	UnicodeEncoding
	CustomEncoding
)

type EvasionMetrics

type EvasionMetrics struct {
	BlurResistance        float64
	CompressionResistance float64
	NoiseResistance       float64
	TemporalConsistency   float64
}

type FrameInjector

type FrameInjector struct{}

func (*FrameInjector) PoisonFrames

func (f *FrameInjector) PoisonFrames(video []byte, payload string) ([]byte, error)

type FrameModType

type FrameModType int
const (
	PixelInjection FrameModType = iota
	SubtitleInjection
	WatermarkInjection
	OpticalCharacterInjection
	QRCodeInjection
	SubliminalImageInjection
)

type FrameModification

type FrameModification struct {
	FrameNumber      int
	ModificationType FrameModType
	Payload          []byte
	Opacity          float64
	Duration         time.Duration
	Coordinates      Rectangle
}

type FrequencyBand

type FrequencyBand struct {
	LowFreq    float64
	HighFreq   float64
	Amplitude  float64
	Phase      float64
	Modulation ModulationType
	Payload    []byte
}

type FrequencyManipulator

type FrequencyManipulator struct{}

func (*FrequencyManipulator) ApplyFrequencyMasking

func (f *FrequencyManipulator) ApplyFrequencyMasking(audio []byte, payload string) ([]byte, error)

type FrequencyProfile

type FrequencyProfile struct {
	SampleRate       int
	FrequencyBands   []FrequencyBand
	UltrasonicData   []UltrasonicChannel
	SubsonicData     []SubsonicChannel
	ModulationParams *ModulationParams
}

type FusionStrategy

type FusionStrategy int
const (
	SynchronizedOverload FusionStrategy = iota
	AsynchronousDistraction
	PerceptualMasking
	CognitiveOverload
	AttentionSplitting
	SensoryConflict
)

type LatencyExploiter

type LatencyExploiter struct{}

func (*LatencyExploiter) GenerateLatencyProfile

func (l *LatencyExploiter) GenerateLatencyProfile(payload string) *LatencyProfile

type LatencyProfile

type LatencyProfile struct {
	BaseLatency    time.Duration
	VarianceRange  time.Duration
	SpikeFrequency float64
	SpikeAmplitude time.Duration
}

type ModulationParams

type ModulationParams struct {
	CarrierFrequency float64
	ModulationDepth  float64
	ModulationRate   float64
	Waveform         WaveformType
}

type ModulationType

type ModulationType int
const (
	AmplitudeModulation ModulationType = iota
	FrequencyModulation
	PhaseModulation
	PulseWidthModulation
)

type MotionManipulator

type MotionManipulator struct{}

type OpticalInjector

type OpticalInjector struct{}

func (*OpticalInjector) CreateOpticalIllusion

func (o *OpticalInjector) CreateOpticalIllusion(video []byte, payload string) ([]byte, error)

type PatternType

type PatternType int
const (
	FlickerPattern PatternType = iota
	MotionPattern
	ColorPattern
	BrightnessPattern
	ContrastPattern
	SaturationPattern
)

type PayloadSchedule

type PayloadSchedule struct {
	Timestamp   time.Duration
	PayloadType string
	Data        []byte
	Priority    int
}

type PerceptualMasker

type PerceptualMasker struct{}

func (*PerceptualMasker) ApplyPerceptualMasking

func (p *PerceptualMasker) ApplyPerceptualMasking(attack *AVFusionAttack)

func (*PerceptualMasker) ApplySynchronizedOverload

func (p *PerceptualMasker) ApplySynchronizedOverload(attack *AVFusionAttack)

type QualityMetrics

type QualityMetrics struct {
	NaturalnessScore     float64
	SimilarityScore      float64
	IntelligibilityScore float64
	DetectionResistance  float64
}

type RealtimeInjector

type RealtimeInjector struct{}

func (*RealtimeInjector) GenerateInjectionSchedule

func (r *RealtimeInjector) GenerateInjectionSchedule(payload string, streamType StreamType) []PayloadSchedule

type Rectangle

type Rectangle struct {
	X, Y, Width, Height int
}

type Resolution

type Resolution struct {
	Width, Height int
}

type SteganographicData

type SteganographicData struct {
	Method           SteganographyMethod
	EmbeddedData     []byte
	CoverMedia       []byte
	ExtractionKey    string
	CompressionRatio float64
}

type SteganographyMethod

type SteganographyMethod int
const (
	LSBSteganography SteganographyMethod = iota
	DCTSteganography
	WaveletSteganography
	SpreadSpectrumSteganography
	EchoHiding
	PhaseModulationSteganography
)

type StreamAttackVector

type StreamAttackVector int
const (
	RealtimeInjection StreamAttackVector = iota
	StreamHijacking
	LatencyExploitation
	BufferOverflow
	SynchronizationAttack
	AdaptivePayload
)

type StreamHijacker

type StreamHijacker struct{}

type StreamType

type StreamType int
const (
	RealtimeVideo StreamType = iota
	RealtimeAudio
	LiveStream
	VideoCall
	AudioCall
	InteractiveSession
)

type StreamingAttack

type StreamingAttack struct {
	AttackID        string
	StreamType      StreamType
	AttackVector    StreamAttackVector
	PayloadSchedule []PayloadSchedule
	LatencyProfile  *LatencyProfile
	Metadata        *StreamingAttackMetadata
}

type StreamingAttackEngine

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

StreamingAttackEngine handles real-time streaming attacks

func NewStreamingAttackEngine

func NewStreamingAttackEngine() *StreamingAttackEngine

type StreamingAttackMetadata

type StreamingAttackMetadata struct {
	AttackID           string
	Timestamp          time.Time
	StreamDuration     time.Duration
	Latency            time.Duration
	Bandwidth          int
	PacketLoss         float64
	JitterLevel        float64
	AdaptationStrategy string
	BypassTechniques   []string
}

type SubliminalProcessor

type SubliminalProcessor struct{}

func (*SubliminalProcessor) EmbedSubliminalMessage

func (s *SubliminalProcessor) EmbedSubliminalMessage(video []byte, payload string) ([]byte, error)

type SubsonicChannel

type SubsonicChannel struct {
	Frequency float64 // < 20Hz
	Amplitude float64
	Encoding  EncodingType
	Payload   string
	Duration  time.Duration
}

type SubsonicProcessor

type SubsonicProcessor struct{}

func (*SubsonicProcessor) InjectSubsonic

func (p *SubsonicProcessor) InjectSubsonic(audio []byte, payload string) ([]byte, error)

type SynchronizationController

type SynchronizationController struct{}

func (*SynchronizationController) GenerateSyncProfile

func (s *SynchronizationController) GenerateSyncProfile(audio *AudioAttack, video *VideoAttack, strategy FusionStrategy) *SynchronizationProfile

type SynchronizationProfile

type SynchronizationProfile struct {
	MasterStream    string
	SyncTolerance   time.Duration
	DriftCorrection bool
	BufferSize      int
}

type SynthesisParams

type SynthesisParams struct {
	Model             string
	Temperature       float64
	TopP              float64
	LengthPenalty     float64
	RepetitionPenalty float64
}

type TemporalAttacker

type TemporalAttacker struct{}

func (*TemporalAttacker) CreateTemporalPattern

func (t *TemporalAttacker) CreateTemporalPattern(video []byte, payload string) ([]byte, error)

type TemporalPattern

type TemporalPattern struct {
	Pattern           PatternType
	Frequency         float64
	Duration          time.Duration
	Amplitude         float64
	TriggerConditions []TriggerCondition
}

type TriggerCondition

type TriggerCondition struct {
	Type      ConditionType
	Threshold float64
	Action    string
}

type UltrasonicChannel

type UltrasonicChannel struct {
	Frequency float64 // > 20kHz
	Amplitude float64
	Encoding  EncodingType
	Payload   string
	Duration  time.Duration
}

type UltrasonicProcessor

type UltrasonicProcessor struct{}

func (*UltrasonicProcessor) InjectUltrasonic

func (p *UltrasonicProcessor) InjectUltrasonic(audio []byte, payload string) ([]byte, error)

type VideoAttack

type VideoAttack struct {
	AttackID           string
	AttackType         VideoAttackType
	BaseVideo          []byte
	ModifiedVideo      []byte
	FrameModifications []FrameModification
	TemporalPattern    *TemporalPattern
	DeepfakeData       *DeepfakeData
	Metadata           *VideoAttackMetadata
}

type VideoAttackEngine

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

VideoAttackEngine handles video-specific attack vectors

func NewVideoAttackEngine

func NewVideoAttackEngine() *VideoAttackEngine

type VideoAttackMetadata

type VideoAttackMetadata struct {
	AttackID          string
	Timestamp         time.Time
	Duration          time.Duration
	Resolution        Resolution
	FrameRate         float64
	Bitrate           int
	CompressionFormat string
	QualityScore      float64
	DetectionRisk     float64
	BypassTechniques  []string
}

type VideoAttackType

type VideoAttackType int
const (
	FramePoisoning VideoAttackType = iota
	SubliminalMessaging
	TemporalPatternExploit
	MotionBasedTrigger
	DeepfakeGeneration
	VisualSteganography
	OpticalIllusion
	AttentionRedirection
	FaceSwapAttack
	LipSyncManipulation
)

type VoiceCharacteristics

type VoiceCharacteristics struct {
	Pitch         float64
	Formants      []float64
	Tempo         float64
	Accent        string
	EmotionalTone string
	SpeakingStyle string
}

type VoiceCloner

type VoiceCloner struct{}

func (*VoiceCloner) CloneVoiceWithPayload

func (v *VoiceCloner) CloneVoiceWithPayload(audio []byte, payload string) ([]byte, error)

type VoiceProfile

type VoiceProfile struct {
	TargetSpeaker   string
	VoiceModel      []byte
	Characteristics *VoiceCharacteristics
	SynthesisParams *SynthesisParams
	QualityMetrics  *QualityMetrics
}

type WaveformType

type WaveformType int
const (
	SineWave WaveformType = iota
	SquareWave
	TriangleWave
	SawtoothWave
	NoiseWave
)

Jump to

Keyboard shortcuts

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