Aegis Protocol

Security checks across static analysis, malware telemetry, and agentic risk

Overview

This looks like a real monitoring tool, but its auto-heal mode can kill agent sessions or restart services with scoping and provenance issues users should review carefully.

Install only if you intentionally want a local monitor with authority to run shell diagnostics and repair services. Start with `init`, `status`, and `check`; review the config and whitelists; avoid `heal` or cron scheduling until you understand exactly which sessions and services can be changed. Verify the publisher/source, prefer least-privilege execution, and do not run the included token-display publishing commands on an end-user system.

Static analysis

No static analysis findings were reported for this release.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Risk analysis

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

#
ASI02: Tool Misuse and Exploitation
High
What this means

A mistaken or autonomous heal action could stop active agent work or restart production services.

Why it was flagged

The documented recovery commands mutate agent sessions and system services, including a broad `pm2 restart all`, and the artifacts do not show per-action approval before automatic recovery.

Skill content
`openclaw sessions kill` ... `pm2 restart all` ... `systemctl restart nginx` ... `openclaw memory compact`
Recommendation

Use `check`/`status` first, require explicit confirmation for `heal`, scope recovery to named sessions/services, and avoid `pm2 restart all` unless the user has approved it.

#
ASI08: Cascading Failures
High
What this means

Active sessions may be treated as failed and killed, especially if `heal` is run on a schedule.

Why it was flagged

The visible session check classifies running non-whitelisted sessions as stuck without using the documented timeout threshold, so recovery could propagate a bad check result into session termination.

Skill content
if status == "running" and key not in whitelist:
                stuck_sessions.append(key)
Recommendation

Only classify sessions as stuck using reliable age/heartbeat data, honor `sessionTimeoutMinutes`, and make session killing opt-in with a preview of targets.

#
ASI04: Agentic Supply Chain Vulnerabilities
Medium
What this means

Users may have difficulty confirming which source code corresponds to the installed privileged skill.

Why it was flagged

The registry says version 0.12.9 with unknown source/homepage, while internal artifacts cite different versions and repositories; this is a provenance gap for a skill with exec and recovery authority.

Skill content
"version": "0.12.6", "homepage": "https://github.com/mrring88/aegis-protocol", "repository": "https://github.com/mrring88/aegis-protocol.git"
Recommendation

Verify the publisher and repository manually, align registry metadata with the packaged code, and install only a release whose source and version are clear.

#
ASI05: Unexpected Code Execution
Low
What this means

System commands will run on the host where the skill is used.

Why it was flagged

The skill runs shell commands for diagnostics and recovery; this is central to its monitoring purpose, but it executes with the local user's privileges.

Skill content
result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=timeout)
Recommendation

Run it under the least-privileged account that can perform the intended checks, and review the command list before enabling recovery.

#
ASI10: Rogue Agents
Medium
What this means

If configured, recovery actions could repeat every 10 minutes without a human reviewing each action.

Why it was flagged

The README provides a user-directed cron example that makes the auto-heal command run persistently and unattended.

Skill content
*/10 * * * * python3 /path/to/aegis-protocol.py heal >> /var/log/aegis-protocol.log 2>&1
Recommendation

Do not schedule `heal` until thresholds, whitelists, logs, and recovery targets have been tested; consider scheduling `check` instead.

#
ASI06: Memory and Context Poisoning
Low
What this means

Stale or incorrect local state could affect future health checks or recovery behavior.

Why it was flagged

The skill persists local recovery memory, loop history, and cached check results, which is purpose-aligned but can influence later decisions.

Skill content
HEALING_MEMORY = WORKSPACE / ".healing-memory.json" ... LOOP_HISTORY_FILE = WORKSPACE / ".loop-history.json" ... CACHE_FILE = WORKSPACE / ".aegis-cache.json"
Recommendation

Keep the workspace protected, review these files periodically, and clear them if recovery behavior looks wrong.

#
ASI03: Identity and Privilege Abuse
Medium
What this means

A user or agent could accidentally reveal a ClawHub token in chat or logs.

Why it was flagged

A developer publishing guide included in the package documents how to display a local ClawHub token; this is not part of the monitoring purpose and could expose credentials if followed.

Skill content
Token 位置: ... `~/.clawhub/token.json` ... `cat ~/.clawhub/token.json`
Recommendation

Do not run token-display commands unless you are intentionally publishing; remove developer publishing docs from end-user installs.

#
ASI09: Human-Agent Trust Exploitation
Medium
What this means

Users may underestimate that the tool may need elevated permissions and write outside the OpenClaw workspace.

Why it was flagged

The code writes to a system log path, while the security documentation describes file writes as workspace-scoped; this can understate the privilege and filesystem impact.

Skill content
LOG_FILE = Path("/var/log/aegis-protocol.log")
Recommendation

Make the log path configurable, default to the workspace, and update the documentation to accurately describe any system-path writes.