This is a copy of a McAfee Host Based Security System (HBSS) cheat sheet. I apologize for some of the “inefficiencies”. I’m really just copying and pasting from retro paper document.
GNU Linux Agent Manual Install
Open terminal, then switch to the location where you copied the install.sh file. Run these commands, giving root credentials when requested:
#sudo chmod +x install.sh
#sudo ./install.sh -i
-b Upgrades the agent only. The server information is not updated.
-h Shows help
-i Performs a new installation
-n Forbids core generation
-u Upgrades entire install
GNU Linux Agent Manual Removal
Open terminal window on the client system. Run the command appropriate for your operating system, providing root credentials when requested.
#sudo rpm -e MFEcma
#sudo rpm -e MFErt
Run the commands in the listed order. If Virus Scan Enterprise (VSE) or Host Intrusion Prevention System (HIPS) is installed you will receive an error. You must unload/uninstall HIPS and/or VSE first.
GNU Linux Agent Directories
- /opt/McAfee/cma/
- All binaries, logs, and agent working area
- /etc/cma.d/
- Configuration and management information (including GUID and agent version) needed to manage point-products.
- /etc/cma.conf
- Configuration and management information in XML format, allowing point-products to read.
- /etc/init.d/CMA
- Script for starting and stopping the agent, manually and when called by the system
GNU Linux Agent Commands
For cmdagent commands (available in ePO managed mode):
/opt/McAfee/cma/bin/cmdagent
Usage: cmdagent -P -E -C -F -S
-P Collect and send properties
-E Enforce policies
-C Check for new policies/tasks
-F Forward events
-S Show agent monitor GUI (Only available in Windows CmdAgent; not available in GNU Linux OS. This opens the Status Monitor window.)
-? Help
For CMA commands (available in ePO managed and unmanaged mode):
/etc/init.d/cma
Usage: /etc/init.d/cma {start|stop|restart|status|basedir|configdir|reload SOFTWAREID|unload SOFTWAREID}
start – Starts the McAfee Agent if stopped
stop – Stops the McAfee Agent
restart – Stops then starts the McAfee Agent
status – Returns status of stopped or running with process ID
basedir – Returns the folder it’s installed in. The default is /opt/McAfee/cma/.
configdir – Returns the folder containing the configuration files. The default is /etc/cma.d/.
reload SOFTWAREID – Ability to load/reload the install point-product ePO plug-in. For example; /etc/init.d/cma reload LYNXSHLD1700
will unregister and re-register the Virus Scan Enterprise for GNU Linux 1.7x or 1.9 ePO plug-in.
unload SOFTWAREID – Ability to unload the install point-product ePO plug-in. For example; /etc/init.d/cma unload LYNXSHLD2000
will unregister the Virus Scan Enterprise for Linux 2.0 ePO plug-in.
GNU Linux HIPS 7 Manual Removal
- Login as ‘root’
- Type the following command from the command prompt
/opt/McAfee/hip/hipts engines all:off
- Password=<HIP Admin Password>
- Type the following commands from the command prompt
#rpm -e MFEhiplsm
#rpm -e MFEhiplsm-kernel
#rpm -e MFEhiplsm-apache
- Reboot is needed to clear HIPS kernel/apache/hiplsm
GNU Linux HIPS 8 Manual Removal
You must first disable the client’s IPS policies from the ePO server before manually removing it from the client.
- Login as ‘root’
- Run the command:
rpm -e MFEhiplsm; MFEhiplsm-kernel; MFEhiplsm-apache
GNU Linux HIPS 8 Troubleshooting
- Verify Linux installation files
- After an installation, check that all the files were installed in the appropriate directory on the client.
- The /opt/McAfee/hip directory should contain these essential files and directories
- HipClient; HipClient-bin – Linux Client
- HipClientPolicy.xml – Policy rules
- hipts; hipts-bin – Troubleshooting tool
- *.so – Host Intrusion Prevention and ePO agent shared object modules
- log directory – Contains log files: HIPShield.log and HIPClient.log
- Installation history is written to /opt/McAfee/etc/hip-install.log Refer to this files for any questions about the installation or removal process of the Host Intrusion Prevention client.
- Verify the Linux client is running
- The client might be installed correctly, but you might encounter problems with its operation. If the Client does not appear in the ePO console, for example, check that it is running using the following command
#ps -ef | grep Hip
- The client might be installed correctly, but you might encounter problems with its operation. If the Client does not appear in the ePO console, for example, check that it is running using the following command
- Stopping the Linux client
- You many need to stop a running client and restart it as part of troubleshooting.
- To stop a running client first disable IPS protection. Use one of these procedures.
- Set IPS options to Off in the ePO console and apply the policy to the client
- Log on as root and run the command:
hipts engines MISC:off
- Run the command:
hipts agent off
- Restarting the Linux client
- You may need to stop a running client and restart it as part of troubleshooting
- To restart a client run the command:
hipts agent on
- Enable IPS Protection. Use one of these procedures depending on which you used to stop the client
- Set IPS options to On in the ePO console and apply the policy to the client
- Log on as root and run the command:
hipts engines MISC:on
GNU Linux Virus Scanner Enterprise Linux 1.9 Manual Installation
Before you begin:
- Make sure that there is no user named as “nails” or group named as “nailsgroup” on the computer.
- Make sure that you have “root” privileges to install Virus Scan Enterprise for Linux (VSE/VSEL)
- If you are installing VSEL on a 64-bit RedHat Enterprise Linux (RHEL) 6.X system ensure that 32-bit RHEL 6.X Plug-able Authentication Modules (PAM) libraries are also installed
- From the terminal go to the temporary directory and execute the following commands to untar them
#tar -zxvf McAfeeVSEForLinux-1.9.0.<build number>-release.tar.gz
#tar -zxvf McAfeeVSEForLinux-1.9.0.<build number>-others.tar.gz
- To install the McAfee Runtime type the following command in the terminal window.
#rpm -ivh MFErt.i686.rpm
- To install the McAfee Agent (MA) type the following command in the terminal window.
#rpm -ivh MFEcma.i686.rpm
- To confirm that the McAfee Agent is running correctly type the following command in the terminal window
#/etc/init.d/cma status
- To install VSEL type the following command in the terminal window
#bash McAfeeVSEForLinux-1.9.0.<build number>-installer
- Answer the questions when prompted. Accept the default values or specify your own.
- When prompted to start the VSEL services, select the default option “Y”.
- To confirm that VSEL is running correctly type the following command in the terminal window
#/etc/init.d/nails status
GNU Linux VSEL Upgrade From 1.6/1.7 To 1.9
- To upgrade McAfee Agent type the following command in the terminal window
#rpm -Uvh MFEcma.i686.rpm
- To confirm that McAfee Agent is running correctly type the following command in the terminal window
#/etc/init.d/cma status
- To upgrade VSEL type the following command in the terminal window
bash McAfeeVSEForLinux-1.9.0<build number>-installer
- To confirm that VSEL is running correctly type the following command in the terminal window
#/etc/init.d/nails status
- Restart your computer using the command
#reboot
GNU Linux VSEL 1.9 Manual Removal
- To uninstall VSEL type the following at the command prompt
#rpm -e McAfeeVSEForLinux
#rpm -e MFEcma
#rpm -e MFErt
- Reboot the computer to remove the VSEL kernel modules. You do not have to reboot the computer immediately, because the VSEL kernel modules does not interrupt functioning of any other running services.
GNU Linux VSEL 2.0 Manual Installation
Note: 2.0 only works on 64-bit
- Download the McAfeeVSEForLinux-2.0.0.<build number>.ZIP to a temporary directory and execute these commands in the given sequence.
#unzip McAfeeVSEForLinux-2.0.0.<build number>.ZIP
#cd McAfeeVSEForLinux-2.0.0.<build number>
#tar -zxvf McAfeeVSEForLinux-2.0.0.<build number>-release-full.x86_64.tar.gz
#tar -zxvf McAfeeVSEForLinux-2.0.0.<build number>-release.tar.gz
#tar -zxvf McAfeeVSEForLinux-2.0.0.<build number>-others.tar.gz
- Install McAfee Runtime
#rpm -ivh MFErt.i686.rpm
- Install McAfee Agent
#rpm -ivh MFEcma.i686.rpm
- Confirm that the McAfee Agent is running correctly
#/etc/init.d/cma status
- Install VSEL
#bash McAfeeVSEForLinux-2.0.0.<build number>-installer
- Answer the questions when prompted. Accept the default values or type custom values.
- When prompted to start the VSEL services type the default option “Y”.
- Confirm that VSEL is installed and running correctly
#/etc/init.d/nails status
- The message The McAfeeVSEForLinux daemon is running with process information.
GNU Linux VSEL Upgrade From 1.7/1.9 To 2.0
- Upgrade McAfee Agent
- For RPM based systems
#rpm -Uvh MFEcma.i686.rpm
- For Debian based systems
#dpkg -i MFEcma.i686.deb
- For RPM based systems
- Confirm that McAfee Agent is running correctly
#/etc/init.d/cma status
- Upgrade VSEL
#bash McAfeeVSEForLinux-2.0.0.<build number>-installer
- Confirm that VSEL is running correctly
#/etc/init.d/nails status
- Restart the computer
#reboot
When you upgrade the software the existing on-access scan settings, on-demand scan settings, and the exclusions list are migrated.
GNU Linux VSEL 2.0 Manual Removal
- Type the following at the command prompt then press enter.
#rpm -e McAfeeVSEForLinux
#rpm -e MFEcma
#rpm -e MFErt
GNU Linux VSEL 2.0 Error Codes
Code Range Start | Code Range End | Category | Detail |
---|---|---|---|
3000 | 3999 | Anti-virus Engine Errors | Errors which occur during scanning or cleaning reported by the anti-virus engine. |
5000 | 5999 | Scan Manager Errors | Reported by the nailsd process, which controls the scanners. |
6000 | 6999 | Logging Error Errors | Reported by the logging subsystem. If the error logging system fails, errors are directed to SYSLOG. |
7000 | 7999 | Configuration Errors | Errors found when parsing values in the configuration files. |
8000 | 8999 | Exclusions and Filtering Errors | Errors found when processing the information about files excluded from scanning, or which extensions to scan. |
9000 | 9999 | Monitoring Errors | Reported by the monitoring process that provide administration of the product. |
11000 | 11999 | IPC Error Errors | Reported during inter-process communication. |
12000 | 12999 | On-Demand Scanner Errors | Errors reported by the On-Demand scanner. |
13000 | 13999 | Command Processor Errors | Internal Errors for the commands used during inter-process communication. |
14000 | 14999 | Anti-virus Engine Scan Errors | Errors reported by the anti-virus engine when processing a specific file. |
15000 | 15999 | Task Scheduler Errors | Errors reported by the Task Scheduler. |
16000 | 16999 | SMTP Alerting Errors | Errors reported by the SMTP alerting component. |