<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx</link><description>This one could be controversial ;-) In a recent comment, Edd James (note to Edd: that link gives a 403) asks why Outlook and Excel " need this ability to run scripts/macros [?]" First I want to clear up a common misconception about Outlook: Despite what</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#115062</link><pubDate>Sat, 17 Apr 2004 02:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:115062</guid><dc:creator>Charles Maxson</dc:creator><description>Here! Here!&lt;br&gt;&lt;br&gt;You are bang on Peter! All these damn users out there parading around as their own Admin on their box propagate the problems, not a rich OM. Many people get it and have stopped opening attachments from people they don't know. Some still do... explains my vast collection of free Levitra samples. But we need rich programmablity else we will never get all the features we need.&lt;br&gt;&lt;br&gt;Vote here for more not less!  </description></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#115068</link><pubDate>Sat, 17 Apr 2004 02:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:115068</guid><dc:creator>Alex Angelopoulos</dc:creator><description>&amp;gt; This one could be controversial ;-)&lt;br&gt;&lt;br&gt;Only because it is also pointless since arguments against automation on these grounds are rarely well thought out. But I want to add some suppressing fire. =)&lt;br&gt;&lt;br&gt;Let me be up front about pointing out that I am biased. Very biased. I do a lot of scripting, and see the lack of easy automation interfaces to every bit of Windows and Windows applications as a Bad Thing.&lt;br&gt;&lt;br&gt;Nonetheless, this is not a COM thing or even a Windows thing. It is fundamental to the concept of computing: automation is inherently good. Potentially dangerous aspects of a computing systems are made safe not by driving them underground, but by providing effective safeguards. There are lots of ways of safeguarding things, but the simplest and most rational is a perimeter defense with some depth - e.g., AV software to catch actual malware in the act, and a firewall to detect attempts to break in or out.&lt;br&gt;&lt;br&gt;Crude statistics from personal history here. I've helped about a dozen people with severe remailing virus problems in the last few months. One used Eudora, 2 used Outlook Express, and the rest used webmail of various kinds. What all had in common was:&lt;br&gt;+ Machine and network connections were &amp;quot;acting funny&amp;quot; (sometimes for months);&lt;br&gt;+ NO active and up-to-date antivirus application;&lt;br&gt;+ Did lots of surfing, online chatting, or instant messaging WITHOUT having a firewall in place.&lt;br&gt;All were fixed by installing an antivirus application and using it to clean the system. In several cases, activating a firewall initially also caught the backdoors involved before the AV software was installed.&lt;br&gt;&lt;br&gt;The obvious lesson here: if you want to be secure, TRY to be secure. If you don't use antivirus software, you're sticking some stranger's dirty fork in  your mouth; if you don't use a firewall, you're leaving all of your doors and windows unlocked. It doesn't even need to cost money; Trend Micro and McAfee have free online scanners, and a host of small commercial AV vendors make their packages free for personal use. Firewalls, the same: XP comes with one, and several others such as Zone Alarm have free versions.&lt;br&gt;&lt;br&gt;Miscellaneous quick comments below. I almost shouldn't bother. ;)&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; The obvious answer is that having an object model in Outlook makes all those mass-mailing viruses possible.&lt;br&gt;Oddly enough, arguing against an Outlook object model for this reason looks a LOT like &amp;quot;security through obscurity&amp;quot;. And of course since so many non-Microsoft email clients use plain-text address books and email storage, they are even easier to parse.&lt;br&gt;Of course, if users have firewalls and antivirus software, they've reduced their attack surface and can stop a hypothetical application that does this, but it probably wouldn't be on their system anyway then, would it? ;)&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; It scans files on your hard-disc to scavenge e-mail addresses, and then it uses a built-in SMTP mailer to send out the mails.&lt;br&gt;Note that some of these viruses don't even do that. It seems viruses that &amp;quot;phone home&amp;quot; or just sit and wait for someone to find them are the big thing now - and then they get an email list and run it repeatedly.  They also use random combinations of common names and large domains to autogenerate &amp;quot;possible&amp;quot; email addresses.&lt;br&gt;A clever trick for users to stop these viruses cold: instead of uninstalling Outlook, try INSTALLING a firewall and an antivirus application.&lt;br&gt;&lt;br&gt;&amp;gt; If you are running Lotus Notes or Pine or Eudora or Mozilla Mail or any other e-mail client and you execute a MyDoom-like virus program, you are in trouble. &lt;br&gt;This isn't true. If they have an effective antivirus program they'll stop it. And a firewall would catch the network activity.&lt;br&gt;Of course, if they don't have either one, it doesn't matter if they have NO email client. ;)&lt;br&gt;&lt;br&gt;&amp;gt; What the kiddies can do is surf around on #hacker IRC channels, download pre-canned exploit code from hackers, double-click on the icon on their desktop, and then brag to all their other 1337 friends.&lt;br&gt;Common viruses, yes - and this probably makes up the bulk of the virus infection attempts out there. Oddly enough, these commonly &amp;quot;handed down&amp;quot; viruses and trojan horses are usually well-known to antivirus and firewall applications. But then, I repeat myself. ;)</description></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#115069</link><pubDate>Sat, 17 Apr 2004 02:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:115069</guid><dc:creator>Bob Riemersma</dc:creator><description>I think the problem gets a little more complex than this.&lt;br&gt;&lt;br&gt;As most of us do, I have to wear a number of hats.  One of these hats is as a Windows developer.  Sometimes a Mort looking out for my own needs, other times as a pro hacking on some custom middleware service I need to build to plug a group of web developers into some random legacy system.&lt;br&gt;&lt;br&gt;The bane of my existence is Joe Admin.  The guy who thinks it's just spiffy to lock everything down to where nobody else can get any work done.&lt;br&gt;&lt;br&gt;I have to perform certain types of system management on a mainframe system from a distance, basically with boxing gloves on.  No admin rights, no direct access to management tools, capacity monitoring software, or much of anything really.  Instead they like to just crap out emails at me containing the &amp;quot;facts I need.&amp;quot;&lt;br&gt;&lt;br&gt;To survive I have a number VBA routines to harvest these oh-so-wonderful reports from my Outlook inbox.  Then there is a set of scripts to post-process the stuff (I get inline text, RTF or PDF attachments, you name it), archive it, and parse out the useful data and load it into a Jet database.  Then I have a few HTAs to pull selected data over selected time ranges out and create Excel sheets and charts or do other types of analysis - then fire these back out as emails to those who pay the bills (and want to know where their money is going).&lt;br&gt;&lt;br&gt;What it comes down to is my hands are pretty tied already.&lt;br&gt;&lt;br&gt;The LAST thing I need is Joe Admin coming around and locking down Outlook VBA, WSH, and HTAs on me.  What next?  Strip out the Excel and Word object models too?  Lock down Task Scheduler?&lt;br&gt;&lt;br&gt;We aren't all Minnie the Administrative Assistant out here.  Give us poor folks trying to get work done a break too.  Please??&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm well aware of the exploit woes out there.  Heck, I was the guy who had to embarrass our Joe Admins into looking at SUS after we got seriously Blastered one recent summer. ;-)  Ahh, anonymous forums!  How would we ever get these folks to toe the line without 'em?</description></item><item><title>re: It's not your father's Office (dev)</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#116853</link><pubDate>Tue, 20 Apr 2004 19:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:116853</guid><dc:creator>Philo's WebLog</dc:creator><description /></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#118784</link><pubDate>Fri, 23 Apr 2004 08:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:118784</guid><dc:creator>Chris Quirke</dc:creator><description>MS's own advice is; if the bad guy can run code, it's not your system anymore.  So why do we want to transfer ownership to any unsolicied email message &amp;quot;text&amp;quot;, &amp;quot;data&amp;quot; file, or web site we visit?&lt;br&gt;&lt;br&gt;Outlook may not auto-run scripts in email message &amp;quot;text&amp;quot; anymore, but it's taken *years* for this clue to sink in since IE 4.  Even post-Kak WinME shipped with OE running in email zone by duhfault.&lt;br&gt;&lt;br&gt;As to &amp;quot;running with admin rights&amp;quot;; us standalone PC users already have a security model we understand.  The &amp;quot;home&amp;quot; concept is &amp;quot;a physical location where safety can be assumed&amp;quot;.  Those with physical access have full rights; those with remote access have zero rights.  &lt;br&gt;&lt;br&gt;So why should we have to wear name tags while walking between rooms in our &amp;quot;home&amp;quot;, just because our OS is designed to be a network client rather than a properly-frontiered stand-alone OS?&lt;br&gt;&lt;br&gt;As it is, user accounts in XP Home are unfit for use until:&lt;br&gt;&lt;br&gt;1) The base prototype account can be preset so that new accounts can inherit our choice of settings (shell folder locations off C: perhaps, less massive web cache allocations, show file extensions, kill eye candy, etc.)&lt;br&gt;&lt;br&gt;2)  Limited rights accounts retain settings; at present they re-duhfault to hide files/paths/.ext etc. making WYSIWYG risk assessment impossible&lt;br&gt;&lt;br&gt;3)  Admin can see and apply settings across all user accounts, e.g. when cleaning up commercial malware that's patched into each account&lt;br&gt;&lt;br&gt;As it is, using anything other than &amp;quot;admin&amp;quot; not only tends to cause apps written for Win9x to fail, but also means having to lose the safety of more clueful settings.  So before you start waving limited accounts around as a panacea, fix 'em so they work better, m'kay?&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#118945</link><pubDate>Fri, 23 Apr 2004 15:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:118945</guid><dc:creator>Peter Torr</dc:creator><description>Chris,&lt;br&gt;&lt;br&gt;Your home analogy is not complete. Do you randomly walk into any room in the house at any time -- for example, into the bathroom when you know someone else is taking a shower? Most likely not. People like to have privacy even in their own homes, and it is the same with a PC. &lt;br&gt;&lt;br&gt;Would you want your kids (assuming you have them) rifling through your filing cabinet looking for financial information? Or leafing through your chequebook and writing cheques to themselves? If not, then why do you want them to be able to do the same things on your PC?&lt;br&gt;&lt;br&gt;Also you don't tend to invite random strangers into your house, but computer users WANT to let random strangers into their computers (think of all those file-sharing networks).&lt;br&gt;&lt;br&gt;Limited user accounts are &amp;lt;ahem&amp;gt; limited at the moment, but I believe you can achieve some of what you want by modifying the .DEFAULT user account in the registry (but that's probably not supported...).&lt;br&gt;&lt;br&gt;I also don't have settings changing behind my back (and I am not an admin on my machine). Perhaps you are experiencing some other kind of problem?&lt;br&gt;&lt;br&gt;Admins can of course see and apply settings across all user accounts -- that's the purpose of the Administrator!&lt;br&gt;</description></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#119083</link><pubDate>Fri, 23 Apr 2004 18:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:119083</guid><dc:creator>Karl Levinson, MS MVP, MCSE, CISSP</dc:creator><description>I don't see how you can argue that technologies like VBA and WSH don't present a very compelling attack surface, given the billions of dollars and system availability that have been lost combatting Office macro and .VBS viruses over the years.  And now MSH is coming down the pipe.&lt;br&gt;&lt;br&gt;XP SP 2 does *not* fix the problems with VBA and WSH viruses... precisely because it does not disable the technologies in question.  As I understand it, SP2 adds the AES API to block attachments and integrates this with OE and Windows Explorer.  Unless I'm mistaken, some of the features of AES may not protect users of other non-Microsoft software, email clients, P2P file sharing clients, etc.&lt;br&gt;&lt;br&gt;You don't explain why it's a good security practice [dare I use billg's words, &amp;quot;secure by default&amp;quot;] to (1) leave these technologies enabled on, say, home computers, and (2) give the user absolutely no way to disable unwanted technology such as VBA despite numerous user requests.  I'm not asking for Microsoft to get rid of VBA or WSH or MSH... just recognize that these are proven virus platforms, and that we should have an easy way to disable them if we want, or even consider the security benefits of making them disabled by default.&lt;br&gt;&lt;br&gt;You state that disabling WSH and VBA would just &amp;quot;make you less vulnerable to the more &amp;quot;popular&amp;quot; attacks.&amp;quot;  To me, that's like saying &amp;quot;you shouldn't run a firewall, because you'll still be vulnerable to viruses.&amp;quot;  Yes, the virus authors would probably start using other attack vectors... at which point we would want to take steps to reduce the risk from THAT new vector.  Also, making a truly secure by default computer does not mean secure yourself just from the most popular viruses.  Even if few people are writing Word macro viruses nowadays, you're still at risk from a teenager from Iraq writing one up to get into your nation's infrastructure.  Blaming the user here doesn't increase security much, not when it's a sure bet that at least 1 in every 100 users will execute an attachment, and you only need 1.&lt;br&gt;&lt;br&gt;Nobody argued for disabling RPC in Windows because Microsoft programmed RPC into many other products that Microsoft Windows customers are also running. Besides, there's already a way to disable RPC/DCOM if you wish.  There's no way to disable VBA.  I've asked.  &lt;br&gt;&lt;br&gt;Did your company have to shut down its email server for the ILOVEYOU virus?  We wouldn't have had an ILOVEYOU virus if Microsoft had simply changed the default action on .VBS and other files from Execute to Edit.  Users and administrators could still run VBS / WSH files by right-clicking instead of double-clicking, or by using a command line or a batch file that explicitly specifies CSCRIPT as the host application.  Can you give me a good reason why this still hasn't been done on the &amp;quot;secure by default&amp;quot; XP SP 2 and Windows Server 2003?  Will you trudge out the old excuse that this would somehow &amp;quot;break functionality?&amp;quot;  &lt;br&gt;&lt;br&gt;Running as a non-administrator does not stop viruses.  A non-admin user can still execute a virus and access the TCP/IP ports necessary to spread an RPC or email worm.  My understanding is that Linux prevents non-admin access to certain TCP/IP ports, but Windows does not.  A non-admin user can still save to the Word normal.dot and to his or her My Documents Startup folder.  The main thing a non-admin user cannot do regarding viruses is edit the startup locations in the Registry in order to remain persistent on reboot.  However, this is about as effective at preventing viruses as making the Normal.dot file read only -- based on my personal experience in a large financial environment across several states, it's not effective in preventing infection or re-infection at all.&lt;br&gt;&lt;br&gt;Thanks for writing an interesting and thought provoking article.  It's interesting to see the thought process from the other side.&lt;br&gt;</description></item><item><title>re: Why does Outlook have an OM?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#119163</link><pubDate>Fri, 23 Apr 2004 20:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:119163</guid><dc:creator>Peter Torr</dc:creator><description>Good comment; I will reply later in another post (hopefully this weekend when I have some time...)</description></item><item><title>VBA Take Two: Responding to some comments</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#119628</link><pubDate>Sun, 25 Apr 2004 02:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:119628</guid><dc:creator>Office Development, Security, Randomness...</dc:creator><description /></item><item><title>What good is StrongNameIdentityPermission if you can disable it?</title><link>http://blogs.msdn.com/ptorr/archive/2004/04/16/115029.aspx#196592</link><pubDate>Mon, 26 Jul 2004 08:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:196592</guid><dc:creator>Office Development, Security, Randomness...</dc:creator><description /></item></channel></rss>