-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question About RITA Config Logs #795
Comments
Hello, please post your RITA configuration file which is located at Please ensure that the connection string in that file (this line) matches the one you use to connect with |
I have the same problem. |
I also find it odd that when I run: that is does not create any log data in /var/lib/rita/logs |
Here is my config.yaml. This section configures the connection to the MongoDB server and the database name to useMongoDB: See https://docs.mongodb.com/manual/reference/connection-string/ConnectionString: mongodb://localhost:27017 Example with authentication. Be sure to change the AuthenticationMechanism as well.ConnectionString: mongodb://xxxx:[email protected]:27017Accepted Values: null, "SCRAM-SHA-1", "MONGODB-CR", "PLAIN"Since Mongo version 3.0 the default authentication mechanism is SCRAM-SHA-1AuthenticationMechanism: null The time in hours before RITA's connection to MongoDB times out. 0 waits indefinitely.SocketTimeout: 2 For encrypting data on the wire between RITA and MongoDBTLS: This database holds information about the procesed files and databases.MetaDB: MetaDatabase Rolling: This is the default number of chunks to keep in rolling databases.This only is used if the --numchunks command argument isn't supplied.DefaultChunks: 24 LogConfig: LogLevel3 = debug2 = info1 = warn0 = errorLogLevel: 3 LogPath is the path for Rita's logs. Make sure permissions are set accordingly.Logs will only be written here if LogToFile is trueRitaLogPath: /var/lib/rita/logs LogToFile: true UserConfig: Number of days before checking for a new version of RITA.A value of zero here will disable checking.UpdateCheckFrequency: 14 Filtering: These are filters that affect the import of connection logs. Theycurrently do not apply to dns or http logs.A good reference for networks you may wish to consider is RFC 5735.https://tools.ietf.org/html/rfc5735#section-4Example: AlwaysInclude: ["192.168.1.2/32"]This functionality overrides the NeverInclude and InternalSubnetssection, making sure that any connection records containing addresses fromthis range are kept and not filteredAlwaysInclude: [] Example: NeverInclude: ["255.255.255.255/32"]This functions as a whitelisting setting, and connections involvingranges entered into this section are filtered out at import timeNeverInclude: Example: InternalSubnets: ["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"]This allows a user to identify their internal network, which will resultin any internal to internal and external to external connections beingfiltered out at import time. Reasonable defaults are provided belowbut need to be manually verified against each installation before enabling.InternalSubnets: Example: AlwaysIncludeDomain: ["mydomain.com","*.mydomain.com"]This functionality overrides the NeverIncludeDomainsection, making sure that any connection records containing domainsthat match this list are kept and not filteredNOTE: When using wildcards, make sure the added entry is in quotes,ie, '*.mydomain.com'. Only subdomain wildcarding(asterisk as the prefix) is supportedAlwaysIncludeDomain: [] Example: NeverIncludeDomain: ["mydomain.com","*.mydomain.com"]This functions as a whitelisting setting, and connections involvingranges entered into this section are filtered out at import timeNOTE: When using wildcards, make sure the added entry is in quotes,ie, '*.mydomain.com'. Only subdomain wildcarding(asterisk as the prefix) is supportedNeverIncludeDomain: [] FilterExternalToInternal will ignore any entries where communicationis occurring from an external host to an internal hostFilterExternalToInternal: true BlackListed: These are blacklists built into rita-blacklist. Set these to falseto disable checks against them.feodotracker.abuse.ch: true This is the name of the database which will be created as a master list ofblacklisted ips and hostnames by rita-blacklistBlacklistDatabase: "rita-bl" These are custom blacklists that you may define. They are lists of eitherfile paths or urls. These custom blacklists are expected to be simple,line separated text documents containing a list of blacklisted entries.Example: CustomIPBlacklists: ["$HOME/.rita/myIPBlacklist.txt"]myIPBlacklist.txt would look like this:192.168.0.110.10.174.1Lists containing both IPv4 and IPv6 addresses are acceptableCustomIPBlacklists: [] Lists containing hostnames, domain names, and FQDNs are acceptableCustomHostnameBlacklists: [] Beacon: The default minimum number of connections used for beacons analysis.Any two hosts connecting fewer than this number will not be analyzed. You cansafely increase this value to improve performance if you are not concernedabout slow beacons.Note: Since analyzing hosts that have fewer than at least one connection perhour could significantly increase both the analysis time and the numberof false positives, 23 is the minimum allowed value for this field.DefaultConnectionThresh: 23 The score is currently comprised of a weighted average of 4 subscores.While we recommend the default setting of 0.25 for each weight,these weights can be altered here according to your needs.The sum of all the floating point weights must be equal to 1.TimestampScoreWeight: 0.25 The number of hours seen in a connection graph representation of a beacon mustbe greater than this threshold for an overall duration score to be calculated.Default value: 6DurationMinHoursSeen: 6 This is the minimum number of hours seen in a connection graph representationof a beacon for the consistency subscore of duration to score at 100%Default value: 12 (half the day)DurationConsistencyIdealHoursSeen: 12 The histogram score has a subscore that attempts to detect multipleflat sections in a connection graph representation of a beacon. Thevariable below controls the bucket size for grouping connections. Thisis expressed as a percentage of the largest connection count. For example,if the max connection count is 400 and this variable is set to 0.05 (5%),the bucket size will be 20 (400*0.05=20). As you make this variablelarger, the algorithm becomes more forgiving to variation.Default value 0.05HistogramBimodalBucketSize: 0.05 This is the number of buckets that can be considered outliers and droppedfrom the calculation.Default value: 1HistogramBimodalOutlierRemoval: 1 This is the minimum number of hours seen in a connection graph representationof a beacon before the bimodal subscore score is used.Default value: 11 (sets the minimum coverage to just below half of the day)HistogramBimodalMinHoursSeen: 11 BeaconSNI: The default minimum number of connections used for beacons SNI analysis.Any two hosts connecting fewer than this number will not be analyzed. You cansafely increase this value to improve performance if you are not concernedabout slow beacons.Note: Since analyzing hosts that have fewer than at least one connection perhour could significantly increase both the analysis time and the numberof false positives, 23 is the minimum allowed value for this field.DefaultConnectionThresh: 23 The score is currently comprised of a weighted average of 4 subscores.While we recommend the default setting of 0.25 for each weight,these weights can be altered here according to your needs.The sum of all the floating point weights must be equal to 1.TimestampScoreWeight: 0.25 The number of hours seen in a connection graph representation of a beacon mustbe greater than this threshold for an overall duration score to be calculated.Default value: 6DurationMinHoursSeen: 6 This is the minimum number of hours seen in a connection graph representationof a beacon for the consistency subscore of duration to score at 100%Default value: 12 (half the day)DurationConsistencyIdealHoursSeen: 12 The histogram score has a subscore that attempts to detect multipleflat sections in a connection graph representation of a beacon. Thevariable below controls the bucket size for grouping connections. Thisis expressed as a percentage of the largest connection count. For example,if the max connection count is 400 and this variable is set to 0.05 (5%),the bucket size will be 20 (400*0.05=20). As you make this variablelarger, the algorithm becomes more forgiving to variation.Default value 0.05HistogramBimodalBucketSize: 0.05 This is the number of buckets that can be considered outliers and droppedfrom the calculation.Default value: 1HistogramBimodalOutlierRemoval: 1 This is the minimum number of hours seen in a connection graph representationof a beacon before the subscore score is used.Default value: 11 (sets the minimum coverage to just below half of the day)HistogramBimodalMinHoursSeen: 11 BeaconProxy: The default minimum number of connections used for beacons proxy analysis.Any two hosts connecting fewer than this number will not be analyzed. You cansafely increase this value to improve performance if you are not concernedabout slow beacons.Note: Since analyzing hosts that have fewer than at least one connection perhour could significantly increase both the analysis time and the numberof false positives, 23 is the minimum allowed value for this field.DefaultConnectionThresh: 23 The score is currently comprised of a weighted average of 3 subscores.While we recommend the default setting of 0.333 for each weight,these weights can be altered here according to your needs.The sum of all the floating point weights must be equal to 1TimestampScoreWeight: 0.333 The number of hours seen in a connection graph representation of a beacon mustbe greater than this threshold for an overall duration score to be calculated.Default value: 6DurationMinHoursSeen: 6 This is the minimum number of hours seen in a connection graph representationof a beacon for the consistency subscore of duration to score at 100%Default value: 12 (half the day)DurationConsistencyIdealHoursSeen: 12 The histogram score has a subscore that attempts to detect multipleflat sections in a connection graph representation of a beacon. Thevariable below controls the bucket size for grouping connections. Thisis expressed as a percentage of the largest connection count. For example,if the max connection count is 400 and this variable is set to 0.05 (5%),the bucket size will be 20 (400*0.05=20). As you make this variablelarger, the algorithm becomes more forgiving to variation.Default value 0.05HistogramBimodalBucketSize: 0.05 This is the number of buckets that can be considered outliers and droppedfrom the calculation.Default value: 1HistogramBimodalOutlierRemoval: 1 This is the minimum number of hours seen in a connection graph representationof a beacon before the subscore score is used.Default value: 11 (sets the minimum coverage to just below half of the day)HistogramBimodalMinHoursSeen: 11 DNS: UserAgent: Strobe: This sets the maximum number of connections between any two given hosts that are stored.Connections above this limit will be deleted and not used in other analysis modules. This willalso trigger an entry in the strobe module. A lower value will reduce import & analysis time andhide more potential false positives from other modules. A higher value will increase import &analysis time, increase false positives, but reduce the risk of false negatives.Note: Since this value must be low enough to ensure that documents that storearrays based off of connections will not grow beyond 16MB in size, the maximum value allowedfor this field is:86400 - One connection every second for 24 hoursConnectionLimit: 86400 |
The issue is related to the MongoDB version. The current RITA does not support the latest MongoDB version, so please uninstall MongoDB using the official guide and reinstall version 4.2, as listed in the requirements section of RITA. |
Hello Everyone
I was Trying to install RITA with the defualt configuration, but when I run the command "test-Config" i Get the result "Failed to connect to database: no reachable servers"
The MongoDB is on the Same Server as the Rita Server. I was able to connecto to the mongoDB with mongosh.
In my Point of view there is Something wrong with the RITA Config.
I tried to find RITA Error Logs, but wasn't able to find them.
Can anyone provide me the path for it?
kind Regards
The text was updated successfully, but these errors were encountered: