Lee Hickin CISSP Security Specialist

Slides:



Advertisements
Similar presentations
Services Course Office Web Apps Participant Guide.
Advertisements

Services Course Windows Live SkyDrive Participant Guide.
Services Course Windows Live SkyDrive Participant Guide.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
ReplicationBackupHSMSecurityArchiveEncryptionExpiration.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Services Course Live SkyDrive Participant Guide.
Services Course Set Up a Student Group Project Participant Guide.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
02 | Install and Configure Team Foundation Server Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Introduction to Microsoft Lync Online This course covers the following: Overview of Microsoft Lync Online Customizing Lync Online.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Microsoft ® Lync ™ 2010 Response Group Application Training.
1 Outlook Live Live Messenger SkyDrive Office Live Live Spaces Live Groups.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Services Course Live Groups Participant Guide.
Information About Microsoft Project and Project Server Cumulative December Update Adrian Jenkins Support Escalation Engineer Microsoft Corporation 1 Brian.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Today’s Agenda
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

customer.
Module 8 : Configuration II Jong S. Bok
Exchange Deployment Planning Services Exchange 2010 Complementary Products.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
03 | Manage Team Foundation Server Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Service Pack 2 System Center Configuration Manager 2007.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

Services Course Assigning Homework Participant Guide.
Connect with life Tejasvi Kumar Developer Technology Specialist | Microsoft India
Microsoft NDA Material Adwait Joshi Sr. Technical Product Manager Microsoft Corporation.
Microsoft Virtual Academy Chris Oakman | Managing Partner Infrastructure Team | Eastridge Technology Curtis Sawin | Technical Solutions Professional |
File and Print Services
6/11/2018 4:36 AM Services Course Outlook Live Participant Guide
Visio Services 2013 Collaboration APIs Chris Hopkins
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
SkyDrive Pro Chris Gideon Architect Microsoft 9/16/2018
Test Upgrade Name Title Company 9/18/2018 Microsoft SharePoint
OneDrive for Business User Guide
Введение в архитектуру SharePoint 2010
Personal Site Following
RMS with Microsoft SharePoint
Microsoft Build /10/2018 1:35 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Renewed Developer Dashboard
ISC440: Web Programming 2 Server-side Scripting PHP 3
Office Mac /30/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
1/11/2019 7:04 AM Understanding, Configuring and Troubleshooting Protection Feature on Yuri Diogenes | blogs.technet.com/yuridiogenes Senior Technical.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Microsoft Office365 Tips Calendar Sample 10/31/2019
Presentation transcript:

Lee Hickin CISSP Security Specialist

What is Forefront for SharePoint The Forefront Scan Jobs File filtering Topics of Interest ZIP file behavior Performance End user experience Large file support Forefront and IRM Forefront and Office 2007

Forefront Security for SharePoint provides three kinds of protection Antivirus scanning of files/documents File filtering Document content keyword filtering Forefront supports Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 Previous SharePoint versions supported by Antigen for SharePoint Supports both 32- and 64-bit deployments

Internet A B C D E SharePoint Server Farm Distributed protection Performance tuning Content filtering Central management Microsoft AV Multi-engineManager SQL Data store

Forefront engine sets and other vendors Signature response times in hours MM/YY VIRUS FF Set 1FF Set 2FF Set 3FF Set 4FF Set 5 Vendor AVendor BVendor C Spybot!04C Nugache.a Numuen.F Numuen.H Numuen.G Rbot!E , Bagle.EG Feebs.EU Virut.A , = less than 5 hours = bet 5 and 24 hours = more than 24 hours

Forefront provides two scan jobs Realtime Scan Job – scans any files being uploaded to or downloaded from SharePoint Works with web browser or any other application accessing SharePoint Provides proactive protection Manual Scan Job – Scans all or part of SharePoint document library on demand Scans can be scheduled Can be used to scan with engines different than Realtime scan job

Realtime scanning always uses the VSAPI Basic Realtime scan settings are centrally configured through the SharePoint interface, not the Forefront console This is why they are grayed out in the Forefront console Click here to change settings Then click “Operations,” followed by “Antivirus”

Scan documents on upload and Scan documents on download are separate settings that can be turned on or off Best practices is to use both Scanning Timeout is configurable Default is 600 seconds Number of scanning threads is configurable Default is 10 threads, which is also the maximum “Threads” are actually processes that will be spawned as needed

When Forefront detects a virus, several Actions are available Skip: detect only – logs presence of virus but does not block or delete it Not a secure setting! Can be used for testing/evaluation purposes Clean: repair document – Attempts to clean the file. If file cannot be cleaned, it is blocked.

Block: prevent transfer – blocks file from being uploaded or downloaded without attempting to clean it However, there is potential conflict between Forefront settings and SharePoint settings! SharePoint settings Forefront settings Who wins?

The ForefrontSPVsapi64.dll is registered with SharePoint 32-bit version is ForefrontSPVsapi.dll VSAPI interface contains three methods that are implemented by the dll STDMETHOD Initialize STDMETHOD Scan STDMETHOD Clean

STDMETHOD Initialize SharePoint calls the ForefrontSPVsapi which returns the Forefront product string and version STDMETHOD Scan SharePoint calls the ForefrontSPVsapi to scan the passed in content and return the infection status and virus information (if any) If “Attempt to Clean Infected Documents” has been selected in SharePoint, then Forefront returns MSOVSI_STATUS_CLEANABLE SharePoint then calls the Clean Method to optimize performance

STDMETHOD Clean The Clean Method attempts to clean detected viruses found in files It returns the infected status, virus information (e.g. virus name) and updates the output stream if viruses are cleaned When Clean Method is called, ForefrontSPVsapi finds an available ForefrontRealtime process Note that a separate process is called for cleaning If the clean process fails, it is set to MSOVSI_STATUS_CLEAN_FAILED, and file is blocked If the clean process succeeds, it is set to MSOVSI_STATUS_CLEAN, and file is allowed

STDMETHOD Scan continued… If “Attempt to Clean” is not selected, Forefront passes the content to an available Forefront Realtime process. After this, the data stream can no longer be returned to SharePoint At this point, files can no longer be cleaned because a cleaned file has no way to return to the SharePoint data stream Therefore, only blocking is allowed if “Attempt to Clean” is turned off in SharePoint

STDMETHOD Scan continued… If the Scan Method returns MSOVIS_STATUS_INFECTED SharePoint notifies the user that the file is infected and displays virus information File is blocked No attempt is made to clean the file If the content is clean, the status is set to MSOVSI_STATUS_CLEAN File is allowed If content cannot be processed due to time out or failure of the scan process, it is set to MSOVIS_STATUS_INFECTED

DOCUMENT Is SharePoint set to Clean? Call the Cleaning Method Can file be cleaned? File cleaned and loaded into library Pass to the Forefront scanner Is the file infected? File blocked File loaded into library YES NO YESNO

SharePoint SettingForefront SettingResultReported in Forefront as Single cleanable virus Clean Cleaned Do not cleanCleanBlockedCleaned CleanBlockBlocked Do not cleanBlockBlocked ZIP file with embedded cleanable virus Clean Cleaned Do not cleanCleanBlockedCleaned CleanBlockBlocked Do not cleanBlockBlocked ZIP file with embedded non-cleanable virus Clean Infected embedded file removed Removed Do not cleanCleanBlocked CleanBlockBlocked Do not cleanBlockBlocked

SharePoint SettingForefront SettingResultReported in Forefront as Single cleanable virus Clean Cleaned Do not cleanCleanBlockedCleaned (file is still infected) CleanBlockBlocked Do not cleanBlockBlockedBlocked (file is still infected) ZIP file with embedded cleanable virus Clean Cleaned Do not cleanCleanBlockedCleaned (file is still infected) CleanBlockBlocked Do not cleanBlockBlocked ZIP file with embedded non-cleanable virus Clean Blocked Do not cleanCleanBlocked CleanBlockBlocked Do not cleanBlockBlocked

When a file is deleted because it contains a virus, Forefront replaces it with a text file File keeps name but gets a.txt extension Deletion text is only used in Realtime scanning when replacing files within a ZIP file The text file contains a configurable “Deletion Text” that can include system information By default, the deletion text reads: Microsoft Forefront Security for SharePoint %State% a file since it was found to be infected. File name: "%File%“ Virus name: "%Virus%”

Manual Scan provides tree-view into document library All or part of the library can be set for scanning by using check boxes Settings will not include new sites by default unless the top box is checked Use Quick Scan to scan a particular part of the library

The Manual Scan uses a combination of the VSAPI and the SharePoint object model Basically the same interface anything else uses to access a document in SharePoint When not using the API, Forefront uses a COM object to navigate the SharePoint site(s), containers, folders and to retrieve content for scanning Circumstances dictate which form of scanning will be used

The nature of the Manual Scan is determined by the Anti Virus Vendor ID (AVVendorID) The AV ID is the current virus engine number as understood by Forefront The AV ID is incremented every night during the database compaction process (2 a.m.) The AV ID will also increment with each engine update if “Scan on Scanner Update” is activated The AV ID increments when SharePoint system virus settings are changed There is both a system-wide AV ID as well as an AV ID on each particular file in the library

The Manual Scan is also impacted by whether or not a file is listed as “infected” in the SharePoint database This occurs when a virus is detected by the Realtime Scan during a download attempt The file is not deleted, but it is marked as “infected” Summarizing, the manual scan is impacted by The system AV ID The individual file AV ID The infected status of the file

To view the AVVEndorID, use the following syntax: stsadm –o getproperty –pn AVVendorID Found in the directory: \Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

There are problems in the VSAPI implementation of SharePoint that cause errant behavior in the Forefront Manual Scan process Realtime Scanning is not affected This behavior needs to be understood Changes will not be implemented until both SharePoint and Forefront deliver fixes Forefront service release tentative for August 2007 SharePoint service release tentatively planned for March, 2008 Problem may be corrected earlier with Hot Fixes

Is file already marked as infected? Scanned by the Manual Scan (COM object) The file is not detected by Forefront and is not scanned YES NO Document AV ID matches system AV ID If the System AV ID and File AV ID match This is incorrect behavior! Note that the file becomes “invisible” to Forefront.

Reported by Manual Scan Job Is file already marked as infected? VSAPI used to scan file The file is not detected by Forefront and is not scanned YES NO Document AV ID does not match system AV ID If the System and File AV IDs do not match Is a virus detected ? Reported under Realtime Scan Job in Forefront Scanned again by Manual Scan Job This is incorrect behavior! NO

Once a file has been detected as “infected,” it becomes “invisible” to the Manual Scan Access to the file is blocked, as seen in this Program Log excerpt The file will also be “invisible” to File Filter scans and keyword scans "WARNING: SPFile.OpenBinary failed (0x ) on " Documents/eicar.com". It might be infected and blocked by SharePoint. Manual scan can't scan this document.”

If a file has been detected as infected during download, it can no longer be removed by Forefront User access to it will be blocked, but the infected file remains in the library You would have to manually delete it During a Manual Scan, many detected viruses may actually be detected by the Realtime Scan This is especially likely if the Scan on Scanner Update option is used which frequently toggles the virus ID Realize that scan job settings can be different

Actions available to Manual Scan Skip:detect only – logs presence of virus but does not block or delete it Clean:repair document – Attempts to clean the file. If file cannot be cleaned, it is deleted Delete:remove infection – deletes the file without attempting to clean it Replaces deleted file with text file File retains name and extension

Proactive protection of SharePoint by keeping out dangerous file types E.g. EXE, VBS, COM, PIF, SCR, etc. Used to block unwanted file types E.g. MP3, AVI, and other files that may present liability or storage issues Blocks based on file name as well as true file type Blocks based on file size and size/type combinations

SharePoint also supports file blocking, but performs only file extension checking Can be easily circumvented by changing the extension If SharePoint and Forefront rules overlap, SharePoint rule is applied first SharePoint file scanning requires less overhead and should be used in conjunction with Forefront Block the same list of files in both places Skip:detect mode can be used to inventory the library or understand real-time file storage patterns

Forefront can unpack and repack ZIPs and other container formats while removing the unwanted content Works with both AV engines and file filters Unwanted file is replaced with deletion text File name changed to original-file-name.txt This allows protection to be maintained without disrupting the valid files

Forefront Security for SharePoint uses the SharePoint anti-virus API which is optimized for SQL server Multi-threaded scanning allows up to ten documents to be scanned at the same time Minimizes end user wait time Scanning logic does not re-scan documents that have already been scanned

To save scanning cycles, files detected once as viruses are, by default, not scanned again when users attempt to download them and the same AV ID is in place The file will be blocked, but you will not see a virus detection event listed in Forefront Uploaded files are always scanned because their state cannot be known However, if the AV ID of the file and the system are different, the file is rescanned

When a file is blocked, the user receives an on-screen notification.

Due to limitations in the API, the notification always says Virus Found even when using a file filter or keyword filter Shows that it was a file filter Displays as if a virus

Forefront scans documents accessed via Explorer, but the user experience is unclear In a download scenario, the copy fails without any error – progress screen disappears In an upload scenario, the copy fails with a vague error message

Large file support has been added to the VSAPI in SharePoint 2007 The VSAPI hook can load and transfer pieces of the file on demand Forefront requests file data in chunks Maximum file size to be scanned is 2 GB If the file is larger than 2 GB, then the ForefrontService will return a value of MSOVSI_STATUS_INFECTED The Virus Information string will note “Exceeded File Size”

Due to a bug in the current Forefront for SharePoint release, the “Exceeded File Size” blocking occurs at files of 128MB instead of 2 GB This is a known issue based on a mistaken hard-coded parameter Has already been identified and fixed A hotfix has not yet been created because there have been no customer issues raised yet Fix will be rolled into the first Service Pack

Information Rights Management applies RMS protection on documents on a per folder level, enforced by SharePoint VSAPI will decrypt documents automatically for Forefront Only applies to Realtime scanning Manual Scan can only scan IRM protected documents when VSAPI is called (as per previous discussion)

New Office DOCX document format supported in Forefront for SharePoint Can be scanned for viruses, file filtering, keyword filtering Format presents specific scanning challenges due to nature of format Current Antigen sees the Office 2007 format as a ZIP file Will be addressed in Antigen SP1 A new XML Navigator has been added to Forefront to properly handle these formats

File Filter listed as OPENXML in Forefront interface Filter is not able to distinguish between Word, Powerpoint, Excel, and so on, but sees all OpenXML files as the same type They can be distinguished by extension name.DOCX.PPTX.XLSX

When using the file type filter, Forefront detects it directly, as seen in this program log entry: Tue Jan 16 10:06: , "DIAGNOSTIC: workthread.cpp::ScanFileEx(): DIAGNOSTIC: The Realtime scanner detected a FileType of 10 (FOBTYPE_ZIPFILE)" Tue Jan 16 10:06: , "DIAGNOSTIC: The Realtime scanner is scanning the file named “TESTFILE.docx" located in the "**During Cleaning**" folder using the Filtering Engine" Tue Jan 16 10:06: ( ), "DIAGNOSTIC: The Realtime scanner has finished scanning the file named "TESTFILE.docx" located in the "**During Cleaning**" folder using the Filtering Engine" Tue Jan 16 10:06: ( ), "INFORMATION: Realtime scan found virus: Folder: **During Cleaning** File: TESTFILE.docx Incident: FILE FILTER= *.* Scanner: FILE_FILTER_SCANNER State: Blocked"

If not blocking by file type, however, Forefront explodes the file into constituent XML parts DIAGNOSTIC: The Realtime scanner detected a FileType of 10 (FOBTYPE_ZIPFILE)" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx" DIAGNOSTIC: The Realtime scanner has finished scanning the file named "TestFile.pptx" DIAGNOSTIC: The Realtime scanner is uncompressing file " DIAGNOSTIC: workthread.cpp::ScanFileEx(): DIAGNOSTIC: The Realtime scanner detected a FileType of 33 (FOBTYPE_TEXT_PLAIN)" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >[Content_Types].xml" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >.rels" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >slide1.xml.rels" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >presentation.xml.rels" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >slideLayout7.xml.rels" DIAGNOSTIC: The Realtime scanner is scanning the file named "TestFile.pptx- >theme1.xml [and so on…] Above sample log is highly edited for ease of viewing.

Forefront Security for SharePoint provides three kinds of protection Antivirus scanning of files/documents File filtering Document content keyword filtering Forefront supports Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 Previous SharePoint versions supported by Antigen for SharePoint Supports both 32- and 64-bit deployments Available now for production deployment !

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.