Patent ID: 7725735

Claim:
A method in a data processing system that autonomically repairs malicious source code prior to executing a software product build, the method comprising: a processor receiving a plurality of source code contributions at a source code management library system, each of the plurality of source code contributions including source code for the software product build, and wherein the plurality of source code contributions are developed remotely by a plurality of software developers in a collaborative development environment; responsive to receiving the plurality of source code contributions from the plurality of software developers in the collaborative development environment, moving each of the plurality of source code contributions to a staging area in the source code management library system; prior to executing the software product build, determining whether a source code contribution in the plurality of source code contributions in the staging area contains code that is malicious, wherein the determining of whether a source code contribution contains malicious code comprises comparing the source code contribution against a pre-set pattern of code that is potentially malicious; responsive to detecting malicious code in at least one of the source code contributions, identifying other source code contributions having a dependency on each of the at least one source code contribution containing malicious code; performing a rollback to a previous version of the at least one source code contribution containing malicious code and each source code contribution having a dependency to repair the software product build, wherein said rollback occurs before forwarding the plurality of source code contributions from the staging area, and wherein after said rollback the source code contributions containing malicious code have been removed from the staging area; and when proceeding with said software build, utilizing said previous version of said source code contributions in the staging area instead of source code contributions determined to contain malicious code.