Miraflores is considered one of the safest districts in Lima. Nevertheless, you should take good care of your valuables and it is best not to walk around alone at night.