diff --git a/ace b/ace index fcd8f3a7..586e1657 100755 --- a/ace +++ b/ace @@ -1378,9 +1378,9 @@ test_parser = subparsers.add_parser('test', test_sp = test_parser.add_subparsers(dest='test_cmd') def test_proxy(args): - import requests try: - requests.get(args.url, proxies=saq.PROXIES) + import requests + requests.get(args.url, proxies=saq.PROXIES, verify=saq.CONFIG['proxy']['verify'] if 'verify' in saq.CONFIG['proxy'] else False) sys.exit(0) except Exception as e: traceback.print_exc() @@ -3602,33 +3602,6 @@ if __name__ == '__main__': import saq saq.initialize(saq_home=saq_home, config_paths=[], logging_config_path=None, args=args, relative_dir=args.relative_dir) - # has the encryption password been set yet? - import saq.crypto - from saq.crypto import get_aes_key, InvalidPasswordError - - # are we prompting for the decryption password? - if args.provide_decryption_password: - while True: - saq.ENCRYPTION_PASSWORD_PLAINTEXT = getpass.getpass("Enter the decryption password:") - try: - saq.ENCRYPTION_PASSWORD = get_aes_key(saq.ENCRYPTION_PASSWORD_PLAINTEXT) - except InvalidPasswordError: - logging.error("invalid encryption password") - continue - - break - - elif saq.crypto.encryption_key_set(): - # if we're not prompting for it, are we running the encryption cache service yet? - logging.debug("reading encryption password from ecs") - saq.ENCRYPTION_PASSWORD_PLAINTEXT = saq.crypto.read_ecs() - if saq.ENCRYPTION_PASSWORD_PLAINTEXT is not None: - try: - saq.ENCRYPTION_PASSWORD = get_aes_key(saq.ENCRYPTION_PASSWORD_PLAINTEXT) - except InvalidPasswordError: - logging.error("read password from ecs but the password is wrong") - saq.ENCRYPTION_PASSWORD_PLAINTEXT = None - if args.debug_on_error: def info(type, value, tb): if hasattr(sys, 'ps1') or not sys.stderr.isatty() or type != AssertionError: diff --git a/etc/saq.bro.default.ini b/etc/saq.bro.default.ini index 04e0b126..0065ce05 100644 --- a/etc/saq.bro.default.ini +++ b/etc/saq.bro.default.ini @@ -28,3 +28,16 @@ enabled = yes ; path to the brotex custom whitelist file whitelist_path = etc/brotex.whitelist + +[module_group_email] +analysis_module_bro_smtp_analyzer = yes + +[analysis_mode_http] +; mode used for HTTP stream analysis +module_groups = common, file +cleanup = yes +analysis_module_bro_http_analyzer = yes + +maximum_cumulative_analysis_warning_time = 30 +maximum_cumulative_analysis_fail_time = 120 +maximum_analysis_time = 20 diff --git a/etc/saq.default.ini b/etc/saq.default.ini index b7fe88c3..4d993cea 100644 --- a/etc/saq.default.ini +++ b/etc/saq.default.ini @@ -1892,7 +1892,6 @@ analysis_module_yara_scanner_v3_4 = yes [module_group_email] ; everything related to email scanning -analysis_module_bro_smtp_analyzer = yes analysis_module_email_analyzer = yes analysis_module_email_conversation_attachment_analyzer = yes analysis_module_email_conversation_frequency_analyzer = yes @@ -1996,15 +1995,6 @@ cache_dir = cloudphish ; cleanup = yes|no ; analysis_module_blah = yes|no -[analysis_mode_http] -; mode used for HTTP stream analysis -module_groups = common, file -cleanup = yes -analysis_module_bro_http_analyzer = yes - -maximum_cumulative_analysis_warning_time = 30 -maximum_cumulative_analysis_fail_time = 120 -maximum_analysis_time = 20 [analysis_mode_email] ; mode used for email (rfc822 and SMTP stream) analysis diff --git a/installer/source_install b/installer/source_install index f58d867c..830fa7f3 100755 --- a/installer/source_install +++ b/installer/source_install @@ -122,6 +122,7 @@ if grep ACE_DB_USER_PASSWORD etc/saq.ini > /dev/null 2>&1 then echo "generating mysql accounts for ACE with random password" tr -cd '[:alnum:]' < /dev/urandom | fold -w14 | head -n1 > .mysql.password.sed + password=$(cat .mysql.password.sed) # modify the configuration files to use it sed -i -e 's;^;s/ACE_DB_USER_PASSWORD/;' -e 's;$;/g;' .mysql.password.sed for path in etc/saq.ini etc/amc_mda.ini etc/amc_client.ini @@ -133,6 +134,13 @@ then sed -f .mysql.password.sed etc/mysql_defaults.example > etc/mysql_defaults && chmod 660 etc/mysql_defaults rm .mysql.password.sed + cat >> load_local_environment <