Xpersona
L

Lightweight Host Intrusion Detection and Log Analysis System (Mini-HIDS)

CLAWHUB · Unverified

Real-time Linux log monitoring and AI-assisted detection of brute force attacks, web attacks, and webshells with automated IP blocking and whitelist support.

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179aydmcm3xefg73sbcns3sqn83jga8:mini-hids
  1. Install using `clawhub skill install s179aydmcm3xefg73sbcns3sqn83jga8:mini-hids` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/netkr/mini-hids before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-netkr-mini-hids/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

150,190 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# Mini-HIDS

## Install With Your Agent

The simplest way to use Mini-HIDS is to give this GitHub repository link to your agent tool:

```text
https://github.com/netkr/mini-hids
```

Then tell the agent:

```text
Wrap this project as a skill for me.
```

The agent can clone the repository, read the included project map, package the MCP server and runtime files, and expose Mini-HIDS as an agent-callable local security skill.

Stop brute-force IPs and suspicious web payloads on a small Linux server in minutes, without deploying a full SIEM or heavyweight EDR stack.

![Mini-HIDS flow](images/mini-hids-flow.svg)

[中文文档](README_zh.md)

Mini-HIDS is a lightweight Linux host intrusion detection tool built with the Python standard library. It focuses on three things that are easy to operationalize on small servers:

- Detect repeated SSH login failures with a sliding time window
- Detect obvious web attack payloads from access logs
- Scan common script files for suspicious webshell patterns

Mini-HIDS is designed as an **agent-native** security tool. It exposes a local MCP server so AI agents can inspect status, read alerts, query the blacklist, and trigger ban or unban actions through a standard tool interface.

## Why This Exists

Most open-source security tools are optimized for human operators first. Mini-HIDS is intentionally small enough to understand quickly, script easily, and embed into agent workflows without a large control plane.

This repository is a good fit if you want:

- A single-host defensive tool for VPS or small Linux fleets
- An agent-native interface via MCP for AI-driven security operations
- Simple, inspectable detection logic instead of opaque pipelines

This repository is not a good fit if you need:

- Cross-host correlation or centralized SOC workflows
- Kernel telemetry, eBPF, or endpoint prevention
- High-fidelity detection engineering with low false positives

## Architecture

- `mini_hids.py`: long-running daemon that tails logs, tracks attack windows, bans IPs, and rescans web roots
- `hids_core.py`: control-plane API for MCP and agent integration
- `hids_common.py`: shared config loading, SQLite helpers, IP validation, and firewall backends
- `mcp_server.py`: stdio MCP adapter that exposes Mini-HIDS actions as agent-callable tools
- `config.json`: runtime configuration loaded by both the daemon and the MCP server
- `llms.txt`: LLM-oriented project map for AI search and coding assistants

## Quick Start

After your agent has packaged the project as a skill, adjust `config.json` for the target server and start the daemon:

```bash
sudo python3 mini_hids.py
```

## Use With AI Agents

Mini-HIDS ships with a local MCP server. Tools like Cursor, Claude Desktop, and other MCP-compatible clients can call the project directly.

Run the MCP server:

```bash
python3 mcp_server.py
```

Example client config:

```json
{
  "mcpServers": {
    "mini-hids": {
      "command": "python3",
      "args": ["/absolute/path/to/mini-hids/mcp_s

_meta.json

{
  "ownerId": "kn72pptgavt75qdp970cf6nmjx82ef79",
  "slug": "mini-hids",
  "version": "1.2.7",
  "publishedAt": 1782573121803
}

skill-card.md

## Description:

Real-time Linux log monitoring and AI-assisted detection of brute force attacks, web attacks, and webshells with automated IP blocking and whitelist support.

This skill is ready for commercial/non-commercial use.

## Publisher:

[netkr](https://clawhub.ai/user/netkr)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use Mini-HIDS to give an agent local visibility into SSH and web attack signals on small Linux servers, inspect alerts and blacklist state, and trigger explicit ban or unban actions through MCP.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Automatic bans can change firewall state based on log data that may be ambiguous or spoofable.

Mitigation: Review the server configuration before installation, pin trusted IPs and monitored paths narrowly, and avoid automatic web-log bans behind proxies unless client identity is trustworthy.

Risk: The MCP server can trigger ban and unban operations and acts as a privileged local control plane.

Mitigation: Expose MCP only to trusted local clients and run it with the least privileges compatible with the selected firewall backend.

Risk: Regex-based detections can produce false positives or miss higher-fidelity attack patterns.

Mitigation: Treat alerts and webshell matches as triage signals and review the relevant logs or files before relying on them for irreversible response.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/netkr/skills/mini-hids)
- [Publisher profile](https://clawhub.ai/user/netkr)
- [Mini-HIDS documentation](artifact/SKILL.md)
- [LLM project map](artifact/llms.txt)
- [MCP client configuration example](artifact/examples/claude_desktop_mcp.json)

## Skill Output:

**Output Type(s):** [JSON, text, configuration, guidance]

**Output Format:** [Structured JSON tool responses with concise operational guidance.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [MCP tool calls can inspect status, alerts, and blacklist state, scan web roots, and request firewall ban or unban actions.]

## Skill Version(s):

1.2.7 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

config.json

{
  "LOG_PATHS": {
    "auth": ["/var/log/auth.log", "/var/log/secure"],
    "web": ["/var/log/nginx/access.log", "/var/log/apache2/access.log"],
    "mysql": ["/var/log/mysql/mysql.log", "/var/log/mysql/error.log"]
  },
  "BAN_TIME": 3600,
  "TRUSTED_IPS": ["127.0.0.1", "192.168.1.1"],
  "WEB_ROOT": ["/var/www/html", "/var/www"],
  "BLACKLIST_DB": "blacklist.db",
  "ALERT_LOG": "hids_alert.log",
  "PID_FILE": "mini_hids.pid",
  "FIREWALL_BACKEND": "",
  "MAX_FAILURES": 5,
  "WINDOW_SECONDS": 300,
  "CHECK_INTERVAL": 1,
  "WEBSHELL_SCAN_INTERVAL": 3600
}

examples/claude_desktop_mcp.json

{
  "mcpServers": {
    "mini-hids": {
      "command": "python3",
      "args": [
        "/absolute/path/to/mini-hids/mcp_server.py"
      ]
    }
  }
}

Sponsored

Ads related to Lightweight Host Intrusion Detection and Log Analysis System (Mini-HIDS) and adjacent AI workflows.