Back to skill

Security audit

firewall-aiops

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this firewall management skill suspicious because high-impact firewall changes lack an enforced approval step and it keeps a local audit database; the review is based on incomplete scanner evidence.

Consider the risk of letting an AI operate a write-capable firewall account without an enforced approval step, especially for disruptive changes. The scanner reports that audit data persists locally. Skillspector marked its analysis partial because several referenced paths were missing, so the evidence is incomplete; the verdict is suspicious, not a claim that the author acted maliciously.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
references/agent-guardrails.md
Finding

High-impact MCP writes lack an enforced approval step

Content
View full analysis

Impact

A direct call can interrupt firewall availability or activate traffic-policy changes without the intended human review. Reboot has no inverse operation, and an audit record does not prevent disruption.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/cli-reference.md (reported line 12)May include surrounding context.

firewall-aiops init # interactive wizard (asks for the platform: opnsense/pfsense) firewall-aiops doctor # check config, secrets, connectivity # firmware/version query on both platforms firewall-aiops doctor --skip-auth # config/secret checks only (no network) firewall-aiops mcp # start the MCP server (stdio)

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/setup-guide.md (reported line 71)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that each
target has a secret, and (unless `--skip-auth`) live connectivity — a firmware/version
query on both platforms.

## Security notes

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli-reference.md (reported line 22)May include surrounding context.

firewall-aiops secret set [--value ] # store OPNsense secret / pfSense key (hidden prompt if no --value) firewall-aiops secret list # list target names with a stored secret (values never shown) firewall-aiops secret rm # delete a stored secret firewall-aiops secret migrate # import legacy plaintext .env into the encrypted store firewall-aiops secret rotate-password # re-encrypt under a new master password

text

Shadow Command Trigger

Medium
Category
Trigger Abuse
Confidence
70% confidence
Finding

Shadow Command Trigger: description clause 'Psec), DHCP leases and static mappings, the firewall log and state table, three flagship RCAs (gateway health, rule hit/shadow, blocked traffic), and governed writes (toggle a rule, add/remove an alias entry, kill states, restart a service, apply' conflicts with built-in command 'restart'

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
-governed firewall operations across OPNsense (REST API /api/..., API key+secret via HTTP Basic auth) and pfSense (REST API v2 /api/v2/..., API key via X-API-Key header). Each target in the config names its own platform, and a name-keyed platform registry selects the API shape, so the same tools work on both and one config can span a mixed estate. The governance harness (audit, policy, token/runaway budget, undo, risk-tiers) is bundled in the package — no external skill-family dependency.
  All write operations are audited to a local SQLite DB under ~/.firewall-aiops/ (relocatable via FIREWALL_AIOPS_HOME).
  Credentials: the OPNsense API secret (paired with the API key) or the pfSense API key is stored ENCRYPTED in ~/.firewall-aiops/secrets.enc (Fernet/AES-128 + scrypt-derived key) — never plaintext on disk. Run 'firewall-aiops init' to onboard (it asks for the platform), or 'firewall-aiops secret set <target>' to add one. The store is unlocked by a master password from FIREWALL_AIOPS_

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The documentation explicitly leaves destructive MCP writes without an enforced approval gate, relying on account permissions and model instructions even for reboot and firewall commits. With a write-capable account, model error or prompt injection could therefore cause an outage or weaken filtering without independent confirmation; the recommended read-only account mitigates this only while its permissions remain restricted.

Content

Scanner excerpt · references/agent-guardrails.md (reported line 15)May include surrounding context.

md
## Authorization is not this tool's job — decide it where it belongs

Whether a write should happen is your decision, or the account's. The tool does
not gate it — there is no read-only switch and no approval prompt to configure.
The two right places to control read vs write:

- **The account you connect with.** Give the OPNsense/pfSense API user a

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/cli-reference.md (reported line 12)May include surrounding context.

firewall-aiops init # interactive wizard (asks for the platform: opnsense/pfsense) firewall-aiops doctor # check config, secrets, connectivity # firmware/version query on both platforms firewall-aiops doctor --skip-auth # config/secret checks only (no network) firewall-aiops mcp # start the MCP server (stdio)

text

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/setup-guide.md (reported line 71)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that each
target has a secret, and (unless `--skip-auth`) live connectivity — a firmware/version
query on both platforms.

## Security notes