Home > Articles > Operating Systems, Server > Solaris

Like this article? We recommend

Securing Sun Fire Domains

Building a secure system requires that entry points into the system be limited and restricted, in addition to limiting how authorized users obtain privileges. To effectively secure Sun Fire domains, changes are required to the Solaris OE software running on Sun Fire domains.

To secure Sun Fire domains, perform the following:

  • "Adding Security Software" on page 15

  • "Customizing the Solaris Security Toolkit Driver" on page 21 (optional)

  • "Overriding Solaris Security Toolkit Defaults" on page 23 (optional)

  • "Installing Downloaded Software and Implementing Modifications" on page 24

Adding Security Software

The first stage in hardening Sun Fire domains requires downloading and installing additional software security packages. This section covers the following tasks:

  • "Install Solaris Security Toolkit Software" on page 16

  • "Download Recommended Patch Cluster Software" on page 17

  • "Download FixModes Software" on page 18

  • "Download OpenSSH Software" on page 19

  • "Download the MD5 Software" on page 20

NOTE

Of the software described in this section, the Solaris Security Toolkit, Recommended and Security Patch Cluster, FixModes, and MD5 software are required. On Solaris 9 OE systems, the version of Secure Shell bundled with the OE can be used instead of OpenSSH. Also, on both Solaris 8 OE and Solaris 9 OE systems, a commercial version of Secure Shell can be used. You must install a Secure Shell product on Sun Fire domains.

Install Solaris Security Toolkit Software

The Solaris Security Toolkit software must be downloaded first, then installed on Sun Fire domains. Later, you'll use the Solaris Security Toolkit software to automate installing other security software and implementing the Solaris OE modifications for hardening the domains.

The primary function of the Solaris Security Toolkit software is to automate and simplify building secured Solaris OE systems based on the recommendations contained in this and other security-related Sun BluePrints OnLine articles.

NOTE

The following instructions use filenames that are correct only for version 0.3.8 and later of the Solaris Security Toolkit software.

To Download Solaris Security Toolkit Software

  1. Download the latest version of the source file.

    At the time of this publication, the version is SUNWjass-0.3.8.pkg.Z. The source file is located at:

    http://www.sun.com/security/jass

  2. Extract the source file into a directory on the server by using the uncompress command:

    # uncompress SUNWjass-0.3.8.pkg.Z
  3. Install the Solaris Security Toolkit software onto the server by using the pkgadd command:

    # pkgadd -d SUNWjass-0.3.8.pkg SUNWjass

Executing this command creates the SUNWjass subdirectory in /opt. This subdirectory contains all Solaris Security Toolkit directories and associated files. The script make-jass-pkg, included in Solaris Security Toolkit software releases since version 0.3, allows administrators to create custom packages using a different installation directory.

Download Recommended Patch Cluster Software

Patches are regularly released by Sun to provide Solaris OE fixes for performance, stability, functionality, and security. It is critical to the security of a system that the most up-to-date patches are installed. Ensure that the latest Solaris OE Recommended and Security Patch Cluster is installed on the Sun Fire domains; this section describes how to download the latest patch cluster.

Downloading the latest patch cluster does not require a SunSolve OnLineSM program support contract.

NOTE

Apply standard best practices to all patch installations. Before installing any patches, evaluate and test them on non-production systems or during scheduled maintenance windows.

To Download Recommended Patch Cluster Software

  1. Download the latest patch from the SunSolve OnLine Web site at:

    http://sunsolve.sun.com

  2. Click on the Patches link at the top of the left navigation bar.

  3. Select the appropriate Solaris OE version in the Recommended Solaris Patch Clusters box.

    In our example, we select Solaris 8 OE.

  4. Select the best download option, either HTTP or FTP, with the associated radio button, then click Go.

    A Save As dialog box is displayed in your browser window.

  5. Save the file locally.

  6. Move the file securely to the Sun Fire 12K or 15K domains with the scp command, or ftp if Secure Shell is not available.

    The scp command used should be similar to the following:

    % scp 8_Recommended.zip sun15-a:/var/tmp
  7. Move the file to the /opt/SUNWjass/Patches directory and uncompress it as follows:

    # cd /opt/SUNWjass/Patches
    # mv /var/tmp/8_Recommended.zip .
    # unzip 8_Recommended.zip
    Archive:   8_Recommended.zip
      creating: 8_Recommended/
     inflating: 8_Recommended/CLUSTER_README 
     inflating: 8_Recommended/copyright 
     inflating: 8_Recommended/install_cluster 
    [. . .]

    Later, using the Solaris Security Toolkit software, you'll install the patch after downloading all the other security packages.

    NOTE

    If you do not place the Recommended and Security Patches software into the /opt/SUNWjass/Patches directory, a warning message displays when you execute the Solaris Security Toolkit software.

Download FixModes Software

FixModes is a software package that tightens the default Solaris OE directory and file permissions. Tightening these permissions can significantly improve overall security of Sun Fire domains. More restrictive permissions make it even more difficult for malicious users to gain privileges on a system.

To Download FixModes Software

  1. Download the FixModes pre-compiled binaries from:

    http://www.sun.com/blueprints/tools/FixModes_license.html

    The FixModes software is distributed as a precompiled and compressed tar file formatted for systems based on SPARC technology. The file name is FixModes.tar.Z.

  2. Once downloaded, move the file securely to the Sun Fire 12K or 15K domains with the scp command, or ftp if Secure Shell is not available.

    The scp command used should be similar to the following command:

    % scp FixModes.tar.Z sun15-a:/var/tmp
  3. Save the file, FixModes.tar.Z, in the Solaris Security Toolkit Packages directory in /opt/SUNWjass/Packages with the following commands:

    # cd /opt/SUNWjass/Packages
    # mv /var/tmp/FixModes.tar.Z .

    CAUTION

    Leave the file in its compressed state.

    Later, using the Solaris Security Toolkit software, you'll install the FixModes software after downloading all the other security packages.

Download OpenSSH Software

In any secured environment, the use of encryption in combination with strong authentication is required to protect user-interactive sessions. At a minimum, user interactive sessions must be encrypted.

The tool most commonly used to implement encryption is Secure Shell software, whether a commercial or open source (freeware) version. To implement all the security modifications performed by the Solaris Security Toolkit software and recommended in this article, you must implement a Secure Shell software product.

Information on where to obtain commercial versions of Secure Shell is provided in "Related Resources" on page 32.

NOTE

If a domain is running Solaris 9 OE, we recommend that you use the Sun-provided implementation of Secure Shell bundled with the OE. If using the Solaris version of Secure Shell, omit the OpenSSH installation steps in this section.

The Solaris Security Toolkit software disables all non-encrypted user-interactive services and daemons on the system, in particular daemons such as in.rshd, in.telnetd, and in.ftpd.

NOTE

If you choose to use a Secure Shell product other than OpenSSH, install and configure it before or during the Solaris Security Toolkit software run.

Access to the system can be gained with Secure Shell similarly to what is provided by RSH, Telnet, and FTP.

To Download OpenSSH Software

  • Obtain the following Sun BluePrints online article and use the instructions in the article for downloading the software.

    A Sun BluePrints OnLine article about how to compile and deploy OpenSSH titled "Building and Deploying OpenSSH on the Solaris Operating Environment" is available at:

    http://www.sun.com/blueprints/0701/openSSH.pdf

    Later, using the Solaris Security Toolkit software, you'll install the OpenSSH software after downloading all the other security packages.

    CAUTION

    Do not compile OpenSSH or install compilers on Sun Fire 12K or 15K domains just to compile OpenSSH. Use a separate Solaris OE system—running the same Solaris OE version, architecture, and mode (for example, Solaris 8 OE, Sun4U, and 64 bit)—to compile OpenSSH. If you implement the Secure Shell bundled with Solaris 9 OE or a commercial version of Secure Shell, then no compilation is required.

Download the MD5 Software

The MD5 software validates MD5 digital fingerprints on the Sun Fire domains. Validating the integrity of Solaris OE binaries provides a robust mechanism to detect system binaries that are altered or trojaned (hidden inside something that appears safe) by unauthorized users. By modifying system binaries, attackers provide themselves with back-door access onto a system; they hide their presence and cause systems to operate in unstable manners.

To Download the MD5 Software

  1. Download the MD5 binaries from the following web site:

    http://www.sun.com/blueprints/tools/md5_license.html

    The MD5 programs are distributed as a compressed tar file.

  2. Move the file md5.tar.Z securely to the Sun Fire 12K or 15K domains with the scp command, or ftp if scp is not available.

    The scp command used should be similar to the following

    % scp md5.tar.Z sun15-a:/var/tmp
  3. Copy the file, md5.tar.Z, to the Solaris Security Toolkit Packages directory in /opt/SUNWjass/Packages.

    CAUTION

    Do not uncompress the tar archive.

    After the MD5 software is saved to the /opt/SUNWjass/Packages directory, the execution of the Solaris Security Toolkit installs the software.

    After the MD5 binaries are installed, you can use them to verify the integrity of executables on the system through the Solaris Fingerprint Database. More information on the Solaris Fingerprint Database is available in the Sun BluePrints OnLine article titled "The Solaris_ Fingerprint Database - A Security Tool for Solaris Software and Files."

  4. (Optional) Download and install Solaris Fingerprint Database Companion and Solaris Fingerprint Database Sidekick software from the SunSolve Online web site at:

    http://sunsolve.sun.com

We strongly recommend that you install these optional tools and use them with the MD5 software. These tools simplify the process of validating system binaries against the database of MD5 checksums. Use these tools frequently to validate the integrity of the Solaris OE binaries and files on the cluster nodes.

These tools are described in the "The Solaris_ Fingerprint Database - A Security Tool for Solaris Software and Files" article.

Customizing the Solaris Security Toolkit Driver

If you determine that your system requires some of the services and daemons disabled by the Solaris Security Toolkit, or you want to enable any of the inactive scripts available in the Solaris Security Toolkit, do so before executing the Solaris Security Toolkit.

As discussed earlier in this article, the SMS 1.2 software provides new capabilities for securing the MAN network which are as follows:

  • Disable ARP on the MAN network.

  • Disable all I1 IP traffic for one or more domains.

Disabling all I1 IP traffic to domains can only be done on the SC. Refer to the BluePrint OnLine article titled "Securing Sun Fire 12K and 15K System Controllers, Updated for SMS 1.2" for details on how this is done.

Disabling ARP on the MAN network can only be done for an entire chassis. It is not possible to make this change only for certain domains. It must be done on all domains having IP connectivity to the I1 network.

Using the Solaris Security Toolkit to disable ARP on the domains requires modifications to the default files distributed with the Solaris Security Toolkit.

NOTE

We recommend that the SCs be secured first, particularly when implementing static ARP between the SCs and domains. If the SCs are not secured and validated, do not proceed with implementing static ARP. Complete the hardening process of the SCs first.

To Disable ARP on the I1 MAN Network

  1. To add the necessary features or customize the hardening required for your system, edit a copy of the sunfire_15k_sc-hardening.driver file:.

    # cd /opt/SUNWjass/Drivers
    # vi sunfire_15k_sc-hardening.driver

    CAUTION

    To preserve your changes for future updates and prevent the Solaris Security Toolkit from overriding your changes, modify only a copy of the driver. Keep the original Solaris Security Toolkit driver as a master.

  2. If ARP is being disabled on the I1 MAN network, uncomment s15k-static-arp.fin from the driver by removing the # symbol in front of the script.

    After you edit the line, it should appear as follows in the JASS_SCRIPTS definition:

    s15k-static-arp.fin
  3. Review the floating IP Address and matching MAC address of the SC in the sms_domain_arp file.

    This file is in the /opt/SUNWjass/Files/etc directory. The Solaris Security Toolkit uses the following initial values in this file:

    192.168.103.1      08:00:20:63:49:1e
    1. If your site configuration for the MAN network uses a different floating IP address for the SC, replace the 192.168.103.1 value with your IP floating address.

    2. If your site configuration requires a different MAC address than the initial 08:00:20:63:49:1e value, replace it with the MAC address that matches the floating IP address on all domains and both SCs.

    3. All the domains must use the same /etc/sms_domain_arp file.

      CAUTION

      The floating IP address in this file must match the IP address chosen as the floating IP address for the SC on the I1 MAN network. Any mismatches will cause MAN network failures. These failures can adversely affect the reliability, availability, and serviceability (RAS) of the platform.

  4. Reboot the domains to implement the modified settings.

    You must reboot the domains for these settings to take effect.

Overriding Solaris Security Toolkit Defaults

If there are some services that must remain enabled, and the Solaris Security Toolkit automatically disables them, you can override the defaults before executing the driver.

To prevent the toolkit from disabling a service, comment out the call to the appropriate finish script in the driver.

For example, if your environment requires Network File System (NFS)-based services, you can leave them enabled. Comment out the disable-nfs-server.fin and disable-rpc.fin scripts by appending a # sign before them in the copy of the sunfire_15k_domain-hardening.driver script.

For more information about editing and creating driver scripts, refer to the Sun BluePrints OnLine article titled "The Solaris™ Security Toolkit - Installation, Configuration, and Usage Guide: Updated for version 0.3."

Installing Downloaded Software and Implementing Modifications

The Solaris Security Toolkit version 0.3.8 and later provides a driver (sunfire_15k_domain-secure.driver) for automating the installation of security software and Solaris OE modifications. The driver performs the following tasks:

  • Installs and executes the FixModes software to tighten file system permission

  • Installs the MD5 software

  • Installs the Recommended and Security Patch Cluster software

  • Implements almost 100 Solaris OE security modifications

NOTE

The actions performed by each of the scripts is described in the Sun BluePrints OnLine article "The Solaris Security Toolkit - Internals: Updated for Version 0.3." The hardening described is performed in standalone mode, not JumpStart mode, because the Sun Fire domains were built using an interactive Solaris OE installation. For details on the differences between standalone mode and JumpStart mode, refer to the Solaris Security Toolkit documentation.

During the installation and modifications implemented in this section, all non-encrypted access mechanisms to Sun Fire domains —such as Telnet, RSH, and FTP—are disabled. The hardening steps do not disable console access from Sun Fire 12K or 15K SCs.

To Install Downloaded Software and Implement Changes

  • Execute the sunfire_15k_domain-secure.driver script as follows:

    # cd /opt/SUNWjass
    # ./jass-execute -d sunfire_15k_domain-secure.driver
    ./jass-execute: NOTICE: Executing driver, 
    sunfire_15k_domain-secure.driver
    
    ============================================================
    sunfire_15k_domain-secure.driver: Driver started.
    ============================================================
    [...]

To View the Contents of the Driver File

  • To view the contents of the driver file and obtain information about the Solaris OE modifications, refer to the Solaris Security Toolkit documentation available either in the /opt/SUNWjass/Documentation directory or through the web at:

    http://www.sun.com/security/jass

For information about other scripts in the Solaris Security Toolkit software, refer to the Sun BluePrints OnLine article titled "Solaris Security Toolkit Internals: Updated for Version 0.3."

To Undo a Solaris Security Toolkit Run

Each Solaris Security Toolkit run creates a run directory in /var/opt/SUNWjass/run. The names of these directories are based on the date and time the run is initiated. In addition to displaying the output to the console, the Solaris Security Toolkit software creates a log file in the /var/opt/SUNWjass/run directory.

CAUTION

Do not modify the contents of the /var/opt/SUNWjass/run directories under any circumstances. Modifying the files can corrupt the contents and cause unexpected errors when you use Solaris Security Toolkit software features such as undo.

The files stored in the /var/opt/SUNWjass/run directory track modifications performed on the system and enable the jass-execute undo feature.

  • To undo a run or series of runs, use the jass-execute -u command.

    For example, on a system where seven separate Solaris Security Toolkit runs are performed, you could undo them by using the following command and options:

    # pwd
    /opt/SUNWjass
    # ./jass-execute -u
    Please select from one of these backups to restore to
    1. December 10, 2001 at 19:45:15 (//var/opt/SUNWjass/run/20011210194515)
    2. December 10, 2001 at 19:25:22 (//var/opt/SUNWjass/run/20011210192522)
    3. December 10, 2001 at 19:07:32 (//var/opt/SUNWjass/run/20011210190732)
    4. December 10, 2001 at 19:04:36 (//var/opt/SUNWjass/run/20011210190436)
    5. December 10, 2001 at 18:30:35 (//var/opt/SUNWjass/run/20011210183035)
    6. December 10, 2001 at 18:29:48 (//var/opt/SUNWjass/run/20011210182948)
    7. December 10, 2001 at 18:27:44 (//var/opt/SUNWjass/run/20011210182744)
    8. Restore from all of them
    Choice? 8
    ./jass-execute: NOTICE: Restoring to previous run 
    //var/opt/SUNWjass/run/20011210194515
    
    ===============================================================
    undo.driver: Driver started.
    ===============================================================
    [...]

    Refer to the Solaris Security Toolkit documentation for details on the capabilities and options available in the jass-execute command.

    NOTE

    Software installations and actions performed by other software are not undone by the Solaris Security Toolkit undo feature. For example, the installation of OpenSSH, FixModes, and MD5 is not undone. In addition, the modifications performed by FixModes are not automatically undone.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020