Documentation
¶
Overview ¶
Package scanner provides a security rule engine for analyzing Android application packages using parsed DEX bytecode and manifest data. It produces findings compatible with the mobilepkg analysis pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
DexFiles []*dex.File
// DexNames holds the archive entry name for each DexFile (same index).
// Used to populate Finding.ArchivePath with the correct file name.
DexNames []string
// contains filtered or unexported fields
}
Context provides all data that rules need to inspect.
func (*Context) MergedStrings ¶
MergedStrings returns the deduplicated set of strings from all DEX files.
type Finding ¶
type Finding struct {
ID string
Category string
Severity string // "info", "warn", "error"
Confidence string // "high", "medium", "low"
Message string
ArchivePath string
Field string
Matched string
Offset int
}
Finding represents a security observation from a scanner rule. Fields use plain types to avoid circular imports with the root package.
func Scan ¶
Scan runs all default rules against the given context and returns the aggregated findings.
func ScanWithRules ¶
ScanWithRules runs the given rules against the context and returns the aggregated findings.