During the last years there have been many technological problems, among them, one of those that stands out for its impact worldwide is Phishing, which is a Social Engineering technique that seeks as a benefit to illegally appropriate confidential and private information. In Peru, this problem is spreading considerably due to the lack of interest of both state and private entities in being able to make a contingency plan against this problem, and more and more citizens are affected and there is no clear statement or response from the authorities. In response to this major problem, this paper proposes the use of an intelligent system that uses a Random Forest algorithm, which is based on machine learning and can detect in time the URLs that may be malicious.