63
Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect – Cloud Computing July 2013

Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops

Yury Magalif, MASE, VCP

Principal Architect – Cloud Computing

July 2013

Page 2: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Agenda I. Design Decisions – Current AV or Agentless II. How to Configure the Parent VM III. vShield Manager IV. Trend Micro Deep Security Manager V. Trend Micro - Deploy Filter Driver and Appliance VI. Trend Micro – Protect VMs VII. Connect View Desktop VIII. Trend Deep Security Tips IX. McAfee MOVE Agentless Tips

Page 3: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

I. Design Decisions – Current AV or Agentless

»Goal: Minimize I/O

Page 4: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Design – current AV or Agentless?

» ProjectVRC.com Whitepaper

» MCAFEE VIRUSSCAN ENTERPRISE 8.8.0

» Scan within the VM.

» I/O overhead at 50%

» MCAFEE MOVE MULTIPLATFORM 2.0

» Offloading AV scanning to a separate VM.

» I/O overhead at 16%

Page 5: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Design – current AV or Agentless? Continued. » MCAFEE MOVE AGENTLESS 2.5

» Scanning offloaded to VM, very light VMware agent inside

» IO overhead at most 10%. -- all write, no read at all.

»Conclusion: Using Agentless makes sense.

Page 6: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

II. Trend – How to Configure the Parent VM

»Goal: Make it easier

Page 7: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

VMCI – what VM uses to talk outside the bubble

Page 8: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Check the “Enable VMCI between VMs” box in your Parent VM, even though it is not mentioned in the manual.

Page 9: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Download Notifier installation file from the Trend Website and run install. Choose all defaults.

Page 10: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Once installed, the Notifier displays a bubble upon first login. Some admins don’t like any popups in their Parent VM. You can opt not to install Notifier then.

Page 11: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Notifier has a right click menu, and by default will notify the user in case of malware or bad websites.

Page 12: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

III. vShield Manager

»Goal: Follow the Antivirus Manufacturer manual

Page 13: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 14: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 15: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 16: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 17: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 18: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 19: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Select host, then look for vShield tab to the right. Click the Install button next to vShield Endpoint.

Page 20: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Select vShield Endpoint checkbox and click Install. Do not select any other checkboxes.

Page 21: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

On the vShield tab for the host, check that the button specifies “Uninstall.”

Page 22: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

On the Networking configuration tab for the host, look for a new Standard Switch. Do NOT delete it.

Page 23: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

IV. Trend Micro Deep Security Manager

»Goal: Install management

Page 24: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Create a VM for Trend Micro Deep Security Manager with 8GB of RAM, 1 socket and 4 cores.

Page 25: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

In SQL Server Management Studio, create a new database, and make sure to specify Recovery model as Simple – no need for up to date logs here.

Page 26: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Download Manager installation file from Trend website, double click to install

Page 27: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Specify SQL database name. Use SA account or the one given by your SQL Admins.

Page 28: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

For Antivirus, you only need to enter “Anti-Malware and Web Reputation” Activation Codes. No need to buy others.

Page 29: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Install a Co-located Relay by default

Page 30: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Go to URL of the https://TrendManagerFQDN:4119 to manage

Page 31: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 32: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Go to Computers, New, then “Add VMware vCenter”

Page 33: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Specify where your vShield Manager is located – important!

Page 34: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

V. Trend Micro - Deploy Filter Driver and Appliance

»Goal: Install mechanics

Page 35: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Add Trend modules you downloaded previously. Go to Updates, Software Updates and click “Import Software”

Page 36: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Select the Filter driver and Appliance for ESX

Page 37: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Click “View Imported Software” button to check what you imported. The 2 agents and the relay would have been already installed by the Trend Manager installer.

Page 38: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Select the Cluster in the tree, then select each ESX host, choose Actions, then “Prepare ESX…” to deploy the Filter Driver. You must do this on each host separately.

Page 39: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

VMotion the VMs manually off the target ESX host, choose Yes and Finish to let Trend deploy the Filter driver automatically. Don’t worry if the screen does not update for a long time – wait. Monitor in vCenter.

Page 40: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Monitor Filter driver deployment in vCenter. Trend Manager will be sending commands for Maintenance mode and rebooting the ESX server automatically.

Page 41: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

When Trend Manager is done, it will display “ESX server Successfully prepared” message. Select “Deploy a Deep Security Appliance now” and click next.

Page 42: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Provide appliance name, datastore, network. Make sure to create a separate Trend folder in vCenter inventory and place all Trend VMs there.

Page 43: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Provide FQDN and Static IP address.

Page 44: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Wait for Appliance Deployed message, then Activate.

Page 45: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Check on ESX host tab to Active status and in vCenter list

Page 46: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Ensure appliance is Disabled from DRS automatic VMotion

Page 47: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

VI. Trend Micro – Protect VMs

»Goal: Protection

Page 48: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Activate all VMs on the host for protection. You can also activate them later through the Trend Manager interface.

Page 49: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

If activation fails, you can reactivate the VM manually

Page 50: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

If activation is successful, you can will see Managed (Online) status next to the VM

Page 51: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

After activation is successful, go to ESX vShield tab & look for the name of the VM with the status of “Thin agent enabled”

Page 52: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Next, right click on VM in Trend Manager and Assign Policy. Choose Base>Windows>Windows Anti-Malware Protection

Page 53: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 54: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

VII. Connect View Desktop

»Goal: Test catching viruses

Page 55: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Connect to your Virtual Desktop, in this case VMware View 5.2

Page 56: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 57: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 58: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –
Page 59: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

If you click to see the details of the caught virus, you will see that it was Quarantined

Page 60: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

VIII. Trend Deep Security Tips » Before installing vShield service on each ESX host, make

sure the vCenter VM is NOT on that host. Install, then move vCenter back. Same w/Filter driver.

» Do NOT assign a Security Profile to the Deep Security Manager VM itself (even though there IS one). Otherwise, you will get “Anti-Malware Driver Offline”

» You CAN apply the DP Virtual Appliance Profile to each VA

» Shut down Manager first, then SVAs. Start SVAs first, then manager.

» vShield modifies the VMX file – be aware if you move VM to non-vShield environment.

Page 61: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

IX. McAfee MOVE Agentless Tips » First, install McAfee Public CA v1 certificate in the Intermediate

Certification Authorities certificate store (with MMC) on the system running the vShield Client. Then deploy the OVF.

» SVA deployment is manual with an OVF to each host, or scripted.

» Manually disable VMotion on SVAs.

» Install the McAfee MOVE AV Agentless extension in ePolicy Orchestrator console.

» From the ePolicy Orchestrator console, deploy a policy with a category of SVA.

Page 62: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Thank you!

»I would like to thank my colleagues Will Chin and Jose Restrepo for invaluable assistance.

Page 63: Tips and Tricks on Building Agentless Antivirus …...Tips and Tricks on Building Agentless Antivirus Scanners for Virtual Desktops Yury Magalif, MASE, VCP Principal Architect –

Contact Info & Questions

I would like to thank HP for VC whitepapers/cookbooks from which I borrowed some diagrams in this presentation. For questions after this presentation, email to

Twitter: @YuryMagalif @CDILLC

Please give feedback – it helps me come back.

www.youtube.com/user/ym640

Get the slides in on my work blog: www.cdillc.com/newsroom/cloud-giraffe

E-Mail Questions:

YouTube:

Connect with me on LinkedIn: Yury Magalif

Personal Blog: cloud-zebra.com