1. A method for automatically remedying security flaws, the method comprising the steps of: receiving in memory a static binary analysis report for a binary file corresponding to an application; identifying a section of the binary file, by a processor, based on, at least in part, the received report, the identified section having a security flaw associated with a data object processed by the identified section; determining if a binary patch matching with the identified section exists in a library of patches; if the matching patch is determined to exist, determining if replacing the identified section with the matching binary patch would result in a change in a function of the binary file; if no change in the function is determined to occur, replacing the identified section with the matching patch; and if no matching binary patch is determined to exist or if a change in the function due to the matching binary patch is determined to occur, modifying the identified section to: (i) invoke a data filter to filter the data object and to obtain a filtered data object, and (ii) use the filtered data object.