ClamAV is not included with PowerSC. You must first install it
on AIX uiAgents before you can use it with the PowerSC GUI
Important: Due to compatibility concerns, only
specific ClamAV versions can access the ClamAV virus definition databases. See
Version Support Matrix for supported versions.
The ClamAV
installation on
AIX uiAgents has the following prerequisites:
- This procedure requires yum on AIX.
yum resolves all of the dependencies needed by ClamAV.
- The AIX uiAgent on which you install ClamAV must have at least 1.5GB of
free available memory.
- The ClamAV installation has been tested on AIX versions 7.2. Other
versions that support yum may also work but have not been tested.
-
Verify that your available ClamAV version satisfies the database requirements in Version Support Matrix .
You may need to add an additional repository if the available version does not satisfy
the database requirements.
-
Install ClamAV on the PowerSC GUI agent as root if it is not already
installed. The example uses version clamav-0.104.2-3 for demonstration purposes.
yum install clamav-0.104.2-3 -y
:
Complete!
-
Move or copy the freshclam.conf.sample file to
/opt/freeware/etc/clamav/freshclam.conf:
mv /opt/freeware/etc/clamav/freshclam.conf.sample /opt/freeware/etc/clamav/freshclam.conf
-
Edit the freshclam.conf file as root and either comment out or
remove the
Example
line at the top of the file.
# Comment or remove the line below.
# Example
-
In the freshclam.conf file, change the database owner to root and
uncomment the line:
-
Change the protections on the ClamAV database as root:
chmod -R 700 /var/lib/clamav/
-
For PowerSC versions prior to 2.1.0.6 only: Change directory to
/opt/powersc/uiAgent/bin and edit the
uiAgent.sh file as root. Add
BOOTSTRAP_LIBPATH=$BOOTSTRAP_LIBPATH:/opt/freeware/lib to the
BOOTSTRAP section.
BOOTSTRAP_LIBPATH=$(get_java_libpath "$JRE_PATH")
BOOTSTRAP_LIBPATH=$BOOTSTRAP_LIBPATH:/opt/freeware/lib
BOOTSTRAP_JVM_PATH=$(get_jvm_path "$JRE_PATH")
-
Change directory to /opt/freeware/bin:
-
Run the freshclam update command as root.
./freshclam update
ClamAV update process started at Fri Nov 11 09:16:25 2022
daily database available for download (remote version: 26717)
Time: 0.7s, ETA: 0.0s [========================>] 57.40MiB/57.40MiB
Testing database: '/var/lib/clamav/tmp.d1a40140b5/clamav-2f1c291af73035416f952d3638b4390a.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 26717, sigs: 2010548, f-level: 90, builder: raynman)
main database available for download (remote version: 62)
Time: 1.7s, ETA: 0.0s [========================>] 162.58MiB/162.58MiB
Testing database: '/var/lib/clamav/tmp.d1a40140b5/clamav-bb787aa90623fb750456396fb8c91fa5.tmp-main.cvd' ...
Database test passed.
main.cvd updated (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode database available for download (remote version: 333)
Time: 0.0s, ETA: 0.0s [========================>] 286.79KiB/286.79KiB
Testing database: '/var/lib/clamav/tmp.d1a40140b5/clamav-0b3133e6924ea0badf240e0ffb91ac03.tmp-bytecode.cvd' ...
Database test passed.
bytecode.cvd updated (version: 333, sigs: 92, f-level: 63, builder: awillia2)
-
Run the ClamAV clamscan command as root to test your
configuration:
/opt/freeware/bin/clamscan -r --database=/var/lib/clamav/
----------- SCAN SUMMARY -----------
Known viruses: 8642589
Engine version: 0.104.2
Scanned directories: 1
Scanned files: 281
Infected files: 0
Data scanned: 57.24 MB
Data read: 27.55 MB (ratio 2.08:1)
Time: 31.950 sec (0 m 31 s)
Start Date: 2022:11:11 09:22:40
End Date: 2022:11:11 09:23:12
-
Create a symlink for sigtool as root:
ln -s /opt/freeware/bin/sigtool /usr/bin/sigtool
-
Create a symlink for the clamscan command as root:
ln -s /opt/freeware/bin/clamscan /usr/bin/clamscan
-
Restart the AIX uiAgent:
stopsrc -s pscuiagent
startsrc -s pscuiagent
-
Click the ellipse to the right of the PowerSC GUI endpoint for which
you want to edit the malware configuration options.
-
Click Malware.
-
Click Configure Malware.
Note: It may take several minutes for the PowerSC GUI server to recognize that ClamAV is installed on the endpoint.
-
Select the file paths to scan.
-
Click Configuration.
-
The version is displayed. You can optionally update the following malware
fields:
Note: The default values are displayed, but are not actually created
until you run a scan.
-
Click Save.
The PowerSC GUI agent recognizes that anti-malware is installed
and makes some initial configuration changes.