#!/bin/sh
# Extension Attribute for JSS
# Checking for Jackpot vulnerability
# DOES NOT fix, designed for placement into a smart group which does,
# useful in cases where affected instance accounting is desired
POS="<result>1</result>"
NEG="<result>0</result>"
# Check that Office 2011 exits
if [ -d /Applications/Microsoft Office 2011 ]; then
# Check omnipresent folder for instances of write access (should be 2)
W=`ls -l /Applications/Microsoft Office 2011/ | grep Office | tr -cd w | wc -c`
if [ $W -gt 2 ]; then
echo $POS
else
echo $NEG
fi
else
echo $NEG
fi
Script to tie to smart group:
#!/bin/sh
# Jackpot Fix, tied to smart group of affected Macs
# ensure root:admin ownership
chown -R root:admin /Applications/Microsoft Office 2011
# remove write access from others
chmod -R o-w /Applications/Microsoft Office 2011