Hi!
I'm running an ON-prem security gateway that Is connected to a cloud Sandbox. I want to take out Threat Emulation statistics and send over to monitoring system.
Followed along this guide,
ATRG: Threat Emulation (checkpoint.com)
"Follow the following action plan (for detailed instructions, refer to
sk90860 - How to configure SNMP on Gaia OS - section "(IV-6) Advanced SNMP configuration - Extend SNMP with shell script"
The main goal is to monitor this OID,
.1.3.6.1.4.1.2620.1.49.5.1
"TE Malware Detected"
1. So I've enabled SNMP Agent in GAIA, version v3 only. Created a snmpuser with an authpriv, privacy protocol AES256 and authentication protocol SHA256.
2. Created a basic shell script that I put under under /home/admin/test.sh.
# Extract amount of malicious code
#!/bin/bash
. /opt/CPshared/5.0/tmp/.CPprofile.sh
cpstat threat-emulation -f malware_detected
3. Disable the SNMP agent
4. Added this line under /etc/snmp/userDefinedSettings.conf
"extend .1.3.6.1.4.1.2620.1.49.5.1 test /bin/sh /home/admin/test.sh"
5. Re-Enabled the SNMP agent
6. Here comes the problem, I'm unable to test the OID. Tried with these commands, but It's not working.
snmpwalk -v 2c -c test localhost .1.3.6.1.4.1.2620.1.49.5.1
"Timeout: No Response from localhost"
snmpwalk -v 3 -c test localhost .1.3.6.1.4.1.2620.1.49.5.1
"snmpwalk: Timeout"
Have anyone else experienced the same problem?