manas-io-ai

AgentGuard

AI 智慧體v1.0.0
作者:manas-io-ai更新於 2026-05-11agentguard@clawhub_manas-io-ai/agentguard
工具呼叫

據 AlphaMoat 統計,截至 2026-10,AgentGuard 累計下載 6,468 次、獲 3 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 4,408 位,在「AI 智慧體」分類(1,632 個)中排名第 592 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
6468
星標
3
全站下載量排名
#4,408
全站前 41% · 「AI 智慧體」前 37%
平台累計下載星標評論
ClawHub ↗508331
SkillHub ↗64683—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

說明異常檢查、事件日誌、告警和安全報告,可設定監控目錄、敏感度及保留期。隨附配置使用控制檯報告,關閉 Telegram,未開啟可疑呼叫阻斷。應限制監控範圍與日誌訪問,核驗脫敏或雜湊,依賴加密宣稱前審查實現,並以受限寫許可權獨立執行監控。

資料釋出於 2026-10-27

可以用來做什麼

  • 審查代理活動與安全監控配置

什麼時候用

  • 操作人員需要了解代理檔案和網路行為時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查監控配置,縮小目錄與保留資料範圍,並說明哪些動作只告警而不阻斷。

月度資料趨勢

累計下載6468
3173494367122026-03 · 累計下載 34172026-05 · 累計下載 41272026-07 · 累計下載 46382026-08 · 累計下載 47972026-09 · 累計下載 51642026-10 · 累計下載 646826-0326-0926-10
星標3
2342026-03 · 星標 32026-05 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 32026-10 · 星標 326-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-106468—3
2026-095164—3
2026-084797+3.4%3
2026-074638—3
2026-054127—3
2026-033417—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.7 KB · ClawHub v1.0.0
# AgentGuard - Security Monitoring Skill

**Version:** 1.0.0  
**Author:** Manas AI  
**Category:** Security & Monitoring

## Overview

AgentGuard is a comprehensive security monitoring skill that watches over agent operations, detecting suspicious behavior, logging communications, and providing actionable security reports.
展開全部(共 244 行)
---

## Capabilities

### 1. File Access Monitoring
Track all file read/write operations with pattern analysis.

**Trigger:** Continuous background monitoring  
**Command:** `agentguard monitor files [--watch-dir <path>]`

**What it detects:**
- Unusual file access patterns (bulk reads, sensitive directories)
- Access to credential files (.env, .secrets, keys)
- Unexpected write operations to system directories
- File exfiltration attempts (large reads followed by network calls)

### 2. API Call Detection
Monitor outbound API calls for suspicious activity.

**Command:** `agentguard monitor api`

**What it detects:**
- Calls to unknown/untrusted endpoints
- Unusual API call frequency (rate anomalies)
- Sensitive data in request payloads
- Authentication token exposure
- Calls to known malicious domains

### 3. Communication Logging
Log all external communications for audit trails.

**Command:** `agentguard log comms [--output <path>]`

**Logs include:**
- HTTP/HTTPS requests (sanitized)
- WebSocket connections
- Email sends
- Message platform outputs (Telegram, Discord, etc.)
- Timestamp, destination, payload hash

### 4. Anomaly Detection
ML-lite pattern analysis for behavioral anomalies.

**Command:** `agentguard detect anomalies [--sensitivity <low|medium|high>]`

**Detection methods:**
- Baseline deviation (learns normal patterns)
- Time-of-day anomalies
- Sequence analysis (unusual operation chains)
- Volume spikes
- New destination detection

### 5. Security Reports
Generate comprehensive daily security reports.

**Command:** `agentguard report [--period <daily|weekly|monthly>]`

**Report includes:**
- Activity summary
- Alert breakdown by severity
- Top accessed resources
- Communication destinations
- Anomaly timeline
- Recommendations

---

## Configuration

### Config File: `config/agentguard.yaml`

```yaml
monitoring:
  enabled: true
  file_watch_dirs:
    - ~/clawd
    - ~/.clawdbot
  exclude_patterns:
    - "*.log"
    - "node_modules/**"
    - ".git/**"

alerts:
  sensitivity: medium  # low, medium, high
  channels:
    - telegram
  alert_on:
    - credential_access
    - bulk_file_read
    - unknown_api_endpoint
    - data_exfiltration
  cooldown_minutes: 15

api_monitoring:
  trusted_domains:
    - api.anthropic.com
    - api.openai.com
    - api.telegram.org
    - api.elevenlabs.io
  block_on_suspicious: false  # true = prevent call, false = alert only

logging:
  retention_days: 30
  log_dir: ~/.agentguard/logs
  hash_sensitive_data: true

reporting:
  auto_daily_report: true
  report_time: "09:00"
  report_channel: telegram
```

---

## Usage Examples

### Start Full Monitoring
```
agentguard start
```
Enables all monitoring features with default config.

### Check Current Security Status
```
agentguard status
```
Returns current threat level, active monitors, recent alerts.

### Investigate Specific Activity
```
agentguard investigate --timerange "last 2 hours" --type file_access
```

### Generate Immediate Report
```
agentguard report --now
```

### Review Alert History
```
agentguard alerts --last 24h --severity high
```

### Whitelist a Domain
```
agentguard trust add api.newservice.com --reason "Required for X integration"
```

---

## Alert Severity Levels

| Level | Color | Meaning | Example |
|-------|-------|---------|---------|
| INFO | 🔵 | Normal logged activity | File read in workspace |
| LOW | 🟢 | Minor deviation | Slightly elevated API calls |
| MEDIUM | 🟡 | Notable anomaly | Access to .env file |
| HIGH | 🟠 | Potential threat | Bulk credential access |
| CRITICAL | 🔴 | Immediate action needed | Data exfiltration pattern |

---

## Integration Points

### With Clawdbot
- Receives file/API operation hooks
- Sends alerts via configured channels
- Integrates with heartbeat for periodic checks

### With Other Skills
- Shares threat data with other security skills
- Can block operations (if configured)
- Provides audit logs for compliance skills

---

## Data Storage

```
~/.agentguard/
├── logs/
│   ├── file_access/
│   ├── api_calls/
│   └── communications/
├── baselines/
│   └── behavior_model.json
├── alerts/
│   └── YYYY-MM-DD.json
└── reports/
    └── YYYY-MM-DD_report.md
```

---

## Privacy & Security

- **No external data transmission** - All processing is local
- **Sensitive data hashing** - Credentials are never logged in plain text
- **Configurable retention** - Auto-delete old logs
- **Encrypted storage** - Optional AES encryption for logs

---

## Troubleshooting

### High false positive rate
→ Increase baseline learning period or reduce sensitivity

### Missing file events
→ Check `file_watch_dirs` config covers target directories

### Reports not generating
→ Verify `report_time` format and timezone settings

---

## Execution Scripts

| Script | Purpose |
|--------|---------|
| `execution/monitor.py` | Core monitoring daemon |
| `execution/detector.py` | Anomaly detection engine |
| `execution/logger.py` | Structured logging handler |
| `execution/alerter.py` | Alert dispatch system |
| `execution/reporter.py` | Report generation |

---

## Author Notes

AgentGuard is designed with defense-in-depth principles. It assumes agents can be compromised or manipulated, and provides visibility into their operations.

For maximum security, run AgentGuard in a separate process with limited write access to prevent a compromised agent from disabling monitoring.

「AI 智慧體」分類下的熱門技能

manas-io-ai 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。