hide ncpa token
Posted: Tue Dec 09, 2025 7:57 am
Hi,all
During a penetration test in our company, they found out that the NCPA agent shows the token in cleartext during execution (using ps).
This is now a finding and as to be fixed somehow.
We use resource.cfg for the token:
Service Definition
We can run the check on the command line with the variable, but during execution, it is shown in the process list. Is there any way to hide the token during execution?
The system is RHEL 9. Besides this, I will also check the /proc hidepid option; maybe this is a way to deal with this."
thx
During a penetration test in our company, they found out that the NCPA agent shows the token in cleartext during execution (using ps).
This is now a finding and as to be fixed somehow.
Code: Select all
python /usr/local/nagios/libexec/check_ncpa.py -H somehost -t test123pw -P 5693 -M disk/logical/|opt|IBM -w 80 -c 90Code: Select all
# token for ncpa check
$USER12$=test123pw Code: Select all
check_command check_xi_ncpa!-t $USER12$ -P 5693 -M cpu/percent -w '50' -c '70' -q 'aggregate=avg'!!!!!!!The system is RHEL 9. Besides this, I will also check the /proc hidepid option; maybe this is a way to deal with this."
thx