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) to monitor endpoint file integrity, system calls, and configuration changes for security violations. Use when deploying OSSEC, Wazuh, or AIDE for endpoint monitoring, building file integrity monitoring (FIM) policies, or meeting compliance requirements for change detection. Activates for requests involving HIDS configuration, file integrity monitoring, OSSEC/Wazuh deployment, or host-based detection.4license: Apache-2.05---67# Configuring Host Based Intrusion Detection89## Overview1011Cybersecurity skill for configuring host based intrusion detection. Follows industry best practices and security standards.1213## When to Use1415**Trigger phrases:**16- "configuring host based intrusion detection"17- "Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints"18- "Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11"19- "Monitoring system configuration changes, rootkit detection, and security policy"202122Use this skill when:23- Deploying HIDS agents (Wazuh, OSSEC, AIDE) across Windows and Linux endpoints24- Configuring file integrity monitoring (FIM) for compliance (PCI DSS 11.5, NIST SI-7)25- Monitoring system configuration changes, rootkit detection, and security policy violations26- Integrating HIDS alerts with SIEM platforms for centralized monitoring2728**Do not use** this skill for network-based IDS (Suricata, Snort) or for EDR deployment.293031## When NOT to Use3233- When you lack proper authorization for testing34- For production systems without change management35- When the task requires legal or compliance expertise beyond technical scope363738## Prerequisites3940- Wazuh server (manager) deployed and accessible from endpoints41- Administrative access to target endpoints42- Network connectivity: agents to Wazuh manager on port 1514 (TCP/UDP) and 1515 (TCP enrollment)43- Wazuh dashboard (OpenSearch Dashboards) for alert visualization44- Understanding of critical files/directories to monitor per OS4546## Workflow4748```python49# Example: IOC detection50import re5152IOC_PATTERNS = {53 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",54 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",55 "hash_md5": r"\b[a-f0-9]{32}\b",56 "hash_sha256": r"\b[a-f0-9]{64}\b",57}5859def extract_iocs(text: str) -> dict:60 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}61```62631. **Define Objectives** — Clarify the goals and scope for host based intrusion detection.642. **Gather Resources** — Collect tools, data, and access needed for host based intrusion detection.653. **Execute Process** — Carry out host based intrusion detection operations methodically.664. **Verify Quality** — Check results against acceptance criteria.675. **Document Outcomes** — Record findings, decisions, and next steps.6869## Tools7071- **Analysis Platform** — Data processing and visualization72- **Collaboration Tools** — Team coordination and knowledge sharing737475## Process76771. **Reconnaissance** — Gather target information, identify attack surface, enumerate services781. **Analysis/Exploitation** — Execute the technique, analyze results, document findings791. **Reporting** — Document IOCs, write findings, provide remediation recommendations8081## Verification8283- [ ] All host based intrusion detection procedures executed completely and documented84- [ ] Findings validated against multiple data sources85- [ ] False positives identified and filtered86- [ ] Results documented with evidence and timestamps87- [ ] Recommendations provided with risk-based prioritization8889## Anti-Rationalization Table9091| Rationalization | Reality |92|---|---|93| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |94| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |95| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |