A computer-implemented method and device for automatically identifying a junk file are provided. The method for automatically identifying a junk file includes: acquiring an application to be identified; analyzing the application so as to acquire attribute information of a file generated by the application; matching the attribute information of the file and a preset junk file identification rule; and identifying the file as a junk file if the attribute information of the file is matched with the preset junk file identification rule.