Patent ID: 8429756

Claim:
A computer implemented method for casting security on binary behaviors comprising: establishing a plurality of security zones that are configured to place security restrictions on binary behaviors that are attached to hypertext markup language (HTML) elements and control rendering associated with respective HTML elements, wherein the security restrictions are configured to restrict access of the binary behaviors to operating system functionality; ascertaining HTML elements and associations of the HTML elements with the binary behaviors in an HTML document prior to rendering the HTML document, including processing style sheets associated with the HTML elements indicative of style attributes for the HTML elements; initiating the rendering of the HTML document; identifying, during rendering of the HTML document, a security zone of the plurality of security zones that is associated with a request initiated by an HTML element that is being rendered and is from the HTML document to execute an associated binary behavior, the identifying being performed responsive to intercepting the request to execute the associated binary behavior; and selecting a permission level for the binary behavior in the identified security zone to selectively control execution of the binary behavior including permitting access to the operating system functionality when binary behaviors are enabled in the identified security zone, or denying access to the operating system functionality when binary behaviors are disabled in the identified security zone.