{"id":1561,"date":"2010-11-18T16:39:20","date_gmt":"2010-11-18T11:09:20","guid":{"rendered":"https:\/\/www.qadit.com\/blog\/?p=1561"},"modified":"2010-12-01T17:49:51","modified_gmt":"2010-12-01T12:19:51","slug":"secure-your-aix-server","status":"publish","type":"post","link":"https:\/\/qadit.com\/blog\/secure-your-aix-server\/","title":{"rendered":"Secure your AIX Server"},"content":{"rendered":"<p>Server hardening is one of the first things that should be looked into when securing any information infrastructure.<\/p>\n<p>&nbsp; <\/p>\n<p>\n<!--more--><br \/>\nWhat are the <b>basic things <\/b>to be looked into during server hardening?<\/p>\n<p>&nbsp; <\/p>\n<p>\n&#8211; Remove unnecessary applications<br \/>\n&#8211; Tighten configurations on remaining applications\/ services<br \/>\n&#8211; Set proper network options<br \/>\n&#8211; Tighten user accounts<br \/>\n&#8211; Monitor system files<\/p>\n<p>&nbsp; <\/p>\n<p>\nLet us now see how to handle these issues for <b>AIX Servers <\/b><\/p>\n<p>&nbsp; <\/p>\n<p>\n<b> &#8211; Remove unnecessary applications<\/b><br \/>\na. Use netstat -af inet or a tool like nmap and remove those applications which you do not require.<br \/>\nb. From \/etc\/inittab remove applications that you do not need. Some usually unnecessary applications include:<br \/>\npiobe, qdaemon &#8211; Used for scheduling printing<br \/>\nhttpsdlite, inmss, inqss &#8211; Used for docsearch (which is easily replaced with &#8216;man&#8217;)<br \/>\ndt &#8211; Used for common desktop environment &#8211; not needed on servers<br \/>\nc. Remove entries from \/etc\/rc.tcpip which starts the TCP\/IP daemons<br \/>\nautocon6, lpd, routed, named, timed, rwhod, snmpd, mrouted may be some of the daemons you do not need<br \/>\nd. Remove entries from \/etc\/inetd.conf<br \/>\nThe inetd daemon is like a master server that invokes other daemons<br \/>\nSome of the applications that are not required include: telnet, rlogin, rsh, ftp, comsat (only required if mail is used), finger, talk, ntalk, sprayd, pcnfsd, echo, chargen, time, daytime and discard<br \/>\nBootp &amp; tftp: Use only if remote booting of clients is required<\/p>\n<p>&nbsp; <\/p>\n<p>\n<b>&#8211; Tighten configurations on remaining services<\/b><br \/>\na. Secure DNS &#8211; restrict zone transfers, restrict dynamic updates, restrict recursions, restrict queries, restrict DNS cache update<br \/>\nb. Secure Sendmail &#8211; Get the latest version, apply patches, deny VRFY, EXPN, use PrivacyOptions in the configuration file, do not run sendmail as root, turn off banner information etc.<br \/>\nc. Secure SNMP: Use hard to guess community strings, use the latest versions; do not use SNMP v1, <\/p>\n<p>&nbsp; <\/p>\n<p>\n<b>&#8211; Set proper network options<\/b><br \/>\nNetwork options determine how TCP, IP and ICMP behave.<br \/>\nProtect against SYN attacks, smurf attacks, prevent ICMP redirects and source routing<\/p>\n<p>&nbsp; <\/p>\n<p>\n<b>&#8211; Tighten user accounts<\/b><br \/>\na. remove unnecessary default accounts like uucp, nuucp, lpd, imnadm, guest etc.<br \/>\nb. User attributes like number of login retries, preventing root from remotely logging in etc can be done in \/etc\/security\/user<br \/>\nc.  Secure root user: Disable remote login, set up exceptionally strong passwords, make extensive use of roles to limit root logins<br \/>\nd. Set up strong password policy: \/etc\/security\/user<br \/>\nUse a dictionary (words in the dictionary cannot be used in passwords), implement histexpire (number of weeks before passwords can be reused), maxage (number of weeks before password expires), minalpha, minother, minlength, mindiff (minimum number of characters in the new password that must be different from the old password), passwarntime.<\/p>\n<p>&nbsp; <\/p>\n<p>\n<b>&#8211; Monitor system logs and files<\/b><br \/>\n\/var\/adm\/sulog &#8211; use of &#8216;su&#8217; command<br \/>\n\/var\/adm\/wtmp &#8211; all logins and logouts<br \/>\n\/etc\/security\/failedlogin &#8211; Failed logins<br \/>\nfind \/ -perm -0007 -type d -ls (World writable directories)<br \/>\nfind \/ -perm -2 -type f -ls  (World writable files)<br \/>\ncronadm cron -l (monitor cron jobs)<br \/>\ncronadm at -l (monitor at jobs)<\/p>\n<p>&nbsp; <\/p>\n<p>\n","protected":false},"excerpt":{"rendered":"<p>Server hardening is one of the first things that should be looked into when securing any information infrastructure. &nbsp;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1561","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9AH7Q-pb","_links":{"self":[{"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/posts\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/comments?post=1561"}],"version-history":[{"count":0,"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/posts\/1561\/revisions"}],"wp:attachment":[{"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/media?parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/categories?post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qadit.com\/blog\/wp-json\/wp\/v2\/tags?post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}