A shovel includes an undercarriage, an upper swing structure swingably mounted on the undercarriage, an object detector provided on the upper swing structure, and a hardware processor configured to automatically braking a drive part of the shovel according to a predetermined braking pattern, in accordance with a distance between the shovel and an object, the distance being detected by the object detector.