CAS Registry Variable Monitoring - Windows
CAS Registry Variable Monitoring - Windows
CAS Registry Variable Monitoring - Windows
Requirements:
1) CAS Installer (may be combined with S-STAP installer); Also contains 32-bit JVM
2) Guardium Collector Hardware or Software Appliance with CAS Installed
Assumptions:
Monitoring Steps:
5) Click Add To Set.. once the option becomes available to add a template item.
6) Create the new CAS Template Item as follows (then click apply when finished)
8) Select your Windows CAS host from the list box (click modify when finished).
9) Select the template we created in STEP 4 (WinRegistryVarTest) and Click Add Datasource
10) Click Add to ensure the template items are included for monitoring
11) You should now see template added to the list as shown below
Note: This is the same process that was used in the Labs, as the date filters are incorrect.
14) Change the QUERY_FROM and QUERY_TO Dates (click update when finished):
15) Repeat STEP 13 and 14 above for the CAS Saved Data Report
16) You should now see an entry in the CAS Change Details report as follows:
Note: You may see additional entries so be sure to scan to the end of the record set
17) Similarly, you should now see an entry in the CAS Saved Data Report as follows:
Note: The value in the registry for DB2COMM is actually TCPIP. However, since the author
has run this on a 64-bit system, it appears that additional details have been added related to the
WOW64 subsystem (WoW6432NodeTCPIP) – No Problem.
18) Let us now change the DB2COMM value. Open a command prompt (cmd) and type regedit.
Navigate to the Key shown in the window below and change the DB2COMM value from
TCPIP to NPIPE.
19) To inspect the results, proceed to Assess/Harden → Change Reports → Changes, and observe
a new entry in the CAS Saved Data report.
Note: Please click refresh at the bottom of the report if the entry does not appear automatically.
Please keep in mind that in our item template CAS will check for changes every 1 minute.
Note: The value in the registry for DB2COMM is actually NPIPE. However, since the author
has run this on a 64-bit system, it appears that additional details have been added related to the
WOW64 subsystem (WoW6432NodeTCPIP) – No Problem.
Troubleshooting:
1) Ensure the CAS Service is running (execute: sc query casclient) on the command prompt:
2) If the service is not running, (execute: net start casclient) on the command prompt
3) Check the \cas\Logs\ directory to ensure that the service started; Log files should now have
been created and entries should have been added (i.e. size > 0).
4) Ensure that the CAS client version (host) <= CAS server version (collector). It is easy to
verify this by opening the cas.log file once the service has been started.
Note: If the CAS client version > CAS server version (CAS will NOT work correctly)