Skip to main content
Question

OSX Backdoor.Pintsized.A threat found

  • February 20, 2013
  • 7 replies
  • 8 views

ImAMacGuy
Forum|alt.badge.img+23

One of our info-sec guys sent this on to me this morning... i think it's overshadowed by the Java exploit that's being hyped up...

http://www.intego.com/mac-security-blog/pint-sized-backdoor-for-os-x-discovered/

7 replies

tcam
Forum|alt.badge.img+7
  • Contributor
  • 70 replies
  • February 20, 2013

tempted to infect a machine just to see what files it creates / modified.


Forum|alt.badge.img+13
  • Contributor
  • 180 replies
  • February 20, 2013

Forum|alt.badge.img+5
  • New Contributor
  • 75 replies
  • February 20, 2013

Whipped up an EA to look for it based on the information in the CNET article.

Pretty simple and will say if it finds something. Doesn't tell you where, so you'll need to go find it, or modify this script to print the location (either stuffed into the EA or to be run outside of the EA to indicate where the files are).

#!/bin/bash
#
# Looks for stuff that is reported to be related to the Backdoor.Pintsized.A threat
# http://reviews.cnet.com/8301-13727_7-57570100-263/new-mac-malware-opens-secure-reverse-shell/
# 


files=('com.apple.cocoa.plist' 'cupsd' 'com.apple.cupsd.plist' 'com.apple.cups.plist' 'com.apple.env.plist')
subdirs=('/System/Library/LaunchDaemons' '/System/Library/LaunchAgents' '/Library/LaunchDaemons' '/Library/LaunchAgents' '/Users/*/Library/LaunchAgents')
threat=""

for d in ${subdirs[@]}; do
   for f in ${files[@]]}; do 
      if [ ! -z `find $d -maxdepth 1 -name $f` ]; then
         threat=1
      fi
   done    
done


if [ $threat ]; then
   echo "<result>Threat detected</result>"
else
   echo "<result>Not found</result>"
fi

Forum|alt.badge.img+9
  • Contributor
  • 33 replies
  • February 26, 2013

Thanks for posting the EA!! Did you set the EA to look for a string for "Threat detected" or integer looking for "1"?


Forum|alt.badge.img+5
  • New Contributor
  • 75 replies
  • February 26, 2013

The smart group has for the criteria that EA "is" & "Threat detected". Use "Threat detected" as that's what the EA is populated with.

Also have another smart group where that criteria for the EA "like" and "found" - Used that to make sure the thing was working and to see how many have run it. (sure, could use "is" and "Not found" ... six of one, half dozen of another).

We haven't found any here and have over a thousand that have run it.


Forum|alt.badge.img+18
  • Honored Contributor
  • 486 replies
  • February 26, 2013

thanks @gregp


Forum|alt.badge.img+9
  • Contributor
  • 33 replies
  • February 27, 2013

Cool thanks!! I'm thinking our systems will be clean too as we've been doing the updates within 48 hours, but you never know...