behaviors

package
v0.0.3-pre Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tag

Tag annotates each function with behavior tags based on call edges and string references.

Types

type BehaviorTag

type BehaviorTag string

BehaviorTag is a high-level behavioral classification.

const (
	TagNetwork   BehaviorTag = "NETWORK"
	TagCrypto    BehaviorTag = "CRYPTO"
	TagFileWrite BehaviorTag = "FILE_WRITE"
	TagFileRead  BehaviorTag = "FILE_READ"
	TagExecution BehaviorTag = "EXECUTION"
	TagRegistry  BehaviorTag = "REGISTRY"
	TagMemory    BehaviorTag = "MEMORY"
	TagDNS       BehaviorTag = "DNS"
	TagHTTP      BehaviorTag = "HTTP"
)

type TagRule

type TagRule struct {
	Tag         BehaviorTag
	CallTargets []string       // tag applies if function calls any of these (prefix match)
	StringPat   *regexp.Regexp // OR if function references a string matching this pattern
}

TagRule defines when a tag applies to a function.

Jump to

Keyboard shortcuts

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