Hands-on tutorial

Tutorials · Video Surveillance

How to Harden IP Cameras and NVRs Against Attacks

Close the gaps attackers use on camera systems: default passwords, exposed ports, cloud P2P, old firmware and flat networks.

Beginner9 min7 steps

Before you start

  • Admin access to cameras and the NVR
  • A camera VLAN on the switches
  • The latest firmware for each model

Step by step

  1. Change every default password

    Set strong, unique admin passwords on every camera and the NVR, and create separate viewer accounts with limited rights.

  2. Update firmware

    Install the latest firmware on cameras and NVRs, and check for updates every few months.

  3. Isolate the cameras

    Put cameras on their own VLAN. Allow cameras to talk only to the NVR and NTP, and block them from the internet and from other VLANs.

  4. Never forward camera ports

    Do not open NVR or camera ports on the internet router. For remote viewing, use a VPN to the site.

  5. Disable what you don't use

    Turn off P2P cloud services, UPnP, Telnet, unused protocols (such as RTSP without authentication or ONVIF if unused) and default accounts.

  6. Use HTTPS and correct time

    Enable HTTPS for the web interface and NTP for correct timestamps, which also matter for evidence.

  7. Monitor and log

    Send NVR logs to your syslog or SIEM and alert on failed logins, camera disconnects and configuration changes.

Pro tips

  • Lock the NVR in a cabinet; physical access defeats most protections.
  • Review user accounts when staff leave.
  • Keep a list of camera IPs, MACs and firmware versions.