Versions in this module Expand all Collapse all v0 v0.0.10 Apr 10, 2026 v0.0.9 Mar 17, 2026 Changes in this version + const DirectionClientToServer + const DirectionServerToClient + const RiskLevelCritical + const RiskLevelHigh + const RiskLevelLow + const RiskLevelMedium + const RiskLevelNone + type ANSIFilter struct + func NewANSIFilter() *ANSIFilter + func (f *ANSIFilter) ContainsANSI(data []byte) bool + func (f *ANSIFilter) ExtractPrintableText(data []byte) []byte + func (f *ANSIFilter) Filter(data []byte) []byte + func (f *ANSIFilter) IsInteractiveCommand(data []byte) bool + type CommandBuffer struct + func NewCommandBuffer(sessionID string, parser *SSHParser) *CommandBuffer + func (cb *CommandBuffer) GetBufferSize() int + func (cb *CommandBuffer) PreProcess(ctx context.Context, data []byte) (*PreProcessResult, error) + func (cb *CommandBuffer) Reset() + func (cb *CommandBuffer) SetCallbacks(onCommand func(*audit.OperationEvent), onBlock func(string)) + type DangerousPattern struct + Description string + Level RiskLevel + Pattern *regexp.Regexp + type Direction = proxy.Direction + type ParseResult = proxy.ParseResult + type PreProcessResult struct + BlockReason string + CleanData []byte + Events []*audit.OperationEvent + ShouldBlock bool + type RiskLevel = proxy.RiskLevel + type SSHParser struct + func NewSSHParser() *SSHParser + func (p *SSHParser) DetectRisk(event *audit.OperationEvent) RiskLevel + func (p *SSHParser) Parse(ctx context.Context, data []byte, direction Direction, sessionID string) (*ParseResult, error) + func (p *SSHParser) Protocol() audit.Protocol + func (p *SSHParser) Reset() + func (p *SSHParser) ShouldBlock(event *audit.OperationEvent) bool