Share via


Exercise 5: Removing Anonymous Access to Confidential Files

Figure 1

In this lesson, you will configure the File Classification Infrastructure to find files that contain the word Confidential. Additionally, you will use File Management Tasks to remove anonymous access to the file.

Files that a company considers confidential need to be kept secured. However it is very easy to mistakenly allow random or even anonymous users to access a file. It is common to require users to restrict access to such files, but this is a manual process that can be error prone. The File Classification Infrastructure provides a simpler way for automating tasks like this.

Part 1: Removing Anonymous Access to Confidential Files

  1. In FSRM, expand Classification Management and select Classification Properties:

    Figure 2

  2. Click Create Property in the Actions pane.
    Note:
     This opens the Create Classification Property Definition dialog box
  3. In the Property name text box, type the name Confidential for the property.
  4. In the Property Type drop-down menu, select Yes/No from the list:

    Figure 3

  5. Click OK to close the Create Classification Property Definition dialog.
  6. In FSRM, expand Classification Management and select Classification Rules:

    Figure 4

  7. Click Create a New Rule in the Actions pane.
    Note:
     This opens the Classification Rule Definitions dialog box.
  8. In the text box labeled Rule name type Find Confidential as the name for the rule.
  9. In the Scope section Click Add and select the following path:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data

    Figure 5

  10. Select the Classification tab
  11. From the Classification mechanism dropdown select Content Classifier.
    Note:
     This classification mechanism uses the same mechanism used by the Search Indexer to extract text from files and search for patterns
  12. Select the value Confidential from the Property name dropdown
  13. Select the value Yes from the Property value dropdown:

    Figure 6

  14. Click the Advanced button to open the Additional Rule Parameters dialog.
  15. On the Additional Classification Parameters tab, add a new entry with the following values:
  16. Name: String
  17. Value: Confidential

    Figure 7

    Note:
     This configures the Content Classifier to search for the string “Confidential” regardless of the case of the string. Other parameter names the Content Classifier accepts are StringWithCase (for strings where the case is important) and RegularExpression (for standard .Net regular expressions).

  18. Click OK to close the Advanced dialog box.
  19. Click OK once more to close the Classification Rule Definitions dialog.
    Note:
     This rule will look for any files containing the word “Confidential” regardless of case and classify the file as “Confidential=Yes.”
  20. In FSRM, select File Management Tasks, and click Create File Management Task in the Actions pane.
    Note:
     This opens the Create File Management Task dialog box
  21. In the Task name text box, enter Restrict confidentialfiles for the new task.
  22. Under Scope, add the following directory by using the Add button:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data

    Figure 8

  23. From the Action tab, select Custom from the dropdown box labeled Type.
  24. Enter the following application path onto the into the Executable text box

    c:\windows\system32\icacls.exe
  25. Enter [Source File Path] /remove:g Everyone into the Arguments text box.
    Note:
     These parameters will be passed to the command. These arguments cause icacls.exe to remove any granted access rights for the Everyone SID for the file. By altering these parameters other ACLs can be set.
  26. In the Command security section select Local System:

    Figure 9

  27. Select the Condition tab.
  28. Click Add to create a new condition based on the file’s classification.
    Note:
     This will open the Property Condition dialog box, which allows you to select a property, an operator to perform on the property, and the value to compare the property against.
  29. Select the property Confidential from the Property dropdown
  30. Select the condition Equal from the Operator dropdown
  31. Select the property value Yes from the Value dropdown

    Figure 10

  32. Click OK
  33. Select the Schedule tab
  34. Click Create…, and then in the Schedule dialog box, click New.
    Note:
     This displays a default schedule set for 9:00 A.M. daily.
  35. Click OK
  36. Click OK
    Note:
     This File Management Task will find all files on “C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data” that had the Confidential classification property set to Yes by the Content Classifier looking for the word Confidential. For these files, it will remove all granted ACLs for the Everyone SID.
  37. Open an explorer, navigate to the following path:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data
  38. Right-click the file set-permissions.bat and select Run as Administrator
  39. Click Yes when UAC prompts you about opening the file.
    Note:
     This batch file will set the read permissions for everyone on all files found under a user directory.
  40. Open an explorer, navigate to the following path and note any existing files:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data\Shares\Users\Alice
  41. Open the individual files and note that the file Plans for V2.docx and Feature list.TIF both have the word Confidential in them.
  42. Right click on each file, select Properties, and click on the Security tab.

    Note:
     Note that all files grant the Everyone SID read access.

    Figure 11

  43. In FSRM, right click on the Restrict confidential files File Management Task you just created and select Run File Management Task Now:

    Figure 12

  44. Select Wait for task to complete execution and click OK
  45. Inspect the generated report for files affected by the File Management Task and note that the files in the report are the same files that have the word Confidential in them.
  46. Right click on each file in “C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data\Shares\Users\Alice”, select Properties, and click on the Security tab. Note that Everyone does not have read access anymore for the files containing the word Confidential:

    Figure 13