Patent ID: 8453239

Claim:
A computer-implemented method for securing a third party scripting environment, the computer-implemented method comprising: receiving, by a computing device, a document to form a source input; defining, by the computing device, a schema with functionality of an underlying target script language, wherein defining the schema comprises identifying operations for the target script language to form a group of identified operations, wherein only the identified operations are deemed safe in the target script language; responsive to determining, by the computing device, that the source input includes at least one operation that is not included in the group of identified operations, rejecting the source input; and responsive to determining, by the computing device, that the source input includes only operations that are included in the group of identified operations: applying, by the computing device, the schema to the source input to generate clean language definitions; and translating, by the computing device, the clean language definitions into a translated script of the target script language.