“vpnagentd” will damage your computer. (Cisco AnyConnect Error on MacOS

Fix this Error by uninstalling Cisco AnyConnect and reinstalling (recommended) or in a pinch just change perms

Tech Notes

--

My Specs

Error Message

Clicking the Show in Finder button takes me to here:

Also the error message keeps popping up over and over without me doing anything.

Tempted to just delete that folder, but let’s see if the AnyConnect Docs have anything to say.

As root, run the following shell script from the Terminal:

$ sudo /opt/cisco/anyconnect/bin/vpn_uninstall.sh

Note: You will be prompted for your password. Once you enter it, just follow the steps.

Here’s my output:

cd /opt/cisco/anyconnect/bin/
$ sudo ./vpn_uninstall.sh

Password:
Uninstalling Cisco AnyConnect Secure Mobility Client...
./vpn_uninstall.sh: line 97: 24416 Killed: 9 ${BINDIR}/manifesttool -x ${INSTPREFIX} ${INSTPREFIX}/${VPNMANIFEST}
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
find: /Applications/Cisco: No such file or directory
Successfully removed Cisco AnyConnect Secure Mobility Client from the system.

It says successful, but I can still junk in my folders when I look in Finder. Also I had the Finder window open to those dirs so I wonder if that affected it.

I see this recommendation on the AnyConnect Community Forum

If you still having trouble and/or the new Cisco Anyconnect installation complains that you have a version installed, follow these steps:
Enter these commands to clean out the old Cisco VPN kernel extension and reboot the system.

sudo -s
rm -rf /System/Library/StartupItems/CiscoVPN
rm -rf

--

--