Intrusion Detection Systems (IDS) focus on identifying suspicious activity, while Intrusion Prevention Systems (IPS) can actively block malicious traffic. Understanding the strengths of Network-based (NIDS) and Host-based (HIDS) monitoring is essential for building a layered security architecture.
NIDS analyzes network traffic to identify attacks such as reconnaissance scans, exploitation attempts, and suspicious communications. HIDS operates directly on endpoints, monitoring file integrity, system logs, user activity, and process behavior. Together, they provide visibility across both network and host layers.
💡 Pro Tip: Deploy NIDS at strategic monitoring points such as internet gateways, DMZ boundaries, data center segments, or cloud ingress and egress paths. Deploy HIDS on critical systems such as domain controllers, database servers, and sensitive workloads.
# Example HIDS installation (package names vary by distribution)
apt-get install ossec-hids-agentOSSEC is a widely used open-source host intrusion detection system. It monitors file integrity, log activity, and system events, helping detect unauthorized changes, privilege escalation attempts, and other indicators of compromise.
IDS deployments are typically passive and receive copies of traffic through mechanisms such as SPAN ports or network taps. They generate alerts but do not directly interfere with traffic. IPS deployments operate inline, allowing them to inspect and potentially block malicious packets before they reach their destination.
⚠️ Inline IPS deployments can introduce additional latency and operational complexity. Carefully evaluate whether fail-open or fail-closed behavior best aligns with your organization's availability and security requirements.
| Technology | Typical Placement | Primary Function |
|---|---|---|
| NIDS | Network monitoring point | Detection and alerting |
| NIPS | Inline network path | Detection and traffic blocking |
| HIDS | Host operating system | Host-level monitoring and alerting |
Verify exercises to earn ★ 160 XP and unlock next lab level.