Documentation
¶
Overview ¶
internal/worker/adapters/ato_adapter.go
internal/worker/adapters/headers_adapter.go
internal/worker/adapters/helpers.go
internal/worker/adapters/idor_adapter.go
internal/worker/adapters/jwt_adapter.go
internal/worker/adapters/reporter.go
Filename: taint_adapter.go internal/worker/adapters/taint_adapter.go
internal/worker/adapters/timeslip_adapter.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ATOAdapter ¶
type ATOAdapter struct {
core.BaseAnalyzer
// contains filtered or unexported fields
}
func NewATOAdapter ¶
func NewATOAdapter() *ATOAdapter
NewATOAdapter creates a new ATOAdapter with a default HTTP client.
func (*ATOAdapter) Analyze ¶
func (a *ATOAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
func (*ATOAdapter) SetHttpClient ¶
func (a *ATOAdapter) SetHttpClient(client *http.Client)
SetHttpClient allows overriding the default HTTP client, primarily for testing.
type AgentAdapter ¶
type AgentAdapter struct {
*core.BaseAnalyzer
}
the bridge that lets our autonomous agent play nice as a standard worker module.
func NewAgentAdapter ¶
func NewAgentAdapter() *AgentAdapter
creates a new adapter for agent missions.
func (*AgentAdapter) Analyze ¶
func (a *AgentAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
type ContextReporter ¶
type ContextReporter struct {
Ctx *core.AnalysisContext
// contains filtered or unexported fields
}
func NewContextReporter ¶
func NewContextReporter(ctx *core.AnalysisContext) *ContextReporter
func (*ContextReporter) Report ¶
func (r *ContextReporter) Report(finding taint.CorrelatedFinding)
func (*ContextReporter) Write ¶
func (r *ContextReporter) Write(envelope *schemas.ResultEnvelope) error
type HeadersAdapter ¶
type HeadersAdapter struct {
core.BaseAnalyzer
// contains filtered or unexported fields
}
func NewHeadersAdapter ¶
func NewHeadersAdapter() *HeadersAdapter
NewHeadersAdapter creates a new adapter instance.
func (*HeadersAdapter) Analyze ¶
func (a *HeadersAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
Analyze is the bridge function called by the worker.
type IDORAdapter ¶
type IDORAdapter struct {
core.BaseAnalyzer
// contains filtered or unexported fields
}
func NewIDORAdapter ¶
func NewIDORAdapter() *IDORAdapter
func (*IDORAdapter) Analyze ¶
func (a *IDORAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
type JWTAdapter ¶
type JWTAdapter struct {
// embedding the BaseAnalyzer provides default implementations for Name(), etc.
core.BaseAnalyzer
}
JWTAdapter acts as a bridge between the worker and the specific JWT static analyzer.
func NewJWTAdapter ¶
func NewJWTAdapter() *JWTAdapter
NewJWTAdapter creates a new adapter for JWT analysis.
func (*JWTAdapter) Analyze ¶
func (a *JWTAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
Analyze is the main execution method for the adapter.
type TaintAdapter ¶
type TaintAdapter struct {
core.BaseAnalyzer
}
func NewTaintAdapter ¶
func NewTaintAdapter() *TaintAdapter
func (*TaintAdapter) Analyze ¶
func (a *TaintAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error
type TimeslipAdapter ¶
type TimeslipAdapter struct {
core.BaseAnalyzer
}
func NewTimeslipAdapter ¶
func NewTimeslipAdapter() *TimeslipAdapter
func (*TimeslipAdapter) Analyze ¶
func (a *TimeslipAdapter) Analyze(ctx context.Context, analysisCtx *core.AnalysisContext) error