Configuring Host Based Intrusion Detection
Overview
Cybersecurity skill for configuring host based intrusion detection. Follows industry best practices and security standards.
When to Use
Trigger phrases:
- "configuring host based intrusion detection"
- "Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints"
- "Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11"
- "Monitoring system configuration changes, rootkit detection, and security policy"
Use this skill when:
- Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints
- Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11.5, NIST SI-7)
- Monitoring system configuration changes, rootkit detection, and security policy violations
- Integrating HIDS alerts with SIEM platforms for centralized monitoring
Do not use this skill for network-based IDS (Suricata, Snort) or for EDR deployment.
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- Wazuh server (manager) deployed and accessible from endpoints
- Administrative access to target endpoints
- Network connectivity: agents to Wazuh manager on port 1514 (TCP/UDP) and 1515 (TCP enrollment)
- Wazuh dashboard (OpenSearch Dashboards) for alert visualization
- Understanding of critical files/directories to monitor per OS
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Objectives — Clarify the goals and scope for host based intrusion detection.
- Gather Resources — Collect tools, data, and access needed for host based intrusion detection.
- Execute Process — Carry out host based intrusion detection operations methodically.
- Verify Quality — Check results against acceptance criteria.
- Document Outcomes — Record findings, decisions, and next steps.
Tools
- Analysis Platform — Data processing and visualization
- Collaboration Tools — Team coordination and knowledge sharing
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: configuring-host-based-intrusion-detection3description: 'Use when configures host-based intrusion detection systems (HIDS) to4 monitor endpoint file integrity, system calls, and configuration changes for security5 violations. Use when deploying OSSEC, Wazuh, or AIDE for endpoint monitoring, building6 file integrity monitoring (FIM) policies, or meeting compliance requirements for7 change detection. Activates for requests involving HIDS configuration, file integrity8 monitoring, OSSEC/Wazuh deployment, or host-based detection.910 '11domain: cybersecurity12tags:13- endpoint14- HIDS15- Wazuh16- OSSEC17- file-integrity-monitoring18- intrusion-detection19subdomain: endpoint-security20version: 1.0.021author: oyi7722license: Apache-2.023nist_csf:24- PR.PS-0125- PR.PS-0226- DE.CM-0127- PR.IR-0128category: cybersecurity29metadata:30 source: https://skillmd.com/skills/oyi77/configuring-host-based-intrusion-detection31---3233# Configuring Host Based Intrusion Detection3435## Overview3637Cybersecurity skill for configuring host based intrusion detection. Follows industry best practices and security standards.3839## When to Use4041**Trigger phrases:**42- "configuring host based intrusion detection"43- "Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints"44- "Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11"45- "Monitoring system configuration changes, rootkit detection, and security policy"464748Use this skill when:49- Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints50- Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11.5, NIST SI-7)51- Monitoring system configuration changes, rootkit detection, and security policy violations52- Integrating HIDS alerts with SIEM platforms for centralized monitoring5354**Do not use** this skill for network-based IDS (Suricata, Snort) or for EDR deployment.555657## When NOT to Use5859- When you lack proper authorization for testing60- For production systems without change management61- When the task requires legal or compliance expertise beyond technical scope626364## Prerequisites6566- Wazuh server (manager) deployed and accessible from endpoints67- Administrative access to target endpoints68- Network connectivity: agents to Wazuh manager on port 1514 (TCP/UDP) and 1515 (TCP enrollment)69- Wazuh dashboard (OpenSearch Dashboards) for alert visualization70- Understanding of critical files/directories to monitor per OS7172## Workflow7374```python75# Example: IOC detection76import re7778IOC_PATTERNS = {79 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",80 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",81 "hash_md5": r"\b[a-f0-9]{32}\b",82 "hash_sha256": r"\b[a-f0-9]{64}\b",83}8485def extract_iocs(text: str) -> dict:86 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}87```88891. **Define Objectives** — Clarify the goals and scope for host based intrusion detection.902. **Gather Resources** — Collect tools, data, and access needed for host based intrusion detection.913. **Execute Process** — Carry out host based intrusion detection operations methodically.924. **Verify Quality** — Check results against acceptance criteria.935. **Document Outcomes** — Record findings, decisions, and next steps.9495## Tools9697- **Analysis Platform** — Data processing and visualization98- **Collaboration Tools** — Team coordination and knowledge sharing99100101## Process1021031. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1041. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1051. **Reporting** — Document IOCs, write findings, provide remediation recommendations106107## Verification108109- [ ] All host based intrusion detection procedures executed completely and documented110- [ ] Findings validated against multiple data sources111- [ ] False positives identified and filtered112- [ ] Results documented with evidence and timestamps113- [ ] Recommendations provided with risk-based prioritization114115## Anti-Rationalization Table116117| Rationalization | Reality |118|---|---|119| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |120| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |121| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |