Back to skill

Security audit

network-aiops

Security checks for vulnerabilities and agentic risk

Overview

Review is needed because the setup instructions can leave powerful network credentials in plaintext despite promising encrypted storage.

Start with read-only device accounts and a read-only NetBox token. Use an interactive prompt or secret-manager injection for the master password instead of saving it in a shell profile. Resolve the plaintext enable-password configuration before granting privileged access. Pin a reviewed package version and require approval of each exact configuration diff. Audit logs record actions; they do not authorize them. A.I.G.'s empty results do not resolve the credential problems directly visible in these instructions.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
Findings (14)

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 · SKILL.md (reported line 24)May include surrounding context.

md
ve in an ENCRYPTED store at ~/.network-aiops/secrets.enc (Fernet/AES + scrypt-derived key; chmod 600), never in plaintext. Device passwords are keyed by the device name; the NetBox token uses the reserved name "netbox-token". Unlock with the NETWORK_AIOPS_MASTER_PASSWORD env var (for the MCP server / non-interactive use) or an interactive prompt. Run `network-aiops init` (wizard) or `network-aiops secret set <name>` to populate it, and `network-aiops secret migrate` to import a legacy plaintext .env (NETWORK_<TARGET_UPPER>_PASSWORD / NETWORK_NETBOX_TOKEN are still honoured as a deprecated fallback). config.yaml holds only device names, drivers, hosts, usernames, and NAPALM optional_args — never secrets. The state dir ~/.network-aiops should be chmod 700.
  Destructive operations (config merge, config replace, config rollback) require double confirmation at the CLI layer and support --dry-run (which prints the diff without committing). All write tools pass through the @governed_tool dec

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 · SKILL.md (reported line 207)May include surrounding context.

network-aiops secret set netbox-token # store the NetBox API token network-aiops secret list # names only — values are NEVER printed network-aiops secret rm core-sw1 network-aiops secret migrate # import a legacy plaintext .env (renamed to .env.migrated) network-aiops secret rotate-password # re-encrypt the whole store under a new master password

text

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 13)May include surrounding context.

network-aiops secret set # store/replace a device password, or 'netbox-token' (hidden prompt) network-aiops secret list # names only — values are never printed network-aiops secret rm # delete a stored secret network-aiops secret migrate # import a legacy plaintext .env into the encrypted store network-aiops secret rotate-password # re-encrypt the store under a new master password

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/cli-reference.md (reported line 80)May include surrounding context.

Diagnostics & MCP

bash
network-aiops doctor [--skip-auth]   # check config + encrypted secret store + per-device password + reachability
network-aiops mcp                    # start the MCP server over stdio

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 95)May include surrounding context.

md
| `--protocol` | Filter `device route` by routing protocol (bgp, ospf, …) |
| `--name` | NetBox name filter (`netbox list`) |
| `--limit` | NetBox page size (`netbox list` / `netbox interfaces`) |
| `--skip-auth` | Skip the connectivity check in `doctor` |

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
w":{"requires":{"anyBins":["network-aiops","uvx"]},"optional":{"env":["NETWORK_AIOPS_CONFIG","NETWORK_AIOPS_HOME","NETWORK_AIOPS_MASTER_PASSWORD","NETWORK_NETBOX_TOKEN"]},"homepage":"https://github.com/AIops-tools/Network-AIops","emoji":"🛜","os":["macos","linux"]}}
compatibility: >
  Standalone, self-governed network device operations over NAPALM. 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 ~/.network-aiops/ (relocatable via NETWORK_AIOPS_HOME).
  Credentials: device login passwords AND the optional NetBox API token live in an ENCRYPTED store at ~/.network-aiops/secrets.enc (Fernet/AES + scrypt-derived key; chmod 600), never in plaintext. Device passwords are keyed by the device name; the NetBox token uses the reserved name "netbox-token". Unlock with the NETWORK_AIOPS_MASTER_PASSWORD env var (for the MCP server / non-interact

The setup instructs users to persist the secret-store master password in a shell profile without warning about plaintext credential exposure.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

Recommending that users export the master password in a shell profile encourages storing the decryption key in plaintext on disk. Disclosure through profile backups, dotfile synchronization, or overly broad file permissions could expose every device password and the NetBox token if the encrypted store is also obtained.

Content

No source excerpt is available for this finding.

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 80)May include surrounding context.

Diagnostics & MCP

bash
network-aiops doctor [--skip-auth]   # check config + encrypted secret store + per-device password + reachability
network-aiops mcp                    # start the MCP server over stdio

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 95)May include surrounding context.

md
| `--protocol` | Filter `device route` by routing protocol (bgp, ospf, …) |
| `--name` | NetBox name filter (`netbox list`) |
| `--limit` | NetBox page size (`netbox list` / `netbox interfaces`) |
| `--skip-auth` | Skip the connectivity check in `doctor` |

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 · references/setup-guide.md (reported line 20)May include surrounding context.

Configure devices

Create ~/.network-aiops/config.yaml:

yaml
devices:

The configuration example stores a device enable secret in plaintext without warning.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The configuration example encourages storing a device enable secret in plaintext without explaining that it falls outside the encrypted password store. In a network-administration skill, exposure of this secret can enable elevated device access when combined with a login or existing session.

Content

No source excerpt is available for this finding.

The configuration example stores an enable password in plaintext despite explicit claims that config.yaml contains no credentials.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The YAML example places an enable password directly in optional_args.secret despite claiming that config.yaml contains no credentials. Users following the example could expose a privilege-elevation credential through configuration backups, sharing, or source control.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'uvx --from network-aiops'.

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The fallback launches an MCP server from a package specification without a fixed version, allowing a fresh resolution to select a different release. A compromised selected release would execute locally in a process potentially supplied with the master password and privileged network access; the recommendation to prefer an installed entry point reduces but does not remove this risk.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'uvx bandit'.

Medium
Category
MCP Rug Pull
Confidence
80% confidence
Finding

Although Bandit is a static-analysis tool rather than an MCP server, uvx bandit can resolve and execute an unpinned package release. A compromised selected release would run with the invoking user's access, making this a supply-chain hardening gap rather than evidence of malicious scanning behavior.

Content

No source excerpt is available for this finding.