Your home may be your castle, but it’s susceptible to invasion. Although your homeowners association probably frowns on moats, there are some security measures you can take to keep modern-day barbarians from coming over the walls.
The wise thing to do is to prevent bad guys from getting in rather than dealing with them in your house. I always secure all windows and doors with good locks, install lighting on all sides of my house and keep two dogs who bark at any sound. What do you do?