Author Topic: Introduction to the 5.x sandbox  (Read 49683 times)

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
Introduction to the 5.x sandbox
« on: September 01, 2010, 11:46:35 AM »
INTRODUCTION TO THE 5.x SANDBOX


Please help us improve this introduction by posting suggestions to the 'Sandbox help materials - Feedback topic' here.

This introduction has been prepared by a volunteer moderator – with input from many other moderators (Thanks everyone, especially: Ronny, Omletguy, Dennis2, Arkangyal, Egemen). It has been produced on a best endeavours basis - it will be added to and corrected as we find out more about the sandbox. Please note that I am not a member of staff and therefore cannot speak on behalf of Comodo.


Updated: 31 January 2012, to reflect changes up to CIS version 5.9.xxx
« Last Edit: March 17, 2013, 11:15:14 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
What is it for?
« Reply #1 on: September 01, 2010, 11:49:26 AM »
The CIS sandbox helps CIS provide 'good enough security' with minimum inconvenience.

It does this by buying the time needed to make a well-founded judgement on the safety of an unrecognised file instead of demanding an instant decision from users via alerts. The time 'bought' in this way can be used by Comodo to look up or analyse the files or by the user to research them.



« Last Edit: June 09, 2011, 03:43:10 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
How does it work?
« Reply #2 on: September 01, 2010, 11:50:53 AM »
The sandbox buys time for careful judgement on unrecognised software by placing temporary restrictions on unknown software. The vast majority of programs are still able to run while restricted in this manner and generate few alerts [1].

Software unrecognised by CIS has these restrictions automatically imposed. Such files are said to be automatically sandboxed. Software that the user regards as suspicious can be sandboxed by the user. Such software is said to be manually sandboxed. Manual sandboxng facilities are still at an early stage of development, and are not dealt with further in this Introduction. Please refer to the program help text, and the virtualisation FAQs here.

Both manual and automatic sandboxing are switched on by default and may be turned off together using the Sandbox Security Level slider.

Automatic sandboxing
Software unrecognised by CIS is, by default, automatically sandboxed using the 'partially limited' policy when run. So is all software run by such software. Software recognised by CIS as trusted is not sandboxed. If recognised as an installer it is run as a trusted installer with unlimited access to your computer. If not recognised as an installer it is run as a normal trusted file with a lower level of access. (Software immediately recognised by CIS as malicious is not run sandboxed - instead it is immediately alerted to the user via the AV system).

Most unrecognised software gets sandboxed immediately - the user is notified but retrospectively. Installers are held in limbo, giving users the opportunity to sandbox or not, but sandboxing occurs automatically if no answer is given.

Software cannot be removed from the sandbox until it is deemed trusted by Comodo or the user. Restrictions on unrecognised software which is subsequently deemed trusted are not removed until the software is next fully restarted. In some cases this may require the computer to be rebooted. Unfortunately the user is not told that this is required.

Sandboxed software may also be subsequently deemed suspicious or malicious by Comodo or the user. If recognised by Comodo as malicious it is added to Comodo's blacklist and your computer is notified. When the software is next run the AV will give you the option of deleting or quarantining the software. If recognised by the user as malicious it can be transferred to my blocked files and/or AV quarantine, and/or deleted manually, and can thus be prevented from running. (Alternatively, if only suspicious, it can be manually sandboxed at a higher restriction level).

The restrictions placed on automatically sandboxed software are documented here.  

Automatic sandboxing does not virtualise software Files and registry keys created by the software are NOT stored in a separate place on your hard disk. (Instead, to protect system integrity, the sandboxed program is prevented from writing to protected folders, pre-existing files, and registry keys - see link above for details).

Footnotes
[1] By default, CIS is now set to supress almost all alerts (see Alert reduction settings) . If these settings are set to 'off' Internet, Global hook, and certain COM interface alerts will still occur for some programs, though the frequency of these is being reduced.

« Last Edit: January 31, 2012, 05:19:43 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
What is it not for?
« Reply #3 on: September 01, 2010, 11:56:29 AM »
Although you can choose to sandbox software yourself, the current version of the CIS sandbox is not intended to be an alternative to a traditional sandbox like Sandboxie.

The CIS sandbox does not intercept *all* actions by sandboxed software. So it cannot successfully sandbox installed program files and so cannot wipe all traces of installed software from your system if you decide to uninstall it. However it does provide good protection in other ways (see how the sandbox works) and these facilities are being constantly improved.
« Last Edit: September 02, 2010, 09:10:18 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
Something wants 'Unlimited Access', what should I do?
« Reply #4 on: September 01, 2010, 11:57:39 AM »
You get 'unlimited access' alerts when CIS is faced with unknown installation software or other software that requires unlimited access to your computer, and so cannot be run sandboxed. If the setting 'Automatically recognise installer....' is checked, CIS grants installation software almost total freedom and suppresses all alerts (though it still makes log entries). You should say yes if you fully trust the vendor of the software, no or 'sandbox' otherwise.

If you say 'no' you can uncheck ''Automatically recognise' and re-run the installer with all Defense+ alerts enabled. If you say 'sandbox' the installer software will be sandboxed, and thus unable to damage your system, but the files that it installs, and registry keys it creates will be created in their normal locations (ie virtual copies will not be created in the sandbox), unless these are protected directories (eg your OS directory). The installed files will not be able to harm your system unless you  run the software from the installer - so it's best not to do this.

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
How do I know what has been sandboxed?
« Reply #5 on: September 01, 2010, 12:04:05 PM »
CIS will normally alert you the first time, it automatically sandboxes software, using an ‘Application Isolated’ alert. It will normally make a log entry every time it automatically sandboxes software. If you miss the alert you’ll find the file in ‘Unrecognised Files’. If the file is still running you’ll also be able to see it’s sandboxed in the Active Processes List. However CIS will not generate an alert when files are automatically sandboxed just because they are run by other files which are sandboxed. Nor will such files appear in ‘Unrecognised Files’. Instead a log entry will be made.

Automatically sandboxed files do not show up in 'Always sandbox', which shows only manually sandboxed files added via 'Always sandbox'.

« Last Edit: September 13, 2010, 05:20:49 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
How can I prevent software being sandboxed?
« Reply #6 on: September 01, 2010, 12:04:58 PM »
You should never take software out of the sandbox unless you are sure you can trust it.

When CIS tells you it wants to sandbox software using a standard sandbox or ‘application isolation’ alert, you can decline this, but you will have to re-start the software concerned to take it out of the sandbox. Alternatively you can unsandbox software by adding it to Trusted Files, either by using 'Move to' in 'Unrecognised Files', by using 'Add' in 'Trusted Files', or by using the right click menu in the Active Processes List. Then, if the software is running, you must restart the software and perhaps reboot the computer.

If it asks using an ‘Unlimited Access Alert’, you can tell CIS to run the software outside the sandbox simply by saying 'Allow'. No restart of the software is required. But if you want it to run outside the sandbox permanently, you need to tell CIS to always trust the file/package. You can now do this on the alert.

Sometimes it can be difficult to remove files from the sandbox – though this problem is now improved. Information on how to get over this is here.  

Please note:
Defining a file as a trusted application in the Computer Security Policy does not remove it from the sandbox.
« Last Edit: October 27, 2010, 07:05:32 AM by Dennis2 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
So... is the sandbox really secure?
« Reply #7 on: September 01, 2010, 12:08:18 PM »
It is designed to provide very good security with a minimum of alerts, which should be sufficient for the majority of users. It's not designed to provide the highest possible level of security.

Unrecognised software is automatically sandboxed using the partially limited policy by default is restricted as follows. It cannot:
  • write to (ie infect) existing protected files or registry keys
  • drop files in protected directories
  • take some admin privileges (e.g. Debugging and driver loading)
  • key log or screen grab by most known techniques
  • set windows hooks without asking
  • access protected COM interfaces without asking
  • access non-sandboxed applications in memory
  • access the internet without asking.

You can increase these restrictions by changing the default restriction level using 'Treat unrecognised files as' on the Image Execution Settings tab in Defense plus settings. However unrecognised files will not always run successfully under higher settings. (Files which run OK under a standard user - i.e. non-admin - account should normally run OK up to the 'limited' level).
« Last Edit: May 19, 2012, 08:59:52 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
Will the sandbox work on 64 bit systems?
« Reply #8 on: September 01, 2010, 12:09:32 PM »
Yes it will. Except that registry virtualisation is disabled in 64bit Windows XP. The user is not currently informed about this - Comodo is considering adding an alert.

This is one of the main reasons why it is designed as it is. Most sandboxes will not work on 64 bit systems because they use undocumented OS facilities (which do not work in 64bit) to intercept program to program communications. The CIS sandbox avoids this by not creating virtual copies of installed programs, which means it does not need to intercept these communications.

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
What if I want to know more?
« Reply #9 on: September 01, 2010, 12:10:34 PM »
As I find out more I'll edit this topic. A detailed screen by screen guide to all the settings is available in CIS help text, under 'Defense+ Tasks' and 'Introduction ~ Understanding alerts'.  A faq is being developed here.
« Last Edit: September 13, 2010, 04:18:49 PM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
How does CIS judge the trustworthiness of a file?
« Reply #10 on: September 02, 2010, 08:40:09 AM »
Software may be recognised as trusted by CIS by being:
  • on the users trusted file list ie in 'Trusted Files' list
  • on Comodo's trusted file list (local or online) which is compiled from files subject to detailed manual analysis. (Automatically analysed files are never placed on this list).
  • signed by a vendor on CIS's Trusted Vendor list
  • defined as a 'trusted installer' in the computer security policy
  • dropped by a trusted installer.

Note that any trusted file that requests installer privs from the OS is regarded as a trusted installer by CIS.

Software may be deemed suspicious or malicious by CIS by being:
  • on the Comodo blacklist, which is compiled from files
    • automatically analysed online (which takes 15 minutes) and/or
    • subject to detailed manual analysis (which takes a long time)
  • observed exhibiting suspicious behaviour on your machine
    • by Defence plus heuristics, and/or
    • by buffer overflow attack detection
Users may also in effect define files as suspicious or malicious by restricting them in certain ways. For example by making them blocked files, quarantining them, or subjecting them to higher levels of manual sandbox restriction.

All such lists & processes, or the checks made on them, are visible to the user in some way apart from CIS's own local trusted files list, which is in part a cache from past online lookups, in part a list supplied at installation time.

You can request that file be checked online and added to the appropriate lists by submitting a file for detailed analysis. This partially manual process may take some time. Further info here.
« Last Edit: January 06, 2011, 06:07:50 AM by mouse1 »

Offline mouse1

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 9182
Re: Introduction to the 5.x sandbox
« Reply #11 on: March 18, 2013, 03:42:00 AM »
BUMP

 

Seo4Smf 2.0 © SmfMod.Com | Smf Destek