malware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package malware is the engine module for static malware/cryptominer scanning of image layers (CAPABILITY_SPEC domains 3/11, static side). It walks every layer — including files removed by a later whiteout, which remain extractable and are a favorite hiding place — and the flattened tree for filesystem targets, matching each file against the offline signature pack in internal/malware. Findings are DS-RAT-MAL-*.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *engine.Registry)

Register adds the malware module to a registry.

Types

type Module

type Module struct{}

Module implements static malware scanning.

func New

func New() *Module

New returns a malware module.

func (*Module) Analyze

func (m *Module) Analyze(ctx context.Context, t *engine.Target) ([]engine.Finding, error)

Analyze scans the target and returns DS-RAT-MAL findings. An external signature pack can be supplied via Target.Metadata["malware.sigs"]; otherwise the embedded pack is used.

func (*Module) Description

func (m *Module) Description() string

func (*Module) Domains

func (m *Module) Domains() []string

func (*Module) Name

func (m *Module) Name() string

func (*Module) Supports

func (m *Module) Supports(t engine.TargetType) bool

Jump to

Keyboard shortcuts

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