Documentation ¶
Index ¶
- Variables
- type BeaconStaticCfg
- type BeaconTableCfg
- type BlacklistedStaticCfg
- type BlacklistedTableCfg
- type BroStaticCfg
- type Config
- type DNSTableCfg
- type FilteringStaticCfg
- type LogStaticCfg
- type LogTableCfg
- type MetaTableCfg
- type MongoDBRunningCfg
- type MongoDBStaticCfg
- type RunningCfg
- type StaticCfg
- type StructureTableCfg
- type TLSStaticCfg
- type TableCfg
- type UserAgentTableCfg
- type UserCfgStaticCfg
Constants ¶
This section is empty.
Variables ¶
var ExactVersion = "undefined"
ExactVersion is filled at compile time with the git version of RITA ExactVersion is filled by "git describe --always --long --dirty --tags"
var Version = "undefined"
Version is filled at compile time with the git version of RITA Version is filled by "git describe --abbrev=0 --tags"
Functions ¶
This section is empty.
Types ¶
type BeaconStaticCfg ¶ added in v1.0.0
type BeaconStaticCfg struct {
DefaultConnectionThresh int `yaml:"DefaultConnectionThresh"`
}
BeaconStaticCfg is used to control the beaconing analysis module
type BeaconTableCfg ¶ added in v1.0.0
type BeaconTableCfg struct {
BeaconTable string
}
BeaconTableCfg is used to control the beaconing analysis module
type BlacklistedStaticCfg ¶ added in v1.0.0
type BlacklistedStaticCfg struct { UseIPms bool `yaml:"myIP.ms"` UseDNSBH bool `yaml:"MalwareDomains.com"` UseMDL bool `yaml:"MalwareDomainList.com"` IPBlacklists []string `yaml:"CustomIPBlacklists"` HostnameBlacklists []string `yaml:"CustomHostnameBlacklists"` }
BlacklistedStaticCfg is used to control the blacklisted analysis module
type BlacklistedTableCfg ¶ added in v1.0.0
type BlacklistedTableCfg struct { BlacklistDatabase string SourceIPsTable string DestIPsTable string HostnamesTable string }
BlacklistedTableCfg is used to control the blacklisted analysis module
type BroStaticCfg ¶ added in v1.0.0
type BroStaticCfg struct { ImportDirectory string `yaml:"ImportDirectory"` DBRoot string `yaml:"DBRoot"` MetaDB string `yaml:"MetaDB"` ImportBuffer int `yaml:"ImportBuffer"` }
BroStaticCfg controls the file parser
type Config ¶ added in v1.0.0
type Config struct { R RunningCfg S StaticCfg T TableCfg }
Config holds the configuration for the running system
func LoadConfig ¶ added in v1.0.2
LoadConfig attempts to parse a config file
func LoadTestingConfig ¶ added in v1.0.2
LoadTestingConfig loads the hard coded testing config
type DNSTableCfg ¶ added in v1.0.0
DNSTableCfg is used to control the dns analysis module
type FilteringStaticCfg ¶
type FilteringStaticCfg struct { AlwaysInclude []string `yaml:"AlwaysInclude"` InternalSubnets []string `yaml:"InternalSubnets"` }
FilteringStaticCfg controls address filtering
type LogStaticCfg ¶ added in v1.0.0
type LogStaticCfg struct { LogLevel int `yaml:"LogLevel"` RitaLogPath string `yaml:"RitaLogPath"` LogToFile bool `yaml:"LogToFile"` LogToDB bool `yaml:"LogToDB"` }
LogStaticCfg contains the configuration for logging
type LogTableCfg ¶ added in v1.0.0
type LogTableCfg struct {
RitaLogTable string
}
LogTableCfg contains the configuration for logging
type MetaTableCfg ¶ added in v1.0.0
MetaTableCfg contains the meta db collection names
type MongoDBRunningCfg ¶ added in v1.0.0
type MongoDBRunningCfg struct { AuthMechanismParsed mgosec.AuthMechanism TLS struct { TLSConfig *tls.Config } }
MongoDBRunningCfg holds parsed information for connecting to MongoDB
type MongoDBStaticCfg ¶ added in v1.0.0
type MongoDBStaticCfg struct { ConnectionString string `yaml:"ConnectionString"` AuthMechanism string `yaml:"AuthenticationMechanism"` SocketTimeout time.Duration `yaml:"SocketTimeout"` TLS TLSStaticCfg `yaml:"TLS"` }
MongoDBStaticCfg contains the means for connecting to MongoDB
type RunningCfg ¶ added in v1.0.0
type RunningCfg struct { MongoDB MongoDBRunningCfg Version semver.Version }
RunningCfg holds configuration options that are parsed at run time
type StaticCfg ¶ added in v1.0.0
type StaticCfg struct { UserConfig UserCfgStaticCfg `yaml:"UserConfig"` MongoDB MongoDBStaticCfg `yaml:"MongoDB"` Log LogStaticCfg `yaml:"LogConfig"` Blacklisted BlacklistedStaticCfg `yaml:"BlackListed"` Beacon BeaconStaticCfg `yaml:"Beacon"` Bro BroStaticCfg `yaml:"Bro"` Filtering FilteringStaticCfg `yaml:"Filtering"` Version string ExactVersion string }
StaticCfg is the container for other static config sections
type StructureTableCfg ¶ added in v1.0.0
type StructureTableCfg struct { ConnTable string HTTPTable string DNSTable string UniqueConnTable string HostTable string IPv4Table string IPv6Table string FrequentConnTable string }
StructureTableCfg contains the names of the base level collections
type TLSStaticCfg ¶ added in v1.0.0
type TLSStaticCfg struct { Enabled bool `yaml:"Enable"` VerifyCertificate bool `yaml:"VerifyCertificate"` CAFile string `yaml:"CAFile"` }
TLSStaticCfg contains the means for connecting to MongoDB over TLS
type TableCfg ¶ added in v1.0.0
type TableCfg struct { Log LogTableCfg Blacklisted BlacklistedTableCfg DNS DNSTableCfg Structure StructureTableCfg Beacon BeaconTableCfg UserAgent UserAgentTableCfg Meta MetaTableCfg }
TableCfg is the container for other table config sections
type UserAgentTableCfg ¶ added in v1.0.0
type UserAgentTableCfg struct {
UserAgentTable string
}
UserAgentTableCfg is used to control the useragent analysis module
type UserCfgStaticCfg ¶ added in v1.1.1
type UserCfgStaticCfg struct {
UpdateCheckFrequency *int `yaml:"UpdateCheckFrequency,omitempty"`
}
UserCfgStaticCfg contains