Posted: Sat Nov 22, 2008 8:26 am
Scott,
I'm a correct that i should probably re-install ASL? For one example i have all the rule-class's on but they say below they are off.
[root@D2540 ~]# asl -s -f
Checking Kernel security settings
ASL kernel: not detected [CRITICAL]
Kernel GRsecurity support: not found [HIGH]
GRsecurity administrative password: not set [INFO]
GRsecurity ACL database: not found [INFO]
General Security Checks
Checking for unnecessary services
Service portmap: disabled [OK]
Service nfs: disabled [OK]
Service nfslock: disabled [OK]
Service rpcidmapd: disabled [OK]
Service cups: disabled [OK]
Service gpm: disabled [OK]
Service xfs: disabled [OK]
Checking for End of Life (EOL) operating systems
centos/5: Supported [OK]
Checking General PSA settings
Plesk SQL Injection vulnerability SA26741: not detected [OK]
Horde Turba Vulnerability CVE-2008-0807: not detected [OK]
Horde Vulnerability SA28382: not detected [OK]
Horde Turba Vulnerability SA28382: not detected [OK]
Horde Mnemo Vulnerability SA28382: not detected [OK]
Horde Kronolith Vulnerability SA28382: not detected [OK]
Horde Vulnerability CVE-2007-6018: not detected [OK]
Horde Vulnerability CVE-2008-1284: not detected [OK]
Horde Kronolith Vulnerabilty BugtraqID 28898: not detecte[OK]
Verify SSLv2 disabled: verified [OK]
Checking psmon settings
Checking for psmon installation: installed [OK]
psmon set to: enabled [OK]
Regenerating configuration from template: psmon.conf-temp[OK]
Process monitoring enabled: yes [OK]
Notifications to: support@blahblahblah.com [FIXED]
From line set to: psmon@D2540.blahblahblah.com [FIXED]
Checking System services monitored by psmon
clamd: monitored [FIXED]
courier-imap: monitored [FIXED]
crond: monitored [FIXED]
ossec-hids: monitored [FIXED]
psa: monitored [FIXED]
psa-spamassassin: monitored [FIXED]
sshd: monitored [FIXED]
xinetd: monitored [FIXED]
Checking General ossec-hids settings
Checking for ossec-hids installation: installed [OK]
ossec-hids set to: enabled [OK]
OSSEC is configured in server mode.
Checking for server installation: installed [OK]
Enable email notification: yes [OK]
Notifications to: support@blahblahblah.com [OK]
Notifications from: ossec@D2540.blahblahblah.com[OK]
SMTP server set to: localhost [OK]
Max emails per hour set to: 200 [OK]
Client connections allowed through firewall: yes [OK]
Verifying Active Response set to: on [OK]
Shun period time set to: 600 [OK]
Verifying OSSEC whitelists
checking: 127.0.0.1 [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
Monitoring mod_security log: audit_log [OK]
Shutting down ossec-hids: [ OK ]
Starting ossec-hids: [ OK ]
Checking General rkhunter settings
Checking for rkhunter installation: installed [OK]
rkhunter set to: enabled [OK]
Notifications sent to: support@blahblahblah.com [OK]
Allow SSH root logins: yes [OK]
Allow SSH protocol version 1: no [OK]
Checking for whitelist for Plesk services
ftp_psa : enabled [OK]
poppassd_psa : enabled [OK]
smtp_psa : enabled [OK]
smtps_psa : enabled [OK]
Checking Denyhosts settings
Checking for denyhosts installation: installed [OK]
DenyHosts set to: enabled [OK]
Notifications sent to: support@eblahblahblah.com [OK]
Notifications sent from: denyhosts@D2540.eblahblahblah[OK]com
Logging set to: syslog [OK]
Shun period set to: 5m [OK]
Verifying DenyHosts whitelists
checking: 127.0.0.1 [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
sent DenyHosts SIGTERM
starting DenyHosts: /usr/bin/env python /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf
Checking SSHD configuration
Enforce Protocol Version: 2 [OK]
Strict modes enabled: no [OK]
Ignore .rhosts: yes [OK]
Enable Public Key authentication for users: no [OK]
Checking Admin users
Valid Admin users detected: no [HIGH]
WARNING: SSH will not be reconfigured at this time.
FAILED: Remote root logins are still permitted: [HIGH]
FAILED: Password authentication is enabled: [HIGH]
Enable Privilege separation: no [OK]
Allow GSSAPIAuthentication: no [OK]
Allow GSSAPICleanupCredentials: no [OK]
SSH Banner: /etc/asl/banner [OK]
Checking General httpd settings
Verify .htacces AllowOverride not set to ALL: verified [OK]
Verify HTTP TRACE disabled: verified [OK]
Verify SSLv2 disabled: verified [OK]
Checking general mod_evasive settings.
Checking for mod_evasive installation: installed [OK]
mod_evasive set to: not enabled [MODERATE]
Checking General mod_security settings
Checking for mod_security installation: installed [OK]
mod_security set to: enabled [OK]
Server Signature set to: Apache [OK]
SecUploadDir set to: /var/asl/data/suspicious [OK]
SecUploadKeepFiles set to: Off [OK]
Logfile set to: audit_log [OK]
Logging set to: Concurrent [OK]
Audit Logging to: /var/asl/data/audit [OK]
Logging elements set to: ABIFHZ [OK]
SecRequestBodyInMemoryLimit set to: 131072 [OK]
SecResponseBodyLimit set to: 2621440 [OK]
Enable debug log: yes [OK]
SecDataDir set to: /var/asl/data/msa [OK]
SecTmpDir set to: /tmp [OK]
Checking rule class settings
RBL Checks: off [LOW]
Upload Scanner ruleset: off [HIGH]
Anti-Malware ruleset: off [HIGH]
Generic Attack ruleset: off [HIGH]
Malicious Useragents ruleset: off [LOW]
Anti-Spam ruleset: off [LOW]
Apache2 Generic ruleset: off [LOW]
Rootkit ruleset: off [LOW]
Recon ruleset: off [LOW]
Just In Time Patches: off [HIGH]
Whitelist: off [OK]
Checking General PHP settings
Checking for php installation: installed [OK]
PHP checks: Warn-Only [CRITICAL]
PHP Safe Mode: enabled [HIGH]
Register Globals: off [OK]
Checking for High-Risk functions
Function dl: no [OK]
Function exec: no [OK]
Function furl_open: no [OK]
Function passthru: no [OK]
Function pfsockopen: no [OK]
Function popen: no [OK]
Function posix_kill: no [OK]
Function posix_mkfifo: no [OK]
Function posix_setuid: no [OK]
Function proc_close: no [OK]
Function proc_open: no [OK]
Function proc_terminate: no [OK]
Function shell_exec: no [OK]
Function system: no [OK]
Checking for Moderate-Risk functions
Function leak: no [OK]
Function posix_kill: no [OK]
Function posix_setpgid: no [OK]
Function posix_setsid: no [OK]
Function proc_get_status: no [OK]
Function proc_nice: no [OK]
Function show_source: no [OK]
Checking for Low-Risk functions
Function phpinfo: yes [ALLOWED]
Generating Report: [Done]
I'm a correct that i should probably re-install ASL? For one example i have all the rule-class's on but they say below they are off.
[root@D2540 ~]# asl -s -f
Checking Kernel security settings
ASL kernel: not detected [CRITICAL]
Kernel GRsecurity support: not found [HIGH]
GRsecurity administrative password: not set [INFO]
GRsecurity ACL database: not found [INFO]
General Security Checks
Checking for unnecessary services
Service portmap: disabled [OK]
Service nfs: disabled [OK]
Service nfslock: disabled [OK]
Service rpcidmapd: disabled [OK]
Service cups: disabled [OK]
Service gpm: disabled [OK]
Service xfs: disabled [OK]
Checking for End of Life (EOL) operating systems
centos/5: Supported [OK]
Checking General PSA settings
Plesk SQL Injection vulnerability SA26741: not detected [OK]
Horde Turba Vulnerability CVE-2008-0807: not detected [OK]
Horde Vulnerability SA28382: not detected [OK]
Horde Turba Vulnerability SA28382: not detected [OK]
Horde Mnemo Vulnerability SA28382: not detected [OK]
Horde Kronolith Vulnerability SA28382: not detected [OK]
Horde Vulnerability CVE-2007-6018: not detected [OK]
Horde Vulnerability CVE-2008-1284: not detected [OK]
Horde Kronolith Vulnerabilty BugtraqID 28898: not detecte[OK]
Verify SSLv2 disabled: verified [OK]
Checking psmon settings
Checking for psmon installation: installed [OK]
psmon set to: enabled [OK]
Regenerating configuration from template: psmon.conf-temp[OK]
Process monitoring enabled: yes [OK]
Notifications to: support@blahblahblah.com [FIXED]
From line set to: psmon@D2540.blahblahblah.com [FIXED]
Checking System services monitored by psmon
clamd: monitored [FIXED]
courier-imap: monitored [FIXED]
crond: monitored [FIXED]
ossec-hids: monitored [FIXED]
psa: monitored [FIXED]
psa-spamassassin: monitored [FIXED]
sshd: monitored [FIXED]
xinetd: monitored [FIXED]
Checking General ossec-hids settings
Checking for ossec-hids installation: installed [OK]
ossec-hids set to: enabled [OK]
OSSEC is configured in server mode.
Checking for server installation: installed [OK]
Enable email notification: yes [OK]
Notifications to: support@blahblahblah.com [OK]
Notifications from: ossec@D2540.blahblahblah.com[OK]
SMTP server set to: localhost [OK]
Max emails per hour set to: 200 [OK]
Client connections allowed through firewall: yes [OK]
Verifying Active Response set to: on [OK]
Shun period time set to: 600 [OK]
Verifying OSSEC whitelists
checking: 127.0.0.1 [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
Monitoring mod_security log: audit_log [OK]
Shutting down ossec-hids: [ OK ]
Starting ossec-hids: [ OK ]
Checking General rkhunter settings
Checking for rkhunter installation: installed [OK]
rkhunter set to: enabled [OK]
Notifications sent to: support@blahblahblah.com [OK]
Allow SSH root logins: yes [OK]
Allow SSH protocol version 1: no [OK]
Checking for whitelist for Plesk services
ftp_psa : enabled [OK]
poppassd_psa : enabled [OK]
smtp_psa : enabled [OK]
smtps_psa : enabled [OK]
Checking Denyhosts settings
Checking for denyhosts installation: installed [OK]
DenyHosts set to: enabled [OK]
Notifications sent to: support@eblahblahblah.com [OK]
Notifications sent from: denyhosts@D2540.eblahblahblah[OK]com
Logging set to: syslog [OK]
Shun period set to: 5m [OK]
Verifying DenyHosts whitelists
checking: 127.0.0.1 [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
checking: blahblahblah [OK]
sent DenyHosts SIGTERM
starting DenyHosts: /usr/bin/env python /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf
Checking SSHD configuration
Enforce Protocol Version: 2 [OK]
Strict modes enabled: no [OK]
Ignore .rhosts: yes [OK]
Enable Public Key authentication for users: no [OK]
Checking Admin users
Valid Admin users detected: no [HIGH]
WARNING: SSH will not be reconfigured at this time.
FAILED: Remote root logins are still permitted: [HIGH]
FAILED: Password authentication is enabled: [HIGH]
Enable Privilege separation: no [OK]
Allow GSSAPIAuthentication: no [OK]
Allow GSSAPICleanupCredentials: no [OK]
SSH Banner: /etc/asl/banner [OK]
Checking General httpd settings
Verify .htacces AllowOverride not set to ALL: verified [OK]
Verify HTTP TRACE disabled: verified [OK]
Verify SSLv2 disabled: verified [OK]
Checking general mod_evasive settings.
Checking for mod_evasive installation: installed [OK]
mod_evasive set to: not enabled [MODERATE]
Checking General mod_security settings
Checking for mod_security installation: installed [OK]
mod_security set to: enabled [OK]
Server Signature set to: Apache [OK]
SecUploadDir set to: /var/asl/data/suspicious [OK]
SecUploadKeepFiles set to: Off [OK]
Logfile set to: audit_log [OK]
Logging set to: Concurrent [OK]
Audit Logging to: /var/asl/data/audit [OK]
Logging elements set to: ABIFHZ [OK]
SecRequestBodyInMemoryLimit set to: 131072 [OK]
SecResponseBodyLimit set to: 2621440 [OK]
Enable debug log: yes [OK]
SecDataDir set to: /var/asl/data/msa [OK]
SecTmpDir set to: /tmp [OK]
Checking rule class settings
RBL Checks: off [LOW]
Upload Scanner ruleset: off [HIGH]
Anti-Malware ruleset: off [HIGH]
Generic Attack ruleset: off [HIGH]
Malicious Useragents ruleset: off [LOW]
Anti-Spam ruleset: off [LOW]
Apache2 Generic ruleset: off [LOW]
Rootkit ruleset: off [LOW]
Recon ruleset: off [LOW]
Just In Time Patches: off [HIGH]
Whitelist: off [OK]
Checking General PHP settings
Checking for php installation: installed [OK]
PHP checks: Warn-Only [CRITICAL]
PHP Safe Mode: enabled [HIGH]
Register Globals: off [OK]
Checking for High-Risk functions
Function dl: no [OK]
Function exec: no [OK]
Function furl_open: no [OK]
Function passthru: no [OK]
Function pfsockopen: no [OK]
Function popen: no [OK]
Function posix_kill: no [OK]
Function posix_mkfifo: no [OK]
Function posix_setuid: no [OK]
Function proc_close: no [OK]
Function proc_open: no [OK]
Function proc_terminate: no [OK]
Function shell_exec: no [OK]
Function system: no [OK]
Checking for Moderate-Risk functions
Function leak: no [OK]
Function posix_kill: no [OK]
Function posix_setpgid: no [OK]
Function posix_setsid: no [OK]
Function proc_get_status: no [OK]
Function proc_nice: no [OK]
Function show_source: no [OK]
Checking for Low-Risk functions
Function phpinfo: yes [ALLOWED]
Generating Report: [Done]