Spyware can be used harmlessly by advertisers who track your internet usage and then use that data to target specific ads to you. Or, more dangerously, it can be used by hackers who might monitor your chat sessions, capture keystrokes to figure out the personal information you enter (password or account number), or change your Web browser settings.
Check the background of TD Ameritrade on FINRA's BrokerCheck